@univerjs-pro/bases 1.0.0-alpha.7 → 1.0.0-beta.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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/commands/commands/batch-create-base-records.command.d.ts +2 -0
- package/lib/types/commands/commands/batch-delete-base-records.command.d.ts +2 -0
- package/lib/types/commands/commands/create-base-child-record.command.d.ts +15 -0
- package/lib/types/commands/commands/create-base-record.command.d.ts +2 -0
- package/lib/types/commands/commands/delete-base-record.command.d.ts +2 -0
- package/lib/types/commands/commands/duplicate-base-record.command.d.ts +2 -0
- package/lib/types/commands/commands/move-base-hierarchy-record.command.d.ts +17 -0
- package/lib/types/commands/commands/set-base-range-values.command.d.ts +8 -1
- package/lib/types/commands/commands/set-base-record-values.command.d.ts +2 -0
- package/lib/types/commands/commands/set-base-table-hierarchy-field.command.d.ts +9 -0
- package/lib/types/commands/commands/update-base-cell.command.d.ts +2 -0
- package/lib/types/commands/commands/update-base-view-conditional-color-rules.command.d.ts +32 -0
- package/lib/types/commands/mutations/apply-base-json1.mutation.d.ts +4 -0
- package/lib/types/commands/utils/base-record-creation.d.ts +18 -0
- package/lib/types/commands/utils/base-validation.d.ts +6 -1
- package/lib/types/controllers/base-formula-calculation.controller.d.ts +6 -1
- package/lib/types/facade/f-base.d.ts +4 -2
- package/lib/types/facade/f-enum.d.ts +277 -6
- package/lib/types/facade/f-event.d.ts +102 -0
- package/lib/types/facade/f-field.d.ts +40 -7
- package/lib/types/facade/f-range.d.ts +4 -1
- package/lib/types/facade/f-record.d.ts +377 -2
- package/lib/types/facade/f-table.d.ts +287 -16
- package/lib/types/facade/f-univer.d.ts +2 -0
- package/lib/types/facade/f-view.d.ts +179 -3
- package/lib/types/facade/field-key.d.ts +3 -1
- package/lib/types/facade/index.d.ts +2 -1
- package/lib/types/fields/date-format.d.ts +20 -1
- package/lib/types/fields/field-core-plugin.d.ts +7 -5
- package/lib/types/fields/field-stat.d.ts +10 -0
- package/lib/types/fields/number-format.d.ts +3 -3
- package/lib/types/fields/progress-format.d.ts +1 -0
- package/lib/types/index.d.ts +21 -4
- package/lib/types/locale/en-US.d.ts +1 -1
- package/lib/types/models/base-hierarchy.d.ts +108 -0
- package/lib/types/models/default-table.d.ts +0 -1
- package/lib/types/models/record-link.d.ts +14 -0
- package/lib/types/ot/json1-adapter.d.ts +0 -1
- package/lib/types/ot/json1-op-applier.d.ts +3 -1
- package/lib/types/ot/json1-op-factory.d.ts +0 -3
- package/lib/types/ot/json1-util.d.ts +2 -2
- package/lib/types/search/base-search.d.ts +0 -3
- package/lib/types/services/base-active-dirty.service.d.ts +0 -1
- package/lib/types/services/base-command.service.d.ts +1 -1
- package/lib/types/services/base-compression.service.d.ts +0 -5
- package/lib/types/services/base-formula.service.d.ts +1 -3
- package/lib/types/services/base-permission.service.d.ts +0 -4
- package/lib/types/services/base-projection.service.d.ts +4 -0
- package/lib/types/views/view-core-plugin.d.ts +0 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -6
- package/lib/types/facade/f-types.d.ts +0 -1
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x240e(_0x544ee9,_0x2c8c7b){_0x544ee9=_0x544ee9-0x10a;const _0x383443=_0x3834();let _0x240e2a=_0x383443[_0x544ee9];return _0x240e2a;}function _0x3834(){const _0x3b8321=['update','getViewById','BeforeBaseTableViewCreate','queryRecords','cancel','@univerjs-pro/bases','BeforeBaseTableCreate','FBase','now','Kanban','viewId','IUniverInstanceService','index','33590238NGgpvD','Inject','primaryFieldId','forEach','localeCompare','recordOrder','SetBaseRecordValuesCommand','_resolveRecordIds','getBase','BeforeBaseTableCellValueChange','SetBaseViewFieldOrderCommand','endColumn','\x20exceeds\x20range\x20size\x20','Auto','entries','group',',\x20range:\x20','stringify','getDefaultValue','Date','getTableByName','getRecord','hidden','getFieldByName','_base','ensureBaseTableCellLayout','Gantt','addRecords','direction','getField','getColumn','FUniver','view','clear','regenerateViewIds','3587360gKcuym','push','syncExecuteCommand','map','setFieldVisible','getId','getProjection','search','getBases','ICommandService','type','_injector','_getView','getView','readonly','getSchema','matchesBaseCondition','Base\x20field\x20not\x20found:\x20','max','UniverInstanceType','setConfig','colId','save','setSort','disposeWithMe','442030IishCO','MoveBaseViewCommand','RenameBaseViewCommand','12750248wBYERa','duplicateTable','startColumn','BaseViewType','decorate','_assertInBounds','[FField]:\x20field\x20\x22','delete','SetBaseViewFieldVisibleCommand','flatMap','AND','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','CanceledError','value','_viewId','BaseTableViewCreated','BeforeBaseTableFieldCreate','7yxBsWH','126PPuEQN','getVisibleFields','_tableId','sort','FEventName','Duplicate\x20Base\x20field\x20name:\x20','_getField','getBaseId','BaseTableFieldCreated','getTableId','records','deleteRecords','Event','offset','DeleteBaseViewCommand','getFieldSettings','getSnapshot','UniverProBasesFacade','getDataRange','UpdateBaseViewConfigCommand','setFilter','getValues','getOwnPropertyDescriptor','getActiveBase','startRow','Failed\x20to\x20delete\x20table\x20\x22','resolveBaseFieldValues','getTables','getViews','RenameBaseTableCommand','getType','DeleteBaseTableCommand','setDefaultValue','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','fieldKey','_inject','moveField','getNumRows','description','values','beforeCommandExecuted','FBaseTableRange','getPrimaryField','Gallery','updatedAt','2537562xtafMK',',\x20max\x20columns:\x20','views','setFieldWidth','FBaseTableField','[FTable]:\x20table\x20\x22','_getTable','8FcwWFQ','some','matches','getBaseCellValue','object','limit','ChangeBaseFieldTypeCommand','getCurrentUnitOfType','getSort','length','tableOrder','getTable','UniverCoreFacade','conditions','onCommandExecuted','BaseSortDirection','endRow','_initialize','createDefaultBaseTableSnapshot','getFieldById','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getRecordById','changeType','caseSensitive','updateConfig','DuplicateBaseRecordCommand','record','fieldId','Module','indexOf','[FView]:\x20view\x20\x22','generateRandomId','move','fireEvent','46MnbFtz','from','UNIVER_BASE','getNumColumns','DeleteBaseRecordCommand','BaseFilterConjunction','UniverProBases','UpdateBaseFieldCommand','getPrimaryFieldId','getValue','fields','rows','copyBaseTableSnapshot','CreateBaseRecordCommand','recordId','commonExtend','_getRecord','BeforeBaseTableRecordCreate','notMatches','BaseFilterOperator','_initBaseBeforeEvents','53292BPiDri','createInstance','auto','find','Tools','BaseFieldType','[FBaseRange]:\x20table\x20does\x20not\x20exist.','_fieldId','function','SetBaseViewFieldWidthCommand','defaultValue','getTableById','SetBaseViewGroupCommand','operator','BaseTableRecordCreated','BaseTableCellValueChanged','getName','getFields','addField','getRange','\x22\x20does\x20not\x20exist.','CreateBaseTableCommand','[FBaseRange]:\x20values\x20size\x20','number','setGroup','invalid','setName','fieldIds','searchBaseTable','registerEventHandler','DeleteBaseFieldCommand','@univerjs/core/facade','\x20Copy','FEnum','Failed\x20to\x20add\x20records','setValues','2834754uoSbeu','[FBase]:\x20table\x20\x22','FBasesEventNameMixin','rowId','amd','tables','_table','defineProperty','isReadonly','createdAt','CreateBaseViewCommand','table','IBaseProjectionService','View\x20type\x20is\x20required','includeRecords','viewOrder','MoveBaseFieldCommand','test','orderKey','visibleCardFieldIds','slice','exports','SetBaseViewSortCommand','string','getGroup','UpdateBaseRecordOrderCommand','getDescription','CreateBaseFieldCommand','BatchCreateBaseRecordsCommand','name','FBaseTableView','BaseFieldKeyEnum','[FRecord]:\x20record\x20\x22','@univerjs/core','fieldSettings','Failed\x20to\x20create\x20table\x20\x22','_range','_initBaseAfterEvents','getUnitId','BaseTableCreated','getViewByName','get','BatchDeleteBaseRecordsCommand','_recordId','UniverCore','UpdateBaseCellCommand','config','Failed\x20to\x20create\x20view\x20\x22','fieldOrder','tableId','duplicate','params','deleteTable','getRecords','extend','createUnit','filter'];_0x3834=function(){return _0x3b8321;};return _0x3834();}(function(_0x41da32,_0x28e45c){const _0x31d76d=_0x240e,_0x1ddbb8=_0x41da32();while(!![]){try{const _0x2ad2d1=parseInt(_0x31d76d(0x11b))/0x1*(parseInt(_0x31d76d(0x130))/0x2)+-parseInt(_0x31d76d(0x218))/0x3*(-parseInt(_0x31d76d(0x21f))/0x4)+-parseInt(_0x31d76d(0x1bd))/0x5+-parseInt(_0x31d76d(0x154))/0x6+parseInt(_0x31d76d(0x1ea))/0x7*(parseInt(_0x31d76d(0x1d9))/0x8)+parseInt(_0x31d76d(0x1eb))/0x9*(parseInt(_0x31d76d(0x1d6))/0xa)+-parseInt(_0x31d76d(0x19a))/0xb;if(_0x2ad2d1===_0x28e45c)break;else _0x1ddbb8['push'](_0x1ddbb8['shift']());}catch(_0x356f95){_0x1ddbb8['push'](_0x1ddbb8['shift']());}}}(_0x3834,0xd86ba),function(_0x3c0893,_0x51d87e){const _0x18d924=_0x240e;typeof exports==_0x18d924(0x223)&&typeof module<'u'?_0x51d87e(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade')):typeof define==_0x18d924(0x138)&&define[_0x18d924(0x158)]?define([_0x18d924(0x169),_0x18d924(0x192),_0x18d924(0x175),_0x18d924(0x14f)],_0x51d87e):(_0x3c0893=typeof globalThis<'u'?globalThis:_0x3c0893||self,_0x51d87e(_0x3c0893[_0x18d924(0x1fc)]={},_0x3c0893[_0x18d924(0x121)],_0x3c0893[_0x18d924(0x180)],_0x3c0893[_0x18d924(0x22b)]));}(this,function(_0x523277,_0x4e69b9,_0x5276e6,_0x155474){const _0x329a10=_0x240e;Object[_0x329a10(0x15b)](_0x523277,Symbol['toStringTag'],{'value':_0x329a10(0x115)});var _0x2dd39f=class{constructor(_0x3a1350,_0x65fa51,_0x3a2041,_0x57a37f){const _0x125604=_0x329a10;this[_0x125604(0x1b2)]=_0x3a1350,this['_table']=_0x65fa51,this[_0x125604(0x137)]=_0x3a2041,this[_0x125604(0x20e)]=_0x57a37f;}[_0x329a10(0x1c2)](){const _0x1e8a09=_0x329a10;return this[_0x1e8a09(0x137)];}[_0x329a10(0x1b7)](){const _0x401282=_0x329a10;return this[_0x401282(0x1f1)]();}[_0x329a10(0x140)](){const _0x11e9ea=_0x329a10;return this[_0x11e9ea(0x1f1)]()['name'];}[_0x329a10(0x209)](){return this['_getField']()['type'];}['getConfig'](){const _0x3ea8b9=_0x329a10;return this[_0x3ea8b9(0x1f1)]()[_0x3ea8b9(0x182)];}[_0x329a10(0x1ac)](){const _0x440f46=_0x329a10;return this[_0x440f46(0x1f1)]()[_0x440f46(0x13a)];}[_0x329a10(0x16e)](){const _0x25d908=_0x329a10;return this[_0x25d908(0x1f1)]()[_0x25d908(0x211)];}[_0x329a10(0x15c)](){const _0x2b666d=_0x329a10;return!!this[_0x2b666d(0x1f1)]()[_0x2b666d(0x1cb)];}['setName'](_0xde2501){return this['update']({'name':_0xde2501});}[_0x329a10(0x1d1)](_0x283f3e){const _0xf0726c=_0x329a10;return this[_0xf0726c(0x18d)]({'config':_0x283f3e});}[_0x329a10(0x20b)](_0x16177e){const _0x3f960c=_0x329a10;return this[_0x3f960c(0x18d)]({'defaultValue':_0x16177e});}['update'](_0x2f081b){const _0x1f77b3=_0x329a10;return this[_0x1f77b3(0x20e)]['get'](_0x5276e6[_0x1f77b3(0x1c6)])[_0x1f77b3(0x1bf)](_0x4e69b9[_0x1f77b3(0x122)]['id'],{'unitId':this[_0x1f77b3(0x1b2)]['getId'](),'tableId':this[_0x1f77b3(0x15a)][_0x1f77b3(0x1c2)](),'fieldId':this['_fieldId'],'patch':_0x2f081b});}[_0x329a10(0x10f)](_0x598bf5,_0x9d8a72={}){const _0x499f08=_0x329a10;return this[_0x499f08(0x20e)][_0x499f08(0x17d)](_0x5276e6['ICommandService'])[_0x499f08(0x1bf)](_0x4e69b9[_0x499f08(0x225)]['id'],{'unitId':this[_0x499f08(0x1b2)][_0x499f08(0x1c2)](),'tableId':this[_0x499f08(0x15a)][_0x499f08(0x1c2)](),'fieldId':this[_0x499f08(0x137)],'input':{'type':_0x598bf5,'config':_0x9d8a72}});}[_0x329a10(0x1e0)](){const _0x54b5d0=_0x329a10;return this[_0x54b5d0(0x20e)][_0x54b5d0(0x17d)](_0x5276e6[_0x54b5d0(0x1c6)])[_0x54b5d0(0x1bf)](_0x4e69b9[_0x54b5d0(0x14e)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x54b5d0(0x15a)][_0x54b5d0(0x1c2)](),'fieldId':this[_0x54b5d0(0x137)]});}['move'](_0x45168b){const _0x2bab92=_0x329a10;return this['_inject'][_0x2bab92(0x17d)](_0x5276e6[_0x2bab92(0x1c6)])[_0x2bab92(0x1bf)](_0x4e69b9[_0x2bab92(0x164)]['id'],{'unitId':this[_0x2bab92(0x1b2)][_0x2bab92(0x1c2)](),'tableId':this[_0x2bab92(0x15a)][_0x2bab92(0x1c2)](),'fieldId':this[_0x2bab92(0x137)],'target':_0x45168b});}[_0x329a10(0x1f1)](){const _0x3cd4f9=_0x329a10;let _0x24edb8=this[_0x3cd4f9(0x15a)]['getTable']()[_0x3cd4f9(0x125)][this[_0x3cd4f9(0x137)]];if(!_0x24edb8)throw Error(_0x3cd4f9(0x1df)+this[_0x3cd4f9(0x137)]+'\x22\x20does\x20not\x20exist.');return _0x24edb8;}},_0x16c641=class _0xdb7dda{constructor(_0x969098,_0x8d57bd,_0x564982,_0x1bf5d8){const _0xcd2519=_0x329a10;this['_base']=_0x969098,this[_0xcd2519(0x15a)]=_0x8d57bd,this[_0xcd2519(0x178)]=_0x564982,this[_0xcd2519(0x20e)]=_0x1bf5d8,this[_0xcd2519(0x1de)]();}[_0x329a10(0x1f2)](){const _0xbdf8d0=_0x329a10;return this[_0xbdf8d0(0x1b2)][_0xbdf8d0(0x1c2)]();}[_0x329a10(0x1f4)](){const _0x39a730=_0x329a10;return this['_table'][_0x39a730(0x1c2)]();}[_0x329a10(0x143)](){const _0x39dc3f=_0x329a10;return{...this[_0x39dc3f(0x178)]};}['getRow'](){const _0x1c4779=_0x329a10;return this[_0x1c4779(0x178)][_0x1c4779(0x203)];}[_0x329a10(0x1b8)](){const _0x175d7b=_0x329a10;return this[_0x175d7b(0x178)][_0x175d7b(0x1db)];}[_0x329a10(0x210)](){const _0x304902=_0x329a10;return this[_0x304902(0x178)][_0x304902(0x22f)]-this[_0x304902(0x178)][_0x304902(0x203)]+0x1;}['getNumColumns'](){const _0x2b1c23=_0x329a10;return this['_range']['endColumn']-this[_0x2b1c23(0x178)][_0x2b1c23(0x1db)]+0x1;}['getValues'](){const _0x2e77c6=_0x329a10;let _0x5d050f=this[_0x2e77c6(0x21e)](),_0x1f40d9=[];for(let _0x35c336=this[_0x2e77c6(0x178)][_0x2e77c6(0x203)];_0x35c336<=this[_0x2e77c6(0x178)]['endRow'];_0x35c336++){var _0x1816f9;let _0x254213=(_0x1816f9=_0x5d050f[_0x2e77c6(0x157)])==null?void 0x0:_0x1816f9[_0x35c336],_0x4ac2cf=[];for(let _0xac81f4=this['_range'][_0x2e77c6(0x1db)];_0xac81f4<=this['_range'][_0x2e77c6(0x1a5)];_0xac81f4++){var _0x26122b;let _0x50bb2f=(_0x26122b=_0x5d050f[_0x2e77c6(0x1d2)])==null?void 0x0:_0x26122b[_0xac81f4];_0x4ac2cf[_0x2e77c6(0x1be)](_0x254213&&_0x50bb2f?(0x0,_0x4e69b9[_0x2e77c6(0x222)])(_0x5d050f,_0x254213,_0x50bb2f):null);}_0x1f40d9[_0x2e77c6(0x1be)](_0x4ac2cf);}return _0x1f40d9;}['getValue'](){const _0x47dc6=_0x329a10;var _0x319439,_0x454b6e;return(_0x319439=(_0x454b6e=this[_0x47dc6(0x200)]()[0x0])==null?void 0x0:_0x454b6e[0x0])==null?null:_0x319439;}['setValue'](_0x446a58){const _0x35336a=_0x329a10;return this[_0x35336a(0x153)]([[_0x446a58]]);}[_0x329a10(0x153)](_0x4ed439){const _0x2c6110=_0x329a10;let _0x2f3bc7=this['getNumRows'](),_0x40d992=this[_0x2c6110(0x11e)]();if(_0x4ed439[_0x2c6110(0x228)]>_0x2f3bc7||_0x4ed439[_0x2c6110(0x220)](_0x379f5b=>_0x379f5b[_0x2c6110(0x228)]>_0x40d992)){var _0x3530e9,_0x2252b2;throw Error(_0x2c6110(0x146)+_0x4ed439['length']+'x'+((_0x3530e9=(_0x2252b2=_0x4ed439[0x0])==null?void 0x0:_0x2252b2['length'])==null?0x0:_0x3530e9)+_0x2c6110(0x1a6)+_0x2f3bc7+'x'+_0x40d992+'.');}let _0x3e16b1=this[_0x2c6110(0x20e)][_0x2c6110(0x17d)](_0x5276e6[_0x2c6110(0x1c6)]),_0x33b123=_0x4ed439[_0x2c6110(0x1e2)]((_0x5b1467,_0x2889c2)=>_0x5b1467['map']((_0x5be258,_0x2a10e8)=>({'row':this[_0x2c6110(0x178)][_0x2c6110(0x203)]+_0x2889c2,'col':this[_0x2c6110(0x178)][_0x2c6110(0x1db)]+_0x2a10e8,'value':_0x5be258})));return _0x3e16b1['syncExecuteCommand'](_0x4e69b9['SetBaseRangeValuesCommand']['id'],{'unitId':this[_0x2c6110(0x1b2)][_0x2c6110(0x1c2)](),'tableId':this['_table'][_0x2c6110(0x1c2)](),'patches':_0x33b123});}[_0x329a10(0x1bb)](){const _0x3a1a38=_0x329a10;return this[_0x3a1a38(0x153)](Array[_0x3a1a38(0x11c)]({'length':this[_0x3a1a38(0x210)]()},()=>Array[_0x3a1a38(0x11c)]({'length':this['getNumColumns']()},()=>null)));}['offset'](_0x20bb83,_0x82a4f8,_0x47e09b=this[_0x329a10(0x210)](),_0x7b7d30=this[_0x329a10(0x11e)]()){const _0x51d2de=_0x329a10;return this[_0x51d2de(0x20e)]['createInstance'](_0xdb7dda,this[_0x51d2de(0x1b2)],this['_table'],{'startRow':this[_0x51d2de(0x178)]['startRow']+_0x20bb83,'startColumn':this[_0x51d2de(0x178)][_0x51d2de(0x1db)]+_0x82a4f8,'endRow':this[_0x51d2de(0x178)][_0x51d2de(0x203)]+_0x20bb83+_0x47e09b-0x1,'endColumn':this[_0x51d2de(0x178)][_0x51d2de(0x1db)]+_0x82a4f8+_0x7b7d30-0x1},this['_inject']);}[_0x329a10(0x21e)](){const _0xa33318=_0x329a10;let _0x119283=this['_table'][_0xa33318(0x22a)]();if(!_0x119283)throw Error(_0xa33318(0x136));return(0x0,_0x4e69b9['ensureBaseTableCellLayout'])(_0x119283);}[_0x329a10(0x1de)](){const _0x1f6d4c=_0x329a10;var _0x5316f4,_0x59bceb;let _0x37d03d=this[_0x1f6d4c(0x21e)](),_0x3034bc=(_0x5316f4=(_0x59bceb=_0x37d03d[_0x1f6d4c(0x19f)])==null?void 0x0:_0x59bceb[_0x1f6d4c(0x228)])==null?0x0:_0x5316f4,_0x4d015f=_0x37d03d[_0x1f6d4c(0x184)][_0x1f6d4c(0x228)];if(this[_0x1f6d4c(0x178)][_0x1f6d4c(0x203)]<0x0||this[_0x1f6d4c(0x178)][_0x1f6d4c(0x1db)]<0x0||this['_range'][_0x1f6d4c(0x22f)]<this[_0x1f6d4c(0x178)][_0x1f6d4c(0x203)]||this[_0x1f6d4c(0x178)][_0x1f6d4c(0x1a5)]<this[_0x1f6d4c(0x178)]['startColumn']||this[_0x1f6d4c(0x178)][_0x1f6d4c(0x22f)]>=Math[_0x1f6d4c(0x1cf)](_0x3034bc,0x1)||this[_0x1f6d4c(0x178)][_0x1f6d4c(0x1a5)]>=Math[_0x1f6d4c(0x1cf)](_0x4d015f,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x3034bc+_0x1f6d4c(0x219)+_0x4d015f+_0x1f6d4c(0x1aa)+JSON[_0x1f6d4c(0x1ab)](this[_0x1f6d4c(0x178)])+'.');}};let _0x53f771=function(_0x3f3d03){const _0x43c02f=_0x329a10;return _0x3f3d03['Id']='id',_0x3f3d03['Name']=_0x43c02f(0x171),_0x3f3d03[_0x43c02f(0x1a7)]=_0x43c02f(0x132),_0x3f3d03;}({});function _0x41f6fd(_0x39ecc6,_0x4df5bf,_0x315fad='id'){const _0x431012=_0x329a10;if(!_0x4df5bf)return{};let _0x5896d5={};return Object[_0x431012(0x1a8)](_0x4df5bf)[_0x431012(0x19d)](([_0x15c959,_0x293e73])=>{_0x5896d5[_0xb6e9cd(_0x39ecc6,_0x15c959,_0x315fad)]=_0x293e73;}),_0x5896d5;}function _0xb6e9cd(_0x34e89c,_0x58f382,_0x1ca4d7){const _0x51d482=_0x329a10;if(_0x1ca4d7==='id'||_0x1ca4d7===_0x51d482(0x132)&&_0x34e89c[_0x51d482(0x125)][_0x58f382])return _0x58f382;let _0x4e9953=Object[_0x51d482(0x212)](_0x34e89c['fields'])[_0x51d482(0x18c)](_0x1fd3a0=>_0x1fd3a0[_0x51d482(0x171)]===_0x58f382);if(_0x4e9953[_0x51d482(0x228)]===0x1)return _0x4e9953[0x0]['id'];throw _0x4e9953[_0x51d482(0x228)]>0x1?Error(_0x51d482(0x1f0)+_0x58f382):Error(_0x51d482(0x1ce)+_0x58f382);}var _0x2dda79=class _0x1f7e2a{constructor(_0x4ffe0e,_0x57968a,_0x1a3f35,_0xb39047){const _0x423ae0=_0x329a10;this['_base']=_0x4ffe0e,this['_table']=_0x57968a,this[_0x423ae0(0x17f)]=_0x1a3f35,this[_0x423ae0(0x20e)]=_0xb39047;}[_0x329a10(0x1c2)](){const _0x474fcf=_0x329a10;return this[_0x474fcf(0x17f)];}[_0x329a10(0x1af)](){const _0x1f7a2d=_0x329a10;return this[_0x1f7a2d(0x12b)]();}[_0x329a10(0x124)](_0x37ea17){const _0x324559=_0x329a10;var _0xd9f1fd;return(_0xd9f1fd=this[_0x324559(0x12b)]()[_0x324559(0x212)][_0x37ea17])==null?null:_0xd9f1fd;}[_0x329a10(0x200)](){const _0xe1a37c=_0x329a10;return{...this[_0xe1a37c(0x12b)]()[_0xe1a37c(0x212)]};}['setValue'](_0x394b34,_0x40dcca){const _0x32b589=_0x329a10;return this[_0x32b589(0x20e)][_0x32b589(0x17d)](_0x5276e6[_0x32b589(0x1c6)])[_0x32b589(0x1bf)](_0x4e69b9[_0x32b589(0x181)]['id'],{'unitId':this['_base'][_0x32b589(0x1c2)](),'tableId':this['_table']['getId'](),'recordId':this['_recordId'],'fieldId':_0x394b34,'value':_0x40dcca});}[_0x329a10(0x153)](_0x2a85e0,_0xb68d3c='id'){const _0x4e93dd=_0x329a10;let _0x15805e=this[_0x4e93dd(0x20e)][_0x4e93dd(0x17d)](_0x5276e6[_0x4e93dd(0x1c6)]),_0x3736da=this[_0x4e93dd(0x15a)][_0x4e93dd(0x22a)](),_0x35e1b7=[{'recordId':this[_0x4e93dd(0x17f)],'values':_0x41f6fd(_0x3736da,_0x2a85e0,_0xb68d3c)}];return _0x15805e['syncExecuteCommand'](_0x4e69b9[_0x4e93dd(0x1a0)]['id'],{'unitId':this[_0x4e93dd(0x1b2)][_0x4e93dd(0x1c2)](),'tableId':this[_0x4e93dd(0x15a)]['getId'](),'patches':_0x35e1b7});}['delete'](){const _0x42412c=_0x329a10;return this[_0x42412c(0x20e)][_0x42412c(0x17d)](_0x5276e6['ICommandService'])['syncExecuteCommand'](_0x4e69b9[_0x42412c(0x11f)]['id'],{'unitId':this[_0x42412c(0x1b2)][_0x42412c(0x1c2)](),'tableId':this['_table']['getId'](),'recordId':this[_0x42412c(0x17f)]});}[_0x329a10(0x186)](_0x3ebd57){const _0x39c1c7=_0x329a10;let _0x1a6465=this[_0x39c1c7(0x20e)][_0x39c1c7(0x17d)](_0x5276e6[_0x39c1c7(0x1c6)]),_0x2b0603={...this[_0x39c1c7(0x12b)](),..._0x3ebd57,'id':(0x0,_0x5276e6[_0x39c1c7(0x118)])(0x6)};_0x3ebd57!=null&&_0x3ebd57['values']&&(_0x2b0603['values']={..._0x2b0603[_0x39c1c7(0x212)],..._0x3ebd57['values']});let _0x2efd7e=Date[_0x39c1c7(0x195)]();if(_0x2b0603[_0x39c1c7(0x166)]||(_0x2b0603['orderKey']=''+_0x2efd7e),_0x2b0603[_0x39c1c7(0x15d)]||(_0x2b0603[_0x39c1c7(0x15d)]=_0x2efd7e),_0x2b0603[_0x39c1c7(0x217)]||(_0x2b0603[_0x39c1c7(0x217)]=_0x2efd7e),!_0x1a6465[_0x39c1c7(0x1bf)](_0x4e69b9[_0x39c1c7(0x112)]['id'],{'unitId':this[_0x39c1c7(0x1b2)][_0x39c1c7(0x1c2)](),'tableId':this[_0x39c1c7(0x15a)][_0x39c1c7(0x1c2)](),'sourceRecordId':this[_0x39c1c7(0x17f)],'record':_0x2b0603}))throw Error(_0x39c1c7(0x20c)+this[_0x39c1c7(0x17f)]+'\x22.');return this[_0x39c1c7(0x20e)][_0x39c1c7(0x131)](_0x1f7e2a,this[_0x39c1c7(0x1b2)],this['_table'],_0x2b0603['id'],this[_0x39c1c7(0x20e)]);}['setOrderKey'](_0x391c10){const _0x4bbb87=_0x329a10;return this[_0x4bbb87(0x20e)][_0x4bbb87(0x17d)](_0x5276e6[_0x4bbb87(0x1c6)])[_0x4bbb87(0x1bf)](_0x4e69b9[_0x4bbb87(0x16d)]['id'],{'unitId':this[_0x4bbb87(0x1b2)][_0x4bbb87(0x1c2)](),'tableId':this['_table'][_0x4bbb87(0x1c2)](),'recordId':this['_recordId'],'orderKey':_0x391c10});}[_0x329a10(0x12b)](){const _0x1c4959=_0x329a10;let _0x31fad1=this['_table'][_0x1c4959(0x22a)]()[_0x1c4959(0x1f5)][this['_recordId']];if(!_0x31fad1)throw Error(_0x1c4959(0x174)+this['_recordId']+'\x22\x20does\x20not\x20exist.');return _0x31fad1;}},_0x1c6236=class{constructor(_0x303c91,_0xd0e891,_0xa0ba30,_0x120a56){const _0x3d6dc7=_0x329a10;this['_base']=_0x303c91,this[_0x3d6dc7(0x15a)]=_0xd0e891,this[_0x3d6dc7(0x1e7)]=_0xa0ba30,this[_0x3d6dc7(0x1c8)]=_0x120a56;}[_0x329a10(0x1c2)](){const _0x1e8427=_0x329a10;return this[_0x1e8427(0x1e7)];}[_0x329a10(0x1ca)](){return this['_getView']();}[_0x329a10(0x140)](){const _0x46ec43=_0x329a10;return this[_0x46ec43(0x1c9)]()[_0x46ec43(0x171)];}[_0x329a10(0x209)](){const _0x239a3a=_0x329a10;return this['_getView']()[_0x239a3a(0x1c7)];}[_0x329a10(0x14a)](_0x19e838){const _0x5a8ace=_0x329a10;return this['_injector'][_0x5a8ace(0x17d)](_0x5276e6['ICommandService'])[_0x5a8ace(0x1bf)](_0x4e69b9[_0x5a8ace(0x1d8)]['id'],{'unitId':this[_0x5a8ace(0x1b2)][_0x5a8ace(0x1c2)](),'tableId':this['_table'][_0x5a8ace(0x1c2)](),'viewId':this[_0x5a8ace(0x1e7)],'name':_0x19e838});}['getConfig'](){const _0x17cd20=_0x329a10;let _0x290dc5=this[_0x17cd20(0x209)](),_0x173879=this[_0x17cd20(0x1c9)]()[_0x17cd20(0x182)];switch(_0x290dc5){case _0x5276e6[_0x17cd20(0x1dc)]['Grid']:return _0x173879;case _0x5276e6[_0x17cd20(0x1dc)][_0x17cd20(0x196)]:return _0x173879;case _0x5276e6[_0x17cd20(0x1dc)]['Calendar']:return _0x173879;case _0x5276e6['BaseViewType'][_0x17cd20(0x1b4)]:return _0x173879;case _0x5276e6[_0x17cd20(0x1dc)][_0x17cd20(0x216)]:return _0x173879;default:return _0x173879;}}[_0x329a10(0x111)](_0x50f6d9){const _0x1d4df8=_0x329a10;return this['_injector']['get'](_0x5276e6[_0x1d4df8(0x1c6)])['syncExecuteCommand'](_0x4e69b9[_0x1d4df8(0x1fe)]['id'],{'unitId':this[_0x1d4df8(0x1b2)][_0x1d4df8(0x1c2)](),'tableId':this[_0x1d4df8(0x15a)][_0x1d4df8(0x1c2)](),'viewId':this[_0x1d4df8(0x1e7)],'patch':_0x50f6d9});}['getFilter'](){const _0x4b4d83=_0x329a10;var _0x3cb25f;return(_0x3cb25f=this['_getView']()[_0x4b4d83(0x18c)])==null?null:_0x3cb25f;}[_0x329a10(0x1ff)](_0x40b26e){const _0x488799=_0x329a10;return this['_injector']['get'](_0x5276e6[_0x488799(0x1c6)])[_0x488799(0x1bf)](_0x4e69b9['SetBaseViewFilterCommand']['id'],{'unitId':this[_0x488799(0x1b2)]['getId'](),'tableId':this[_0x488799(0x15a)]['getId'](),'viewId':this[_0x488799(0x1e7)],'filter':_0x40b26e});}[_0x329a10(0x227)](){const _0x11f3ef=_0x329a10;var _0x17f4b5;return(_0x17f4b5=this[_0x11f3ef(0x1c9)]()['sort'])==null?[]:_0x17f4b5;}[_0x329a10(0x1d4)](_0x53c1ac){const _0x2f8b36=_0x329a10;return this[_0x2f8b36(0x1c8)]['get'](_0x5276e6[_0x2f8b36(0x1c6)])[_0x2f8b36(0x1bf)](_0x4e69b9[_0x2f8b36(0x16a)]['id'],{'unitId':this[_0x2f8b36(0x1b2)][_0x2f8b36(0x1c2)](),'tableId':this['_table']['getId'](),'viewId':this[_0x2f8b36(0x1e7)],'sort':_0x53c1ac});}[_0x329a10(0x16c)](){const _0x3752c5=_0x329a10;var _0x5a1c27;return(_0x5a1c27=this[_0x3752c5(0x1c9)]()[_0x3752c5(0x1a9)])==null?[]:_0x5a1c27;}[_0x329a10(0x148)](_0x3fd0f8){const _0x71e023=_0x329a10;return this[_0x71e023(0x1c8)]['get'](_0x5276e6['ICommandService'])[_0x71e023(0x1bf)](_0x4e69b9[_0x71e023(0x13c)]['id'],{'unitId':this[_0x71e023(0x1b2)][_0x71e023(0x1c2)](),'tableId':this['_table'][_0x71e023(0x1c2)](),'viewId':this[_0x71e023(0x1e7)],'group':_0x3fd0f8});}[_0x329a10(0x1fa)](_0x3f9fed){const _0x1d243b=_0x329a10;var _0x2b1cc3,_0x2f10a8;return(_0x2b1cc3=(_0x2f10a8=this[_0x1d243b(0x1c9)]()['fieldSettings'])==null?void 0x0:_0x2f10a8[_0x3f9fed])==null?{}:_0x2b1cc3;}[_0x329a10(0x1ec)](){const _0x221e90=_0x329a10;var _0x54c571;let _0x24dd5b=this['_table'][_0x221e90(0x22a)](),_0x5ca9c3=this[_0x221e90(0x1c9)]();return((_0x54c571=_0x5ca9c3['fieldOrder'])==null?_0x24dd5b[_0x221e90(0x184)]:_0x54c571)['filter'](_0x37c13f=>{const _0x2ffd15=_0x221e90;var _0x95a780;return _0x24dd5b[_0x2ffd15(0x125)][_0x37c13f]&&!(!((_0x95a780=_0x5ca9c3[_0x2ffd15(0x176)])==null||(_0x95a780=_0x95a780[_0x37c13f])==null)&&_0x95a780[_0x2ffd15(0x1b0)]);})['map'](_0x385eab=>this[_0x221e90(0x1c8)][_0x221e90(0x131)](_0x2dd39f,this[_0x221e90(0x1b2)],this[_0x221e90(0x15a)],_0x385eab,this[_0x221e90(0x1c8)]));}[_0x329a10(0x1c1)](_0x4cbcec,_0x23e583){const _0x389398=_0x329a10;return this[_0x389398(0x1c8)][_0x389398(0x17d)](_0x5276e6[_0x389398(0x1c6)])[_0x389398(0x1bf)](_0x4e69b9[_0x389398(0x1e1)]['id'],{'unitId':this['_base'][_0x389398(0x1c2)](),'tableId':this[_0x389398(0x15a)]['getId'](),'viewId':this['_viewId'],'fieldId':_0x4cbcec,'visible':_0x23e583});}[_0x329a10(0x21b)](_0x41ed51,_0x580fcd){const _0x6652d4=_0x329a10;return this['_injector'][_0x6652d4(0x17d)](_0x5276e6[_0x6652d4(0x1c6)])[_0x6652d4(0x1bf)](_0x4e69b9[_0x6652d4(0x139)]['id'],{'unitId':this[_0x6652d4(0x1b2)]['getId'](),'tableId':this['_table'][_0x6652d4(0x1c2)](),'viewId':this['_viewId'],'fieldId':_0x41ed51,'width':_0x580fcd});}[_0x329a10(0x20f)](_0x551de8,_0x4d6f16){const _0x4ff64b=_0x329a10;return this['_injector'][_0x4ff64b(0x17d)](_0x5276e6[_0x4ff64b(0x1c6)])[_0x4ff64b(0x1bf)](_0x4e69b9[_0x4ff64b(0x1a4)]['id'],{'unitId':this[_0x4ff64b(0x1b2)][_0x4ff64b(0x1c2)](),'tableId':this[_0x4ff64b(0x15a)][_0x4ff64b(0x1c2)](),'viewId':this['_viewId'],'fieldId':_0x551de8,'target':_0x4d6f16});}[_0x329a10(0x119)](_0x2ac4c7){const _0x4e3337=_0x329a10;return this[_0x4e3337(0x1c8)][_0x4e3337(0x17d)](_0x5276e6['ICommandService'])[_0x4e3337(0x1bf)](_0x4e69b9[_0x4e3337(0x1d7)]['id'],{'unitId':this[_0x4e3337(0x1b2)]['getId'](),'tableId':this[_0x4e3337(0x15a)][_0x4e3337(0x1c2)](),'viewId':this[_0x4e3337(0x1e7)],'target':_0x2ac4c7});}['delete'](){const _0x26eb1e=_0x329a10;return this[_0x26eb1e(0x1c8)][_0x26eb1e(0x17d)](_0x5276e6['ICommandService'])[_0x26eb1e(0x1bf)](_0x4e69b9[_0x26eb1e(0x1f9)]['id'],{'unitId':this[_0x26eb1e(0x1b2)][_0x26eb1e(0x1c2)](),'tableId':this[_0x26eb1e(0x15a)][_0x26eb1e(0x1c2)](),'viewId':this[_0x26eb1e(0x1e7)]});}[_0x329a10(0x1c3)](){const _0x34e2b7=_0x329a10;return this[_0x34e2b7(0x1c8)][_0x34e2b7(0x17d)](_0x4e69b9[_0x34e2b7(0x160)])['getProjection'](this[_0x34e2b7(0x1b2)]['getBase']()[_0x34e2b7(0x1fb)](),this[_0x34e2b7(0x15a)][_0x34e2b7(0x1c2)](),this[_0x34e2b7(0x1e7)]);}[_0x329a10(0x1c9)](){const _0x371720=_0x329a10;let _0x2fd69d=this['_table'][_0x371720(0x22a)]()[_0x371720(0x21a)][this[_0x371720(0x1e7)]];if(!_0x2fd69d)throw Error(_0x371720(0x117)+this[_0x371720(0x1e7)]+_0x371720(0x144));return _0x2fd69d;}},_0x29a648=class{constructor(_0x44f78f,_0x406296,_0x1747f3){const _0x49a1be=_0x329a10;this[_0x49a1be(0x1b2)]=_0x44f78f,this['_tableId']=_0x406296,this[_0x49a1be(0x1c8)]=_0x1747f3;}[_0x329a10(0x1a2)](){const _0x128f90=_0x329a10;return this['_base'][_0x128f90(0x1a2)]();}[_0x329a10(0x22a)](){const _0xb55229=_0x329a10;return this[_0xb55229(0x21e)]();}['getId'](){const _0x1b0382=_0x329a10;return this[_0x1b0382(0x1ed)];}['getName'](){const _0x503dc7=_0x329a10;return this['_getTable']()[_0x503dc7(0x171)];}[_0x329a10(0x14a)](_0x12c4a5){const _0x18fb05=_0x329a10;return this[_0x18fb05(0x1c8)][_0x18fb05(0x17d)](_0x5276e6['ICommandService'])[_0x18fb05(0x1bf)](_0x4e69b9[_0x18fb05(0x208)]['id'],{'unitId':this[_0x18fb05(0x1b2)][_0x18fb05(0x1c2)](),'tableId':this['_tableId'],'name':_0x12c4a5});}[_0x329a10(0x1c4)](_0x569e0b,_0x4d5ce3){const _0x4909bc=_0x329a10;var _0x35637d;let _0x44cc88=this[_0x4909bc(0x1c8)][_0x4909bc(0x17d)](_0x4e69b9['IBaseProjectionService']),_0x25ff63=this[_0x4909bc(0x1b2)]['getBase']()[_0x4909bc(0x1fb)](),_0x51a337=this[_0x4909bc(0x21e)]();if(_0x4d5ce3){var _0x3f52b9;let _0x7e4ac8=_0x44cc88['getProjection'](_0x25ff63,this['_tableId'],_0x4d5ce3),_0x5ea276=_0x51a337[_0x4909bc(0x21a)][_0x4d5ce3],_0x27b64d=(_0x3f52b9=_0x569e0b[_0x4909bc(0x14b)])==null?_0x58f815(_0x51a337,_0x5ea276,_0x7e4ac8):_0x3f52b9,_0x2af128=_0x4909bc(0x126)in _0x7e4ac8&&Array['isArray'](_0x7e4ac8[_0x4909bc(0x126)])?_0x7e4ac8['rows']:[];return(0x0,_0x4e69b9[_0x4909bc(0x14c)])({..._0x569e0b,'table':_0x51a337,'fieldIds':_0x27b64d,'rows':_0x2af128});}let _0x3c8935=(_0x51a337[_0x4909bc(0x19f)]?_0x51a337['recordOrder'][_0x4909bc(0x1c0)](_0x1b258e=>_0x51a337['records'][_0x1b258e]):Object[_0x4909bc(0x212)](_0x51a337[_0x4909bc(0x1f5)])[_0x4909bc(0x1ee)]((_0x207981,_0x1360c3)=>_0x207981[_0x4909bc(0x166)][_0x4909bc(0x19e)](_0x1360c3[_0x4909bc(0x166)])))['filter'](_0x1db1c9=>_0x1db1c9)[_0x4909bc(0x1c0)](_0x1e64be=>({'recordId':_0x1e64be['id'],'values':_0x1e64be['values']})),_0x30fd7a=(_0x35637d=_0x569e0b[_0x4909bc(0x14b)])==null?_0x51a337[_0x4909bc(0x184)][_0x4909bc(0x18c)](_0x182586=>_0x51a337[_0x4909bc(0x125)][_0x182586]):_0x35637d;return(0x0,_0x4e69b9[_0x4909bc(0x14c)])({..._0x569e0b,'table':_0x51a337,'fieldIds':_0x30fd7a,'rows':_0x3c8935});}[_0x329a10(0x123)](){const _0x529a55=_0x329a10;return this[_0x529a55(0x21e)]()[_0x529a55(0x19c)];}[_0x329a10(0x141)](){const _0x2430a0=_0x329a10;let _0x230928=this[_0x2430a0(0x21e)]();return _0x230928[_0x2430a0(0x184)][_0x2430a0(0x1c0)](_0x34cebd=>_0x230928[_0x2430a0(0x125)][_0x34cebd])[_0x2430a0(0x18c)](_0xb0133=>_0xb0133)[_0x2430a0(0x1c0)](_0x5521d4=>this[_0x2430a0(0x1c8)][_0x2430a0(0x131)](_0x2dd39f,this['_base'],this,_0x5521d4['id'],this[_0x2430a0(0x1c8)]));}[_0x329a10(0x10c)](_0x4a6ca4){const _0x95cb03=_0x329a10;let _0x3972a3=this[_0x95cb03(0x21e)]()[_0x95cb03(0x125)][_0x4a6ca4];return _0x3972a3?this[_0x95cb03(0x1c8)][_0x95cb03(0x131)](_0x2dd39f,this['_base'],this,_0x3972a3['id'],this[_0x95cb03(0x1c8)]):null;}[_0x329a10(0x1b1)](_0x2a710a){const _0x55bc30=_0x329a10;let _0xf027e5=this[_0x55bc30(0x21e)]()[_0x55bc30(0x125)],_0x3e35ba=Object[_0x55bc30(0x212)](_0xf027e5)[_0x55bc30(0x133)](_0x12bea3=>_0x12bea3['name']===_0x2a710a);return _0x3e35ba?this['_injector']['createInstance'](_0x2dd39f,this['_base'],this,_0x3e35ba['id'],this[_0x55bc30(0x1c8)]):null;}[_0x329a10(0x215)](){const _0x5be722=_0x329a10;let _0x39de0a=this[_0x5be722(0x21e)]()[_0x5be722(0x19c)];return this['_injector'][_0x5be722(0x131)](_0x2dd39f,this[_0x5be722(0x1b2)],this,_0x39de0a,this[_0x5be722(0x1c8)]);}[_0x329a10(0x142)](_0xdbf2cd,_0x14ff40,_0xc44851){const _0x5bd80c=_0x329a10;var _0x39b47c;let _0x1fa84e=this[_0x5bd80c(0x1c8)][_0x5bd80c(0x17d)](_0x5276e6[_0x5bd80c(0x1c6)]),_0x354175=(_0x39b47c=_0xc44851==null?void 0x0:_0xc44851['field'])==null?{}:_0x39b47c;if(_0x354175['id']=(0x0,_0x5276e6[_0x5bd80c(0x118)])(0x6),_0x354175['name']=_0xdbf2cd,_0x354175[_0x5bd80c(0x1c7)]=_0x14ff40,!_0x354175[_0x5bd80c(0x1c7)])throw Error('Field\x20type\x20is\x20required');if(_0x354175['config']||(_0x354175[_0x5bd80c(0x182)]={}),!_0x1fa84e[_0x5bd80c(0x1bf)](_0x4e69b9['CreateBaseFieldCommand']['id'],{'unitId':this[_0x5bd80c(0x1b2)][_0x5bd80c(0x1c2)](),'tableId':this[_0x5bd80c(0x1ed)],'field':_0x354175,'index':_0xc44851==null?void 0x0:_0xc44851[_0x5bd80c(0x199)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0xdbf2cd+'\x22');return this[_0x5bd80c(0x1c8)]['createInstance'](_0x2dd39f,this[_0x5bd80c(0x1b2)],this,_0x354175['id'],this[_0x5bd80c(0x1c8)]);}[_0x329a10(0x189)](){const _0x5a0bd8=_0x329a10;return this[_0x5a0bd8(0x1a1)]()['map'](_0x1c8620=>this[_0x5a0bd8(0x1c8)]['createInstance'](_0x2dda79,this[_0x5a0bd8(0x1b2)],this,_0x1c8620,this[_0x5a0bd8(0x1c8)]));}['getRecordById'](_0x5a0fd8){const _0x340aeb=_0x329a10;return this['_getTable']()['records'][_0x5a0fd8]?this[_0x340aeb(0x1c8)][_0x340aeb(0x131)](_0x2dda79,this[_0x340aeb(0x1b2)],this,_0x5a0fd8,this[_0x340aeb(0x1c8)]):null;}[_0x329a10(0x190)](_0x5ef234={}){const _0x590f98=_0x329a10;var _0x235ff9;let _0x4a3dfb=this[_0x590f98(0x21e)](),_0x44fbc9=this[_0x590f98(0x1a1)](_0x5ef234),_0x49263c=Math['max'](0x0,(_0x235ff9=_0x5ef234[_0x590f98(0x1f8)])==null?0x0:_0x235ff9),_0x57d712=_0x5ef234['limit']==null?null:Math['max'](0x0,_0x5ef234['limit']),_0x1d0f76=_0x1dc313(_0x44fbc9[_0x590f98(0x1c0)](_0x589ec8=>_0x4a3dfb[_0x590f98(0x1f5)][_0x589ec8])[_0x590f98(0x18c)](_0x176eb9=>_0x6a21ce(_0x176eb9,_0x4a3dfb,_0x5ef234[_0x590f98(0x18c)])),_0x4a3dfb,_0x5ef234[_0x590f98(0x1ee)]);return{'records':_0x22965d(_0x1d0f76,_0x5ef234)[_0x590f98(0x1c0)](_0x5c8df5=>this[_0x590f98(0x1c8)][_0x590f98(0x131)](_0x2dda79,this['_base'],this,_0x5c8df5['id'],this[_0x590f98(0x1c8)])),'total':_0x1d0f76['length'],'offset':_0x49263c,'limit':_0x57d712,'hasMore':_0x57d712!=null&&_0x49263c+_0x57d712<_0x1d0f76[_0x590f98(0x228)]};}['addRecord'](_0x14624c,_0x5e32ce='id',_0x2b33a4){const _0x28078a=_0x329a10;let _0x2c3ff8=this['_injector']['get'](_0x5276e6[_0x28078a(0x1c6)]),_0x3ba4fb=this[_0x28078a(0x21e)](),_0xf36d3e=_0x2b33a4==null?{}:_0x2b33a4;_0xf36d3e['id']=(0x0,_0x5276e6['generateRandomId'])(0x6),_0xf36d3e[_0x28078a(0x212)]=_0x41f6fd(_0x3ba4fb,_0x14624c,_0x5e32ce);let _0x3f743a=Date[_0x28078a(0x195)]();if(_0xf36d3e[_0x28078a(0x166)]||(_0xf36d3e['orderKey']=''+_0x3f743a),_0xf36d3e[_0x28078a(0x15d)]||(_0xf36d3e[_0x28078a(0x15d)]=_0x3f743a),_0xf36d3e['updatedAt']||(_0xf36d3e['updatedAt']=_0x3f743a),!_0x2c3ff8[_0x28078a(0x1bf)](_0x4e69b9['CreateBaseRecordCommand']['id'],{'unitId':this[_0x28078a(0x1b2)][_0x28078a(0x1c2)](),'tableId':this[_0x28078a(0x1ed)],'record':_0xf36d3e}))throw Error(_0x28078a(0x1e4)+_0xf36d3e['id']+'\x22');return this['_injector'][_0x28078a(0x131)](_0x2dda79,this[_0x28078a(0x1b2)],this,_0xf36d3e['id'],this[_0x28078a(0x1c8)]);}[_0x329a10(0x1b5)](_0x388837){const _0x188d73=_0x329a10;if(!_0x388837[_0x188d73(0x228)])return[];let _0x1c20f0=this[_0x188d73(0x1c8)][_0x188d73(0x17d)](_0x5276e6[_0x188d73(0x1c6)]),_0x566457=this[_0x188d73(0x21e)](),_0x226e2f=Date['now'](),_0x3ac8d9=_0x388837[_0x188d73(0x1c0)]((_0x2f10f9,_0x4f16a0)=>{const _0x479ae0=_0x188d73;var _0x4bef5a,_0x62c230;let _0x10c066=(_0x4bef5a=_0x2f10f9[_0x479ae0(0x113)])==null?{}:_0x4bef5a;return _0x10c066['id']=(0x0,_0x5276e6[_0x479ae0(0x118)])(0x6),_0x10c066['values']=_0x41f6fd(_0x566457,_0x2f10f9[_0x479ae0(0x212)],(_0x62c230=_0x2f10f9[_0x479ae0(0x20d)])==null?'id':_0x62c230),_0x10c066[_0x479ae0(0x166)]||(_0x10c066['orderKey']=''+(_0x226e2f+_0x4f16a0)),_0x10c066[_0x479ae0(0x15d)]||(_0x10c066[_0x479ae0(0x15d)]=_0x226e2f),_0x10c066[_0x479ae0(0x217)]||(_0x10c066[_0x479ae0(0x217)]=_0x226e2f),_0x10c066;});if(!_0x1c20f0[_0x188d73(0x1bf)](_0x4e69b9[_0x188d73(0x170)]['id'],{'unitId':this[_0x188d73(0x1b2)][_0x188d73(0x1c2)](),'tableId':this[_0x188d73(0x1ed)],'records':_0x3ac8d9}))throw Error(_0x188d73(0x152));return _0x3ac8d9[_0x188d73(0x1c0)](_0x49fe1d=>this[_0x188d73(0x1c8)][_0x188d73(0x131)](_0x2dda79,this[_0x188d73(0x1b2)],this,_0x49fe1d['id'],this[_0x188d73(0x1c8)]));}[_0x329a10(0x1f6)](_0x22343c){const _0x331b40=_0x329a10;return _0x22343c[_0x331b40(0x228)]?this[_0x331b40(0x1c8)]['get'](_0x5276e6['ICommandService'])[_0x331b40(0x1bf)](_0x4e69b9[_0x331b40(0x17e)]['id'],{'unitId':this[_0x331b40(0x1b2)]['getId'](),'tableId':this[_0x331b40(0x1ed)],'recordIds':_0x22343c}):!0x0;}['getRange'](_0x337ade,_0x3e3549,_0x3ac573=0x1,_0x5a37d4=0x1){const _0x199c72=_0x329a10;return this['_injector'][_0x199c72(0x131)](_0x16c641,this[_0x199c72(0x1b2)],this,{'startRow':_0x337ade,'endRow':_0x337ade+_0x3ac573-0x1,'startColumn':_0x3e3549,'endColumn':_0x3e3549+_0x5a37d4-0x1},this['_injector']);}[_0x329a10(0x1fd)](){const _0x3fb658=_0x329a10;var _0x2272c3,_0x2c57ec;let _0x3ecc2b=(0x0,_0x4e69b9[_0x3fb658(0x1b3)])(this[_0x3fb658(0x21e)]()),_0x1fe958=(_0x2272c3=(_0x2c57ec=_0x3ecc2b[_0x3fb658(0x19f)])==null?void 0x0:_0x2c57ec['length'])==null?0x0:_0x2272c3,_0x509652=_0x3ecc2b[_0x3fb658(0x184)][_0x3fb658(0x228)];return this[_0x3fb658(0x143)](0x0,0x0,Math[_0x3fb658(0x1cf)](_0x1fe958,0x1),Math[_0x3fb658(0x1cf)](_0x509652,0x1));}[_0x329a10(0x207)](){const _0x5bbd74=_0x329a10;let _0x179a62=this[_0x5bbd74(0x21e)]();return _0x179a62[_0x5bbd74(0x163)][_0x5bbd74(0x18c)](_0x54aaaa=>_0x179a62['views'][_0x54aaaa])[_0x5bbd74(0x1c0)](_0x3d72d5=>this[_0x5bbd74(0x1c8)][_0x5bbd74(0x131)](_0x1c6236,this[_0x5bbd74(0x1b2)],this,_0x3d72d5,this['_injector']));}[_0x329a10(0x18e)](_0x5bd0a6){const _0x3761a3=_0x329a10;return this[_0x3761a3(0x21e)]()[_0x3761a3(0x21a)][_0x5bd0a6]?this[_0x3761a3(0x1c8)][_0x3761a3(0x131)](_0x1c6236,this['_base'],this,_0x5bd0a6,this[_0x3761a3(0x1c8)]):null;}[_0x329a10(0x17c)](_0x1bbc8a){const _0x324a77=_0x329a10;let _0x49cd05=this[_0x324a77(0x21e)](),_0x1b5d71=Object[_0x324a77(0x212)](_0x49cd05[_0x324a77(0x21a)])['find'](_0x569cfb=>_0x569cfb['name']===_0x1bbc8a);return _0x1b5d71?this['_injector'][_0x324a77(0x131)](_0x1c6236,this['_base'],this,_0x1b5d71['id'],this['_injector']):null;}['createView'](_0x8e2bc1,_0xc0941,_0xb9044d){const _0x561d00=_0x329a10;var _0x38f731;let _0x4bb262=this[_0x561d00(0x1c8)][_0x561d00(0x17d)](_0x5276e6['ICommandService']),_0x1d2800=this[_0x561d00(0x21e)](),_0x36a8c4=(_0x38f731=_0xb9044d==null?void 0x0:_0xb9044d[_0x561d00(0x1ba)])==null?{}:_0x38f731;if(_0x36a8c4['id']=(0x0,_0x5276e6[_0x561d00(0x118)])(0x6),_0x36a8c4[_0x561d00(0x171)]=_0x8e2bc1,_0x36a8c4['type']=_0xc0941,_0x36a8c4[_0x561d00(0x185)]=this[_0x561d00(0x1ed)],!_0x36a8c4[_0x561d00(0x1c7)])throw Error(_0x561d00(0x161));if(_0x36a8c4[_0x561d00(0x182)]||(_0x36a8c4[_0x561d00(0x182)]={}),_0x36a8c4['fieldOrder']||(_0x36a8c4[_0x561d00(0x184)]=[..._0x1d2800[_0x561d00(0x184)]]),!_0x4bb262[_0x561d00(0x1bf)](_0x4e69b9[_0x561d00(0x15e)]['id'],{'unitId':this[_0x561d00(0x1b2)][_0x561d00(0x1c2)](),'tableId':this[_0x561d00(0x1ed)],'view':_0x36a8c4,'index':_0xb9044d==null?void 0x0:_0xb9044d[_0x561d00(0x199)]}))throw Error(_0x561d00(0x183)+_0x8e2bc1+'\x22');return this[_0x561d00(0x1c8)][_0x561d00(0x131)](_0x1c6236,this[_0x561d00(0x1b2)],this,_0x36a8c4['id'],this[_0x561d00(0x1c8)]);}['getSchema'](){const _0x3c3cd0=_0x329a10;let _0x54a45e=this[_0x3c3cd0(0x21e)](),_0xcd2b95=_0x54a45e[_0x3c3cd0(0x184)]['filter'](_0x3bf3f2=>_0x54a45e['fields'][_0x3bf3f2]),_0x2deef6=_0x54a45e[_0x3c3cd0(0x163)][_0x3c3cd0(0x18c)](_0x414727=>_0x54a45e[_0x3c3cd0(0x21a)][_0x414727]);return{'id':_0x54a45e['id'],'name':_0x54a45e['name'],'primaryFieldId':_0x54a45e['primaryFieldId'],'fieldIds':_0xcd2b95,'viewIds':_0x2deef6,'recordCount':this[_0x3c3cd0(0x1a1)]()[_0x3c3cd0(0x228)],'fields':_0xcd2b95[_0x3c3cd0(0x1c0)](_0x5c0403=>{const _0x2bda88=_0x3c3cd0;let _0x2f6730=_0x54a45e[_0x2bda88(0x125)][_0x5c0403];return{'id':_0x2f6730['id'],'name':_0x2f6730[_0x2bda88(0x171)],'type':_0x2f6730[_0x2bda88(0x1c7)],'config':_0x2f6730[_0x2bda88(0x182)],'readonly':_0x2f6730[_0x2bda88(0x1cb)],'description':_0x2f6730[_0x2bda88(0x211)]};}),'views':_0x2deef6[_0x3c3cd0(0x1c0)](_0x63b620=>{const _0x32182a=_0x3c3cd0;let _0x6bf9e8=_0x54a45e[_0x32182a(0x21a)][_0x63b620];return{'id':_0x6bf9e8['id'],'name':_0x6bf9e8['name'],'type':_0x6bf9e8[_0x32182a(0x1c7)]};})};}[_0x329a10(0x21e)](){const _0x5d78a1=_0x329a10;let _0x41a8e8=this[_0x5d78a1(0x1b2)][_0x5d78a1(0x1a2)]()[_0x5d78a1(0x1fb)]()['tables'][this[_0x5d78a1(0x1ed)]];if(!_0x41a8e8)throw Error(_0x5d78a1(0x21d)+this[_0x5d78a1(0x1ed)]+_0x5d78a1(0x144));return _0x41a8e8;}[_0x329a10(0x1a1)](_0x104921={}){const _0x29c6de=_0x329a10;let _0x469bc9=this[_0x29c6de(0x1c8)]['get'](_0x4e69b9['IBaseProjectionService']),_0x399f04=this[_0x29c6de(0x1b2)][_0x29c6de(0x1a2)]()[_0x29c6de(0x1fb)](),_0x1975df=this[_0x29c6de(0x21e)]();if(_0x104921[_0x29c6de(0x197)]){let _0x2b498a=_0x469bc9[_0x29c6de(0x1c3)](_0x399f04,this[_0x29c6de(0x1ed)],_0x104921[_0x29c6de(0x197)]);if('rows'in _0x2b498a&&Array['isArray'](_0x2b498a[_0x29c6de(0x126)]))return _0x2b498a[_0x29c6de(0x126)][_0x29c6de(0x1c0)](_0x54ffc6=>_0x54ffc6[_0x29c6de(0x129)]);}return(_0x1975df['recordOrder']?_0x1975df[_0x29c6de(0x19f)]['map'](_0x2dbd7d=>_0x1975df[_0x29c6de(0x1f5)][_0x2dbd7d]):Object['values'](_0x1975df[_0x29c6de(0x1f5)])['sort']((_0xdca04,_0x5d4835)=>_0xdca04[_0x29c6de(0x166)][_0x29c6de(0x19e)](_0x5d4835['orderKey'])))['filter'](_0x4b90c3=>_0x4b90c3)[_0x29c6de(0x1c0)](_0x947aed=>_0x947aed['id']);}};function _0x22965d(_0x387cc9,_0x806620){const _0x2a92ca=_0x329a10;var _0xf4f1b6;let _0x25a7cd=Math[_0x2a92ca(0x1cf)](0x0,(_0xf4f1b6=_0x806620[_0x2a92ca(0x1f8)])==null?0x0:_0xf4f1b6);return _0x806620[_0x2a92ca(0x224)]==null?_0x387cc9[_0x2a92ca(0x168)](_0x25a7cd):_0x387cc9['slice'](_0x25a7cd,_0x25a7cd+Math[_0x2a92ca(0x1cf)](0x0,_0x806620[_0x2a92ca(0x224)]));}function _0x1dc313(_0x5654d9,_0x173984,_0x4766f4=[]){const _0x2fc563=_0x329a10;return _0x4766f4[_0x2fc563(0x228)]?[..._0x5654d9][_0x2fc563(0x1ee)]((_0x33d767,_0x2a1467)=>{const _0xb7b6b1=_0x2fc563;var _0xea0cf9,_0x45a2c9;for(let _0x5cfd53 of _0x4766f4){var _0x29b493;let _0xc586b7=_0x5cfd53[_0xb7b6b1(0x1b6)]===_0x5276e6['BaseSortDirection']['DESC']?-0x1:0x1,_0x1be22f=_0x571e75(_0x33d767['values'][_0x5cfd53['fieldId']],_0x2a1467[_0xb7b6b1(0x212)][_0x5cfd53['fieldId']],(_0x29b493=_0x173984[_0xb7b6b1(0x125)][_0x5cfd53[_0xb7b6b1(0x114)]])==null?void 0x0:_0x29b493[_0xb7b6b1(0x1c7)]);if(_0x1be22f!==0x0)return _0x1be22f*_0xc586b7;}return String((_0xea0cf9=_0x33d767['orderKey'])==null?_0x33d767['id']:_0xea0cf9)[_0xb7b6b1(0x19e)](String((_0x45a2c9=_0x2a1467[_0xb7b6b1(0x166)])==null?_0x2a1467['id']:_0x45a2c9));}):_0x5654d9;}function _0x571e75(_0x3db9a5,_0x216882,_0x21ab37){const _0x1916ed=_0x329a10;return _0x3db9a5==null&&_0x216882==null?0x0:_0x3db9a5==null?-0x1:_0x216882==null?0x1:typeof _0x3db9a5==_0x1916ed(0x147)&&typeof _0x216882==_0x1916ed(0x147)?_0x3db9a5-_0x216882:_0x21ab37===_0x5276e6[_0x1916ed(0x135)][_0x1916ed(0x1ad)]?Number(_0x3db9a5)-Number(_0x216882):String(_0x3db9a5)[_0x1916ed(0x19e)](String(_0x216882));}function _0x6a21ce(_0x541810,_0x2e0451,_0x15f317){const _0x495315=_0x329a10;var _0x989444;if(!_0x15f317||!((_0x989444=_0x15f317[_0x495315(0x22c)])!=null&&_0x989444['length']))return!0x0;let {conjunction:_0x1d7110=_0x5276e6['BaseFilterConjunction']['OR'],conditions:_0x3c5982}=_0x15f317;return _0x1d7110===_0x5276e6[_0x495315(0x120)][_0x495315(0x1e3)]&&_0x3c5982[_0x495315(0x228)]>0x1?_0x3c5982['every'](_0x2dd3e6=>_0x5c2c12(_0x541810,_0x2e0451,_0x2dd3e6)):_0x3c5982[_0x495315(0x220)](_0x47c90c=>_0x5c2c12(_0x541810,_0x2e0451,_0x47c90c));}function _0x5c2c12(_0x454e01,_0x367d71,_0x1ca010){const _0x23c892=_0x329a10;let _0x363ce3=_0x454e01[_0x23c892(0x212)][_0x1ca010[_0x23c892(0x114)]],_0x1335ad=_0x367d71[_0x23c892(0x125)][_0x1ca010[_0x23c892(0x114)]];if(_0x3d6514(_0x1ca010)){let _0x64ae93=_0x1aacd7(_0x1ca010)[_0x23c892(0x165)](String(_0x363ce3==null?'':_0x363ce3));return _0x1ca010[_0x23c892(0x13d)]===_0x23c892(0x221)?_0x64ae93:!_0x64ae93;}return _0x1335ad?(0x0,_0x4e69b9[_0x23c892(0x1cd)])(_0x363ce3,_0x1ca010[_0x23c892(0x13d)],_0x1ca010['value'],_0x1335ad):!0x0;}function _0x3d6514(_0xb4cd6b){const _0x975245=_0x329a10;return _0xb4cd6b[_0x975245(0x13d)]===_0x975245(0x221)||_0xb4cd6b[_0x975245(0x13d)]===_0x975245(0x12d);}function _0x1aacd7(_0x21f488){const _0x35c37e=_0x329a10;var _0x53e9ec;let _0x42055c=String((_0x53e9ec=_0x21f488[_0x35c37e(0x1e6)])==null?'':_0x53e9ec);if(_0x42055c[_0x35c37e(0x228)]>0x200)throw Error(_0x35c37e(0x10d));try{return new RegExp(_0x42055c,_0x21f488[_0x35c37e(0x110)]?void 0x0:'i');}catch(_0x4639b5){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x42055c+'.\x20'+(_0x4639b5 instanceof Error?_0x4639b5['message']:String(_0x4639b5)));}}function _0x58f815(_0x344ec0,_0x212f1b,_0x3ca451){const _0x3e6c9e=_0x329a10;if(_0x3ca451[_0x3e6c9e(0x1c7)]!==_0x3e6c9e(0x149)){var _0x4e5374;if(_0x3ca451['type']===_0x5276e6[_0x3e6c9e(0x1dc)][_0x3e6c9e(0x196)]){var _0x48a3a3,_0x44e305,_0xa72322;let _0x21fd5d=[(_0x48a3a3=(_0x44e305=_0x3ca451[_0x3e6c9e(0x125)])==null||(_0x44e305=_0x44e305[0x0])==null?void 0x0:_0x44e305['id'])==null?_0x344ec0['primaryFieldId']:_0x48a3a3,...(_0xa72322=_0x3ca451[_0x3e6c9e(0x167)])==null?[]:_0xa72322];return Array[_0x3e6c9e(0x11c)](new Set(_0x21fd5d[_0x3e6c9e(0x18c)](_0x2807e7=>!!_0x344ec0[_0x3e6c9e(0x125)][_0x2807e7])));}if((_0x4e5374=_0x3ca451['fields'])!=null&&_0x4e5374['length'])return _0x3ca451[_0x3e6c9e(0x125)][_0x3e6c9e(0x1c0)](_0x175e0d=>_0x175e0d['id'])[_0x3e6c9e(0x18c)](_0x4cc299=>{const _0x202833=_0x3e6c9e;var _0x47f99a;return!!(_0x344ec0[_0x202833(0x125)][_0x4cc299]&&!(!(_0x212f1b==null||(_0x47f99a=_0x212f1b[_0x202833(0x176)])==null||(_0x47f99a=_0x47f99a[_0x4cc299])==null)&&_0x47f99a[_0x202833(0x1b0)]));});}return _0x344ec0[_0x3e6c9e(0x184)]['filter'](_0x53963a=>{const _0xdc196b=_0x3e6c9e;var _0x424a6f;return!!(_0x344ec0['fields'][_0x53963a]&&!(!(_0x212f1b==null||(_0x424a6f=_0x212f1b[_0xdc196b(0x176)])==null||(_0x424a6f=_0x424a6f[_0x53963a])==null)&&_0x424a6f['hidden']));});}function _0x56a01c(_0x5a8087,_0x19fed5){return function(_0x467427,_0x55c884){_0x19fed5(_0x467427,_0x55c884,_0x5a8087);};}function _0x4b73b5(_0x32ea3e,_0x12b471,_0x13b653,_0x5dfdbd){const _0x1033f0=_0x329a10;var _0x2af463=arguments['length'],_0x5c172c=_0x2af463<0x3?_0x12b471:_0x5dfdbd===null?_0x5dfdbd=Object[_0x1033f0(0x201)](_0x12b471,_0x13b653):_0x5dfdbd,_0x5af5af;if(typeof Reflect==_0x1033f0(0x223)&&typeof Reflect[_0x1033f0(0x1dd)]==_0x1033f0(0x138))_0x5c172c=Reflect[_0x1033f0(0x1dd)](_0x32ea3e,_0x12b471,_0x13b653,_0x5dfdbd);else{for(var _0x67c643=_0x32ea3e[_0x1033f0(0x228)]-0x1;_0x67c643>=0x0;_0x67c643--)(_0x5af5af=_0x32ea3e[_0x67c643])&&(_0x5c172c=(_0x2af463<0x3?_0x5af5af(_0x5c172c):_0x2af463>0x3?_0x5af5af(_0x12b471,_0x13b653,_0x5c172c):_0x5af5af(_0x12b471,_0x13b653))||_0x5c172c);}return _0x2af463>0x3&&_0x5c172c&&Object[_0x1033f0(0x15b)](_0x12b471,_0x13b653,_0x5c172c),_0x5c172c;}let _0x21359b=class{constructor(_0x4f27a4,_0x1b8b7e){const _0x4c7683=_0x329a10;this[_0x4c7683(0x1b2)]=_0x4f27a4,this['_injector']=_0x1b8b7e;}[_0x329a10(0x1a2)](){const _0x345692=_0x329a10;return this[_0x345692(0x1b2)];}[_0x329a10(0x1c2)](){const _0xa0d8a7=_0x329a10;return this[_0xa0d8a7(0x1b2)][_0xa0d8a7(0x17a)]();}[_0x329a10(0x1d3)](){const _0x897098=_0x329a10;return _0x5276e6[_0x897098(0x134)]['deepClone'](this[_0x897098(0x1b2)][_0x897098(0x1fb)]());}[_0x329a10(0x140)](){const _0x16bef1=_0x329a10;return this[_0x16bef1(0x1b2)][_0x16bef1(0x1fb)]()[_0x16bef1(0x171)];}[_0x329a10(0x14a)](_0x87e1ff){const _0x1263a4=_0x329a10;this[_0x1263a4(0x1c8)][_0x1263a4(0x17d)](_0x5276e6['ICommandService'])[_0x1263a4(0x1bf)](_0x4e69b9['SetBaseNameCommand']['id'],{'unitId':this['getId'](),'name':_0x87e1ff});}['getTables'](){const _0x574933=_0x329a10;let _0x33526a=this['_base'][_0x574933(0x1fb)]();return _0x33526a[_0x574933(0x229)][_0x574933(0x1c0)](_0x35224b=>_0x33526a[_0x574933(0x159)][_0x35224b])['filter'](_0x1e21fe=>_0x1e21fe)['map'](_0x304dff=>this[_0x574933(0x1c8)][_0x574933(0x131)](_0x29a648,this,_0x304dff['id'],this['_injector']));}['getTableById'](_0x335728){const _0x44c8a8=_0x329a10;let _0x27af11=this[_0x44c8a8(0x1b2)][_0x44c8a8(0x1fb)]()[_0x44c8a8(0x159)][_0x335728];return _0x27af11?this[_0x44c8a8(0x1c8)][_0x44c8a8(0x131)](_0x29a648,this,_0x27af11['id'],this[_0x44c8a8(0x1c8)]):null;}[_0x329a10(0x1ae)](_0x20c2af){const _0x54d68d=_0x329a10;let _0x2a6cc7=this[_0x54d68d(0x1b2)][_0x54d68d(0x1fb)](),_0xe4e87d=Object[_0x54d68d(0x212)](_0x2a6cc7[_0x54d68d(0x159)])['find'](_0x36ecaa=>_0x36ecaa[_0x54d68d(0x171)]===_0x20c2af);return _0xe4e87d?this[_0x54d68d(0x1c8)]['createInstance'](_0x29a648,this,_0xe4e87d['id'],this['_injector']):null;}['insertTable'](_0x4e7896,_0x48844e){const _0x170646=_0x329a10;var _0x4959ae;let _0x1a53c9=this[_0x170646(0x1c8)]['get'](_0x5276e6[_0x170646(0x1c6)]),_0x4167f7=(0x0,_0x5276e6[_0x170646(0x10b)])({'id':(0x0,_0x5276e6[_0x170646(0x118)])(),'name':_0x4e7896,..._0x48844e==null?void 0x0:_0x48844e['table'],'primaryFieldName':_0x48844e==null?void 0x0:_0x48844e['primaryFieldName']}),_0x39e9bd=_0x5276e6[_0x170646(0x134)][_0x170646(0x12a)](_0x4167f7,(_0x4959ae=_0x48844e==null?void 0x0:_0x48844e[_0x170646(0x15f)])==null?{}:_0x4959ae);if(!_0x1a53c9[_0x170646(0x1bf)](_0x4e69b9[_0x170646(0x145)]['id'],{'unitId':this[_0x170646(0x1b2)][_0x170646(0x17a)](),'table':_0x39e9bd,'index':_0x48844e==null?void 0x0:_0x48844e[_0x170646(0x199)]}))throw Error(_0x170646(0x177)+_0x4e7896+'\x22.');return this[_0x170646(0x1c8)]['createInstance'](_0x29a648,this,_0x39e9bd['id'],this[_0x170646(0x1c8)]);}[_0x329a10(0x188)](_0x4102fd){const _0x416fac=_0x329a10;let _0x54ac83=this[_0x416fac(0x1c8)]['get'](_0x5276e6['ICommandService']),_0x3390d1=typeof _0x4102fd==_0x416fac(0x16b)?_0x4102fd:_0x4102fd[_0x416fac(0x1c2)]();if(!_0x54ac83[_0x416fac(0x1bf)](_0x4e69b9[_0x416fac(0x20a)]['id'],{'unitId':this[_0x416fac(0x1b2)][_0x416fac(0x17a)](),'tableId':_0x3390d1}))throw Error(_0x416fac(0x204)+_0x3390d1+'\x22.');return!0x0;}[_0x329a10(0x1da)](_0x2302fe,_0x225200){const _0x2dab9e=_0x329a10;var _0x210a0f,_0x3df2e1;let _0x89439c=this['_injector'][_0x2dab9e(0x17d)](_0x5276e6[_0x2dab9e(0x1c6)]),_0x12874c=this[_0x2dab9e(0x1b2)][_0x2dab9e(0x1fb)](),_0x25d182=typeof _0x2302fe==_0x2dab9e(0x16b)?_0x2302fe:_0x2302fe[_0x2dab9e(0x1c2)](),_0x7b7cfb=_0x12874c[_0x2dab9e(0x159)][_0x25d182];if(!_0x7b7cfb)throw Error(_0x2dab9e(0x155)+_0x25d182+'\x22\x20does\x20not\x20exist.');let _0x596836=_0x12874c['tableOrder'][_0x2dab9e(0x116)](_0x25d182)+0x1,_0x5910e7=(0x0,_0x4e69b9[_0x2dab9e(0x127)])(_0x7b7cfb,{'id':(0x0,_0x5276e6[_0x2dab9e(0x118)])(),'name':_0x7b7cfb[_0x2dab9e(0x171)]+_0x2dab9e(0x150),'includeRecords':(_0x210a0f=_0x225200==null?void 0x0:_0x225200[_0x2dab9e(0x162)])==null?!0x1:_0x210a0f,'regenerateViewIds':(_0x3df2e1=_0x225200==null?void 0x0:_0x225200[_0x2dab9e(0x1bc)])==null?!0x1:_0x3df2e1});if(!_0x89439c[_0x2dab9e(0x1bf)](_0x4e69b9[_0x2dab9e(0x145)]['id'],{'unitId':this[_0x2dab9e(0x1b2)]['getUnitId'](),'table':_0x5910e7,'index':_0x596836}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x25d182+'\x22.');return this[_0x2dab9e(0x1c8)][_0x2dab9e(0x131)](_0x29a648,this,_0x5910e7['id'],this['_injector']);}[_0x329a10(0x1cc)](){const _0x5760cb=_0x329a10;let _0x45b01f=this[_0x5760cb(0x1b2)][_0x5760cb(0x1fb)]();return{'id':_0x45b01f['id'],'name':_0x45b01f[_0x5760cb(0x171)],'tables':this[_0x5760cb(0x206)]()['map'](_0x10b79a=>_0x10b79a[_0x5760cb(0x1cc)]())};}};_0x21359b=_0x4b73b5([_0x56a01c(0x1,(0x0,_0x5276e6[_0x329a10(0x19b)])(_0x5276e6['Injector']))],_0x21359b);var _0x507199=class extends _0x155474[_0x329a10(0x1b9)]{[_0x329a10(0x10a)](){const _0x4ba9e4=_0x329a10;this[_0x4ba9e4(0x12f)](),this[_0x4ba9e4(0x179)]();}['createBase'](_0x55c0b1={},_0x466c71){const _0x42e14e=_0x329a10;let _0xb1b3bb=this[_0x42e14e(0x1c8)][_0x42e14e(0x17d)](_0x5276e6[_0x42e14e(0x198)])[_0x42e14e(0x18b)](_0x5276e6['UniverInstanceType']['UNIVER_BASE'],_0x55c0b1,_0x466c71);return this[_0x42e14e(0x1c8)][_0x42e14e(0x131)](_0x21359b,_0xb1b3bb);}[_0x329a10(0x202)](){const _0x6fbbda=_0x329a10;let _0x280cd5=this[_0x6fbbda(0x1c8)][_0x6fbbda(0x17d)](_0x5276e6[_0x6fbbda(0x198)])[_0x6fbbda(0x226)](_0x5276e6[_0x6fbbda(0x1d0)][_0x6fbbda(0x11d)]);return _0x280cd5?this[_0x6fbbda(0x1c8)][_0x6fbbda(0x131)](_0x21359b,_0x280cd5):null;}['getBase'](_0x1c7208){const _0x56b233=_0x329a10;let _0x1f3fe8=this[_0x56b233(0x1c8)]['get'](_0x5276e6[_0x56b233(0x198)])['getUnit'](_0x1c7208,_0x5276e6['UniverInstanceType']['UNIVER_BASE']);return _0x1f3fe8?this[_0x56b233(0x1c8)][_0x56b233(0x131)](_0x21359b,_0x1f3fe8):null;}[_0x329a10(0x1c5)](){const _0x5aa693=_0x329a10;return this[_0x5aa693(0x1c8)][_0x5aa693(0x17d)](_0x5276e6['IUniverInstanceService'])['getAllUnitsForType'](_0x5276e6['UniverInstanceType']['UNIVER_BASE'])[_0x5aa693(0x1c0)](_0x2a5f90=>this['_injector']['createInstance'](_0x21359b,_0x2a5f90));}[_0x329a10(0x179)](){const _0x19c6a0=_0x329a10;let _0x2273d4=this[_0x19c6a0(0x1c8)]['get'](_0x5276e6[_0x19c6a0(0x1c6)]);this['disposeWithMe'](this[_0x19c6a0(0x14d)](this[_0x19c6a0(0x1f7)]['BaseTableCreated'],()=>_0x2273d4[_0x19c6a0(0x22d)](_0x40f63a=>{const _0x417198=_0x19c6a0;if(_0x40f63a['id']!==_0x4e69b9[_0x417198(0x145)]['id'])return;let {unitId:_0x15ab24,table:_0x2735d0,index:_0x203763}=_0x40f63a[_0x417198(0x187)],_0x3def13=this[_0x417198(0x1a2)](_0x15ab24);if(!_0x3def13)return;let _0x31ea5b={'base':_0x3def13,'table':_0x2735d0,'index':_0x203763};this['fireEvent'](this[_0x417198(0x1f7)]['BaseTableCreated'],_0x31ea5b);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x19c6a0(0x1f7)]['BaseTableFieldCreated'],()=>_0x2273d4['onCommandExecuted'](_0x5901af=>{const _0x28a334=_0x19c6a0;if(_0x5901af['id']!==_0x4e69b9['CreateBaseFieldCommand']['id'])return;let {unitId:_0x40fdb4,tableId:_0x2c31d3,field:_0x27e4f5,index:_0x168a26,viewIndexes:_0x13d894}=_0x5901af['params'],_0x325e60=this[_0x28a334(0x1a2)](_0x40fdb4);if(!_0x325e60)return;let _0x5d9be3=_0x325e60['getTableById'](_0x2c31d3);if(!_0x5d9be3)return;let _0x4aab35={'base':_0x325e60,'table':_0x5d9be3,'field':_0x27e4f5,'index':_0x168a26,'viewIndexes':_0x13d894};this['fireEvent'](this['Event'][_0x28a334(0x1f3)],_0x4aab35);}))),this[_0x19c6a0(0x1d5)](this[_0x19c6a0(0x14d)](this[_0x19c6a0(0x1f7)][_0x19c6a0(0x13e)],()=>_0x2273d4[_0x19c6a0(0x22d)](_0x30f8c2=>{const _0x328a03=_0x19c6a0;var _0x27a8dd;if(_0x30f8c2['id']!==_0x4e69b9['CreateBaseRecordCommand']['id']&&_0x30f8c2['id']!==_0x4e69b9[_0x328a03(0x170)]['id'])return;let _0x53d14d=_0x30f8c2[_0x328a03(0x187)],{unitId:_0x5c46f1,tableId:_0x5e538c}=_0x53d14d,_0x3048eb=(_0x27a8dd=_0x53d14d['records'])==null?[_0x53d14d[_0x328a03(0x113)]]:_0x27a8dd,_0x2a73fb=this['getBase'](_0x5c46f1);if(!_0x2a73fb)return;let _0x16100f=_0x2a73fb[_0x328a03(0x13b)](_0x5e538c);if(!_0x16100f)return;let _0x366157={'base':_0x2a73fb,'table':_0x16100f,'records':_0x3048eb};this[_0x328a03(0x11a)](this[_0x328a03(0x1f7)][_0x328a03(0x13e)],_0x366157);}))),this[_0x19c6a0(0x1d5)](this[_0x19c6a0(0x14d)](this[_0x19c6a0(0x1f7)][_0x19c6a0(0x1e8)],()=>_0x2273d4[_0x19c6a0(0x22d)](_0x4a86e7=>{const _0x118b8d=_0x19c6a0;if(_0x4a86e7['id']!==_0x4e69b9[_0x118b8d(0x15e)]['id'])return;let {unitId:_0xd85201,tableId:_0x2a586a,view:_0x1be972,index:_0x3aaab9}=_0x4a86e7[_0x118b8d(0x187)],_0x44c9cb=this['getBase'](_0xd85201);if(!_0x44c9cb)return;let _0x3a95f4=_0x44c9cb[_0x118b8d(0x13b)](_0x2a586a);if(!_0x3a95f4)return;let _0x258201={'base':_0x44c9cb,'table':_0x3a95f4,'view':_0x1be972,'index':_0x3aaab9};this[_0x118b8d(0x11a)](this[_0x118b8d(0x1f7)][_0x118b8d(0x1e8)],_0x258201);}))),this[_0x19c6a0(0x1d5)](this['registerEventHandler'](this['Event'][_0x19c6a0(0x13f)],()=>_0x2273d4['onCommandExecuted'](_0x21e312=>{const _0x2395ac=_0x19c6a0;if(_0x21e312['id']!==_0x4e69b9['UpdateBaseCellCommand']['id'])return;let {unitId:_0x24fe94,tableId:_0x22ab82,recordId:_0x5b7e9a,fieldId:_0x439561,value:_0x7a8e52}=_0x21e312[_0x2395ac(0x187)],_0x2a949e=this[_0x2395ac(0x1a2)](_0x24fe94);if(!_0x2a949e)return;let _0x26a4b8=_0x2a949e['getTableById'](_0x22ab82);if(!_0x26a4b8)return;let _0xce73f2=_0x26a4b8[_0x2395ac(0x10c)](_0x439561);if(!_0xce73f2)return;let _0x30138a=_0x26a4b8['getRecordById'](_0x5b7e9a);if(!_0x30138a)return;let _0x46b19a={'base':_0x2a949e,'table':_0x26a4b8,'field':_0xce73f2,'record':_0x30138a,'value':_0x7a8e52};this[_0x2395ac(0x11a)](this['Event'][_0x2395ac(0x13f)],_0x46b19a);})));}[_0x329a10(0x12f)](){const _0x56b928=_0x329a10;let _0xa6124a=this[_0x56b928(0x1c8)][_0x56b928(0x17d)](_0x5276e6[_0x56b928(0x1c6)]);this[_0x56b928(0x1d5)](this[_0x56b928(0x14d)](this[_0x56b928(0x1f7)]['BeforeBaseTableCreate'],()=>_0xa6124a[_0x56b928(0x213)](_0x15e0cf=>{const _0x175766=_0x56b928;if(_0x15e0cf['id']!==_0x4e69b9[_0x175766(0x145)]['id'])return;let {unitId:_0x91d16a,table:_0x290c11,index:_0x12c013}=_0x15e0cf[_0x175766(0x187)],_0x16e612=this[_0x175766(0x1a2)](_0x91d16a);if(!_0x16e612)return;let _0x2bc5f6={'base':_0x16e612,'table':_0x290c11,'index':_0x12c013};if(this[_0x175766(0x11a)](this['Event'][_0x175766(0x193)],_0x2bc5f6),_0x2bc5f6[_0x175766(0x191)])throw new _0x5276e6[(_0x175766(0x1e5))]();}))),this[_0x56b928(0x1d5)](this[_0x56b928(0x14d)](this['Event'][_0x56b928(0x1e9)],()=>_0xa6124a[_0x56b928(0x213)](_0x33b449=>{const _0x18fca0=_0x56b928;if(_0x33b449['id']!==_0x4e69b9[_0x18fca0(0x16f)]['id'])return;let {unitId:_0x1272c8,tableId:_0x1d14c2,field:_0x442ec4,index:_0x54f2da,viewIndexes:_0x50f5ed}=_0x33b449['params'],_0x20b3d7=this['getBase'](_0x1272c8);if(!_0x20b3d7)return;let _0x51be64=_0x20b3d7[_0x18fca0(0x13b)](_0x1d14c2);if(!_0x51be64)return;let _0x7a1365={'base':_0x20b3d7,'table':_0x51be64,'field':_0x442ec4,'index':_0x54f2da,'viewIndexes':_0x50f5ed};if(this[_0x18fca0(0x11a)](this[_0x18fca0(0x1f7)]['BeforeBaseTableFieldCreate'],_0x7a1365),_0x7a1365['cancel'])throw new _0x5276e6['CanceledError']();}))),this[_0x56b928(0x1d5)](this[_0x56b928(0x14d)](this['Event'][_0x56b928(0x12c)],()=>_0xa6124a[_0x56b928(0x213)](_0x397cb1=>{const _0x40f2af=_0x56b928;var _0x351eb6;if(_0x397cb1['id']!==_0x4e69b9[_0x40f2af(0x128)]['id']&&_0x397cb1['id']!==_0x4e69b9['BatchCreateBaseRecordsCommand']['id'])return;let _0x51ae31=_0x397cb1['params'],{unitId:_0x1b2506,tableId:_0x5364ab}=_0x51ae31,_0x555b59=(_0x351eb6=_0x51ae31[_0x40f2af(0x1f5)])==null?[_0x51ae31[_0x40f2af(0x113)]]:_0x351eb6,_0x5429c1=this[_0x40f2af(0x1a2)](_0x1b2506);if(!_0x5429c1)return;let _0x6bf8c9=_0x5429c1['getTableById'](_0x5364ab);if(!_0x6bf8c9)return;let _0x18317a={'base':_0x5429c1,'table':_0x6bf8c9,'records':_0x555b59};if(this['fireEvent'](this[_0x40f2af(0x1f7)]['BeforeBaseTableRecordCreate'],_0x18317a),_0x18317a[_0x40f2af(0x191)])throw new _0x5276e6[(_0x40f2af(0x1e5))]();}))),this[_0x56b928(0x1d5)](this['registerEventHandler'](this['Event'][_0x56b928(0x18f)],()=>_0xa6124a[_0x56b928(0x213)](_0xef0536=>{const _0x23bc5e=_0x56b928;if(_0xef0536['id']!==_0x4e69b9[_0x23bc5e(0x15e)]['id'])return;let {unitId:_0x594630,tableId:_0x281f5b,view:_0x14234b,index:_0x370b63}=_0xef0536[_0x23bc5e(0x187)],_0x4f8e82=this[_0x23bc5e(0x1a2)](_0x594630);if(!_0x4f8e82)return;let _0x5706bd=_0x4f8e82[_0x23bc5e(0x13b)](_0x281f5b);if(!_0x5706bd)return;let _0x20fd25={'base':_0x4f8e82,'table':_0x5706bd,'view':_0x14234b,'index':_0x370b63};if(this[_0x23bc5e(0x11a)](this['Event']['BeforeBaseTableViewCreate'],_0x20fd25),_0x20fd25['cancel'])throw new _0x5276e6['CanceledError']();}))),this[_0x56b928(0x1d5)](this[_0x56b928(0x14d)](this[_0x56b928(0x1f7)][_0x56b928(0x1a3)],()=>_0xa6124a[_0x56b928(0x213)](_0xd42d3=>{const _0x17ba70=_0x56b928;if(_0xd42d3['id']!==_0x4e69b9['UpdateBaseCellCommand']['id'])return;let {unitId:_0xf56c3a,tableId:_0x522209,recordId:_0x955139,fieldId:_0x4d1718,value:_0x46881b}=_0xd42d3[_0x17ba70(0x187)],_0x34ea4b=this[_0x17ba70(0x1a2)](_0xf56c3a);if(!_0x34ea4b)return;let _0x67461d=_0x34ea4b[_0x17ba70(0x13b)](_0x522209);if(!_0x67461d)return;let _0x1dd035=_0x67461d[_0x17ba70(0x10c)](_0x4d1718);if(!_0x1dd035)return;let _0x1bbd8d=_0x67461d[_0x17ba70(0x10e)](_0x955139);if(!_0x1bbd8d)return;let _0x3498f9={'base':_0x34ea4b,'table':_0x67461d,'field':_0x1dd035,'record':_0x1bbd8d,'value':_0x46881b};if(this[_0x17ba70(0x11a)](this[_0x17ba70(0x1f7)][_0x17ba70(0x1a3)],_0x3498f9),_0x3498f9[_0x17ba70(0x191)])throw new _0x5276e6[(_0x17ba70(0x1e5))]();})));}};_0x155474[_0x329a10(0x1b9)][_0x329a10(0x18a)](_0x507199);var _0x398c12=class extends _0x155474[_0x329a10(0x151)]{get[_0x329a10(0x135)](){const _0x389b71=_0x329a10;return _0x5276e6[_0x389b71(0x135)];}get[_0x329a10(0x120)](){return _0x5276e6['BaseFilterConjunction'];}get[_0x329a10(0x12e)](){return _0x5276e6['BaseFilterOperator'];}get['BaseFieldKeyEnum'](){return _0x53f771;}get[_0x329a10(0x1dc)](){const _0x185ed3=_0x329a10;return _0x5276e6[_0x185ed3(0x1dc)];}get[_0x329a10(0x22e)](){return _0x5276e6['BaseSortDirection'];}};_0x155474[_0x329a10(0x151)][_0x329a10(0x18a)](_0x398c12);var _0xb3c6e=class extends _0x155474['FEventName']{get[_0x329a10(0x17b)](){const _0x881f9b=_0x329a10;return _0x881f9b(0x17b);}get[_0x329a10(0x193)](){const _0x2ddbce=_0x329a10;return _0x2ddbce(0x193);}get[_0x329a10(0x1f3)](){const _0x4e0e45=_0x329a10;return _0x4e0e45(0x1f3);}get[_0x329a10(0x1e9)](){const _0x400677=_0x329a10;return _0x400677(0x1e9);}get[_0x329a10(0x13e)](){const _0x1fbb90=_0x329a10;return _0x1fbb90(0x13e);}get[_0x329a10(0x12c)](){const _0x9729f2=_0x329a10;return _0x9729f2(0x12c);}get[_0x329a10(0x1e8)](){return'BaseTableViewCreated';}get['BeforeBaseTableViewCreate'](){const _0x161edd=_0x329a10;return _0x161edd(0x18f);}get[_0x329a10(0x13f)](){const _0x20e479=_0x329a10;return _0x20e479(0x13f);}get['BeforeBaseTableCellValueChange'](){const _0x4f2bed=_0x329a10;return _0x4f2bed(0x1a3);}};_0x155474[_0x329a10(0x1ef)][_0x329a10(0x18a)](_0xb3c6e),_0x523277[_0x329a10(0x173)]=_0x53f771,Object[_0x329a10(0x15b)](_0x523277,_0x329a10(0x194),{'enumerable':!0x0,'get':function(){return _0x21359b;}}),_0x523277['FBaseTable']=_0x29a648,_0x523277[_0x329a10(0x21c)]=_0x2dd39f,_0x523277[_0x329a10(0x214)]=_0x16c641,_0x523277['FBaseTableRecord']=_0x2dda79,_0x523277[_0x329a10(0x172)]=_0x1c6236,_0x523277[_0x329a10(0x156)]=_0xb3c6e,_0x523277['resolveBaseFieldKey']=_0xb6e9cd,_0x523277[_0x329a10(0x205)]=_0x41f6fd;}));
|
|
1
|
+
function _0x4e71(_0x2e3abd,_0x356ad8){_0x2e3abd=_0x2e3abd-0x1a9;const _0x2d6678=_0x2d66();let _0x4e71f9=_0x2d6678[_0x2e3abd];return _0x4e71f9;}function _0x2d66(){const _0x1e31b1=['addRecords','getFilter','unitId','deleteTable','BaseEventSource','from','fieldKey','10925808RZkCIX','beforeFieldId','prototype','defaultValue','_getHierarchyIndex','buildBaseHierarchyIndex','AND','getSnapshot','_resolveRecordIds','getLinkedRecordIds','mimeType','visibleCardFieldIds','Clear','auto','CreateBaseChildRecordCommand','hierarchyChanges','createUnit','ChangeBaseFieldTypeCommand','FBaseTable','261wRXDCY','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','every','valid','find','tableOrder','createInstance','record','setValue','[FTable]:\x20table\x20\x22','getTableByName','getParent','boolean','syncExecuteCommand',':\x20expected\x20an\x20object.','fromCollab','registerEventHandler','FBaseTableView','BaseConditionalColorRuleUpdateType','getUnitId','url','BaseHierarchyErrorCode','getNumColumns','_projectionService','Module','BaseSortDirection','values','entries','getRecordLinkFieldConfig','getPrimaryFieldId','_initBaseBeforeEvents','changeType','offset','getFields','getBaseHierarchyDeletePromotions','BaseTableFieldCreated','ApplyBaseJson1Mutation','getRange','Formula','SetBaseRecordValuesCommand','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getActiveBase','[FBase]:\x20table\x20\x22','FBase','disposeWithMe','getFieldSettings','push','281990qqRUbP','BaseConditionalDateMode','_table','BeforeBaseTableCellValueChange','duplicateTable','getOwnPropertyDescriptor','Facade','orderedRecordIds','direction','12ywUgRk','getBaseId','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','addConditionalColorRule','searchBaseTable','_getField','28446836mBUbqk','BeforeBaseTableRecordCreate','multiple','name','Base\x20field\x20not\x20found:\x20','view','deleteProperty','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','@univerjs/core/facade','BaseTableRecordCreated','source','_viewId','[FField]:\x20field\x20\x22','index','getValues','BaseFilterConjunction','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getAllUnitsForType','Unsupported\x20Base\x20field\x20type\x20\x22','records','\x22:\x20expected\x20an\x20array.',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','some','Add','base','getGroup','DeleteBaseViewCommand','12xeIvTL','has','addChild','height','recordIds','matches','now','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','recordId','setGroup','isReadonly','type','_getRecordLinkField','setParent','\x22\x20must\x20be\x20a\x20non-empty\x20string.','matchesBaseCondition','getField','RecordLink','CreateBaseFieldCommand','get','cancel','clearConditionalColorRules','BatchCreateBaseRecordsCommand','viewId','orderKey','onCommandExecuted','_getHierarchyEventContext','conditionalColoring','fields','2198022bpgsqx','getFieldById','serializeRecordLinkIds','ensureBaseTableCellLayout','_tableId','Kanban','table','hasOwnProperty','createdAt','invalid','commonExtend','UpsertHostExternalReferencesCommand','fieldSettings','updatedAt','setFilter','string','beforeCommandExecuted','CanceledError','sourceType','Name','IResourceLoaderService','_univerInstanceService','getChildren','limit','_resourceLoaderService','size',':\x20\x22','viewOrder','FEventName','max','fieldIds','getViews','[FRecord]:\x20invalid\x20RecordLink\x20value.','addField','BeforeBaseTableViewCreate','fireEvent','BeforeBaseHierarchyChange','Inject','DESC','UniverProBases','stringify','value','\x22\x20has\x20invalid\x20config.','regenerateViewIds','Attachment','Failed\x20to\x20duplicate\x20table\x20\x22','tableId','UpdateBaseViewConfigCommand','_recordId','resolveBaseFieldKey','copyBaseTableSnapshot','startColumn',',\x20range:\x20','SetBaseViewSortCommand','getActiveBaseHierarchyFieldIds','BaseFieldType','getBaseCellValue','_initialize','ICommandService','\x20Copy','UpdateBaseRecordOrderCommand','rows','exports','ImageSourceType','RecordId','warn','getDescription','getRow','getAncestors','Date','BASE64','rowId','width','UpdateBaseViewConditionalColorRulesCommand','tables',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','moveField','Gallery','Failed\x20to\x20create\x20view\x20\x22','thumbnail','_getView','trim','fieldId','primaryFieldId','getBase','BaseConditionalColorOperator','_getRecord','UNIVER_BASE','_inject','getCurrentUnitOfType','getVisibleFields','slice','BaseRecordLinkRole','map','Event','BASE_RECORD_ID_FIELD_ID','getSchema','fieldOrder','954UtuJsY','\x20for\x20field\x20\x22','config','BaseFieldKeyEnum','system','getSort','readonly','_range','resolveBaseRangeHierarchyPatches','FEnum','UniverCoreFacade','getPrimaryField','getRecordById','[FRecord]:\x20record\x20\x22','7058855WKmliL','getTableById','data:','setSort','UniverProEngineFormula','BaseHierarchyInvalidReason','setConfig','field','_collectDescendantIds','save','setAttachments','insertTable','FUniver','setFieldVisible','delete','FBaseTableRange','CreateBaseRecordCommand','_base','UpdateBaseFieldCommand','UUID','CreateBaseViewCommand','FBaseTableField','sort','Tools','hidden','setOrderKey','endRow','params','parentByRecordId','SetBaseViewFieldVisibleCommand','Remote','getBases','DeleteBaseTableCommand','subtreeHeightByRecordId','defineProperty','1xDGAqW','BaseHierarchyChanged','recordOrder','setHierarchyField','startsWith','resolveBaseFieldValues','getValue','getRecord','move','FBaseTableRecord','flatMap','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getType','CreateBaseTableCommand','caseSensitive','DeleteBaseFieldCommand','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','getHierarchyFieldId','createBase','getTable','removeLinkedRecord','deleteConditionalColorRule','isArray','filter','UpdateBaseCellCommand','\x20exceeds\x20range\x20size\x20','getFieldByName','toStringTag','generateRandomId','createView','SetBaseViewFieldOrderCommand','_initBaseAfterEvents','conditions','_getTable','getId','BaseViewType','getProjection','includes','Auto','_writeFormulaExternalReferences','childrenByParentId','_fieldId','Delete','SetBaseNameCommand','UniverCore','_getFieldIds','indexOf','UniverInstanceType','decorate','Calendar','\x22\x20does\x20not\x20exist.','validateBaseHierarchyRecordCreations','setLinkedRecordIds','[FView]:\x20view\x20\x22','URL','BaseTableCellValueChanged','Failed\x20to\x20delete\x20table\x20\x22','Duplicate\x20Base\x20field\x20name:\x20','includeRecords','duplicate','BaseTableCreated','getTables','8152EFFQhB','DuplicateBaseRecordCommand','queryRecords','update','object','BeforeBaseTableFieldCreate','length','getColumn','views','externalReferences','localeCompare','test','_injector','setFieldWidth','getUnit','updateConfig','startRow','_fireBeforeHierarchyChange','saveUnit','clear','getConfig','operator','extend','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','number','BatchDeleteBaseRecordsCommand','BaseTableViewCreated','function','parseRecordLinkIds','getName','setName','getDescendants','BaseConditionalColorTarget','BeforeBaseTableCreate','1249885oSxBwv','resolveBaseHierarchyFieldId','search','SetBaseRangeValuesCommand','rules','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','RenameBaseViewCommand','_commandService','getRecords','deepClone','[FBaseRange]:\x20values\x20size\x20','targetTableId','setValues','SetBaseViewFilterCommand','afterFieldId','getNumRows'];_0x2d66=function(){return _0x1e31b1;};return _0x2d66();}(function(_0x261dd8,_0x2d3ae8){const _0x547779=_0x4e71,_0xb5af2b=_0x261dd8();while(!![]){try{const _0x3d3a14=parseInt(_0x547779(0x235))/0x1*(parseInt(_0x547779(0x336))/0x2)+-parseInt(_0x547779(0x204))/0x3*(parseInt(_0x547779(0x273))/0x4)+-parseInt(_0x547779(0x212))/0x5+-parseInt(_0x547779(0x2f7))/0x6*(parseInt(_0x547779(0x295))/0x7)+-parseInt(_0x547779(0x2ac))/0x8+parseInt(_0x547779(0x2bf))/0x9*(parseInt(_0x547779(0x2ee))/0xa)+-parseInt(_0x547779(0x2fd))/0xb*(-parseInt(_0x547779(0x319))/0xc);if(_0x3d3a14===_0x2d3ae8)break;else _0xb5af2b['push'](_0xb5af2b['shift']());}catch(_0x46525c){_0xb5af2b['push'](_0xb5af2b['shift']());}}}(_0x2d66,0xafd27),function(_0xe380ac,_0x5635fa){const _0x5e0178=_0x4e71;typeof exports==_0x5e0178(0x277)&&typeof module<'u'?_0x5635fa(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs-pro/engine-formula')):typeof define==_0x5e0178(0x28e)&&define['amd']?define([_0x5e0178(0x1e0),'@univerjs-pro/bases','@univerjs/core',_0x5e0178(0x306),'@univerjs-pro/engine-formula'],_0x5635fa):(_0xe380ac=typeof globalThis<'u'?globalThis:_0xe380ac||self,_0x5635fa(_0xe380ac['UniverProBasesFacade']={},_0xe380ac[_0x5e0178(0x1c9)],_0xe380ac[_0x5e0178(0x261)],_0xe380ac[_0x5e0178(0x20e)],_0xe380ac[_0x5e0178(0x216)]));}(this,function(_0x39616e,_0x333e56,_0x40e1d2,_0x224d22,_0x1a9502){const _0x296bc0=_0x4e71;Object[_0x296bc0(0x234)](_0x39616e,Symbol[_0x296bc0(0x250)],{'value':_0x296bc0(0x2d7)});function _0x46a703(_0x25d16c,_0x1239be){return function(_0x2eecb9,_0x431a42){_0x1239be(_0x2eecb9,_0x431a42,_0x25d16c);};}function _0x243c93(_0x16c1b0,_0x119206,_0x35648d,_0x1aecb4){const _0x449c4c=_0x296bc0;var _0xe9ced5=arguments[_0x449c4c(0x279)],_0x568265=_0xe9ced5<0x3?_0x119206:_0x1aecb4===null?_0x1aecb4=Object[_0x449c4c(0x2f3)](_0x119206,_0x35648d):_0x1aecb4,_0x6738f8;if(typeof Reflect==_0x449c4c(0x277)&&typeof Reflect[_0x449c4c(0x265)]==_0x449c4c(0x28e))_0x568265=Reflect[_0x449c4c(0x265)](_0x16c1b0,_0x119206,_0x35648d,_0x1aecb4);else{for(var _0x2e8c33=_0x16c1b0['length']-0x1;_0x2e8c33>=0x0;_0x2e8c33--)(_0x6738f8=_0x16c1b0[_0x2e8c33])&&(_0x568265=(_0xe9ced5<0x3?_0x6738f8(_0x568265):_0xe9ced5>0x3?_0x6738f8(_0x119206,_0x35648d,_0x568265):_0x6738f8(_0x119206,_0x35648d))||_0x568265);}return _0xe9ced5>0x3&&_0x568265&&Object['defineProperty'](_0x119206,_0x35648d,_0x568265),_0x568265;}let _0x21a851=class{constructor(_0x2f297b,_0x3ebb11,_0x1a47bf,_0x3cb1a9){const _0x3c01e6=_0x296bc0;this[_0x3c01e6(0x223)]=_0x2f297b,this[_0x3c01e6(0x2f0)]=_0x3ebb11,this['_fieldId']=_0x1a47bf,this[_0x3c01e6(0x29c)]=_0x3cb1a9;}[_0x296bc0(0x257)](){const _0x2ac60b=_0x296bc0;return this[_0x2ac60b(0x25e)];}[_0x296bc0(0x329)](){const _0x23387e=_0x296bc0;return this[_0x23387e(0x2fc)]();}[_0x296bc0(0x290)](){return this['_getField']()['name'];}[_0x296bc0(0x241)](){const _0xbb521=_0x296bc0;return this[_0xbb521(0x2fc)]()[_0xbb521(0x324)];}[_0x296bc0(0x287)](){const _0x24c072=_0x296bc0;return this[_0x24c072(0x2fc)]()[_0x24c072(0x206)];}['getDefaultValue'](){const _0x3a3d26=_0x296bc0;return this['_getField']()[_0x3a3d26(0x2af)];}[_0x296bc0(0x1e4)](){const _0x33ed99=_0x296bc0;return this[_0x33ed99(0x2fc)]()['description'];}[_0x296bc0(0x323)](){const _0x5972c6=_0x296bc0;return!!this[_0x5972c6(0x2fc)]()['readonly'];}[_0x296bc0(0x291)](_0xcbdb0){return this['update']({'name':_0xcbdb0});}[_0x296bc0(0x218)](_0x44f94f,_0x5086c1){return this['update']({'config':_0x44f94f},_0x5086c1);}['setDefaultValue'](_0x3bac52){const _0x41d21f=_0x296bc0;return this[_0x41d21f(0x276)]({'defaultValue':_0x3bac52});}['update'](_0x51f8f8,_0x5d0b8d){const _0x114c6a=_0x296bc0;let _0x4befec=this[_0x114c6a(0x2fc)]()['type'];return(_0x51f8f8[_0x114c6a(0x324)]??_0x4befec)===_0x40e1d2[_0x114c6a(0x1d9)][_0x114c6a(0x2e5)]&&(Object[_0x114c6a(0x2ae)][_0x114c6a(0x1a9)]['call'](_0x51f8f8,'config')||_0x51f8f8['type']===_0x40e1d2[_0x114c6a(0x1d9)]['Formula'])&&!this[_0x114c6a(0x25c)](_0x5d0b8d)?!0x1:this[_0x114c6a(0x29c)]['syncExecuteCommand'](_0x333e56[_0x114c6a(0x224)]['id'],{'unitId':this[_0x114c6a(0x223)][_0x114c6a(0x257)](),'tableId':this[_0x114c6a(0x2f0)][_0x114c6a(0x257)](),'fieldId':this[_0x114c6a(0x25e)],'patch':_0x51f8f8});}[_0x296bc0(0x2de)](_0x2f613d,_0x5bc464={},_0x3d61f1){const _0x5ac263=_0x296bc0;return _0x2f613d===_0x40e1d2[_0x5ac263(0x1d9)][_0x5ac263(0x2e5)]&&!this[_0x5ac263(0x25c)](_0x3d61f1)?!0x1:this[_0x5ac263(0x29c)][_0x5ac263(0x2cc)](_0x333e56[_0x5ac263(0x2bd)]['id'],{'unitId':this[_0x5ac263(0x223)][_0x5ac263(0x257)](),'tableId':this[_0x5ac263(0x2f0)][_0x5ac263(0x257)](),'fieldId':this[_0x5ac263(0x25e)],'input':{'type':_0x2f613d,'config':_0x5bc464}});}[_0x296bc0(0x220)](){const _0x22b760=_0x296bc0;return this[_0x22b760(0x29c)][_0x22b760(0x2cc)](_0x333e56[_0x22b760(0x244)]['id'],{'unitId':this['_base'][_0x22b760(0x257)](),'tableId':this['_table']['getId'](),'fieldId':this[_0x22b760(0x25e)]});}[_0x296bc0(0x23d)](_0x138c0f){const _0x3e9f4b=_0x296bc0;return this['_commandService'][_0x3e9f4b(0x2cc)](_0x333e56['MoveBaseFieldCommand']['id'],{'unitId':this[_0x3e9f4b(0x223)]['getId'](),'tableId':this[_0x3e9f4b(0x2f0)][_0x3e9f4b(0x257)](),'fieldId':this[_0x3e9f4b(0x25e)],'target':_0x138c0f});}[_0x296bc0(0x2fc)](){const _0x13c5f5=_0x296bc0;let _0x2d03d6=this[_0x13c5f5(0x2f0)]['getTable']()[_0x13c5f5(0x335)][this['_fieldId']];if(!_0x2d03d6)throw Error(_0x13c5f5(0x30a)+this[_0x13c5f5(0x25e)]+_0x13c5f5(0x267));return _0x2d03d6;}[_0x296bc0(0x25c)](_0x45992e){const _0x4501e8=_0x296bc0;if(!_0x45992e||!Array[_0x4501e8(0x24b)](_0x45992e[_0x4501e8(0x27c)]))return console[_0x4501e8(0x1e3)](_0x4501e8(0x28a)),!0x1;if(_0x45992e[_0x4501e8(0x27c)][_0x4501e8(0x279)]===0x0)return!0x0;let _0x45e154=this[_0x4501e8(0x29c)][_0x4501e8(0x2cc)](_0x1a9502[_0x4501e8(0x1ad)]['id'],{'unitId':this['_base'][_0x4501e8(0x257)](),'references':_0x45992e[_0x4501e8(0x27c)]});return _0x45e154||console['warn']('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x45e154;}};_0x21a851=_0x243c93([_0x46a703(0x3,_0x40e1d2[_0x296bc0(0x1dc)])],_0x21a851);let _0x4ed932=function(_0x2d6193){const _0x3300b0=_0x296bc0;return _0x2d6193['Id']='id',_0x2d6193[_0x3300b0(0x1b5)]='name',_0x2d6193[_0x3300b0(0x25b)]=_0x3300b0(0x2b9),_0x2d6193;}({});function _0x281e4b(_0x4c1ee4){const _0x3fe056=_0x296bc0;return!!(_0x4c1ee4&&_0x4c1ee4[_0x3fe056(0x208)]!==!0x0&&_0x4c1ee4[_0x3fe056(0x324)]!==_0x40e1d2[_0x3fe056(0x1d9)][_0x3fe056(0x1e2)]);}function _0x30eb85(_0x3805e1,_0x4d2b30,_0x27337e='id'){const _0x1ce4f1=_0x296bc0;if(!_0x4d2b30)return{};let _0xc2a209={};return Object[_0x1ce4f1(0x2da)](_0x4d2b30)['forEach'](([_0x5f00cf,_0x588798])=>{const _0x1f6d35=_0x1ce4f1;let _0x298c9c=_0x1d3495(_0x3805e1,_0x5f00cf,_0x27337e);_0xc2a209[_0x298c9c]=_0xfea281(_0x3805e1[_0x1f6d35(0x335)][_0x298c9c],_0x588798);}),_0xc2a209;}function _0xfea281(_0x2a2001,_0x18fec3){const _0x1ac021=_0x296bc0;if((_0x2a2001==null?void 0x0:_0x2a2001['type'])!==_0x40e1d2[_0x1ac021(0x1d9)][_0x1ac021(0x1ce)]||_0x18fec3==null)return _0x18fec3;if(!Array[_0x1ac021(0x24b)](_0x18fec3))throw TypeError(_0x1ac021(0x2e7)+_0x2a2001[_0x1ac021(0x300)]+_0x1ac021(0x312));return _0x18fec3['map']((_0x21591c,_0x11b35c)=>_0x11a433(_0x2a2001,_0x21591c,_0x11b35c));}function _0x1d3495(_0x2c7983,_0x384d51,_0x54325a){const _0xec35a3=_0x296bc0;if(_0x54325a==='id'||_0x54325a===_0xec35a3(0x2b9)&&_0x2c7983['fields'][_0x384d51])return _0x384d51;let _0x55bd45=Object[_0xec35a3(0x2d9)](_0x2c7983[_0xec35a3(0x335)])[_0xec35a3(0x24c)](_0x38dd03=>_0x38dd03[_0xec35a3(0x300)]===_0x384d51);if(_0x55bd45['length']===0x1)return _0x55bd45[0x0]['id'];throw _0x55bd45[_0xec35a3(0x279)]>0x1?Error(_0xec35a3(0x26e)+_0x384d51):Error(_0xec35a3(0x301)+_0x384d51);}function _0x11a433(_0x37a5c2,_0x5df907,_0x50f098){const _0x254ca6=_0x296bc0;let _0x45547d='Invalid\x20attachment\x20at\x20index\x20'+_0x50f098+_0x254ca6(0x205)+_0x37a5c2[_0x254ca6(0x300)]+'\x22';if(!_0x18c9dc(_0x5df907))throw TypeError(_0x45547d+_0x254ca6(0x2cd));if(_0x254ca6(0x2d3)in _0x5df907)throw TypeError(_0x45547d+_0x254ca6(0x313));if(_0x254ca6(0x324)in _0x5df907)throw TypeError(_0x45547d+_0x254ca6(0x1ed));let _0x394e81=_0x1ce9ab(_0x5df907['id'],_0x45547d,'id'),_0x20697e=_0x1ce9ab(_0x5df907[_0x254ca6(0x300)],_0x45547d,_0x254ca6(0x300)),_0x155653=_0x1ce9ab(_0x5df907[_0x254ca6(0x308)],_0x45547d,'source');return{'id':_0x394e81,'name':_0x20697e,'source':_0x155653,'sourceType':_0x6682ec(_0x5df907[_0x254ca6(0x1b4)],_0x155653,_0x45547d),..._0x58f2a3(_0x5df907,_0x254ca6(0x2b6),_0x45547d),..._0x2d4003(_0x5df907,_0x254ca6(0x1bb),_0x45547d),..._0x2d4003(_0x5df907,_0x254ca6(0x1ea),_0x45547d),..._0x2d4003(_0x5df907,_0x254ca6(0x31c),_0x45547d),..._0x58f2a3(_0x5df907,_0x254ca6(0x1f1),_0x45547d)};}function _0x6682ec(_0x39d8fe,_0x349e50,_0x399581){const _0x479598=_0x296bc0;if(_0x39d8fe==null)return _0x349e50[_0x479598(0x239)](_0x479598(0x214))?_0x40e1d2[_0x479598(0x1e1)][_0x479598(0x1e8)]:_0x40e1d2[_0x479598(0x1e1)][_0x479598(0x26b)];if(_0x39d8fe===_0x40e1d2['ImageSourceType'][_0x479598(0x26b)]||_0x39d8fe===_0x40e1d2[_0x479598(0x1e1)][_0x479598(0x225)]||_0x39d8fe===_0x40e1d2[_0x479598(0x1e1)][_0x479598(0x1e8)])return _0x39d8fe;throw TypeError(_0x399581+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function _0x1ce9ab(_0x5e4df8,_0xf72417,_0x3144e7){const _0x589446=_0x296bc0;if(typeof _0x5e4df8!=_0x589446(0x1b1)||!_0x5e4df8[_0x589446(0x1f3)]())throw TypeError(_0xf72417+_0x589446(0x1bc)+_0x3144e7+_0x589446(0x327));return _0x5e4df8;}function _0x58f2a3(_0x413cce,_0x101829,_0x4cae08){const _0x41a82c=_0x296bc0;let _0x2ac956=_0x413cce[_0x101829];if(_0x2ac956==null)return{};if(typeof _0x2ac956!=_0x41a82c(0x1b1)||!_0x2ac956['trim']())throw TypeError(_0x4cae08+_0x41a82c(0x1bc)+_0x101829+_0x41a82c(0x304));return{[_0x101829]:_0x2ac956};}function _0x2d4003(_0x4c567d,_0x24b339,_0x4361f8){const _0x154456=_0x296bc0;let _0x53a53e=_0x4c567d[_0x24b339];if(_0x53a53e==null)return{};if(typeof _0x53a53e!='number'||!Number['isFinite'](_0x53a53e)||_0x53a53e<0x0)throw TypeError(_0x4361f8+_0x154456(0x1bc)+_0x24b339+_0x154456(0x29a));return{[_0x24b339]:_0x53a53e};}function _0x18c9dc(_0x12084a){const _0x4210da=_0x296bc0;return typeof _0x12084a=='object'&&!!_0x12084a&&!Array[_0x4210da(0x24b)](_0x12084a);}var _0xc6032f;let _0x109e9c=_0xc6032f=class{constructor(_0x21aee9,_0x165145,_0xb04ae2,_0x4f1bbd,_0x1c08b8){const _0x4c94c8=_0x296bc0;this['_base']=_0x21aee9,this[_0x4c94c8(0x2f0)]=_0x165145,this['_range']=_0xb04ae2,this[_0x4c94c8(0x1fa)]=_0x4f1bbd,this['_commandService']=_0x1c08b8,this['_assertInBounds']();}[_0x296bc0(0x2f8)](){const _0x100bd3=_0x296bc0;return this[_0x100bd3(0x223)]['getId']();}['getTableId'](){const _0x2698a9=_0x296bc0;return this[_0x2698a9(0x2f0)]['getId']();}['getRange'](){return{...this['_range']};}[_0x296bc0(0x1e5)](){const _0x1ebf9b=_0x296bc0;return this[_0x1ebf9b(0x20b)][_0x1ebf9b(0x283)];}[_0x296bc0(0x27a)](){const _0x2154ff=_0x296bc0;return this[_0x2154ff(0x20b)][_0x2154ff(0x1d5)];}[_0x296bc0(0x2a4)](){const _0x3dfa4e=_0x296bc0;return this[_0x3dfa4e(0x20b)]['endRow']-this['_range'][_0x3dfa4e(0x283)]+0x1;}[_0x296bc0(0x2d5)](){const _0x16afe0=_0x296bc0;return this[_0x16afe0(0x20b)]['endColumn']-this['_range'][_0x16afe0(0x1d5)]+0x1;}['getValues'](){const _0x506474=_0x296bc0;let _0x4e051d=this['_getTable'](),_0x505f28=this[_0x506474(0x262)](_0x4e051d),_0x2705da=[];for(let _0x4fc4b2=this[_0x506474(0x20b)][_0x506474(0x283)];_0x4fc4b2<=this[_0x506474(0x20b)][_0x506474(0x22c)];_0x4fc4b2++){var _0x5a472d;let _0x4436ba=(_0x5a472d=_0x4e051d[_0x506474(0x1e9)])==null?void 0x0:_0x5a472d[_0x4fc4b2],_0x4b5c31=[];for(let _0x58f0f5=this[_0x506474(0x20b)][_0x506474(0x1d5)];_0x58f0f5<=this['_range']['endColumn'];_0x58f0f5++){let _0xae61b6=_0x505f28[_0x58f0f5];_0x4b5c31[_0x506474(0x2ed)](_0x4436ba&&_0xae61b6?(0x0,_0x333e56[_0x506474(0x1da)])(_0x4e051d,_0x4436ba,_0xae61b6):null);}_0x2705da[_0x506474(0x2ed)](_0x4b5c31);}return _0x2705da;}[_0x296bc0(0x23b)](){const _0x437868=_0x296bc0;var _0x2efe50;return((_0x2efe50=this[_0x437868(0x30c)]()[0x0])==null?void 0x0:_0x2efe50[0x0])??null;}[_0x296bc0(0x2c7)](_0x34af79){const _0x57c3a0=_0x296bc0;return this[_0x57c3a0(0x2a1)]([[_0x34af79]]);}['setValues'](_0x2dcae7){const _0x18617a=_0x296bc0;let _0x3f15ee=this[_0x18617a(0x2a4)](),_0x1bf9a4=this[_0x18617a(0x2d5)]();if(_0x2dcae7[_0x18617a(0x279)]>_0x3f15ee||_0x2dcae7[_0x18617a(0x314)](_0x4d159d=>_0x4d159d['length']>_0x1bf9a4)){var _0x210d44;throw Error(_0x18617a(0x29f)+_0x2dcae7['length']+'x'+(((_0x210d44=_0x2dcae7[0x0])==null?void 0x0:_0x210d44[_0x18617a(0x279)])??0x0)+_0x18617a(0x24e)+_0x3f15ee+'x'+_0x1bf9a4+'.');}let _0x2a0490=this[_0x18617a(0x256)](),_0x5e2938=this[_0x18617a(0x262)](_0x2a0490),_0xe34739=_0x2dcae7['flatMap']((_0x22dbee,_0x27a4ce)=>_0x22dbee[_0x18617a(0x1ff)]((_0x4bce77,_0x3718fd)=>{const _0x41c223=_0x18617a;var _0x46b26a;let _0x42f019=this[_0x41c223(0x20b)][_0x41c223(0x283)]+_0x27a4ce,_0x3a27c=_0x5e2938[this['_range'][_0x41c223(0x1d5)]+_0x3718fd],_0x5f3e97=(_0x46b26a=_0x2a0490[_0x41c223(0x1e9)])==null?void 0x0:_0x46b26a[_0x42f019];if(!_0x3a27c||!_0x5f3e97)throw Error(_0x41c223(0x2f9));return{'recordId':_0x5f3e97,'fieldId':_0x3a27c,'value':_0x4bce77};}));return this[_0x18617a(0x29c)]['syncExecuteCommand'](_0x333e56[_0x18617a(0x298)]['id'],{'unitId':this[_0x18617a(0x223)][_0x18617a(0x257)](),'tableId':this[_0x18617a(0x2f0)][_0x18617a(0x257)](),'patches':_0xe34739,'source':_0x333e56[_0x18617a(0x2a9)]['Facade']});}[_0x296bc0(0x286)](){const _0xf6c5a2=_0x296bc0;return this[_0xf6c5a2(0x2a1)](Array[_0xf6c5a2(0x2aa)]({'length':this['getNumRows']()},()=>Array[_0xf6c5a2(0x2aa)]({'length':this[_0xf6c5a2(0x2d5)]()},()=>null)));}[_0x296bc0(0x2df)](_0x55b54c,_0xd19c59,_0x573b6f=this['getNumRows'](),_0x2462fd=this[_0x296bc0(0x2d5)]()){const _0x23be11=_0x296bc0;return this[_0x23be11(0x1fa)][_0x23be11(0x2c5)](_0xc6032f,this[_0x23be11(0x223)],this[_0x23be11(0x2f0)],{'startRow':this[_0x23be11(0x20b)][_0x23be11(0x283)]+_0x55b54c,'startColumn':this[_0x23be11(0x20b)][_0x23be11(0x1d5)]+_0xd19c59,'endRow':this['_range'][_0x23be11(0x283)]+_0x55b54c+_0x573b6f-0x1,'endColumn':this[_0x23be11(0x20b)][_0x23be11(0x1d5)]+_0xd19c59+_0x2462fd-0x1},this[_0x23be11(0x1fa)]);}[_0x296bc0(0x256)](){const _0x43a7ee=_0x296bc0;let _0x209d62=this[_0x43a7ee(0x2f0)][_0x43a7ee(0x248)]();if(!_0x209d62)throw Error(_0x43a7ee(0x240));return(0x0,_0x333e56[_0x43a7ee(0x339)])(_0x209d62);}['_assertInBounds'](){const _0x3bd019=_0x296bc0;var _0x2103ca;let _0x5acd6a=this[_0x3bd019(0x256)](),_0x44d835=((_0x2103ca=_0x5acd6a[_0x3bd019(0x237)])==null?void 0x0:_0x2103ca[_0x3bd019(0x279)])??0x0,_0x497576=this[_0x3bd019(0x262)](_0x5acd6a)['length'];if(this[_0x3bd019(0x20b)]['startRow']<0x0||this['_range']['startColumn']<0x0||this[_0x3bd019(0x20b)][_0x3bd019(0x22c)]<this[_0x3bd019(0x20b)]['startRow']||this[_0x3bd019(0x20b)]['endColumn']<this[_0x3bd019(0x20b)][_0x3bd019(0x1d5)]||this['_range'][_0x3bd019(0x22c)]>=Math[_0x3bd019(0x1bf)](_0x44d835,0x1)||this['_range']['endColumn']>=Math['max'](_0x497576,0x1))throw Error(_0x3bd019(0x245)+_0x44d835+',\x20max\x20columns:\x20'+_0x497576+_0x3bd019(0x1d6)+JSON[_0x3bd019(0x1ca)](this[_0x3bd019(0x20b)])+'.');}[_0x296bc0(0x262)](_0x5a161d){const _0x158b4c=_0x296bc0;return _0x5a161d[_0x158b4c(0x203)][_0x158b4c(0x24c)](_0x4643a3=>_0x281e4b(_0x5a161d[_0x158b4c(0x335)][_0x4643a3]));}};_0x109e9c=_0xc6032f=_0x243c93([_0x46a703(0x4,_0x40e1d2[_0x296bc0(0x1dc)])],_0x109e9c);var _0x35a0ec;let _0x5dd39f=_0x35a0ec=class{constructor(_0x14f669,_0x4f1003,_0x1b6de4,_0x512774,_0x2d782b){const _0x49f339=_0x296bc0;this['_base']=_0x14f669,this[_0x49f339(0x2f0)]=_0x4f1003,this[_0x49f339(0x1d2)]=_0x1b6de4,this[_0x49f339(0x1fa)]=_0x512774,this[_0x49f339(0x29c)]=_0x2d782b;}[_0x296bc0(0x257)](){const _0x56da84=_0x296bc0;return this[_0x56da84(0x1d2)];}[_0x296bc0(0x23c)](){const _0x25ae49=_0x296bc0;return{...this[_0x25ae49(0x1f8)](),'values':this['getValues']()};}[_0x296bc0(0x23b)](_0x4ed8d9){const _0x471386=_0x296bc0;return _0x281e4b(this[_0x471386(0x2f0)][_0x471386(0x248)]()['fields'][_0x4ed8d9])?this[_0x471386(0x1f8)]()[_0x471386(0x2d9)][_0x4ed8d9]??null:null;}[_0x296bc0(0x30c)](){const _0x407c5b=_0x296bc0;let _0x42b0a3=this[_0x407c5b(0x2f0)][_0x407c5b(0x248)]();return Object['fromEntries'](Object[_0x407c5b(0x2da)](this[_0x407c5b(0x1f8)]()[_0x407c5b(0x2d9)])[_0x407c5b(0x24c)](([_0xc41807])=>_0x281e4b(_0x42b0a3['fields'][_0xc41807])));}[_0x296bc0(0x2c7)](_0x1d79d0,_0x1aacf0){const _0x9ed16d=_0x296bc0;let _0x29eec1=this[_0x9ed16d(0x2f0)][_0x9ed16d(0x248)]()[_0x9ed16d(0x335)][_0x1d79d0];return this[_0x9ed16d(0x29c)]['syncExecuteCommand'](_0x333e56[_0x9ed16d(0x24d)]['id'],{'unitId':this[_0x9ed16d(0x223)][_0x9ed16d(0x257)](),'tableId':this[_0x9ed16d(0x2f0)][_0x9ed16d(0x257)](),'recordId':this['_recordId'],'fieldId':_0x1d79d0,'value':_0xfea281(_0x29eec1,_0x1aacf0),'source':_0x333e56[_0x9ed16d(0x2a9)][_0x9ed16d(0x2f4)]});}[_0x296bc0(0x21c)](_0x35805a,_0x91946b){const _0x3841f7=_0x296bc0;return this['setValue'](_0x35805a,_0x91946b[_0x3841f7(0x1ff)](_0x3f51e5=>({..._0x3f51e5})));}[_0x296bc0(0x2a1)](_0x1fe31b,_0x5ab868='id'){const _0x3ce70a=_0x296bc0;let _0x48c7fc=this['_table'][_0x3ce70a(0x248)](),_0x1c4a32=[{'recordId':this[_0x3ce70a(0x1d2)],'values':_0x30eb85(_0x48c7fc,_0x1fe31b,_0x5ab868)}];return this[_0x3ce70a(0x29c)][_0x3ce70a(0x2cc)](_0x333e56['SetBaseRecordValuesCommand']['id'],{'unitId':this[_0x3ce70a(0x223)][_0x3ce70a(0x257)](),'tableId':this[_0x3ce70a(0x2f0)][_0x3ce70a(0x257)](),'patches':_0x1c4a32,'source':_0x333e56[_0x3ce70a(0x2a9)]['Facade']});}[_0x296bc0(0x220)](){const _0x34ebf7=_0x296bc0;return this['_commandService'][_0x34ebf7(0x2cc)](_0x333e56['DeleteBaseRecordCommand']['id'],{'unitId':this[_0x34ebf7(0x223)][_0x34ebf7(0x257)](),'tableId':this['_table']['getId'](),'recordId':this[_0x34ebf7(0x1d2)],'source':_0x333e56[_0x34ebf7(0x2a9)]['Facade']});}[_0x296bc0(0x270)](_0x19a5a3){const _0x40cea8=_0x296bc0;let _0x23f80b={...this['_getRecord'](),..._0x19a5a3,'id':(0x0,_0x40e1d2[_0x40cea8(0x251)])(0x6)};_0x23f80b[_0x40cea8(0x2d9)]={..._0x23f80b[_0x40cea8(0x2d9)],..._0x19a5a3==null?void 0x0:_0x19a5a3[_0x40cea8(0x2d9)]},Reflect[_0x40cea8(0x303)](_0x23f80b[_0x40cea8(0x2d9)],_0x40e1d2[_0x40cea8(0x201)]);let _0x7518f1=Date['now']();if(_0x23f80b[_0x40cea8(0x331)]||=''+_0x7518f1,_0x23f80b['createdAt']||=_0x7518f1,_0x23f80b[_0x40cea8(0x1af)]||=_0x7518f1,!this[_0x40cea8(0x29c)][_0x40cea8(0x2cc)](_0x333e56[_0x40cea8(0x274)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x40cea8(0x2f0)][_0x40cea8(0x257)](),'sourceRecordId':this[_0x40cea8(0x1d2)],'record':_0x23f80b,'source':_0x333e56[_0x40cea8(0x2a9)][_0x40cea8(0x2f4)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x40cea8(0x1d2)]+'\x22.');return this['_inject'][_0x40cea8(0x2c5)](_0x35a0ec,this[_0x40cea8(0x223)],this['_table'],_0x23f80b['id'],this[_0x40cea8(0x1fa)]);}[_0x296bc0(0x22b)](_0x430e77){const _0x59fea5=_0x296bc0;return this[_0x59fea5(0x29c)][_0x59fea5(0x2cc)](_0x333e56[_0x59fea5(0x1de)]['id'],{'unitId':this[_0x59fea5(0x223)]['getId'](),'tableId':this[_0x59fea5(0x2f0)][_0x59fea5(0x257)](),'recordId':this[_0x59fea5(0x1d2)],'orderKey':_0x430e77});}[_0x296bc0(0x2b5)](_0xa1aba3){const _0x1d8235=_0x296bc0;let _0x59a7a6=this[_0x1d8235(0x325)](_0xa1aba3);return(0x0,_0x333e56['parseRecordLinkIds'])(this['getValue'](_0x59a7a6['id']));}['setLinkedRecordIds'](_0x53343a,_0xd638e6){const _0x1220a=_0x296bc0;let _0x31c593=this[_0x1220a(0x325)](_0x53343a),_0xc0f87b=(0x0,_0x333e56[_0x1220a(0x338)])(_0xd638e6),_0x57460f=(0x0,_0x333e56['validateRecordLinkValue'])(this[_0x1220a(0x223)][_0x1220a(0x1f6)]()['getSnapshot'](),_0x31c593,_0xc0f87b);if(!_0x57460f[_0x1220a(0x2c2)])throw Error(_0x57460f['reason']??_0x1220a(0x1c2));return this['_commandService']['syncExecuteCommand'](_0x333e56['UpdateBaseCellCommand']['id'],{'unitId':this[_0x1220a(0x223)]['getId'](),'tableId':this[_0x1220a(0x2f0)][_0x1220a(0x257)](),'recordId':this[_0x1220a(0x1d2)],'fieldId':_0x53343a,'value':_0xc0f87b,'source':_0x333e56[_0x1220a(0x2a9)][_0x1220a(0x2f4)]});}['addLinkedRecord'](_0x1a894f,_0x329021){const _0x39aa1d=_0x296bc0;let _0x35a17a=(0x0,_0x333e56[_0x39aa1d(0x2db)])(this[_0x39aa1d(0x325)](_0x1a894f));if(!_0x35a17a)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x1a894f+_0x39aa1d(0x1cc));let _0x2c6029=this['getLinkedRecordIds'](_0x1a894f);return _0x35a17a[_0x39aa1d(0x2ff)]&&_0x2c6029['includes'](_0x329021)?!0x0:this[_0x39aa1d(0x269)](_0x1a894f,_0x35a17a['multiple']?[..._0x2c6029,_0x329021]:[_0x329021]);}[_0x296bc0(0x249)](_0x23bc35,_0x38c249){const _0x396c5f=_0x296bc0;let _0x31a61f=this['getLinkedRecordIds'](_0x23bc35);return!_0x31a61f['includes'](_0x38c249)||this['setLinkedRecordIds'](_0x23bc35,_0x31a61f[_0x396c5f(0x24c)](_0x232331=>_0x232331!==_0x38c249));}[_0x296bc0(0x2ca)](_0x3884bd){const _0x2c823c=_0x296bc0;let _0x38c121=this[_0x2c823c(0x2b0)](_0x3884bd)['parentByRecordId']['get'](this['_recordId'])??null;return _0x38c121?this[_0x2c823c(0x2f0)]['getRecordById'](_0x38c121):null;}[_0x296bc0(0x1b8)](_0xbafe19){const _0x3922d1=_0x296bc0;return(this['_getHierarchyIndex'](_0xbafe19)['childrenByParentId']['get'](this[_0x3922d1(0x1d2)])??[])[_0x3922d1(0x23f)](_0x29f023=>{const _0x19072d=_0x3922d1;let _0x37d808=this[_0x19072d(0x2f0)][_0x19072d(0x210)](_0x29f023);return _0x37d808?[_0x37d808]:[];});}[_0x296bc0(0x1e6)](_0x4bc5ad){const _0x42334c=_0x296bc0;let _0x422bc3=this['_getHierarchyIndex'](_0x4bc5ad),_0x45de9e=[],_0x409e0b=_0x422bc3[_0x42334c(0x22e)][_0x42334c(0x32c)](this[_0x42334c(0x1d2)])??null;for(;_0x409e0b;){let _0x1adb3d=this[_0x42334c(0x2f0)][_0x42334c(0x210)](_0x409e0b);_0x1adb3d&&_0x45de9e[_0x42334c(0x2ed)](_0x1adb3d),_0x409e0b=_0x422bc3[_0x42334c(0x22e)][_0x42334c(0x32c)](_0x409e0b)??null;}return _0x45de9e;}[_0x296bc0(0x292)](_0x5c7ecc){const _0x3b1a1d=_0x296bc0;let _0x12ad74=this[_0x3b1a1d(0x2b0)](_0x5c7ecc),_0x541f83=_0x12ad74[_0x3b1a1d(0x2f5)][_0x3b1a1d(0x263)](this[_0x3b1a1d(0x1d2)]),_0x11abb4=_0x12ad74[_0x3b1a1d(0x233)][_0x3b1a1d(0x31a)](this['_recordId'])?this[_0x3b1a1d(0x21a)](_0x12ad74[_0x3b1a1d(0x25d)],this['_recordId']):[];return _0x541f83<0x0?[]:_0x11abb4[_0x3b1a1d(0x23f)](_0x1f6603=>{const _0x322e4e=_0x3b1a1d;let _0x1b86e9=this['_table'][_0x322e4e(0x210)](_0x1f6603);return _0x1b86e9?[_0x1b86e9]:[];});}[_0x296bc0(0x326)](_0x60f708,_0x3c51a5,_0x20b4c0){const _0x744dd3=_0x296bc0;return this[_0x744dd3(0x29c)][_0x744dd3(0x2cc)](_0x333e56['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this[_0x744dd3(0x223)][_0x744dd3(0x257)](),'tableId':this[_0x744dd3(0x2f0)][_0x744dd3(0x257)](),'fieldId':_0x60f708,'recordId':this[_0x744dd3(0x1d2)],'parentRecordId':_0x3c51a5,'orderKey':_0x20b4c0,'source':_0x333e56[_0x744dd3(0x2a9)][_0x744dd3(0x2f4)]});}[_0x296bc0(0x31b)](_0x569f81,_0x3a9245,_0x421ce2='id',_0x4a211c){const _0x4d0ff1=_0x296bc0;let _0xf9885c=this[_0x4d0ff1(0x2f0)][_0x4d0ff1(0x248)](),_0x16f18a=Date[_0x4d0ff1(0x31f)](),_0x1c948a={..._0x4a211c,'id':(0x0,_0x40e1d2['generateRandomId'])(0x6),'values':_0x30eb85(_0xf9885c,_0x3a9245,_0x421ce2),'orderKey':(_0x4a211c==null?void 0x0:_0x4a211c[_0x4d0ff1(0x331)])||''+_0x16f18a,'createdAt':(_0x4a211c==null?void 0x0:_0x4a211c[_0x4d0ff1(0x1aa)])||_0x16f18a,'updatedAt':(_0x4a211c==null?void 0x0:_0x4a211c[_0x4d0ff1(0x1af)])||_0x16f18a};if(!this[_0x4d0ff1(0x29c)][_0x4d0ff1(0x2cc)](_0x333e56[_0x4d0ff1(0x2ba)]['id'],{'unitId':this[_0x4d0ff1(0x223)]['getId'](),'tableId':this[_0x4d0ff1(0x2f0)][_0x4d0ff1(0x257)](),'fieldId':_0x569f81,'parentRecordId':this['_recordId'],'record':_0x1c948a,'source':_0x333e56[_0x4d0ff1(0x2a9)][_0x4d0ff1(0x2f4)]}))throw Error(_0x4d0ff1(0x320)+this['_recordId']+'\x22.');return this[_0x4d0ff1(0x1fa)][_0x4d0ff1(0x2c5)](_0x35a0ec,this[_0x4d0ff1(0x223)],this[_0x4d0ff1(0x2f0)],_0x1c948a['id'],this['_inject']);}[_0x296bc0(0x2b0)](_0x4f68c8){const _0x62d890=_0x296bc0;return(0x0,_0x333e56['buildBaseHierarchyIndex'])(this[_0x62d890(0x2f0)][_0x62d890(0x248)](),_0x4f68c8);}[_0x296bc0(0x21a)](_0x204031,_0x28dcf3){let _0x3f9b33=[],_0x4e772b=_0x4b633f=>{const _0x43d966=_0x4e71;for(let _0x3b8c92 of _0x204031[_0x43d966(0x32c)](_0x4b633f)??[])_0x3f9b33[_0x43d966(0x2ed)](_0x3b8c92),_0x4e772b(_0x3b8c92);};return _0x4e772b(_0x28dcf3),_0x3f9b33;}[_0x296bc0(0x1f8)](){const _0x10b0d8=_0x296bc0;let _0x25d106=this['_table'][_0x10b0d8(0x248)]()[_0x10b0d8(0x311)][this[_0x10b0d8(0x1d2)]];if(!_0x25d106)throw Error(_0x10b0d8(0x211)+this[_0x10b0d8(0x1d2)]+_0x10b0d8(0x267));return _0x25d106;}['_getRecordLinkField'](_0x68af48){const _0x289f0a=_0x296bc0;let _0x42666d=this[_0x289f0a(0x2f0)][_0x289f0a(0x248)]()[_0x289f0a(0x335)][_0x68af48];if(!_0x42666d||_0x42666d['type']!==_0x40e1d2[_0x289f0a(0x1d9)][_0x289f0a(0x32a)])throw Error('[FRecord]:\x20field\x20\x22'+_0x68af48+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x42666d;}};_0x5dd39f=_0x35a0ec=_0x243c93([_0x46a703(0x4,_0x40e1d2['ICommandService'])],_0x5dd39f);let _0x19efcd=class{constructor(_0x514fcc,_0x4c3632,_0x167ef9,_0x463866,_0x8f855,_0x511951){const _0x35d629=_0x296bc0;this['_base']=_0x514fcc,this[_0x35d629(0x2f0)]=_0x4c3632,this['_viewId']=_0x167ef9,this[_0x35d629(0x27f)]=_0x463866,this[_0x35d629(0x29c)]=_0x8f855,this[_0x35d629(0x2d6)]=_0x511951;}[_0x296bc0(0x257)](){const _0x401672=_0x296bc0;return this[_0x401672(0x309)];}['getView'](){return this['_getView']();}[_0x296bc0(0x290)](){return this['_getView']()['name'];}[_0x296bc0(0x241)](){const _0x5f11cc=_0x296bc0;return this[_0x5f11cc(0x1f2)]()[_0x5f11cc(0x324)];}[_0x296bc0(0x291)](_0x18e5c5){const _0x125a51=_0x296bc0;return this[_0x125a51(0x29c)][_0x125a51(0x2cc)](_0x333e56[_0x125a51(0x29b)]['id'],{'unitId':this[_0x125a51(0x223)]['getId'](),'tableId':this[_0x125a51(0x2f0)]['getId'](),'viewId':this[_0x125a51(0x309)],'name':_0x18e5c5});}[_0x296bc0(0x287)](){const _0x367767=_0x296bc0;let _0x1b1807=this[_0x367767(0x241)](),_0x195e1b=this['_getView']()['config'];switch(_0x1b1807){case _0x40e1d2['BaseViewType']['Grid']:return _0x195e1b;case _0x40e1d2[_0x367767(0x258)][_0x367767(0x33b)]:return _0x195e1b;case _0x40e1d2[_0x367767(0x258)][_0x367767(0x266)]:return _0x195e1b;case _0x40e1d2[_0x367767(0x258)]['Gantt']:return _0x195e1b;case _0x40e1d2['BaseViewType'][_0x367767(0x1ef)]:return _0x195e1b;default:return _0x195e1b;}}[_0x296bc0(0x282)](_0x4d6646){const _0x5bd83c=_0x296bc0;return this[_0x5bd83c(0x29c)][_0x5bd83c(0x2cc)](_0x333e56[_0x5bd83c(0x1d1)]['id'],{'unitId':this[_0x5bd83c(0x223)][_0x5bd83c(0x257)](),'tableId':this['_table'][_0x5bd83c(0x257)](),'viewId':this[_0x5bd83c(0x309)],'patch':_0x4d6646});}['getConditionalColorRules'](){const _0x2ced18=_0x296bc0;var _0x4f37f6;return _0x40e1d2[_0x2ced18(0x229)]['deepClone'](((_0x4f37f6=this[_0x2ced18(0x1f2)]()[_0x2ced18(0x206)][_0x2ced18(0x334)])==null?void 0x0:_0x4f37f6[_0x2ced18(0x299)])??[]);}['setConditionalColorRules'](_0xed2314){const _0xf50951=_0x296bc0;return this['_commandService']['syncExecuteCommand'](_0x333e56[_0xf50951(0x1eb)]['id'],{'unitId':this[_0xf50951(0x223)][_0xf50951(0x257)](),'tableId':this[_0xf50951(0x2f0)][_0xf50951(0x257)](),'viewId':this[_0xf50951(0x309)],'type':_0x333e56['BaseConditionalColorRuleUpdateType']['Set'],'rules':_0xed2314});}[_0x296bc0(0x2fa)](_0x14ed17){const _0x9e44f=_0x296bc0;return this[_0x9e44f(0x29c)][_0x9e44f(0x2cc)](_0x333e56[_0x9e44f(0x1eb)]['id'],{'unitId':this[_0x9e44f(0x223)][_0x9e44f(0x257)](),'tableId':this[_0x9e44f(0x2f0)][_0x9e44f(0x257)](),'viewId':this[_0x9e44f(0x309)],'type':_0x333e56['BaseConditionalColorRuleUpdateType'][_0x9e44f(0x315)],'rule':_0x14ed17});}[_0x296bc0(0x24a)](_0x117e27){const _0x908600=_0x296bc0;return this[_0x908600(0x29c)][_0x908600(0x2cc)](_0x333e56[_0x908600(0x1eb)]['id'],{'unitId':this['_base'][_0x908600(0x257)](),'tableId':this['_table'][_0x908600(0x257)](),'viewId':this[_0x908600(0x309)],'type':_0x333e56[_0x908600(0x2d1)][_0x908600(0x25f)],'ruleId':_0x117e27});}[_0x296bc0(0x32e)](){const _0x2bee40=_0x296bc0;return this[_0x2bee40(0x29c)]['syncExecuteCommand'](_0x333e56[_0x2bee40(0x1eb)]['id'],{'unitId':this['_base'][_0x2bee40(0x257)](),'tableId':this[_0x2bee40(0x2f0)]['getId'](),'viewId':this[_0x2bee40(0x309)],'type':_0x333e56['BaseConditionalColorRuleUpdateType'][_0x2bee40(0x2b8)]});}[_0x296bc0(0x2a6)](){return this['_getView']()['filter']??null;}[_0x296bc0(0x1b0)](_0x27e57a){const _0x2bc137=_0x296bc0;return this[_0x2bc137(0x29c)][_0x2bc137(0x2cc)](_0x333e56[_0x2bc137(0x2a2)]['id'],{'unitId':this['_base'][_0x2bc137(0x257)](),'tableId':this['_table'][_0x2bc137(0x257)](),'viewId':this[_0x2bc137(0x309)],'filter':_0x27e57a});}[_0x296bc0(0x209)](){const _0x284bee=_0x296bc0;return this[_0x284bee(0x1f2)]()[_0x284bee(0x228)]??[];}[_0x296bc0(0x215)](_0x3a213b){const _0x544ed5=_0x296bc0;return this[_0x544ed5(0x29c)][_0x544ed5(0x2cc)](_0x333e56[_0x544ed5(0x1d7)]['id'],{'unitId':this[_0x544ed5(0x223)][_0x544ed5(0x257)](),'tableId':this[_0x544ed5(0x2f0)][_0x544ed5(0x257)](),'viewId':this[_0x544ed5(0x309)],'sort':_0x3a213b});}[_0x296bc0(0x317)](){const _0x424bcb=_0x296bc0;return this[_0x424bcb(0x1f2)]()['group']??[];}[_0x296bc0(0x322)](_0x5ccc16){const _0x2ce55d=_0x296bc0;return this[_0x2ce55d(0x29c)][_0x2ce55d(0x2cc)](_0x333e56['SetBaseViewGroupCommand']['id'],{'unitId':this[_0x2ce55d(0x223)][_0x2ce55d(0x257)](),'tableId':this[_0x2ce55d(0x2f0)][_0x2ce55d(0x257)](),'viewId':this[_0x2ce55d(0x309)],'group':_0x5ccc16});}[_0x296bc0(0x2ec)](_0x1b81a1){const _0x58367d=_0x296bc0;var _0x1e5f54;return _0x281e4b(this[_0x58367d(0x2f0)][_0x58367d(0x248)]()['fields'][_0x1b81a1])?((_0x1e5f54=this[_0x58367d(0x1f2)]()[_0x58367d(0x1ae)])==null?void 0x0:_0x1e5f54[_0x1b81a1])??{}:{};}[_0x296bc0(0x1fc)](){const _0x482c01=_0x296bc0;let _0x332177=this[_0x482c01(0x2f0)]['getTable'](),_0x24fe4a=this[_0x482c01(0x1f2)]();return(_0x24fe4a[_0x482c01(0x203)]??_0x332177[_0x482c01(0x203)])[_0x482c01(0x24c)](_0x4b42c1=>{const _0x54de35=_0x482c01;var _0xeb4d49;let _0x4a22de=_0x332177[_0x54de35(0x335)][_0x4b42c1];return _0x281e4b(_0x4a22de)&&!((_0xeb4d49=_0x24fe4a[_0x54de35(0x1ae)])!=null&&(_0xeb4d49=_0xeb4d49[_0x4b42c1])!=null&&_0xeb4d49[_0x54de35(0x22a)]);})[_0x482c01(0x1ff)](_0x49d23b=>this[_0x482c01(0x27f)][_0x482c01(0x2c5)](_0x21a851,this[_0x482c01(0x223)],this['_table'],_0x49d23b));}[_0x296bc0(0x21f)](_0x55e66c,_0x2beea4){const _0x535776=_0x296bc0;return _0x281e4b(this[_0x535776(0x2f0)][_0x535776(0x248)]()[_0x535776(0x335)][_0x55e66c])?this[_0x535776(0x29c)][_0x535776(0x2cc)](_0x333e56[_0x535776(0x22f)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x535776(0x2f0)][_0x535776(0x257)](),'viewId':this['_viewId'],'fieldId':_0x55e66c,'visible':_0x2beea4}):!0x1;}[_0x296bc0(0x280)](_0xf6bc74,_0x2db5ae){const _0x5857c4=_0x296bc0;return _0x281e4b(this[_0x5857c4(0x2f0)][_0x5857c4(0x248)]()['fields'][_0xf6bc74])?this[_0x5857c4(0x29c)]['syncExecuteCommand'](_0x333e56['SetBaseViewFieldWidthCommand']['id'],{'unitId':this[_0x5857c4(0x223)][_0x5857c4(0x257)](),'tableId':this[_0x5857c4(0x2f0)][_0x5857c4(0x257)](),'viewId':this[_0x5857c4(0x309)],'fieldId':_0xf6bc74,'width':_0x2db5ae}):!0x1;}[_0x296bc0(0x1ee)](_0x4f4591,_0x30ae97){const _0x4b0795=_0x296bc0;let _0x1a1a13=this[_0x4b0795(0x2f0)][_0x4b0795(0x248)](),_0x44fc90=_0x30ae97[_0x4b0795(0x2ad)]??_0x30ae97[_0x4b0795(0x2a3)];return!_0x281e4b(_0x1a1a13['fields'][_0x4f4591])||!_0x44fc90||!_0x281e4b(_0x1a1a13[_0x4b0795(0x335)][_0x44fc90])?!0x1:this['_commandService'][_0x4b0795(0x2cc)](_0x333e56[_0x4b0795(0x253)]['id'],{'unitId':this[_0x4b0795(0x223)][_0x4b0795(0x257)](),'tableId':this[_0x4b0795(0x2f0)][_0x4b0795(0x257)](),'viewId':this[_0x4b0795(0x309)],'fieldId':_0x4f4591,'target':_0x30ae97});}[_0x296bc0(0x23d)](_0x1a8ebc){const _0x5025d6=_0x296bc0;return this[_0x5025d6(0x29c)][_0x5025d6(0x2cc)](_0x333e56['MoveBaseViewCommand']['id'],{'unitId':this['_base'][_0x5025d6(0x257)](),'tableId':this[_0x5025d6(0x2f0)]['getId'](),'viewId':this[_0x5025d6(0x309)],'target':_0x1a8ebc});}['delete'](){const _0x2f332c=_0x296bc0;return this[_0x2f332c(0x29c)][_0x2f332c(0x2cc)](_0x333e56[_0x2f332c(0x318)]['id'],{'unitId':this['_base'][_0x2f332c(0x257)](),'tableId':this[_0x2f332c(0x2f0)]['getId'](),'viewId':this[_0x2f332c(0x309)]});}['getProjection'](){const _0x34247a=_0x296bc0;return this[_0x34247a(0x2d6)][_0x34247a(0x259)](this['_base'][_0x34247a(0x1f6)]()[_0x34247a(0x2b3)](),this[_0x34247a(0x2f0)]['getId'](),this[_0x34247a(0x309)]);}[_0x296bc0(0x1f2)](){const _0x547da9=_0x296bc0;let _0x1d591b=this[_0x547da9(0x2f0)][_0x547da9(0x248)]()[_0x547da9(0x27b)][this[_0x547da9(0x309)]];if(!_0x1d591b)throw Error(_0x547da9(0x26a)+this[_0x547da9(0x309)]+_0x547da9(0x267));return _0x1d591b;}};_0x19efcd=_0x243c93([_0x46a703(0x4,_0x40e1d2[_0x296bc0(0x1dc)]),_0x46a703(0x5,_0x333e56['IBaseProjectionService'])],_0x19efcd);let _0x1bbc41=class{constructor(_0x555d87,_0x2fbba4,_0x43e75b,_0x42dc44,_0x53edd9){const _0x37fad6=_0x296bc0;this[_0x37fad6(0x223)]=_0x555d87,this[_0x37fad6(0x33a)]=_0x2fbba4,this[_0x37fad6(0x27f)]=_0x43e75b,this[_0x37fad6(0x29c)]=_0x42dc44,this[_0x37fad6(0x2d6)]=_0x53edd9;}[_0x296bc0(0x1f6)](){const _0x25e032=_0x296bc0;return this[_0x25e032(0x223)][_0x25e032(0x1f6)]();}['getTable'](){const _0x3ec3c3=_0x296bc0;return this[_0x3ec3c3(0x256)]();}[_0x296bc0(0x257)](){return this['_tableId'];}[_0x296bc0(0x246)](){return(0x0,_0x333e56['resolveBaseHierarchyFieldId'])(this['_getTable']());}[_0x296bc0(0x238)](_0x3b3716){const _0x490b5a=_0x296bc0;return this[_0x490b5a(0x29c)][_0x490b5a(0x2cc)](_0x333e56['SetBaseTableHierarchyFieldCommand']['id'],{'unitId':this[_0x490b5a(0x223)][_0x490b5a(0x257)](),'tableId':this['_tableId'],'fieldId':_0x3b3716});}[_0x296bc0(0x290)](){const _0xb96d8b=_0x296bc0;return this['_getTable']()[_0xb96d8b(0x300)];}[_0x296bc0(0x291)](_0x3d5165){const _0x2681d5=_0x296bc0;return this[_0x2681d5(0x29c)][_0x2681d5(0x2cc)](_0x333e56['RenameBaseTableCommand']['id'],{'unitId':this['_base'][_0x2681d5(0x257)](),'tableId':this[_0x2681d5(0x33a)],'name':_0x3d5165});}[_0x296bc0(0x297)](_0x37e139,_0x392aaa){const _0x17f38f=_0x296bc0;let _0x5832fa=this[_0x17f38f(0x223)][_0x17f38f(0x1f6)]()['getSnapshot'](),_0x1ec0da=this[_0x17f38f(0x256)]();if(_0x392aaa){let _0x142fff=this['_projectionService']['getProjection'](_0x5832fa,this[_0x17f38f(0x33a)],_0x392aaa),_0x46a8d5=_0x1ec0da[_0x17f38f(0x27b)][_0x392aaa],_0x4687fd=_0x37e139[_0x17f38f(0x1c0)]??_0x5dedcf(_0x1ec0da,_0x46a8d5,_0x142fff),_0x4a56c1='rows'in _0x142fff&&Array[_0x17f38f(0x24b)](_0x142fff[_0x17f38f(0x1df)])?_0x142fff[_0x17f38f(0x1df)]:[];return(0x0,_0x333e56[_0x17f38f(0x2fb)])({..._0x37e139,'table':_0x1ec0da,'fieldIds':_0x4687fd,'rows':_0x4a56c1});}let _0x59d05b=(_0x1ec0da['recordOrder']?_0x1ec0da[_0x17f38f(0x237)]['map'](_0x1850b1=>_0x1ec0da[_0x17f38f(0x311)][_0x1850b1]):Object[_0x17f38f(0x2d9)](_0x1ec0da[_0x17f38f(0x311)])[_0x17f38f(0x228)]((_0x5922e2,_0x371007)=>_0x5922e2[_0x17f38f(0x331)][_0x17f38f(0x27d)](_0x371007[_0x17f38f(0x331)])))[_0x17f38f(0x24c)](_0x5b4b77=>_0x5b4b77)[_0x17f38f(0x1ff)](_0x1cf71e=>({'recordId':_0x1cf71e['id'],'values':_0x1cf71e[_0x17f38f(0x2d9)]})),_0x310286=_0x37e139[_0x17f38f(0x1c0)]??_0x1ec0da['fieldOrder'][_0x17f38f(0x24c)](_0x305508=>_0x281e4b(_0x1ec0da[_0x17f38f(0x335)][_0x305508]));return(0x0,_0x333e56[_0x17f38f(0x2fb)])({..._0x37e139,'table':_0x1ec0da,'fieldIds':_0x310286,'rows':_0x59d05b});}[_0x296bc0(0x2dc)](){const _0x1787b7=_0x296bc0;return this[_0x1787b7(0x256)]()[_0x1787b7(0x1f5)];}[_0x296bc0(0x2e0)](){const _0x56c01b=_0x296bc0;let _0x24c3bd=this[_0x56c01b(0x256)]();return _0x24c3bd[_0x56c01b(0x203)]['map'](_0x2ba42b=>_0x24c3bd['fields'][_0x2ba42b])['filter'](_0x281e4b)[_0x56c01b(0x1ff)](_0x4c045b=>this[_0x56c01b(0x27f)]['createInstance'](_0x21a851,this[_0x56c01b(0x223)],this,_0x4c045b['id']));}[_0x296bc0(0x337)](_0x57a939){const _0x58afe1=_0x296bc0;let _0x5b3ff9=this[_0x58afe1(0x256)]()[_0x58afe1(0x335)][_0x57a939];return _0x281e4b(_0x5b3ff9)?this[_0x58afe1(0x27f)][_0x58afe1(0x2c5)](_0x21a851,this[_0x58afe1(0x223)],this,_0x5b3ff9['id']):null;}[_0x296bc0(0x24f)](_0x597db5){const _0x5611a8=_0x296bc0;let _0x164edb=this[_0x5611a8(0x256)]()['fields'],_0x402ea2=Object['values'](_0x164edb)[_0x5611a8(0x2c3)](_0xbbe3b7=>_0x281e4b(_0xbbe3b7)&&_0xbbe3b7[_0x5611a8(0x300)]===_0x597db5);return _0x402ea2?this['_injector'][_0x5611a8(0x2c5)](_0x21a851,this['_base'],this,_0x402ea2['id']):null;}[_0x296bc0(0x20f)](){const _0x51a411=_0x296bc0;let _0x3534dc=this[_0x51a411(0x256)]()[_0x51a411(0x1f5)];return this[_0x51a411(0x27f)][_0x51a411(0x2c5)](_0x21a851,this['_base'],this,_0x3534dc);}[_0x296bc0(0x1c3)](_0xa3a5e4,_0x310d29,_0x2b6128){const _0x287208=_0x296bc0;var _0xb2a6ee,_0x598250;if(!Object['values'](_0x40e1d2[_0x287208(0x1d9)])[_0x287208(0x314)](_0x59169c=>_0x59169c===_0x310d29))throw Error(_0x287208(0x310)+String(_0x310d29)+'\x22.');if(_0x310d29===_0x40e1d2['BaseFieldType'][_0x287208(0x2e5)]){if(!_0x2b6128||!(_0x287208(0x27c)in _0x2b6128)||!Array[_0x287208(0x24b)](_0x2b6128['externalReferences']))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');if(_0x2b6128['externalReferences'][_0x287208(0x279)]>0x0&&!this[_0x287208(0x29c)][_0x287208(0x2cc)](_0x1a9502[_0x287208(0x1ad)]['id'],{'unitId':this[_0x287208(0x223)]['getId'](),'references':_0x2b6128[_0x287208(0x27c)]}))throw Error(_0x287208(0x2c0)+_0xa3a5e4+'\x22');}if(_0x310d29===_0x40e1d2[_0x287208(0x1d9)][_0x287208(0x32a)]&&(typeof(_0x2b6128==null||(_0xb2a6ee=_0x2b6128[_0x287208(0x219)])==null||(_0xb2a6ee=_0xb2a6ee[_0x287208(0x206)])==null?void 0x0:_0xb2a6ee[_0x287208(0x2a0)])!=_0x287208(0x1b1)||typeof _0x2b6128[_0x287208(0x219)][_0x287208(0x206)][_0x287208(0x2ff)]!=_0x287208(0x2cb)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x543c59={..._0x2b6128==null?void 0x0:_0x2b6128[_0x287208(0x219)],'id':(0x0,_0x40e1d2['generateRandomId'])(0x6),'name':_0xa3a5e4,'type':_0x310d29,'config':(_0x2b6128==null||(_0x598250=_0x2b6128[_0x287208(0x219)])==null?void 0x0:_0x598250[_0x287208(0x206)])??{}};if(!this[_0x287208(0x29c)][_0x287208(0x2cc)](_0x333e56[_0x287208(0x32b)]['id'],{'unitId':this[_0x287208(0x223)][_0x287208(0x257)](),'tableId':this['_tableId'],'field':_0x543c59,'index':_0x2b6128==null?void 0x0:_0x2b6128[_0x287208(0x30b)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0xa3a5e4+'\x22');return this['_injector']['createInstance'](_0x21a851,this[_0x287208(0x223)],this,_0x543c59['id']);}[_0x296bc0(0x29d)](){const _0x1a980f=_0x296bc0;return this[_0x1a980f(0x2b4)]()['map'](_0x6f6d31=>this[_0x1a980f(0x27f)][_0x1a980f(0x2c5)](_0x5dd39f,this[_0x1a980f(0x223)],this,_0x6f6d31,this['_injector']));}[_0x296bc0(0x210)](_0xa1ae5c){const _0x3954fb=_0x296bc0;return this[_0x3954fb(0x256)]()['records'][_0xa1ae5c]?this[_0x3954fb(0x27f)][_0x3954fb(0x2c5)](_0x5dd39f,this['_base'],this,_0xa1ae5c,this[_0x3954fb(0x27f)]):null;}[_0x296bc0(0x275)](_0xa5c6c8={}){const _0x215fa0=_0x296bc0;let _0x37276b=this[_0x215fa0(0x256)](),_0x5df417=this[_0x215fa0(0x2b4)](_0xa5c6c8),_0x6f3b4d=Math[_0x215fa0(0x1bf)](0x0,_0xa5c6c8['offset']??0x0),_0x159648=_0xa5c6c8['limit']==null?null:Math[_0x215fa0(0x1bf)](0x0,_0xa5c6c8[_0x215fa0(0x1b9)]),_0x4a5ab7=_0x5e59c8(_0x5df417['map'](_0x4664cb=>_0x37276b['records'][_0x4664cb])['filter'](_0x2a4360=>_0x55c3ac(_0x2a4360,_0x37276b,_0xa5c6c8[_0x215fa0(0x24c)])),_0x37276b,_0xa5c6c8[_0x215fa0(0x228)]);return{'records':_0x33239c(_0x4a5ab7,_0xa5c6c8)['map'](_0x177f72=>this[_0x215fa0(0x27f)][_0x215fa0(0x2c5)](_0x5dd39f,this['_base'],this,_0x177f72['id'],this[_0x215fa0(0x27f)])),'total':_0x4a5ab7[_0x215fa0(0x279)],'offset':_0x6f3b4d,'limit':_0x159648,'hasMore':_0x159648!=null&&_0x6f3b4d+_0x159648<_0x4a5ab7['length']};}['addRecord'](_0x4b610d,_0x41b496='id',_0x13a4f8){const _0x243800=_0x296bc0;let _0x1d2b2e=this['_getTable'](),_0x5365a0=Date[_0x243800(0x31f)](),_0x480ef9={..._0x13a4f8,'id':(0x0,_0x40e1d2['generateRandomId'])(0x6),'values':_0x30eb85(_0x1d2b2e,_0x4b610d,_0x41b496),'orderKey':(_0x13a4f8==null?void 0x0:_0x13a4f8[_0x243800(0x331)])||''+_0x5365a0,'createdAt':(_0x13a4f8==null?void 0x0:_0x13a4f8[_0x243800(0x1aa)])||_0x5365a0,'updatedAt':(_0x13a4f8==null?void 0x0:_0x13a4f8['updatedAt'])||_0x5365a0};if(!this[_0x243800(0x29c)][_0x243800(0x2cc)](_0x333e56[_0x243800(0x222)]['id'],{'unitId':this[_0x243800(0x223)][_0x243800(0x257)](),'tableId':this[_0x243800(0x33a)],'record':_0x480ef9,'source':_0x333e56[_0x243800(0x2a9)][_0x243800(0x2f4)]}))throw Error(_0x243800(0x305)+_0x480ef9['id']+'\x22');return this[_0x243800(0x27f)]['createInstance'](_0x5dd39f,this['_base'],this,_0x480ef9['id'],this[_0x243800(0x27f)]);}[_0x296bc0(0x2a5)](_0x2d6f5e){const _0x1b2f85=_0x296bc0;if(!_0x2d6f5e[_0x1b2f85(0x279)])return[];let _0x1fe523=this[_0x1b2f85(0x256)](),_0x163692=Date[_0x1b2f85(0x31f)](),_0x4a2abd=_0x2d6f5e['map']((_0xf60399,_0x124247)=>{const _0xfe72c8=_0x1b2f85;var _0x3751ce,_0x5c8d24,_0x25ab68;return{..._0xf60399[_0xfe72c8(0x2c6)],'id':(0x0,_0x40e1d2['generateRandomId'])(0x6),'values':_0x30eb85(_0x1fe523,_0xf60399[_0xfe72c8(0x2d9)],_0xf60399[_0xfe72c8(0x2ab)]??'id'),'orderKey':((_0x3751ce=_0xf60399['record'])==null?void 0x0:_0x3751ce[_0xfe72c8(0x331)])||''+(_0x163692+_0x124247),'createdAt':((_0x5c8d24=_0xf60399['record'])==null?void 0x0:_0x5c8d24[_0xfe72c8(0x1aa)])||_0x163692,'updatedAt':((_0x25ab68=_0xf60399['record'])==null?void 0x0:_0x25ab68[_0xfe72c8(0x1af)])||_0x163692};});if(!this[_0x1b2f85(0x29c)][_0x1b2f85(0x2cc)](_0x333e56[_0x1b2f85(0x32f)]['id'],{'unitId':this[_0x1b2f85(0x223)][_0x1b2f85(0x257)](),'tableId':this[_0x1b2f85(0x33a)],'records':_0x4a2abd,'source':_0x333e56[_0x1b2f85(0x2a9)][_0x1b2f85(0x2f4)]}))throw Error('Failed\x20to\x20add\x20records');return _0x4a2abd[_0x1b2f85(0x1ff)](_0x3f4759=>this['_injector'][_0x1b2f85(0x2c5)](_0x5dd39f,this[_0x1b2f85(0x223)],this,_0x3f4759['id'],this[_0x1b2f85(0x27f)]));}['deleteRecords'](_0x4bee13){const _0x84158b=_0x296bc0;return!_0x4bee13['length']||this['_commandService'][_0x84158b(0x2cc)](_0x333e56[_0x84158b(0x28c)]['id'],{'unitId':this[_0x84158b(0x223)][_0x84158b(0x257)](),'tableId':this[_0x84158b(0x33a)],'recordIds':_0x4bee13,'source':_0x333e56[_0x84158b(0x2a9)]['Facade']});}['getRange'](_0x18623d,_0x582150,_0x49dc52=0x1,_0x1c5edb=0x1){const _0x221286=_0x296bc0;return this[_0x221286(0x27f)]['createInstance'](_0x109e9c,this[_0x221286(0x223)],this,{'startRow':_0x18623d,'endRow':_0x18623d+_0x49dc52-0x1,'startColumn':_0x582150,'endColumn':_0x582150+_0x1c5edb-0x1},this[_0x221286(0x27f)]);}['getDataRange'](){const _0x5af302=_0x296bc0;var _0x48b480;let _0x2ba9a8=(0x0,_0x333e56[_0x5af302(0x339)])(this[_0x5af302(0x256)]()),_0x232e65=((_0x48b480=_0x2ba9a8['recordOrder'])==null?void 0x0:_0x48b480['length'])??0x0,_0x50a982=_0x2ba9a8[_0x5af302(0x203)][_0x5af302(0x24c)](_0x2d0a77=>_0x281e4b(_0x2ba9a8[_0x5af302(0x335)][_0x2d0a77]))[_0x5af302(0x279)];return this[_0x5af302(0x2e4)](0x0,0x0,Math[_0x5af302(0x1bf)](_0x232e65,0x1),Math[_0x5af302(0x1bf)](_0x50a982,0x1));}[_0x296bc0(0x1c1)](){const _0x8b6056=_0x296bc0;let _0x34d197=this[_0x8b6056(0x256)]();return _0x34d197[_0x8b6056(0x1bd)][_0x8b6056(0x24c)](_0x2de386=>_0x34d197[_0x8b6056(0x27b)][_0x2de386])[_0x8b6056(0x1ff)](_0x4c8afa=>this[_0x8b6056(0x27f)][_0x8b6056(0x2c5)](_0x19efcd,this['_base'],this,_0x4c8afa,this[_0x8b6056(0x27f)]));}['getViewById'](_0x559291){const _0x47d0c8=_0x296bc0;return this[_0x47d0c8(0x256)]()[_0x47d0c8(0x27b)][_0x559291]?this[_0x47d0c8(0x27f)][_0x47d0c8(0x2c5)](_0x19efcd,this[_0x47d0c8(0x223)],this,_0x559291,this[_0x47d0c8(0x27f)]):null;}['getViewByName'](_0x2061f8){const _0x357d50=_0x296bc0;let _0x155e38=this[_0x357d50(0x256)](),_0x5a2797=Object[_0x357d50(0x2d9)](_0x155e38[_0x357d50(0x27b)])[_0x357d50(0x2c3)](_0x59ff6f=>_0x59ff6f[_0x357d50(0x300)]===_0x2061f8);return _0x5a2797?this['_injector'][_0x357d50(0x2c5)](_0x19efcd,this[_0x357d50(0x223)],this,_0x5a2797['id'],this[_0x357d50(0x27f)]):null;}[_0x296bc0(0x252)](_0x3410a2,_0x902aa,_0x2561e4){const _0x353a20=_0x296bc0;var _0x37b83f,_0x279a15,_0x454c6a,_0x58966e;let _0x363e4f=this[_0x353a20(0x256)](),_0x2eff35=[_0x40e1d2['BASE_RECORD_ID_FIELD_ID'],...((_0x2561e4==null||(_0x37b83f=_0x2561e4['view'])==null?void 0x0:_0x37b83f[_0x353a20(0x203)])??_0x363e4f[_0x353a20(0x203)])[_0x353a20(0x24c)](_0x431d91=>_0x281e4b(_0x363e4f[_0x353a20(0x335)][_0x431d91]))],_0x31ee2b={..._0x2561e4==null?void 0x0:_0x2561e4[_0x353a20(0x302)],'id':(0x0,_0x40e1d2[_0x353a20(0x251)])(0x6),'name':_0x3410a2,'type':_0x902aa,'tableId':this['_tableId'],'config':(_0x2561e4==null||(_0x279a15=_0x2561e4[_0x353a20(0x302)])==null?void 0x0:_0x279a15[_0x353a20(0x206)])??{},'fieldOrder':_0x2eff35,'fieldSettings':{..._0x2561e4==null||(_0x454c6a=_0x2561e4[_0x353a20(0x302)])==null?void 0x0:_0x454c6a[_0x353a20(0x1ae)],[_0x40e1d2['BASE_RECORD_ID_FIELD_ID']]:{..._0x2561e4==null||(_0x58966e=_0x2561e4[_0x353a20(0x302)])==null||(_0x58966e=_0x58966e['fieldSettings'])==null?void 0x0:_0x58966e[_0x40e1d2[_0x353a20(0x201)]],'hidden':!0x0}}};if(!this[_0x353a20(0x29c)][_0x353a20(0x2cc)](_0x333e56[_0x353a20(0x226)]['id'],{'unitId':this[_0x353a20(0x223)]['getId'](),'tableId':this[_0x353a20(0x33a)],'view':_0x31ee2b,'index':_0x2561e4==null?void 0x0:_0x2561e4[_0x353a20(0x30b)]}))throw Error(_0x353a20(0x1f0)+_0x3410a2+'\x22');return this[_0x353a20(0x27f)][_0x353a20(0x2c5)](_0x19efcd,this[_0x353a20(0x223)],this,_0x31ee2b['id'],this[_0x353a20(0x27f)]);}[_0x296bc0(0x202)](){const _0x65aad3=_0x296bc0;let _0x977cde=this[_0x65aad3(0x256)](),_0x42b7b3=_0x977cde[_0x65aad3(0x203)]['filter'](_0x487891=>_0x281e4b(_0x977cde[_0x65aad3(0x335)][_0x487891])),_0x10e2f7=_0x977cde['viewOrder'][_0x65aad3(0x24c)](_0x3365cb=>_0x977cde[_0x65aad3(0x27b)][_0x3365cb]);return{'id':_0x977cde['id'],'name':_0x977cde[_0x65aad3(0x300)],'primaryFieldId':_0x977cde[_0x65aad3(0x1f5)],'fieldIds':_0x42b7b3,'viewIds':_0x10e2f7,'recordCount':this[_0x65aad3(0x2b4)]()[_0x65aad3(0x279)],'fields':_0x42b7b3[_0x65aad3(0x1ff)](_0x45ddea=>{const _0x5db930=_0x65aad3;let _0x37a5fb=_0x977cde[_0x5db930(0x335)][_0x45ddea];return{'id':_0x37a5fb['id'],'name':_0x37a5fb['name'],'type':_0x37a5fb['type'],'config':_0x37a5fb[_0x5db930(0x206)],'readonly':_0x37a5fb[_0x5db930(0x20a)],'description':_0x37a5fb['description']};}),'views':_0x10e2f7[_0x65aad3(0x1ff)](_0x187881=>{const _0x74517e=_0x65aad3;let _0x51a538=_0x977cde[_0x74517e(0x27b)][_0x187881];return{'id':_0x51a538['id'],'name':_0x51a538[_0x74517e(0x300)],'type':_0x51a538[_0x74517e(0x324)]};})};}['_getTable'](){const _0xee35e9=_0x296bc0;let _0x12c2e6=this['_base'][_0xee35e9(0x1f6)]()[_0xee35e9(0x2b3)]()['tables'][this['_tableId']];if(!_0x12c2e6)throw Error(_0xee35e9(0x2c8)+this[_0xee35e9(0x33a)]+_0xee35e9(0x267));return _0x12c2e6;}[_0x296bc0(0x2b4)](_0x298e0f={}){const _0x377b10=_0x296bc0;let _0x34f7e0=this[_0x377b10(0x223)]['getBase']()[_0x377b10(0x2b3)](),_0x2be2ba=this[_0x377b10(0x256)]();if(_0x298e0f[_0x377b10(0x330)]){let _0xa5e907=this['_projectionService']['getProjection'](_0x34f7e0,this['_tableId'],_0x298e0f[_0x377b10(0x330)]);if(_0x377b10(0x1df)in _0xa5e907&&Array[_0x377b10(0x24b)](_0xa5e907[_0x377b10(0x1df)]))return _0xa5e907[_0x377b10(0x1df)]['map'](_0x1e3695=>_0x1e3695[_0x377b10(0x321)]);}return(_0x2be2ba['recordOrder']?_0x2be2ba['recordOrder'][_0x377b10(0x1ff)](_0x5d4485=>_0x2be2ba[_0x377b10(0x311)][_0x5d4485]):Object['values'](_0x2be2ba[_0x377b10(0x311)])[_0x377b10(0x228)]((_0x4f2d04,_0x57fe3c)=>_0x4f2d04['orderKey']['localeCompare'](_0x57fe3c['orderKey'])))[_0x377b10(0x24c)](_0x2a3ce9=>_0x2a3ce9)[_0x377b10(0x1ff)](_0x1a099a=>_0x1a099a['id']);}};_0x1bbc41=_0x243c93([_0x46a703(0x3,_0x40e1d2[_0x296bc0(0x1dc)]),_0x46a703(0x4,_0x333e56['IBaseProjectionService'])],_0x1bbc41);function _0x33239c(_0x4e0e0f,_0x390af4){const _0x3dc951=_0x296bc0;let _0x593200=Math[_0x3dc951(0x1bf)](0x0,_0x390af4[_0x3dc951(0x2df)]??0x0);return _0x390af4['limit']==null?_0x4e0e0f[_0x3dc951(0x1fd)](_0x593200):_0x4e0e0f[_0x3dc951(0x1fd)](_0x593200,_0x593200+Math[_0x3dc951(0x1bf)](0x0,_0x390af4[_0x3dc951(0x1b9)]));}function _0x5e59c8(_0xf35d73,_0x49794c,_0x3c5f32=[]){return _0x3c5f32['length']?[..._0xf35d73]['sort']((_0x573c64,_0x9bc5ca)=>{const _0x246a5c=_0x4e71;for(let _0x5d9551 of _0x3c5f32){var _0x458f6e;let _0x336c67=_0x5d9551[_0x246a5c(0x2f6)]===_0x40e1d2[_0x246a5c(0x2d8)][_0x246a5c(0x1c8)]?-0x1:0x1,_0x426a52=_0x153222(_0x573c64['values'][_0x5d9551[_0x246a5c(0x1f4)]],_0x9bc5ca[_0x246a5c(0x2d9)][_0x5d9551['fieldId']],(_0x458f6e=_0x49794c[_0x246a5c(0x335)][_0x5d9551[_0x246a5c(0x1f4)]])==null?void 0x0:_0x458f6e[_0x246a5c(0x324)]);if(_0x426a52!==0x0)return _0x426a52*_0x336c67;}return String(_0x573c64[_0x246a5c(0x331)]??_0x573c64['id'])[_0x246a5c(0x27d)](String(_0x9bc5ca[_0x246a5c(0x331)]??_0x9bc5ca['id']));}):_0xf35d73;}function _0x153222(_0x54fbca,_0x4f1338,_0x193da7){const _0x5cf013=_0x296bc0;return _0x54fbca==null&&_0x4f1338==null?0x0:_0x54fbca==null?-0x1:_0x4f1338==null?0x1:typeof _0x54fbca==_0x5cf013(0x28b)&&typeof _0x4f1338==_0x5cf013(0x28b)?_0x54fbca-_0x4f1338:_0x193da7===_0x40e1d2['BaseFieldType'][_0x5cf013(0x1e7)]?Number(_0x54fbca)-Number(_0x4f1338):String(_0x54fbca)['localeCompare'](String(_0x4f1338));}function _0x55c3ac(_0x56f645,_0x2b56b9,_0x20072f){const _0x3cf073=_0x296bc0;var _0x378c25;if(!_0x20072f||!((_0x378c25=_0x20072f[_0x3cf073(0x255)])!=null&&_0x378c25[_0x3cf073(0x279)]))return!0x0;let {conjunction:_0x311fc5=_0x40e1d2[_0x3cf073(0x30d)]['OR'],conditions:_0x153a53}=_0x20072f;return _0x311fc5===_0x40e1d2[_0x3cf073(0x30d)][_0x3cf073(0x2b2)]&&_0x153a53[_0x3cf073(0x279)]>0x1?_0x153a53[_0x3cf073(0x2c1)](_0x4dc759=>_0x1f1ed1(_0x56f645,_0x2b56b9,_0x4dc759)):_0x153a53[_0x3cf073(0x314)](_0x141bfb=>_0x1f1ed1(_0x56f645,_0x2b56b9,_0x141bfb));}function _0x1f1ed1(_0x467a88,_0x3ab753,_0x358745){const _0x22b74e=_0x296bc0;let _0x4308d4=_0x467a88['values'][_0x358745[_0x22b74e(0x1f4)]],_0x3d89d9=_0x3ab753[_0x22b74e(0x335)][_0x358745[_0x22b74e(0x1f4)]];if(_0xb3af29(_0x358745)){let _0xbe82c=_0x593733(_0x358745)[_0x22b74e(0x27e)](String(_0x4308d4??''));return _0x358745[_0x22b74e(0x288)]===_0x22b74e(0x31e)?_0xbe82c:!_0xbe82c;}return!_0x3d89d9||(0x0,_0x333e56[_0x22b74e(0x328)])(_0x4308d4,_0x358745['operator'],_0x358745[_0x22b74e(0x1cb)],_0x3d89d9);}function _0xb3af29(_0x215e79){const _0x1e6f95=_0x296bc0;return _0x215e79['operator']===_0x1e6f95(0x31e)||_0x215e79[_0x1e6f95(0x288)]==='notMatches';}function _0x593733(_0xb96ded){const _0x237bb2=_0x296bc0;let _0x47e55c=String(_0xb96ded[_0x237bb2(0x1cb)]??'');if(_0x47e55c['length']>0x200)throw Error(_0x237bb2(0x30e));try{return new RegExp(_0x47e55c,_0xb96ded[_0x237bb2(0x243)]?void 0x0:'i');}catch(_0x2c691d){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x47e55c+'.\x20'+(_0x2c691d instanceof Error?_0x2c691d['message']:String(_0x2c691d)));}}function _0x5dedcf(_0x4026a4,_0x45c29f,_0x397cfa){const _0x284ed1=_0x296bc0;if(_0x397cfa['type']!==_0x284ed1(0x1ab)){var _0x3f06ed;if(_0x397cfa['type']===_0x40e1d2[_0x284ed1(0x258)][_0x284ed1(0x33b)]){var _0x20725f;let _0x1a11c9=[((_0x20725f=_0x397cfa[_0x284ed1(0x335)])==null||(_0x20725f=_0x20725f[0x0])==null?void 0x0:_0x20725f['id'])??_0x4026a4[_0x284ed1(0x1f5)],..._0x397cfa[_0x284ed1(0x2b7)]??[]];return Array[_0x284ed1(0x2aa)](new Set(_0x1a11c9[_0x284ed1(0x24c)](_0x3a1195=>!!_0x4026a4[_0x284ed1(0x335)][_0x3a1195])));}if((_0x3f06ed=_0x397cfa[_0x284ed1(0x335)])!=null&&_0x3f06ed[_0x284ed1(0x279)])return _0x397cfa[_0x284ed1(0x335)]['map'](_0x45a1a5=>_0x45a1a5['id'])['filter'](_0x3810f8=>{const _0x17bb73=_0x284ed1;var _0x49b7d9;return!!(_0x4026a4[_0x17bb73(0x335)][_0x3810f8]&&!(_0x45c29f!=null&&(_0x49b7d9=_0x45c29f[_0x17bb73(0x1ae)])!=null&&(_0x49b7d9=_0x49b7d9[_0x3810f8])!=null&&_0x49b7d9['hidden']));});}return _0x4026a4['fieldOrder'][_0x284ed1(0x24c)](_0x21d80c=>{const _0x498da6=_0x284ed1;var _0x202bbc;return!!(_0x4026a4[_0x498da6(0x335)][_0x21d80c]&&!(_0x45c29f!=null&&(_0x202bbc=_0x45c29f['fieldSettings'])!=null&&(_0x202bbc=_0x202bbc[_0x21d80c])!=null&&_0x202bbc['hidden']));});}let _0x390394=class{constructor(_0xdd0547,_0x49f9d0,_0x532cc2,_0x52ba7f){const _0x183edd=_0x296bc0;this[_0x183edd(0x223)]=_0xdd0547,this[_0x183edd(0x27f)]=_0x49f9d0,this['_resourceLoaderService']=_0x532cc2,this['_commandService']=_0x52ba7f;}[_0x296bc0(0x1f6)](){const _0x53270e=_0x296bc0;return this[_0x53270e(0x223)];}[_0x296bc0(0x257)](){return this['_base']['getUnitId']();}[_0x296bc0(0x21b)](){const _0x8044b6=_0x296bc0;return this[_0x8044b6(0x1ba)][_0x8044b6(0x285)](this[_0x8044b6(0x257)]())??_0x40e1d2[_0x8044b6(0x229)][_0x8044b6(0x29e)](this[_0x8044b6(0x223)][_0x8044b6(0x2b3)]());}[_0x296bc0(0x290)](){const _0x4639ee=_0x296bc0;return this[_0x4639ee(0x223)]['getSnapshot']()[_0x4639ee(0x300)];}['setName'](_0xd020e6){const _0x2d8e80=_0x296bc0;this[_0x2d8e80(0x29c)][_0x2d8e80(0x2cc)](_0x333e56[_0x2d8e80(0x260)]['id'],{'unitId':this['getId'](),'name':_0xd020e6});}[_0x296bc0(0x272)](){const _0x1a194e=_0x296bc0;let _0x19df37=this[_0x1a194e(0x223)][_0x1a194e(0x2b3)]();return _0x19df37[_0x1a194e(0x2c4)]['map'](_0x1a5c3b=>_0x19df37[_0x1a194e(0x1ec)][_0x1a5c3b])['filter'](_0x18958e=>_0x18958e)[_0x1a194e(0x1ff)](_0x4ac81d=>this[_0x1a194e(0x27f)][_0x1a194e(0x2c5)](_0x1bbc41,this,_0x4ac81d['id'],this['_injector']));}['getTableById'](_0x284a07){const _0x19ea3e=_0x296bc0;let _0x4817cc=this['_base']['getSnapshot']()[_0x19ea3e(0x1ec)][_0x284a07];return _0x4817cc?this[_0x19ea3e(0x27f)][_0x19ea3e(0x2c5)](_0x1bbc41,this,_0x4817cc['id'],this[_0x19ea3e(0x27f)]):null;}[_0x296bc0(0x2c9)](_0x4c9e38){const _0x4c1bb2=_0x296bc0;let _0x5b2154=this['_base'][_0x4c1bb2(0x2b3)](),_0x2fa79c=Object['values'](_0x5b2154[_0x4c1bb2(0x1ec)])[_0x4c1bb2(0x2c3)](_0x15eac9=>_0x15eac9[_0x4c1bb2(0x300)]===_0x4c9e38);return _0x2fa79c?this['_injector']['createInstance'](_0x1bbc41,this,_0x2fa79c['id'],this[_0x4c1bb2(0x27f)]):null;}[_0x296bc0(0x21d)](_0x476b58,_0x95dd69){const _0x237443=_0x296bc0;let _0x195a79=(0x0,_0x40e1d2['createDefaultBaseTableSnapshot'])({'id':(0x0,_0x40e1d2[_0x237443(0x251)])(),'name':_0x476b58,..._0x95dd69==null?void 0x0:_0x95dd69['table'],'primaryFieldName':_0x95dd69==null?void 0x0:_0x95dd69['primaryFieldName']}),_0x5a3774=_0x40e1d2[_0x237443(0x229)][_0x237443(0x1ac)](_0x195a79,(_0x95dd69==null?void 0x0:_0x95dd69[_0x237443(0x33c)])??{});if(!this[_0x237443(0x29c)][_0x237443(0x2cc)](_0x333e56[_0x237443(0x242)]['id'],{'unitId':this[_0x237443(0x223)][_0x237443(0x2d2)](),'table':_0x5a3774,'index':_0x95dd69==null?void 0x0:_0x95dd69[_0x237443(0x30b)]}))throw Error('Failed\x20to\x20create\x20table\x20\x22'+_0x476b58+'\x22.');return this[_0x237443(0x27f)][_0x237443(0x2c5)](_0x1bbc41,this,_0x5a3774['id'],this[_0x237443(0x27f)]);}[_0x296bc0(0x2a8)](_0x2ec97e){const _0x33282f=_0x296bc0;let _0x445dec=typeof _0x2ec97e==_0x33282f(0x1b1)?_0x2ec97e:_0x2ec97e[_0x33282f(0x257)]();if(!this['_commandService'][_0x33282f(0x2cc)](_0x333e56[_0x33282f(0x232)]['id'],{'unitId':this[_0x33282f(0x223)][_0x33282f(0x2d2)](),'tableId':_0x445dec}))throw Error(_0x33282f(0x26d)+_0x445dec+'\x22.');return!0x0;}[_0x296bc0(0x2f2)](_0x5b9ac6,_0x435549){const _0x536f0a=_0x296bc0;let _0x51f18e=this[_0x536f0a(0x223)][_0x536f0a(0x2b3)](),_0x255ff7=typeof _0x5b9ac6=='string'?_0x5b9ac6:_0x5b9ac6['getId'](),_0x1733b0=_0x51f18e[_0x536f0a(0x1ec)][_0x255ff7];if(!_0x1733b0)throw Error(_0x536f0a(0x2e9)+_0x255ff7+_0x536f0a(0x267));let _0x7948f5=_0x51f18e[_0x536f0a(0x2c4)][_0x536f0a(0x263)](_0x255ff7)+0x1,_0x1a5abb=(0x0,_0x333e56[_0x536f0a(0x1d4)])(_0x1733b0,{'id':(0x0,_0x40e1d2['generateRandomId'])(),'name':_0x1733b0[_0x536f0a(0x300)]+_0x536f0a(0x1dd),'includeRecords':(_0x435549==null?void 0x0:_0x435549[_0x536f0a(0x26f)])??!0x1,'regenerateViewIds':(_0x435549==null?void 0x0:_0x435549[_0x536f0a(0x1cd)])??!0x1});if(!this[_0x536f0a(0x29c)][_0x536f0a(0x2cc)](_0x333e56[_0x536f0a(0x242)]['id'],{'unitId':this[_0x536f0a(0x223)][_0x536f0a(0x2d2)](),'table':_0x1a5abb,'index':_0x7948f5}))throw Error(_0x536f0a(0x1cf)+_0x255ff7+'\x22.');return this[_0x536f0a(0x27f)][_0x536f0a(0x2c5)](_0x1bbc41,this,_0x1a5abb['id'],this[_0x536f0a(0x27f)]);}[_0x296bc0(0x202)](){const _0x4ce7f8=_0x296bc0;let _0x29e7ee=this[_0x4ce7f8(0x223)][_0x4ce7f8(0x2b3)]();return{'id':_0x29e7ee['id'],'name':_0x29e7ee[_0x4ce7f8(0x300)],'tables':this[_0x4ce7f8(0x272)]()[_0x4ce7f8(0x1ff)](_0x103cc7=>_0x103cc7[_0x4ce7f8(0x202)]())};}};_0x390394=_0x243c93([_0x46a703(0x1,(0x0,_0x40e1d2[_0x296bc0(0x1c7)])(_0x40e1d2['Injector'])),_0x46a703(0x2,_0x40e1d2[_0x296bc0(0x1b6)]),_0x46a703(0x3,_0x40e1d2[_0x296bc0(0x1dc)])],_0x390394);var _0x1464fd=class extends _0x224d22[_0x296bc0(0x21e)]{[_0x296bc0(0x1db)](){const _0x3d88a8=_0x296bc0;this[_0x3d88a8(0x2dd)](),this[_0x3d88a8(0x254)]();}[_0x296bc0(0x247)](_0xab9cbf={},_0x58ade8){const _0x5366ad=_0x296bc0;let _0x54ef74=this[_0x5366ad(0x1b7)][_0x5366ad(0x2bc)](_0x40e1d2[_0x5366ad(0x264)]['UNIVER_BASE'],_0xab9cbf,_0x58ade8);return this[_0x5366ad(0x27f)][_0x5366ad(0x2c5)](_0x390394,_0x54ef74);}[_0x296bc0(0x2e8)](){const _0x33d410=_0x296bc0;let _0x15d454=this[_0x33d410(0x1b7)][_0x33d410(0x1fb)](_0x40e1d2[_0x33d410(0x264)]['UNIVER_BASE']);return _0x15d454?this[_0x33d410(0x27f)][_0x33d410(0x2c5)](_0x390394,_0x15d454):null;}[_0x296bc0(0x1f6)](_0x399b28){const _0x34da1f=_0x296bc0;let _0x1024a9=this[_0x34da1f(0x1b7)][_0x34da1f(0x281)](_0x399b28,_0x40e1d2[_0x34da1f(0x264)][_0x34da1f(0x1f9)]);return _0x1024a9?this[_0x34da1f(0x27f)][_0x34da1f(0x2c5)](_0x390394,_0x1024a9):null;}[_0x296bc0(0x231)](){const _0x16f48c=_0x296bc0;return this[_0x16f48c(0x1b7)][_0x16f48c(0x30f)](_0x40e1d2['UniverInstanceType'][_0x16f48c(0x1f9)])['map'](_0x33daa5=>this[_0x16f48c(0x27f)]['createInstance'](_0x390394,_0x33daa5));}['_initBaseAfterEvents'](){const _0x5073ad=_0x296bc0;this[_0x5073ad(0x2eb)](this['registerEventHandler'](this[_0x5073ad(0x200)][_0x5073ad(0x236)],()=>this[_0x5073ad(0x29c)][_0x5073ad(0x332)]((_0x2f2c89,_0x37d39f)=>{const _0xdaa490=_0x5073ad;var _0x4e454a;if(!_0x2f1f98(_0x2f2c89,_0x333e56[_0xdaa490(0x2e3)]))return;let _0x130178=_0x2f2c89[_0xdaa490(0x22d)];if(!((_0x4e454a=_0x130178['hierarchyChanges'])!=null&&_0x4e454a['length']))return;let _0xf9f51d=this[_0xdaa490(0x1f6)](_0x130178[_0xdaa490(0x2a7)]),_0x4bae30=_0xf9f51d==null?void 0x0:_0xf9f51d[_0xdaa490(0x213)](_0x130178[_0xdaa490(0x2bb)][0x0][_0xdaa490(0x1d0)]);if(!_0xf9f51d||!_0x4bae30)return;let _0x36498c={'base':_0xf9f51d,'table':_0x4bae30,'changes':_0x130178['hierarchyChanges'],'source':_0x37d39f!=null&&_0x37d39f[_0xdaa490(0x2ce)]?_0x333e56[_0xdaa490(0x2a9)][_0xdaa490(0x230)]:_0x130178[_0xdaa490(0x308)]??_0x333e56[_0xdaa490(0x2a9)]['UI']};this['fireEvent'](this['Event']['BaseHierarchyChanged'],_0x36498c);}))),this[_0x5073ad(0x2eb)](this[_0x5073ad(0x2cf)](this[_0x5073ad(0x200)][_0x5073ad(0x271)],()=>this['_commandService'][_0x5073ad(0x332)](_0x165125=>{const _0x367e30=_0x5073ad;if(_0x165125['id']!==_0x333e56['CreateBaseTableCommand']['id'])return;let {unitId:_0x210b3c,table:_0x438bec,index:_0xf05a61}=_0x165125['params'],_0x351236=this[_0x367e30(0x1f6)](_0x210b3c);if(!_0x351236)return;let _0x5b0e18={'base':_0x351236,'table':_0x438bec,'index':_0xf05a61};this[_0x367e30(0x1c5)](this[_0x367e30(0x200)]['BaseTableCreated'],_0x5b0e18);}))),this[_0x5073ad(0x2eb)](this[_0x5073ad(0x2cf)](this[_0x5073ad(0x200)][_0x5073ad(0x2e2)],()=>this[_0x5073ad(0x29c)][_0x5073ad(0x332)](_0x23318e=>{const _0x1c3160=_0x5073ad;if(_0x23318e['id']!==_0x333e56[_0x1c3160(0x32b)]['id'])return;let {unitId:_0x3cca6a,tableId:_0x1c9578,field:_0x53fe28,index:_0x56ba20,viewIndexes:_0x3aa0f6}=_0x23318e['params'],_0x18b4ac=this[_0x1c3160(0x1f6)](_0x3cca6a);if(!_0x18b4ac)return;let _0x729f08=_0x18b4ac['getTableById'](_0x1c9578);if(!_0x729f08)return;let _0x499086={'base':_0x18b4ac,'table':_0x729f08,'field':_0x53fe28,'index':_0x56ba20,'viewIndexes':_0x3aa0f6};this['fireEvent'](this['Event'][_0x1c3160(0x2e2)],_0x499086);}))),this[_0x5073ad(0x2eb)](this['registerEventHandler'](this[_0x5073ad(0x200)][_0x5073ad(0x307)],()=>this['_commandService']['onCommandExecuted'](_0x16ae29=>{const _0x1ffc40=_0x5073ad;if(_0x16ae29['id']!==_0x333e56[_0x1ffc40(0x222)]['id']&&_0x16ae29['id']!==_0x333e56[_0x1ffc40(0x32f)]['id'])return;let _0x4288bf=_0x16ae29['params'],{unitId:_0x5ac86b,tableId:_0x182560}=_0x4288bf,_0x531199=_0x4288bf['records']??[_0x4288bf['record']],_0x3d7654=this['getBase'](_0x5ac86b);if(!_0x3d7654)return;let _0x3ad7d4=_0x3d7654['getTableById'](_0x182560);if(!_0x3ad7d4)return;let _0x12fbca={'base':_0x3d7654,'table':_0x3ad7d4,'records':_0x531199};this[_0x1ffc40(0x1c5)](this[_0x1ffc40(0x200)][_0x1ffc40(0x307)],_0x12fbca);}))),this['disposeWithMe'](this[_0x5073ad(0x2cf)](this[_0x5073ad(0x200)]['BaseTableViewCreated'],()=>this[_0x5073ad(0x29c)]['onCommandExecuted'](_0x3aed1d=>{const _0x31ffc8=_0x5073ad;if(_0x3aed1d['id']!==_0x333e56['CreateBaseViewCommand']['id'])return;let {unitId:_0x54856b,tableId:_0x1581bd,view:_0x43095f,index:_0x8ad0ed}=_0x3aed1d['params'],_0x2b63b4=this[_0x31ffc8(0x1f6)](_0x54856b);if(!_0x2b63b4)return;let _0x613280=_0x2b63b4[_0x31ffc8(0x213)](_0x1581bd);if(!_0x613280)return;let _0x1a4013={'base':_0x2b63b4,'table':_0x613280,'view':_0x43095f,'index':_0x8ad0ed};this[_0x31ffc8(0x1c5)](this[_0x31ffc8(0x200)][_0x31ffc8(0x28d)],_0x1a4013);}))),this[_0x5073ad(0x2eb)](this['registerEventHandler'](this['Event']['BaseTableCellValueChanged'],()=>this[_0x5073ad(0x29c)][_0x5073ad(0x332)](_0x86bc86=>{const _0x4b263a=_0x5073ad;if(_0x86bc86['id']!==_0x333e56[_0x4b263a(0x24d)]['id'])return;let {unitId:_0x11cfd4,tableId:_0x24785b,recordId:_0xad5653,fieldId:_0x35b065,value:_0x64764f}=_0x86bc86['params'],_0xe3691c=this['getBase'](_0x11cfd4);if(!_0xe3691c)return;let _0x51d371=_0xe3691c[_0x4b263a(0x213)](_0x24785b);if(!_0x51d371)return;let _0x317eac=_0x51d371['getFieldById'](_0x35b065);if(!_0x317eac)return;let _0x1051a5=_0x51d371['getRecordById'](_0xad5653);if(!_0x1051a5)return;let _0x43efac={'base':_0xe3691c,'table':_0x51d371,'field':_0x317eac,'record':_0x1051a5,'value':_0x64764f};this[_0x4b263a(0x1c5)](this[_0x4b263a(0x200)][_0x4b263a(0x26c)],_0x43efac);})));}[_0x296bc0(0x2dd)](){const _0x185e32=_0x296bc0;this[_0x185e32(0x2eb)](this['registerEventHandler'](this[_0x185e32(0x200)][_0x185e32(0x1c6)],()=>this[_0x185e32(0x29c)][_0x185e32(0x1b2)](_0x41265e=>{const _0x3ff678=_0x185e32;if(_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x2e6)])){let {unitId:_0x3defc9,tableId:_0x18689d,patches:_0x50dad7,source:_0x27c0f1=_0x333e56['BaseEventSource']['UI']}=_0x41265e['params'],_0x505578=this[_0x3ff678(0x333)](_0x3defc9,_0x18689d);if(!_0x505578)return;this[_0x3ff678(0x284)](_0x505578[_0x3ff678(0x316)],_0x505578[_0x3ff678(0x33c)],(0x0,_0x333e56['validateBaseHierarchyRecordPatches'])(_0x505578['table'][_0x3ff678(0x248)](),_0x50dad7),_0x27c0f1);return;}if(_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x298)])){let {unitId:_0x31e34a,tableId:_0x4a985e,patches:_0x59364a,source:_0x27c0ac=_0x333e56[_0x3ff678(0x2a9)]['UI']}=_0x41265e['params'],_0x5d655e=this[_0x3ff678(0x333)](_0x31e34a,_0x4a985e);if(!_0x5d655e)return;let _0x5c24d2=_0x5d655e['table'][_0x3ff678(0x248)]();this[_0x3ff678(0x284)](_0x5d655e[_0x3ff678(0x316)],_0x5d655e[_0x3ff678(0x33c)],(0x0,_0x333e56['validateBaseHierarchyRecordPatches'])(_0x5c24d2,(0x0,_0x333e56[_0x3ff678(0x20c)])(_0x5c24d2,_0x59364a)),_0x27c0ac);return;}if(_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x222)])){let _0x5d930f=_0x41265e[_0x3ff678(0x22d)],_0x4c16ce=this[_0x3ff678(0x333)](_0x5d930f[_0x3ff678(0x2a7)],_0x5d930f['tableId']);if(!_0x4c16ce)return;this['_fireBeforeHierarchyChange'](_0x4c16ce[_0x3ff678(0x316)],_0x4c16ce[_0x3ff678(0x33c)],(0x0,_0x333e56['validateBaseHierarchyRecordCreations'])(_0x4c16ce['table'][_0x3ff678(0x248)](),[_0x5d930f['record']]),_0x5d930f[_0x3ff678(0x308)]??_0x333e56[_0x3ff678(0x2a9)]['UI']);return;}if(_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x32f)])){let _0x5b99d8=_0x41265e[_0x3ff678(0x22d)],_0x4be3a9=this[_0x3ff678(0x333)](_0x5b99d8[_0x3ff678(0x2a7)],_0x5b99d8[_0x3ff678(0x1d0)]);if(!_0x4be3a9)return;this[_0x3ff678(0x284)](_0x4be3a9[_0x3ff678(0x316)],_0x4be3a9['table'],(0x0,_0x333e56[_0x3ff678(0x268)])(_0x4be3a9[_0x3ff678(0x33c)][_0x3ff678(0x248)](),_0x5b99d8[_0x3ff678(0x311)]),_0x5b99d8['source']??_0x333e56['BaseEventSource']['UI']);return;}if(_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x274)])){let _0x4d9401=_0x41265e['params'],_0x3e8154=this[_0x3ff678(0x333)](_0x4d9401[_0x3ff678(0x2a7)],_0x4d9401[_0x3ff678(0x1d0)]);if(!_0x3e8154)return;this['_fireBeforeHierarchyChange'](_0x3e8154[_0x3ff678(0x316)],_0x3e8154[_0x3ff678(0x33c)],(0x0,_0x333e56[_0x3ff678(0x268)])(_0x3e8154['table'][_0x3ff678(0x248)](),[_0x4d9401[_0x3ff678(0x2c6)]]),_0x4d9401[_0x3ff678(0x308)]??_0x333e56[_0x3ff678(0x2a9)]['UI']);return;}if(_0x2f1f98(_0x41265e,_0x333e56['MoveBaseHierarchyRecordCommand'])){let _0x7cc8e1=_0x41265e[_0x3ff678(0x22d)],_0x6a2ac7=this[_0x3ff678(0x333)](_0x7cc8e1['unitId'],_0x7cc8e1[_0x3ff678(0x1d0)]);if(!_0x6a2ac7)return;let _0x1cfcf3=_0x6a2ac7[_0x3ff678(0x33c)][_0x3ff678(0x248)](),_0x1623ae=_0x7cc8e1[_0x3ff678(0x1f4)]??(0x0,_0x333e56['resolveBaseHierarchyFieldId'])(_0x1cfcf3),_0x3c03aa=(0x0,_0x333e56[_0x3ff678(0x2b1)])(_0x1cfcf3,_0x1623ae)[_0x3ff678(0x22e)][_0x3ff678(0x32c)](_0x7cc8e1['recordId'])??null;this['_fireBeforeHierarchyChange'](_0x6a2ac7[_0x3ff678(0x316)],_0x6a2ac7['table'],[{'tableId':_0x7cc8e1[_0x3ff678(0x1d0)],'fieldId':_0x1623ae,'recordId':_0x7cc8e1[_0x3ff678(0x321)],'oldParentRecordId':_0x3c03aa,'parentRecordId':_0x7cc8e1['parentRecordId']}],_0x7cc8e1[_0x3ff678(0x308)]??_0x333e56[_0x3ff678(0x2a9)]['UI']);return;}if(_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x2ba)])){let _0x147744=_0x41265e[_0x3ff678(0x22d)],_0x3f1cf5=this[_0x3ff678(0x333)](_0x147744['unitId'],_0x147744[_0x3ff678(0x1d0)]);if(!_0x3f1cf5)return;let _0x491d86=_0x147744[_0x3ff678(0x1f4)]??(0x0,_0x333e56[_0x3ff678(0x296)])(_0x3f1cf5[_0x3ff678(0x33c)][_0x3ff678(0x248)]());this['_fireBeforeHierarchyChange'](_0x3f1cf5[_0x3ff678(0x316)],_0x3f1cf5[_0x3ff678(0x33c)],[{'tableId':_0x147744['tableId'],'fieldId':_0x491d86,'recordId':_0x147744[_0x3ff678(0x2c6)]['id'],'oldParentRecordId':null,'parentRecordId':_0x147744['parentRecordId']}],_0x147744[_0x3ff678(0x308)]??_0x333e56[_0x3ff678(0x2a9)]['UI']);return;}if(_0x2f1f98(_0x41265e,_0x333e56['DeleteBaseRecordCommand'])){let _0xec9b88=_0x41265e['params'],_0x15fe2d=this['_getHierarchyEventContext'](_0xec9b88[_0x3ff678(0x2a7)],_0xec9b88[_0x3ff678(0x1d0)]);if(!_0x15fe2d)return;this[_0x3ff678(0x284)](_0x15fe2d[_0x3ff678(0x316)],_0x15fe2d[_0x3ff678(0x33c)],(0x0,_0x333e56[_0x3ff678(0x2e1)])(_0x15fe2d[_0x3ff678(0x33c)][_0x3ff678(0x248)](),[_0xec9b88[_0x3ff678(0x321)]]),_0xec9b88[_0x3ff678(0x308)]??_0x333e56[_0x3ff678(0x2a9)]['UI']);return;}if(_0x2f1f98(_0x41265e,_0x333e56['BatchDeleteBaseRecordsCommand'])){let _0xc4e5ca=_0x41265e[_0x3ff678(0x22d)],_0x4f7b71=this['_getHierarchyEventContext'](_0xc4e5ca[_0x3ff678(0x2a7)],_0xc4e5ca[_0x3ff678(0x1d0)]);if(!_0x4f7b71)return;this[_0x3ff678(0x284)](_0x4f7b71[_0x3ff678(0x316)],_0x4f7b71[_0x3ff678(0x33c)],(0x0,_0x333e56[_0x3ff678(0x2e1)])(_0x4f7b71[_0x3ff678(0x33c)]['getTable'](),_0xc4e5ca[_0x3ff678(0x31d)]),_0xc4e5ca[_0x3ff678(0x308)]??_0x333e56['BaseEventSource']['UI']);return;}if(!_0x2f1f98(_0x41265e,_0x333e56[_0x3ff678(0x24d)]))return;let _0x24e342=_0x41265e[_0x3ff678(0x22d)],_0x2185bf=this[_0x3ff678(0x333)](_0x24e342[_0x3ff678(0x2a7)],_0x24e342[_0x3ff678(0x1d0)]);if(!_0x2185bf)return;let _0x250b03=_0x2185bf[_0x3ff678(0x33c)][_0x3ff678(0x248)]();if(!(0x0,_0x333e56[_0x3ff678(0x1d8)])(_0x250b03)[_0x3ff678(0x25a)](_0x24e342['fieldId']))return;let _0x43302e=(0x0,_0x333e56['buildBaseHierarchyIndex'])(_0x250b03,_0x24e342[_0x3ff678(0x1f4)])[_0x3ff678(0x22e)][_0x3ff678(0x32c)](_0x24e342['recordId'])??null,_0x29c95f=(0x0,_0x333e56[_0x3ff678(0x28f)])(_0x24e342[_0x3ff678(0x1cb)])[0x0]??null;_0x43302e!==_0x29c95f&&this[_0x3ff678(0x284)](_0x2185bf[_0x3ff678(0x316)],_0x2185bf['table'],[{'tableId':_0x24e342[_0x3ff678(0x1d0)],'fieldId':_0x24e342[_0x3ff678(0x1f4)],'recordId':_0x24e342[_0x3ff678(0x321)],'oldParentRecordId':_0x43302e,'parentRecordId':_0x29c95f}],_0x24e342['source']??_0x333e56[_0x3ff678(0x2a9)]['UI']);}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x185e32(0x200)]['BeforeBaseTableCreate'],()=>this[_0x185e32(0x29c)][_0x185e32(0x1b2)](_0x424854=>{const _0x495aa9=_0x185e32;if(_0x424854['id']!==_0x333e56['CreateBaseTableCommand']['id'])return;let {unitId:_0x46ce39,table:_0x5ec665,index:_0x3b9865}=_0x424854['params'],_0x481edc=this['getBase'](_0x46ce39);if(!_0x481edc)return;let _0x57ae7d={'base':_0x481edc,'table':_0x5ec665,'index':_0x3b9865};if(this[_0x495aa9(0x1c5)](this['Event']['BeforeBaseTableCreate'],_0x57ae7d),_0x57ae7d[_0x495aa9(0x32d)])throw new _0x40e1d2['CanceledError']();}))),this['disposeWithMe'](this[_0x185e32(0x2cf)](this[_0x185e32(0x200)][_0x185e32(0x278)],()=>this[_0x185e32(0x29c)]['beforeCommandExecuted'](_0x502421=>{const _0x186305=_0x185e32;if(_0x502421['id']!==_0x333e56[_0x186305(0x32b)]['id'])return;let {unitId:_0x2a2ab2,tableId:_0x4b8c51,field:_0x146236,index:_0x23742f,viewIndexes:_0x80dfc1}=_0x502421[_0x186305(0x22d)],_0x1bbbe3=this[_0x186305(0x1f6)](_0x2a2ab2);if(!_0x1bbbe3)return;let _0x5ddc2c=_0x1bbbe3['getTableById'](_0x4b8c51);if(!_0x5ddc2c)return;let _0x123672={'base':_0x1bbbe3,'table':_0x5ddc2c,'field':_0x146236,'index':_0x23742f,'viewIndexes':_0x80dfc1};if(this[_0x186305(0x1c5)](this[_0x186305(0x200)][_0x186305(0x278)],_0x123672),_0x123672[_0x186305(0x32d)])throw new _0x40e1d2[(_0x186305(0x1b3))]();}))),this[_0x185e32(0x2eb)](this[_0x185e32(0x2cf)](this[_0x185e32(0x200)][_0x185e32(0x2fe)],()=>this[_0x185e32(0x29c)]['beforeCommandExecuted'](_0x58f713=>{const _0x329000=_0x185e32;if(_0x58f713['id']!==_0x333e56[_0x329000(0x222)]['id']&&_0x58f713['id']!==_0x333e56[_0x329000(0x32f)]['id'])return;let _0x279c5d=_0x58f713[_0x329000(0x22d)],{unitId:_0xef4fda,tableId:_0x497797}=_0x279c5d,_0x3b8935=_0x279c5d['records']??[_0x279c5d['record']],_0x2374fc=this[_0x329000(0x1f6)](_0xef4fda);if(!_0x2374fc)return;let _0x55a9c1=_0x2374fc[_0x329000(0x213)](_0x497797);if(!_0x55a9c1)return;let _0x3d89a8={'base':_0x2374fc,'table':_0x55a9c1,'records':_0x3b8935};if(this['fireEvent'](this[_0x329000(0x200)]['BeforeBaseTableRecordCreate'],_0x3d89a8),_0x3d89a8[_0x329000(0x32d)])throw new _0x40e1d2['CanceledError']();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x185e32(0x200)]['BeforeBaseTableViewCreate'],()=>this[_0x185e32(0x29c)]['beforeCommandExecuted'](_0x33b9c=>{const _0xe7c8c9=_0x185e32;if(_0x33b9c['id']!==_0x333e56[_0xe7c8c9(0x226)]['id'])return;let {unitId:_0x4e8a5a,tableId:_0x3642f5,view:_0x54f607,index:_0x4d3e65}=_0x33b9c['params'],_0x1c3a3f=this[_0xe7c8c9(0x1f6)](_0x4e8a5a);if(!_0x1c3a3f)return;let _0x311fe3=_0x1c3a3f[_0xe7c8c9(0x213)](_0x3642f5);if(!_0x311fe3)return;let _0x5515a6={'base':_0x1c3a3f,'table':_0x311fe3,'view':_0x54f607,'index':_0x4d3e65};if(this['fireEvent'](this['Event'][_0xe7c8c9(0x1c4)],_0x5515a6),_0x5515a6['cancel'])throw new _0x40e1d2['CanceledError']();}))),this[_0x185e32(0x2eb)](this[_0x185e32(0x2cf)](this['Event'][_0x185e32(0x2f1)],()=>this[_0x185e32(0x29c)][_0x185e32(0x1b2)](_0x24a336=>{const _0x4118d5=_0x185e32;if(_0x24a336['id']!==_0x333e56[_0x4118d5(0x24d)]['id'])return;let {unitId:_0x4868e9,tableId:_0x98b958,recordId:_0x3a0603,fieldId:_0x2bd35d,value:_0x9ba212}=_0x24a336[_0x4118d5(0x22d)],_0xcddbd4=this[_0x4118d5(0x1f6)](_0x4868e9);if(!_0xcddbd4)return;let _0xf65784=_0xcddbd4[_0x4118d5(0x213)](_0x98b958);if(!_0xf65784)return;let _0xe7650e=_0xf65784['getFieldById'](_0x2bd35d);if(!_0xe7650e)return;let _0x421ab3=_0xf65784['getRecordById'](_0x3a0603);if(!_0x421ab3)return;let _0xff0e5={'base':_0xcddbd4,'table':_0xf65784,'field':_0xe7650e,'record':_0x421ab3,'value':_0x9ba212};if(this[_0x4118d5(0x1c5)](this[_0x4118d5(0x200)]['BeforeBaseTableCellValueChange'],_0xff0e5),_0xff0e5[_0x4118d5(0x32d)])throw new _0x40e1d2['CanceledError']();})));}[_0x296bc0(0x333)](_0xd32442,_0xaceb67){const _0x37ee53=_0x296bc0;let _0x225eb3=this[_0x37ee53(0x1f6)](_0xd32442),_0x2ee265=_0x225eb3==null?void 0x0:_0x225eb3['getTableById'](_0xaceb67);return _0x225eb3&&_0x2ee265?{'base':_0x225eb3,'table':_0x2ee265}:null;}['_fireBeforeHierarchyChange'](_0x2e6d00,_0x21e46e,_0x121649,_0xf33ec9){const _0x6654a3=_0x296bc0;if(!_0x121649[_0x6654a3(0x279)])return;let _0x46d08b={'base':_0x2e6d00,'table':_0x21e46e,'changes':_0x121649,'source':_0xf33ec9};if(this[_0x6654a3(0x1c5)](this[_0x6654a3(0x200)]['BeforeBaseHierarchyChange'],_0x46d08b),_0x46d08b[_0x6654a3(0x32d)])throw new _0x40e1d2['CanceledError']();}};function _0x2f1f98(_0x240b52,_0x2ae0ee){return _0x240b52['id']===_0x2ae0ee['id']&&_0x240b52['params']!==void 0x0;}_0x224d22[_0x296bc0(0x21e)][_0x296bc0(0x289)](_0x1464fd);var _0x5bba60=class extends _0x224d22['FEnum']{get[_0x296bc0(0x1d9)](){const _0x437e42=_0x296bc0;return _0x40e1d2[_0x437e42(0x1d9)];}get[_0x296bc0(0x30d)](){return _0x40e1d2['BaseFilterConjunction'];}get['BaseFilterOperator'](){return _0x40e1d2['BaseFilterOperator'];}get[_0x296bc0(0x207)](){return _0x4ed932;}get['BaseViewType'](){const _0x27f215=_0x296bc0;return _0x40e1d2[_0x27f215(0x258)];}get[_0x296bc0(0x293)](){return _0x40e1d2['BaseConditionalColorTarget'];}get[_0x296bc0(0x1f7)](){const _0x1256d3=_0x296bc0;return _0x40e1d2[_0x1256d3(0x1f7)];}get[_0x296bc0(0x2ef)](){const _0x2c4595=_0x296bc0;return _0x40e1d2[_0x2c4595(0x2ef)];}get[_0x296bc0(0x2d8)](){const _0x1a98a8=_0x296bc0;return _0x40e1d2[_0x1a98a8(0x2d8)];}get['BaseEventSource'](){return _0x333e56['BaseEventSource'];}get[_0x296bc0(0x2d4)](){const _0x1d5580=_0x296bc0;return _0x333e56[_0x1d5580(0x2d4)];}get[_0x296bc0(0x217)](){return _0x40e1d2['BaseHierarchyInvalidReason'];}get[_0x296bc0(0x1fe)](){const _0x12bc6a=_0x296bc0;return _0x40e1d2[_0x12bc6a(0x1fe)];}};_0x224d22[_0x296bc0(0x20d)][_0x296bc0(0x289)](_0x5bba60);var _0x823d07=class extends _0x224d22[_0x296bc0(0x1be)]{get[_0x296bc0(0x271)](){const _0x2cad24=_0x296bc0;return _0x2cad24(0x271);}get[_0x296bc0(0x294)](){const _0x888604=_0x296bc0;return _0x888604(0x294);}get[_0x296bc0(0x2e2)](){return'BaseTableFieldCreated';}get[_0x296bc0(0x278)](){return'BeforeBaseTableFieldCreate';}get['BaseTableRecordCreated'](){const _0x22050f=_0x296bc0;return _0x22050f(0x307);}get[_0x296bc0(0x2fe)](){const _0xbc680d=_0x296bc0;return _0xbc680d(0x2fe);}get['BaseTableViewCreated'](){const _0xe00e24=_0x296bc0;return _0xe00e24(0x28d);}get[_0x296bc0(0x1c4)](){const _0x17fd01=_0x296bc0;return _0x17fd01(0x1c4);}get[_0x296bc0(0x26c)](){const _0x5dad8c=_0x296bc0;return _0x5dad8c(0x26c);}get['BeforeBaseTableCellValueChange'](){const _0x8290cb=_0x296bc0;return _0x8290cb(0x2f1);}get[_0x296bc0(0x236)](){const _0x320b19=_0x296bc0;return _0x320b19(0x236);}get[_0x296bc0(0x1c6)](){const _0x13b0a4=_0x296bc0;return _0x13b0a4(0x1c6);}};_0x224d22['FEventName'][_0x296bc0(0x289)](_0x823d07),_0x39616e[_0x296bc0(0x207)]=_0x4ed932,Object[_0x296bc0(0x234)](_0x39616e,_0x296bc0(0x2ea),{'enumerable':!0x0,'get':function(){return _0x390394;}}),Object[_0x296bc0(0x234)](_0x39616e,_0x296bc0(0x2be),{'enumerable':!0x0,'get':function(){return _0x1bbc41;}}),Object[_0x296bc0(0x234)](_0x39616e,_0x296bc0(0x227),{'enumerable':!0x0,'get':function(){return _0x21a851;}}),Object[_0x296bc0(0x234)](_0x39616e,_0x296bc0(0x221),{'enumerable':!0x0,'get':function(){return _0x109e9c;}}),Object['defineProperty'](_0x39616e,_0x296bc0(0x23e),{'enumerable':!0x0,'get':function(){return _0x5dd39f;}}),Object[_0x296bc0(0x234)](_0x39616e,_0x296bc0(0x2d0),{'enumerable':!0x0,'get':function(){return _0x19efcd;}}),_0x39616e['FBasesEventNameMixin']=_0x823d07,_0x39616e[_0x296bc0(0x1d3)]=_0x1d3495,_0x39616e[_0x296bc0(0x23a)]=_0x30eb85;}));
|