@univerjs-pro/bases 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x19990d=_0x3b36;(function(_0x57b226,_0x347a63){const _0x372b9d=_0x3b36,_0x2e8d96=_0x57b226();while(!![]){try{const _0x2afe5b=parseInt(_0x372b9d(0x243))/0x1+parseInt(_0x372b9d(0x330))/0x2+parseInt(_0x372b9d(0x218))/0x3*(parseInt(_0x372b9d(0x28f))/0x4)+parseInt(_0x372b9d(0x283))/0x5*(parseInt(_0x372b9d(0x1ac))/0x6)+-parseInt(_0x372b9d(0x268))/0x7+parseInt(_0x372b9d(0x242))/0x8+-parseInt(_0x372b9d(0x257))/0x9;if(_0x2afe5b===_0x347a63)break;else _0x2e8d96['push'](_0x2e8d96['shift']());}catch(_0x34f5ee){_0x2e8d96['push'](_0x2e8d96['shift']());}}}(_0xbe4f,0x1f9e1),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x19990d(0x1dc)}));var e=Object[_0x19990d(0x334)],t=Object['defineProperty'],n=Object[_0x19990d(0x265)],r=Object[_0x19990d(0x312)],i=Object['getPrototypeOf'],a=Object[_0x19990d(0x255)][_0x19990d(0x27a)],o=(_0xf2c649,_0x499f0f,_0xdda0a3,_0x59c76b)=>{const _0x331f6a=_0x19990d;if(_0x499f0f&&typeof _0x499f0f==_0x331f6a(0x2d2)||typeof _0x499f0f==_0x331f6a(0x23a)){for(var _0x4f5373=r(_0x499f0f),_0x4493ed=0x0,_0x28407e=_0x4f5373[_0x331f6a(0x32b)],_0xd92980;_0x4493ed<_0x28407e;_0x4493ed++)_0xd92980=_0x4f5373[_0x4493ed],!a[_0x331f6a(0x227)](_0xf2c649,_0xd92980)&&_0xd92980!==_0xdda0a3&&t(_0xf2c649,_0xd92980,{'get':(_0x243037=>_0x499f0f[_0x243037])[_0x331f6a(0x201)](null,_0xd92980),'enumerable':!(_0x59c76b=n(_0x499f0f,_0xd92980))||_0x59c76b[_0x331f6a(0x250)]});}return _0xf2c649;},s=(_0x2d1247,_0x144999,_0x55a00d)=>(_0x55a00d=_0x2d1247==null?{}:e(i(_0x2d1247)),o(_0x144999||!_0x2d1247||!_0x2d1247[_0x19990d(0x2f8)]||!a[_0x19990d(0x227)](_0x2d1247,_0x19990d(0x318))?t(_0x55a00d,_0x19990d(0x318),{'value':_0x2d1247,'enumerable':!0x0}):_0x55a00d,_0x2d1247));function _0xbe4f(){const _0x2861bc=['hierarchyChanges','UnitAction','getBaseTablePermissionObjectId','bind','clearConditionalColorRules','regenerateViewIds','recordOrder',',\x20range:\x20','config','getFieldSettings','getPoint','values','UpsertHostExternalReferencesCommand','registerEventHandler','Base\x20field\x20not\x20found:\x20','getAllUnitsForType','clear','FUniver','setLinkedRecordIds','Edit','localeCompare','DeleteBaseRecordCommand','getDescendants','DuplicateBaseRecordCommand','executeCommand','getSort','630XGhaKs','includes','Invalid\x20Base\x20regex\x20filter:\x20','Auto','fireEvent','isReadonly','cancel','UpdateBaseCellCommand','SetBasePermissionCommand','getTableById','deleteTable','caseSensitive','params','Failed\x20to\x20create\x20table\x20\x22','getView','call','Grid','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','DeleteBaseViewCommand','BeforeBaseTableViewCreate','Delete','ApplyBaseJson1Mutation','getType','addField','tableId','SetBaseRangeValuesCommand','rows','getBaseRecordPermissionObjectId','_initBaseBeforeEvents','getRecordById','forEach','flatMap','getPrimaryFieldId','_resolveRecordIds','function','targetTableId','matchesBaseCondition','UNIVER_BASE','valid','update','_base','[FRecord]:\x20record\x20\x22','1647768SVzSqM','16971ZpuGBz','getFilter','trim','Date','validateBaseTableName','FBaseObjectPermission','boolean','fields','parentByRecordId','validateBaseHierarchyRecordCreations','map','fromEntries','getPermission','enumerable','records','setReadOnly','from','\x20exceeds\x20range\x20size\x20','prototype','BaseTableViewCreated','3461958DlaXKi','type','includeRecords','FBaseTableField','now','getActiveBaseHierarchyFieldIds','saveUnit','DeleteBaseTableCommand','Invalid\x20Base\x20formula.','commonExtend','setFieldVisible','_recordId','orderKey','SetBaseViewFilterCommand','getOwnPropertyDescriptor','thumbnail','sourceType','265125vlwdrw','CreateBaseRecordCommand','reason','getDataRange','getName','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','getActiveBase','_getRecord','BaseTableRecordCreated','Failed\x20to\x20add\x20records','BaseEventSource','endColumn','Failed\x20to\x20add\x20field\x20\x22','BeforeBaseTableCellValueChange','duplicateTable','fieldOrder','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','externalReferences','hasOwnProperty','getTableId','SetBaseNameCommand','getLinkedRecordIds','BatchCreateBaseRecordsCommand','field','_getRecordLinkField','_baseTableId','_initBaseAfterEvents','4665zAYGaJ','getFields','_range','getFormulaName','Attachment','getAncestors','get','setValues','move','getDescription','[FRecord]:\x20RecordLink\x20field\x20\x22','getSnapshot','1604FtAkBW','BaseConditionalColorTarget','description','getRange','find','BatchDeleteBaseRecordsCommand','getBases','[FView]:\x20view\x20\x22','resolveBaseFieldValues','BaseHierarchyErrorCode','queryRecords','toPrimitive','fieldSettings','deleteRecords','getDefaultValue','Failed\x20to\x20create\x20view\x20\x22','syncExecuteCommand','Calendar','FBaseTableRecord','getId','getGroup','_getField','entries','setObjectPermissions','getTable','getRow','_initialize','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','BaseSortDirection','IBaseProjectionService','deepClone','BeforeBaseTableRecordCreate','getChildren','addChild','isArray','_commandService','createInstance','ICommandService','number','size','[FRecord]:\x20attachment\x20at\x20index\x20','setOrderKey','BeforeBaseTableCreate','FBase','URL','Event','setParent','resolveBaseHierarchyFieldId','endRow','createView','RenameBaseTableCommand','BaseFilterOperator','conditionalColoring','_fieldId','[FBaseRange]:\x20values\x20size\x20','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','_resourceLoaderService','setHierarchyField','searchBaseTable','some','parseRecordLinkIds','UpdateBaseViewConditionalColorRulesCommand','[FField]:\x20field\x20\x22','createUnit','Gantt','slice','FBaseInitialable','object','\x22.\x20','_univerInstanceService','BaseHierarchyChanged','moveField','\x20in\x20field\x20\x22','index','BaseRecordLinkRole','matches','multiple','\x22\x20has\x20invalid\x20config.','Set','system','setFilter','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','CreateBaseTableCommand','subtreeHeightByRecordId','views','FBaseTableRange','_getFieldIds','sort','Facade','Clear','fieldId','BASE64','getTables','height','fromCollab','getFieldById','setName','filter','Inject',':\x20\x22','tables','getValues','FBaseTable','BaseFieldKeyEnum','tableOrder','__esModule','string','addRecord','_prepareFormulaFieldReferences','ChangeBaseFieldTypeCommand','getViews','_permissionService','beforeFieldId','getBaseId','viewId','createdAt','_objectId','extend','group','FEventName','setValue','MoveBaseViewCommand','getConditionalColorRules','setSort','getBase','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','message','CreateBaseViewCommand','_getTable','changeType','Add','getOwnPropertyNames','CreateBaseFieldCommand','decorate','has','BaseConditionalDateMode','DeleteBaseFieldCommand','default','startRow','BaseFilterConjunction','orderedRecordIds','CanceledError','parentRecordId','fieldIds','FBasesEventNameMixin','url','unitId','Gallery','recordIds','custom','SetBaseViewFieldOrderCommand','getViewById','ImageSourceType','beforeCommandExecuted','every','BaseTableCellValueChanged','length','getRecords','getBaseHierarchyDeletePromotions','Injector','iterator','30744MtAcJF','_parentObjectIds','BASE_TABLE_NAME_REQUIREMENTS','auto','create','_inject','BaseTableFieldCreated','value','indexOf','DESC','\x20Copy','BASE_RECORD_ID_FIELD_ID','canEdit','SetBaseViewFieldVisibleCommand','BeforeBaseHierarchyChange','direction','source','setGroup','SetBaseRecordValuesCommand','Duplicate\x20Base\x20field\x20name:\x20','base','getSchema','RecordLink','_getView','IPermissionService','Kanban','_table','\x22\x20does\x20not\x20exist.','_projectionService','_viewId','setEditable','primaryFieldName','getParent','getViewByName','_tableId','setDefaultValue','getProjection','name','CreateBaseChildRecordCommand','symbol','search','buildBaseHierarchyIndex','BaseTableCreated','MoveBaseHierarchyRecordCommand','_baseUnitId','Invalid\x20attachment\x20at\x20index\x20','addConditionalColorRule','startColumn','record','BaseFieldType','_writeFormulaExternalReferences','view','Formula','1476dcyPNg','SetBasePermissionsCommand','getPrimaryField','canEditBaseTargets','BeforeBaseTableFieldCreate','width','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','onCommandExecuted','push','getNumColumns','Name','UniverInstanceType','_getHierarchyEventContext','offset','getColumn','getConfig','defineProperty','getBaseCellValue','ValidateBaseFormulaCommand','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','SetBaseTableHierarchyFieldCommand','[FRecord]:\x20field\x20\x22','getBaseViewPermissionObjectId','validateBaseHierarchyRecordPatches','hidden','getValue','data:','RenameBaseViewCommand',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','\x20for\x20field\x20\x22','getBaseFormulaTableName','FBasePermission','BaseConditionalColorRuleUpdateType','[FBaseRange]:\x20table\x20does\x20not\x20exist.','notMatches','getTableFacade','generateRandomId','_getHierarchyIndex','resolveBaseRangeHierarchyPatches','UpdateBaseViewConfigCommand','fieldKey','readonly','getUnitId','BaseHierarchyInvalidReason','getNumRows','_getAttachmentField','FEnum','getBasePermissionValue','Module','SetBaseViewGroupCommand','recordId','_fireBeforeHierarchyChange','Tools','deleteProperty','getFieldByName','max','BaseViewType','_assertInBounds','viewOrder','IResourceLoaderService','setAttachments','disposeWithMe','ensureBaseTableCellLayout','limit','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','UpdateBaseRecordOrderCommand','table','delete','childrenByParentId','validateRecordLinkValue','getField','operator','getAttachments','rowId','updatedAt','primaryFieldId','_injector','startsWith','MoveBaseFieldCommand','FBaseTableView','_unitId','warn'];_0xbe4f=function(){return _0x2861bc;};return _0xbe4f();}let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x40a711,_0x5348ac,_0x5b4bfc){const _0x27ead6=_0x19990d;this[_0x27ead6(0x1fc)]=_0x40a711,this['_commandService']=_0x5348ac,this[_0x27ead6(0x2fe)]=_0x5b4bfc;}async[_0x19990d(0x2a6)](_0x59ca28){const _0x547d65=_0x19990d;return this['_commandService']['executeCommand'](c[_0x547d65(0x1ad)]['id'],{'unitId':this[_0x547d65(0x1fc)],'changes':_0x59ca28});}async['setPoint'](_0x18453c,_0x2e19f6){const _0x38d38c=_0x19990d;await this[_0x38d38c(0x2b2)][_0x38d38c(0x216)](c[_0x38d38c(0x220)]['id'],{'unitId':this[_0x38d38c(0x1fc)],'objectId':this[_0x38d38c(0x1fc)],'action':_0x18453c,'value':_0x2e19f6});}[_0x19990d(0x208)](_0x4bb02f){const _0x1589cb=_0x19990d;return(0x0,c['getBasePermissionValue'])(this[_0x1589cb(0x2fe)],this['_unitId'],this[_0x1589cb(0x1fc)],_0x4bb02f);}async[_0x19990d(0x195)](_0x4b2cec=!0x0){const _0x3a67cc=_0x19990d;await this[_0x3a67cc(0x2b2)][_0x3a67cc(0x216)](c[_0x3a67cc(0x220)]['id'],{'unitId':this[_0x3a67cc(0x1fc)],'objectId':this[_0x3a67cc(0x1fc)],'action':d[_0x3a67cc(0x1ff)][_0x3a67cc(0x211)],'value':_0x4b2cec});}async[_0x19990d(0x252)](){const _0x349cd=_0x19990d;await this[_0x349cd(0x2b2)]['executeCommand'](c[_0x349cd(0x220)]['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':d[_0x349cd(0x1ff)][_0x349cd(0x211)],'value':!0x1});}[_0x19990d(0x33c)](){const _0x2f92e4=_0x19990d;return(0x0,c[_0x2f92e4(0x1db)])(this[_0x2f92e4(0x2fe)],this['_unitId'],this[_0x2f92e4(0x1fc)],d[_0x2f92e4(0x1ff)][_0x2f92e4(0x211)]);}},m=class{constructor(_0x15b120,_0x9480db,_0x4994d2,_0x540d19,_0x4df3d4){const _0x284374=_0x19990d;this[_0x284374(0x1fc)]=_0x15b120,this['_objectId']=_0x9480db,this[_0x284374(0x331)]=_0x4994d2,this[_0x284374(0x2b2)]=_0x540d19,this[_0x284374(0x2fe)]=_0x4df3d4;}async[_0x19990d(0x195)](_0x354860=!0x0){const _0x156d6b=_0x19990d;await this[_0x156d6b(0x2b2)][_0x156d6b(0x216)](c[_0x156d6b(0x220)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x156d6b(0x303)],'action':d[_0x156d6b(0x1ff)][_0x156d6b(0x211)],'value':_0x354860});}async['setReadOnly'](){const _0x7d96f5=_0x19990d;await this[_0x7d96f5(0x2b2)][_0x7d96f5(0x216)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x7d96f5(0x1fc)],'objectId':this[_0x7d96f5(0x303)],'action':d[_0x7d96f5(0x1ff)][_0x7d96f5(0x211)],'value':!0x1});}[_0x19990d(0x33c)](){const _0x51a2f3=_0x19990d;return(0x0,c[_0x51a2f3(0x1af)])(this[_0x51a2f3(0x2fe)],this['_unitId'],[...this[_0x51a2f3(0x331)],this[_0x51a2f3(0x303)]]);}};function h(_0x1ea718,_0xc62e2f){return function(_0x3ec094,_0x556e78){_0xc62e2f(_0x3ec094,_0x556e78,_0x1ea718);};}function g(_0x52ac27,_0x274594,_0x532af3,_0x5d1885){const _0x57dccb=_0x19990d;var _0x2e0810=arguments[_0x57dccb(0x32b)],_0x76b1d6=_0x2e0810<0x3?_0x274594:_0x5d1885===null?_0x5d1885=Object[_0x57dccb(0x265)](_0x274594,_0x532af3):_0x5d1885,_0x2887eb;if(typeof Reflect=='object'&&typeof Reflect[_0x57dccb(0x314)]==_0x57dccb(0x23a))_0x76b1d6=Reflect['decorate'](_0x52ac27,_0x274594,_0x532af3,_0x5d1885);else{for(var _0x157505=_0x52ac27[_0x57dccb(0x32b)]-0x1;_0x157505>=0x0;_0x157505--)(_0x2887eb=_0x52ac27[_0x157505])&&(_0x76b1d6=(_0x2e0810<0x3?_0x2887eb(_0x76b1d6):_0x2e0810>0x3?_0x2887eb(_0x274594,_0x532af3,_0x76b1d6):_0x2887eb(_0x274594,_0x532af3))||_0x76b1d6);}return _0x2e0810>0x3&&_0x76b1d6&&Object[_0x57dccb(0x1bc)](_0x274594,_0x532af3,_0x76b1d6),_0x76b1d6;}let _=class{constructor(_0x5d9704,_0x4242f2,_0x10e46d,_0x42d7ad,_0xe1d729){const _0x302385=_0x19990d;this[_0x302385(0x240)]=_0x5d9704,this[_0x302385(0x191)]=_0x4242f2,this[_0x302385(0x2c4)]=_0x10e46d,this[_0x302385(0x2b2)]=_0x42d7ad,this[_0x302385(0x2fe)]=_0xe1d729;}[_0x19990d(0x2a2)](){const _0x4b28b1=_0x19990d;return this[_0x4b28b1(0x2c4)];}[_0x19990d(0x24f)](){const _0x51d2ce=_0x19990d;let _0x2910f9=this[_0x51d2ce(0x191)][_0x51d2ce(0x2a2)]();return new m(this[_0x51d2ce(0x240)][_0x51d2ce(0x2a2)](),(0x0,c['getBaseFieldPermissionObjectId'])(_0x2910f9,this['_fieldId']),[(0x0,c[_0x51d2ce(0x200)])(_0x2910f9)],this['_commandService'],this['_permissionService']);}[_0x19990d(0x1f2)](){return this['_getField']();}[_0x19990d(0x26c)](){const _0x1a6892=_0x19990d;return this[_0x1a6892(0x2a4)]()['name'];}[_0x19990d(0x22e)](){const _0x1fb721=_0x19990d;return this['_getField']()[_0x1fb721(0x258)];}[_0x19990d(0x1bb)](){const _0x55271c=_0x19990d;return this[_0x55271c(0x2a4)]()[_0x55271c(0x206)];}[_0x19990d(0x29d)](){const _0x4ad4a0=_0x19990d;return this[_0x4ad4a0(0x2a4)]()['defaultValue'];}[_0x19990d(0x28c)](){const _0x47d248=_0x19990d;return this['_getField']()[_0x47d248(0x291)];}[_0x19990d(0x21d)](){const _0x28172d=_0x19990d;return!!this[_0x28172d(0x2a4)]()[_0x28172d(0x1d5)];}[_0x19990d(0x2ef)](_0x90c040){const _0xf49469=_0x19990d;return this[_0xf49469(0x23f)]({'name':_0x90c040});}['setConfig'](_0x2ed29e,_0x1094c5){const _0x1e7f26=_0x19990d;return this[_0x1e7f26(0x23f)]({'config':_0x2ed29e},_0x1094c5);}[_0x19990d(0x19a)](_0x1f9b6b){const _0x521b71=_0x19990d;return this[_0x521b71(0x23f)]({'defaultValue':_0x1f9b6b});}[_0x19990d(0x23f)](_0x366a10,_0x511a28){const _0x32166c=_0x19990d;let _0x14513d=this[_0x32166c(0x2a4)]()[_0x32166c(0x258)];return(_0x366a10[_0x32166c(0x258)]??_0x14513d)===l[_0x32166c(0x1a8)][_0x32166c(0x1ab)]&&(Object[_0x32166c(0x255)][_0x32166c(0x27a)]['call'](_0x366a10,_0x32166c(0x206))||_0x366a10[_0x32166c(0x258)]===l[_0x32166c(0x1a8)][_0x32166c(0x1ab)])&&!this[_0x32166c(0x1a9)](_0x511a28)?!0x1:this[_0x32166c(0x2b2)]['syncExecuteCommand'](c['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x32166c(0x240)][_0x32166c(0x2a2)](),'tableId':this[_0x32166c(0x191)][_0x32166c(0x2a2)](),'fieldId':this[_0x32166c(0x2c4)],'patch':_0x366a10});}[_0x19990d(0x310)](_0x222579,_0x5a08c7={},_0x2b00fa){const _0x5b7bc2=_0x19990d;return _0x222579===l[_0x5b7bc2(0x1a8)][_0x5b7bc2(0x1ab)]&&!this['_writeFormulaExternalReferences'](_0x2b00fa)?!0x1:this[_0x5b7bc2(0x2b2)][_0x5b7bc2(0x29f)](c[_0x5b7bc2(0x2fc)]['id'],{'unitId':this['_base'][_0x5b7bc2(0x2a2)](),'tableId':this[_0x5b7bc2(0x191)][_0x5b7bc2(0x2a2)](),'fieldId':this[_0x5b7bc2(0x2c4)],'input':{'type':_0x222579,'config':_0x5a08c7}});}[_0x19990d(0x1ef)](){const _0x11be6f=_0x19990d;return this[_0x11be6f(0x2b2)][_0x11be6f(0x29f)](c[_0x11be6f(0x317)]['id'],{'unitId':this['_base'][_0x11be6f(0x2a2)](),'tableId':this[_0x11be6f(0x191)][_0x11be6f(0x2a2)](),'fieldId':this[_0x11be6f(0x2c4)]});}['move'](_0x481e3b){const _0x403d2b=_0x19990d;return this['_commandService'][_0x403d2b(0x29f)](c[_0x403d2b(0x1fa)]['id'],{'unitId':this[_0x403d2b(0x240)][_0x403d2b(0x2a2)](),'tableId':this[_0x403d2b(0x191)]['getId'](),'fieldId':this[_0x403d2b(0x2c4)],'target':_0x481e3b});}[_0x19990d(0x2a4)](){const _0x2ca8c8=_0x19990d;let _0x484201=this[_0x2ca8c8(0x191)]['getTable']()['fields'][this[_0x2ca8c8(0x2c4)]];if(!_0x484201)throw Error(_0x2ca8c8(0x2cd)+this[_0x2ca8c8(0x2c4)]+_0x2ca8c8(0x192));return _0x484201;}[_0x19990d(0x1a9)](_0x191338){const _0x22ec85=_0x19990d;if(!_0x191338||!Array[_0x22ec85(0x2b1)](_0x191338[_0x22ec85(0x279)]))return console[_0x22ec85(0x1fd)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x191338['externalReferences'][_0x22ec85(0x32b)]===0x0)return!0x0;let _0x546ddc=this['_commandService'][_0x22ec85(0x29f)](f[_0x22ec85(0x20a)]['id'],{'unitId':this['_base'][_0x22ec85(0x2a2)](),'references':_0x191338[_0x22ec85(0x279)]});return _0x546ddc||console['warn'](_0x22ec85(0x2c6)),_0x546ddc;}};_=g([h(0x3,l[_0x19990d(0x2b4)]),h(0x4,l[_0x19990d(0x18f)])],_);let v=function(_0x22133b){const _0x58dd86=_0x19990d;return _0x22133b['Id']='id',_0x22133b[_0x58dd86(0x1b6)]='name',_0x22133b[_0x58dd86(0x21b)]=_0x58dd86(0x333),_0x22133b;}({});function y(_0x4fb628){const _0x5e047a=_0x19990d;return!!(_0x4fb628&&_0x4fb628[_0x5e047a(0x2de)]!==!0x0&&_0x4fb628[_0x5e047a(0x258)]!==l[_0x5e047a(0x1a8)]['RecordId']);}function b(_0x31fd82,_0xf8cd8b,_0x291168='id'){const _0x3a5382=_0x19990d;if(!_0xf8cd8b)return{};let _0x3dfd82={};return Object[_0x3a5382(0x2a5)](_0xf8cd8b)[_0x3a5382(0x236)](([_0x54ad1c,_0xf0d669])=>{const _0x6bd93c=_0x3a5382;let _0x4c37fd=S(_0x31fd82,_0x54ad1c,_0x291168);_0x3dfd82[_0x4c37fd]=x(_0x31fd82[_0x6bd93c(0x24a)][_0x4c37fd],_0xf0d669);}),_0x3dfd82;}function _0x3b36(_0x345776,_0x2e0f02){_0x345776=_0x345776-0x186;const _0xbe4f9c=_0xbe4f();let _0x3b36ff=_0xbe4f9c[_0x345776];return _0x3b36ff;}function x(_0x43ac9a,_0x9fdf41){const _0x2b0510=_0x19990d;if((_0x43ac9a==null?void 0x0:_0x43ac9a[_0x2b0510(0x258)])!==l[_0x2b0510(0x1a8)][_0x2b0510(0x287)]||_0x9fdf41==null)return _0x9fdf41;if(!Array[_0x2b0510(0x2b1)](_0x9fdf41))throw TypeError(_0x2b0510(0x1b2)+_0x43ac9a[_0x2b0510(0x19c)]+'\x22:\x20expected\x20an\x20array.');return _0x9fdf41['map']((_0x2fdaba,_0x134785)=>C(_0x43ac9a,_0x2fdaba,_0x134785));}function S(_0x773020,_0x51e925,_0x5bf23e){const _0x25f164=_0x19990d;if(_0x5bf23e==='id'||_0x5bf23e===_0x25f164(0x333)&&_0x773020[_0x25f164(0x24a)][_0x51e925])return _0x51e925;let _0xe3a3ef=Object['values'](_0x773020['fields'])['filter'](_0x3e0927=>_0x3e0927[_0x25f164(0x19c)]===_0x51e925);if(_0xe3a3ef[_0x25f164(0x32b)]===0x1)return _0xe3a3ef[0x0]['id'];throw _0xe3a3ef[_0x25f164(0x32b)]>0x1?Error(_0x25f164(0x18a)+_0x51e925):Error(_0x25f164(0x20c)+_0x51e925);}function C(_0x2f8a60,_0x1b5b1c,_0x2ccdf4){const _0x5d920f=_0x19990d;let _0x1a7303=_0x5d920f(0x1a4)+_0x2ccdf4+_0x5d920f(0x1c9)+_0x2f8a60[_0x5d920f(0x19c)]+'\x22';if(!O(_0x1b5b1c))throw TypeError(_0x1a7303+':\x20expected\x20an\x20object.');if(_0x5d920f(0x320)in _0x1b5b1c)throw TypeError(_0x1a7303+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x5d920f(0x258)in _0x1b5b1c)throw TypeError(_0x1a7303+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x28dbde=T(_0x1b5b1c['id'],_0x1a7303,'id'),_0x485f6e=T(_0x1b5b1c[_0x5d920f(0x19c)],_0x1a7303,_0x5d920f(0x19c)),_0x34df79=T(_0x1b5b1c[_0x5d920f(0x187)],_0x1a7303,_0x5d920f(0x187));return{'id':_0x28dbde,'name':_0x485f6e,'source':_0x34df79,'sourceType':w(_0x1b5b1c[_0x5d920f(0x267)],_0x34df79,_0x1a7303),...E(_0x1b5b1c,'mimeType',_0x1a7303),...D(_0x1b5b1c,_0x5d920f(0x2b6),_0x1a7303),...D(_0x1b5b1c,_0x5d920f(0x1b1),_0x1a7303),...D(_0x1b5b1c,_0x5d920f(0x2ec),_0x1a7303),...E(_0x1b5b1c,_0x5d920f(0x266),_0x1a7303)};}function w(_0x4270e6,_0x2a2303,_0x3d224b){const _0x354d0b=_0x19990d;if(_0x4270e6==null)return _0x2a2303[_0x354d0b(0x1f9)](_0x354d0b(0x1c6))?l[_0x354d0b(0x327)]['BASE64']:l[_0x354d0b(0x327)][_0x354d0b(0x2bb)];if(_0x4270e6===l[_0x354d0b(0x327)][_0x354d0b(0x2bb)]||_0x4270e6===l[_0x354d0b(0x327)]['UUID']||_0x4270e6===l[_0x354d0b(0x327)][_0x354d0b(0x2ea)])return _0x4270e6;throw TypeError(_0x3d224b+_0x354d0b(0x1c8));}function T(_0x56b3fd,_0x153cfe,_0x3d6b76){const _0x2821c3=_0x19990d;if(typeof _0x56b3fd!=_0x2821c3(0x2f9)||!_0x56b3fd['trim']())throw TypeError(_0x153cfe+_0x2821c3(0x2f2)+_0x3d6b76+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x56b3fd;}function E(_0x2f267a,_0x523c39,_0x369b53){const _0x5148da=_0x19990d;let _0x1a0d6e=_0x2f267a[_0x523c39];if(_0x1a0d6e==null)return{};if(typeof _0x1a0d6e!=_0x5148da(0x2f9)||!_0x1a0d6e[_0x5148da(0x245)]())throw TypeError(_0x369b53+_0x5148da(0x2f2)+_0x523c39+_0x5148da(0x1bf));return{[_0x523c39]:_0x1a0d6e};}function D(_0xe54a18,_0x34df0e,_0x1c6478){const _0x57bd3e=_0x19990d;let _0x1fff5a=_0xe54a18[_0x34df0e];if(_0x1fff5a==null)return{};if(typeof _0x1fff5a!=_0x57bd3e(0x2b5)||!Number['isFinite'](_0x1fff5a)||_0x1fff5a<0x0)throw TypeError(_0x1c6478+_0x57bd3e(0x2f2)+_0x34df0e+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x34df0e]:_0x1fff5a};}function O(_0x2b63dc){const _0xd1f96b=_0x19990d;return typeof _0x2b63dc==_0xd1f96b(0x2d2)&&!!_0x2b63dc&&!Array['isArray'](_0x2b63dc);}var k;let A=k=class{constructor(_0x56850e,_0xc6bfc4,_0x2e8d0b,_0x147354,_0x27ccef){const _0x23aa17=_0x19990d;this['_base']=_0x56850e,this[_0x23aa17(0x191)]=_0xc6bfc4,this['_range']=_0x2e8d0b,this[_0x23aa17(0x335)]=_0x147354,this['_commandService']=_0x27ccef,this[_0x23aa17(0x1e5)]();}[_0x19990d(0x300)](){const _0x35a5f3=_0x19990d;return this[_0x35a5f3(0x240)][_0x35a5f3(0x2a2)]();}[_0x19990d(0x27b)](){const _0xec1422=_0x19990d;return this[_0xec1422(0x191)]['getId']();}[_0x19990d(0x292)](){const _0x21f539=_0x19990d;return{...this[_0x21f539(0x285)]};}[_0x19990d(0x2a8)](){const _0xa8fa20=_0x19990d;return this['_range'][_0xa8fa20(0x319)];}[_0x19990d(0x1ba)](){const _0x51bfd3=_0x19990d;return this[_0x51bfd3(0x285)][_0x51bfd3(0x1a6)];}[_0x19990d(0x1d8)](){const _0x2d66ed=_0x19990d;return this['_range'][_0x2d66ed(0x2bf)]-this['_range'][_0x2d66ed(0x319)]+0x1;}[_0x19990d(0x1b5)](){const _0xaff768=_0x19990d;return this[_0xaff768(0x285)]['endColumn']-this[_0xaff768(0x285)][_0xaff768(0x1a6)]+0x1;}[_0x19990d(0x2f4)](){const _0x1709aa=_0x19990d;let _0x20c56b=this[_0x1709aa(0x30f)](),_0x4b6467=this[_0x1709aa(0x2e5)](_0x20c56b),_0x1893e8=[];for(let _0x1d1a51=this[_0x1709aa(0x285)][_0x1709aa(0x319)];_0x1d1a51<=this['_range']['endRow'];_0x1d1a51++){var _0x1080be;let _0x2b34c5=(_0x1080be=_0x20c56b[_0x1709aa(0x1f5)])==null?void 0x0:_0x1080be[_0x1d1a51],_0x3da390=[];for(let _0x5b15c6=this[_0x1709aa(0x285)][_0x1709aa(0x1a6)];_0x5b15c6<=this['_range'][_0x1709aa(0x273)];_0x5b15c6++){let _0x573c84=_0x4b6467[_0x5b15c6];_0x3da390[_0x1709aa(0x1b4)](_0x2b34c5&&_0x573c84?(0x0,c[_0x1709aa(0x1bd)])(_0x20c56b,_0x2b34c5,_0x573c84):null);}_0x1893e8[_0x1709aa(0x1b4)](_0x3da390);}return _0x1893e8;}['getValue'](){var _0x2d61b1;return((_0x2d61b1=this['getValues']()[0x0])==null?void 0x0:_0x2d61b1[0x0])??null;}[_0x19990d(0x307)](_0x19e279){const _0x56be15=_0x19990d;return this[_0x56be15(0x28a)]([[_0x19e279]]);}[_0x19990d(0x28a)](_0x11b4a1){const _0x39dbab=_0x19990d;let _0x3ea32c=this['getNumRows'](),_0x41505d=this[_0x39dbab(0x1b5)]();if(_0x11b4a1[_0x39dbab(0x32b)]>_0x3ea32c||_0x11b4a1['some'](_0x4bbe95=>_0x4bbe95[_0x39dbab(0x32b)]>_0x41505d)){var _0x43c3d9;throw Error(_0x39dbab(0x2c5)+_0x11b4a1[_0x39dbab(0x32b)]+'x'+(((_0x43c3d9=_0x11b4a1[0x0])==null?void 0x0:_0x43c3d9[_0x39dbab(0x32b)])??0x0)+_0x39dbab(0x254)+_0x3ea32c+'x'+_0x41505d+'.');}let _0x118c0f=this[_0x39dbab(0x30f)](),_0x229615=this[_0x39dbab(0x2e5)](_0x118c0f),_0x5af398=_0x11b4a1[_0x39dbab(0x237)]((_0x18d8df,_0x25f9ff)=>_0x18d8df[_0x39dbab(0x24d)]((_0x10db69,_0x572d93)=>{const _0x5b1cfc=_0x39dbab;var _0x1c72d1;let _0x5a53e6=this[_0x5b1cfc(0x285)][_0x5b1cfc(0x319)]+_0x25f9ff,_0x1192eb=_0x229615[this[_0x5b1cfc(0x285)][_0x5b1cfc(0x1a6)]+_0x572d93],_0x520edc=(_0x1c72d1=_0x118c0f['rowId'])==null?void 0x0:_0x1c72d1[_0x5a53e6];if(!_0x1192eb||!_0x520edc)throw Error(_0x5b1cfc(0x229));return{'recordId':_0x520edc,'fieldId':_0x1192eb,'value':_0x10db69};}));return this[_0x39dbab(0x2b2)][_0x39dbab(0x29f)](c[_0x39dbab(0x231)]['id'],{'unitId':this[_0x39dbab(0x240)][_0x39dbab(0x2a2)](),'tableId':this[_0x39dbab(0x191)][_0x39dbab(0x2a2)](),'patches':_0x5af398,'source':c[_0x39dbab(0x272)][_0x39dbab(0x2e7)]});}[_0x19990d(0x20e)](){const _0x497d9a=_0x19990d;return this[_0x497d9a(0x28a)](Array[_0x497d9a(0x253)]({'length':this[_0x497d9a(0x1d8)]()},()=>Array[_0x497d9a(0x253)]({'length':this['getNumColumns']()},()=>null)));}[_0x19990d(0x1b9)](_0x373b2f,_0xa9eaf8,_0x3fc087=this[_0x19990d(0x1d8)](),_0x1c415f=this[_0x19990d(0x1b5)]()){const _0x128ee0=_0x19990d;return this['_inject'][_0x128ee0(0x2b3)](k,this[_0x128ee0(0x240)],this[_0x128ee0(0x191)],{'startRow':this[_0x128ee0(0x285)][_0x128ee0(0x319)]+_0x373b2f,'startColumn':this[_0x128ee0(0x285)]['startColumn']+_0xa9eaf8,'endRow':this['_range'][_0x128ee0(0x319)]+_0x373b2f+_0x3fc087-0x1,'endColumn':this[_0x128ee0(0x285)][_0x128ee0(0x1a6)]+_0xa9eaf8+_0x1c415f-0x1},this[_0x128ee0(0x335)]);}[_0x19990d(0x30f)](){const _0x1d7cae=_0x19990d;let _0x244236=this[_0x1d7cae(0x191)][_0x1d7cae(0x2a7)]();if(!_0x244236)throw Error(_0x1d7cae(0x1cd));return(0x0,c[_0x1d7cae(0x1ea)])(_0x244236);}[_0x19990d(0x1e5)](){const _0x21d5b6=_0x19990d;var _0x26ae35;let _0x3b218c=this['_getTable'](),_0x59beb7=((_0x26ae35=_0x3b218c[_0x21d5b6(0x204)])==null?void 0x0:_0x26ae35[_0x21d5b6(0x32b)])??0x0,_0x42ad87=this[_0x21d5b6(0x2e5)](_0x3b218c)[_0x21d5b6(0x32b)];if(this[_0x21d5b6(0x285)]['startRow']<0x0||this[_0x21d5b6(0x285)][_0x21d5b6(0x1a6)]<0x0||this[_0x21d5b6(0x285)][_0x21d5b6(0x2bf)]<this[_0x21d5b6(0x285)][_0x21d5b6(0x319)]||this['_range'][_0x21d5b6(0x273)]<this['_range']['startColumn']||this[_0x21d5b6(0x285)][_0x21d5b6(0x2bf)]>=Math[_0x21d5b6(0x1e3)](_0x59beb7,0x1)||this[_0x21d5b6(0x285)][_0x21d5b6(0x273)]>=Math[_0x21d5b6(0x1e3)](_0x42ad87,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x59beb7+',\x20max\x20columns:\x20'+_0x42ad87+_0x21d5b6(0x205)+JSON['stringify'](this['_range'])+'.');}[_0x19990d(0x2e5)](_0x5b3273){const _0x411ca7=_0x19990d;return _0x5b3273[_0x411ca7(0x277)][_0x411ca7(0x2f0)](_0x1a40d2=>y(_0x5b3273[_0x411ca7(0x24a)][_0x1a40d2]));}};A=k=g([h(0x4,l[_0x19990d(0x2b4)])],A);function j(_0x3bee38){'@babel/helpers - typeof';const _0x5ccc7b=_0x19990d;return j=typeof Symbol==_0x5ccc7b(0x23a)&&typeof Symbol[_0x5ccc7b(0x32f)]==_0x5ccc7b(0x19e)?function(_0x5ec979){return typeof _0x5ec979;}:function(_0x198a0d){const _0x3507c9=_0x5ccc7b;return _0x198a0d&&typeof Symbol==_0x3507c9(0x23a)&&_0x198a0d['constructor']===Symbol&&_0x198a0d!==Symbol['prototype']?_0x3507c9(0x19e):typeof _0x198a0d;},j(_0x3bee38);}function M(_0x1fb588,_0x203e16){const _0xc4e64e=_0x19990d;if(j(_0x1fb588)!=_0xc4e64e(0x2d2)||!_0x1fb588)return _0x1fb588;var _0x44be80=_0x1fb588[Symbol[_0xc4e64e(0x29a)]];if(_0x44be80!==void 0x0){var _0x15e82f=_0x44be80['call'](_0x1fb588,_0x203e16||_0xc4e64e(0x318));if(j(_0x15e82f)!=_0xc4e64e(0x2d2))return _0x15e82f;throw TypeError(_0xc4e64e(0x278));}return(_0x203e16===_0xc4e64e(0x2f9)?String:Number)(_0x1fb588);}function N(_0x3a906e){const _0x155227=_0x19990d;var _0x158d2b=M(_0x3a906e,'string');return j(_0x158d2b)==_0x155227(0x19e)?_0x158d2b:_0x158d2b+'';}function P(_0x27433b,_0x25ca29,_0x49a83b){return(_0x25ca29=N(_0x25ca29))in _0x27433b?Object['defineProperty'](_0x27433b,_0x25ca29,{'value':_0x49a83b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27433b[_0x25ca29]=_0x49a83b,_0x27433b;}var F;let I=F=class extends u[_0x19990d(0x2d1)]{constructor(_0x231dfe,_0x5f07e5,_0x59a4ad,_0x1aef30,_0x5eb1a8,_0x419368){const _0x5a56d6=_0x19990d;super(_0x1aef30),this[_0x5a56d6(0x240)]=_0x231dfe,this['_table']=_0x5f07e5,this[_0x5a56d6(0x262)]=_0x59a4ad,this[_0x5a56d6(0x1f8)]=_0x1aef30,this[_0x5a56d6(0x2b2)]=_0x5eb1a8,this['_permissionService']=_0x419368,P(this,'_baseUnitId',void 0x0),P(this,_0x5a56d6(0x281),void 0x0),this[_0x5a56d6(0x1a3)]=_0x231dfe[_0x5a56d6(0x2a2)](),this[_0x5a56d6(0x281)]=_0x5f07e5['getId']();}['getBaseFacade'](){const _0x374ac7=_0x19990d;return this[_0x374ac7(0x240)];}[_0x19990d(0x1cf)](){const _0x534713=_0x19990d;return this[_0x534713(0x191)];}['getId'](){const _0x16fb2e=_0x19990d;return this[_0x16fb2e(0x262)];}[_0x19990d(0x24f)](){const _0x93f045=_0x19990d;let _0x3afcf7=this[_0x93f045(0x191)][_0x93f045(0x2a2)]();return new m(this[_0x93f045(0x240)][_0x93f045(0x2a2)](),(0x0,c[_0x93f045(0x233)])(_0x3afcf7,this[_0x93f045(0x262)]),[(0x0,c[_0x93f045(0x200)])(_0x3afcf7)],this[_0x93f045(0x2b2)],this['_permissionService']);}['getRecord'](){const _0xe4e8b0=_0x19990d;return{...this['_getRecord'](),'values':this[_0xe4e8b0(0x2f4)]()};}[_0x19990d(0x1c5)](_0x7349e9){const _0x17b85f=_0x19990d;return y(this['_table'][_0x17b85f(0x2a7)]()[_0x17b85f(0x24a)][_0x7349e9])?this['_getRecord']()['values'][_0x7349e9]??null:null;}['getValues'](){const _0x303dc1=_0x19990d;let _0x572773=this[_0x303dc1(0x191)][_0x303dc1(0x2a7)]();return Object[_0x303dc1(0x24e)](Object[_0x303dc1(0x2a5)](this[_0x303dc1(0x26f)]()[_0x303dc1(0x209)])[_0x303dc1(0x2f0)](([_0x25fa8c])=>y(_0x572773['fields'][_0x25fa8c])));}[_0x19990d(0x307)](_0x9592e8,_0x507d24){const _0x1204d6=_0x19990d;let _0xa99da6=this[_0x1204d6(0x191)][_0x1204d6(0x2a7)]()[_0x1204d6(0x24a)][_0x9592e8];return this[_0x1204d6(0x2b2)][_0x1204d6(0x29f)](c['UpdateBaseCellCommand']['id'],{'unitId':this[_0x1204d6(0x240)]['getId'](),'tableId':this['_table'][_0x1204d6(0x2a2)](),'recordId':this[_0x1204d6(0x262)],'fieldId':_0x9592e8,'value':x(_0xa99da6,_0x507d24),'source':c['BaseEventSource'][_0x1204d6(0x2e7)]});}['setAttachments'](_0x41dd31,_0x35f22a){const _0x596286=_0x19990d;return this[_0x596286(0x307)](_0x41dd31,_0x35f22a[_0x596286(0x24d)](_0x17daa3=>({..._0x17daa3})));}['getAttachments'](_0x153344){const _0x336137=_0x19990d;this[_0x336137(0x1d9)](_0x153344);let _0xdc1ece=this[_0x336137(0x1c5)](_0x153344);return Array[_0x336137(0x2b1)](_0xdc1ece)?_0xdc1ece[_0x336137(0x24d)]((_0x20cf9a,_0x2b1ef8)=>R(_0x20cf9a,_0x153344,_0x2b1ef8)):[];}['deleteAttachments'](_0x2f8ed3,_0x560ad0){const _0x5d9fe2=_0x19990d;this['_getAttachmentField'](_0x2f8ed3);let _0x161937=new Set(_0x560ad0[_0x5d9fe2(0x24d)](_0x4861b4=>_0x4861b4['id']));if(!_0x161937[_0x5d9fe2(0x2b6)])return!0x0;let _0x425c04=this[_0x5d9fe2(0x1f4)](_0x2f8ed3),_0x4429f9=_0x425c04[_0x5d9fe2(0x2f0)](_0x5bffa8=>!_0x161937['has'](_0x5bffa8['id']));return _0x4429f9[_0x5d9fe2(0x32b)]===_0x425c04['length']||this[_0x5d9fe2(0x1e8)](_0x2f8ed3,_0x4429f9);}[_0x19990d(0x28a)](_0x5c6005,_0x235eb4='id'){const _0x33b6ac=_0x19990d;let _0x389e1b=this[_0x33b6ac(0x191)][_0x33b6ac(0x2a7)](),_0x484363=[{'recordId':this[_0x33b6ac(0x262)],'values':b(_0x389e1b,_0x5c6005,_0x235eb4)}];return this[_0x33b6ac(0x2b2)][_0x33b6ac(0x29f)](c[_0x33b6ac(0x189)]['id'],{'unitId':this['_base'][_0x33b6ac(0x2a2)](),'tableId':this[_0x33b6ac(0x191)][_0x33b6ac(0x2a2)](),'patches':_0x484363,'source':c[_0x33b6ac(0x272)][_0x33b6ac(0x2e7)]});}['delete'](){const _0x50aac7=_0x19990d;return this['_commandService'][_0x50aac7(0x29f)](c[_0x50aac7(0x213)]['id'],{'unitId':this[_0x50aac7(0x240)][_0x50aac7(0x2a2)](),'tableId':this[_0x50aac7(0x191)][_0x50aac7(0x2a2)](),'recordId':this[_0x50aac7(0x262)],'source':c['BaseEventSource'][_0x50aac7(0x2e7)]});}['duplicate'](_0x35425e){const _0x66e924=_0x19990d;let _0xdb2b24={...this[_0x66e924(0x26f)](),..._0x35425e,'id':(0x0,l[_0x66e924(0x1d0)])(0x6)};_0xdb2b24[_0x66e924(0x209)]={..._0xdb2b24[_0x66e924(0x209)],..._0x35425e==null?void 0x0:_0x35425e[_0x66e924(0x209)]},Reflect[_0x66e924(0x1e1)](_0xdb2b24[_0x66e924(0x209)],l[_0x66e924(0x33b)]);let _0x5532b3=Date[_0x66e924(0x25b)]();if(_0xdb2b24[_0x66e924(0x263)]||=''+_0x5532b3,_0xdb2b24[_0x66e924(0x302)]||=_0x5532b3,_0xdb2b24['updatedAt']||=_0x5532b3,!this['_commandService'][_0x66e924(0x29f)](c[_0x66e924(0x215)]['id'],{'unitId':this[_0x66e924(0x240)][_0x66e924(0x2a2)](),'tableId':this[_0x66e924(0x191)]['getId'](),'sourceRecordId':this['_recordId'],'record':_0xdb2b24,'source':c[_0x66e924(0x272)]['Facade']}))throw Error(_0x66e924(0x26d)+this[_0x66e924(0x262)]+'\x22.');return this[_0x66e924(0x1f8)][_0x66e924(0x2b3)](F,this[_0x66e924(0x240)],this['_table'],_0xdb2b24['id'],this['_injector']);}[_0x19990d(0x2b8)](_0x236a19){const _0x584e36=_0x19990d;return this[_0x584e36(0x2b2)][_0x584e36(0x29f)](c[_0x584e36(0x1ed)]['id'],{'unitId':this['_base'][_0x584e36(0x2a2)](),'tableId':this[_0x584e36(0x191)][_0x584e36(0x2a2)](),'recordId':this['_recordId'],'orderKey':_0x236a19});}[_0x19990d(0x27d)](_0x239bbb){const _0x2ee3e5=_0x19990d;let _0x351d4f=this[_0x2ee3e5(0x280)](_0x239bbb),_0x37a51d=this[_0x2ee3e5(0x1c5)](_0x351d4f['id']);return(0x0,c[_0x2ee3e5(0x2cb)])(_0x37a51d);}[_0x19990d(0x210)](_0x490cb2,_0x3dca99){const _0x49b1ec=_0x19990d;let _0x23f09f=this[_0x49b1ec(0x280)](_0x490cb2),_0x4882f2=(0x0,c['serializeRecordLinkIds'])(_0x3dca99),_0x2eac88=(0x0,c[_0x49b1ec(0x1f1)])(this[_0x49b1ec(0x240)][_0x49b1ec(0x30b)]()[_0x49b1ec(0x28e)](),_0x23f09f,_0x4882f2);if(!_0x2eac88[_0x49b1ec(0x23e)])throw Error(_0x2eac88[_0x49b1ec(0x26a)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x49b1ec(0x2b2)][_0x49b1ec(0x29f)](c[_0x49b1ec(0x21f)]['id'],{'unitId':this[_0x49b1ec(0x240)][_0x49b1ec(0x2a2)](),'tableId':this['_table'][_0x49b1ec(0x2a2)](),'recordId':this[_0x49b1ec(0x262)],'fieldId':_0x490cb2,'value':_0x4882f2,'source':c['BaseEventSource'][_0x49b1ec(0x2e7)]});}['addLinkedRecord'](_0x35bebc,_0x3e36f9){const _0x380d3e=_0x19990d;let _0x24810f=this[_0x380d3e(0x280)](_0x35bebc),_0x287cca=(0x0,c['getRecordLinkFieldConfig'])(_0x24810f);if(!_0x287cca)throw Error(_0x380d3e(0x28d)+_0x35bebc+_0x380d3e(0x2dc));let _0x500930=this[_0x380d3e(0x27d)](_0x35bebc);return _0x287cca[_0x380d3e(0x2db)]&&_0x500930[_0x380d3e(0x219)](_0x3e36f9)?!0x0:this['setLinkedRecordIds'](_0x35bebc,_0x287cca[_0x380d3e(0x2db)]?[..._0x500930,_0x3e36f9]:[_0x3e36f9]);}['removeLinkedRecord'](_0x100741,_0x4f777b){const _0x152ec0=_0x19990d;let _0xf3a0ad=this[_0x152ec0(0x27d)](_0x100741);return!_0xf3a0ad[_0x152ec0(0x219)](_0x4f777b)||this[_0x152ec0(0x210)](_0x100741,_0xf3a0ad[_0x152ec0(0x2f0)](_0x3c392b=>_0x3c392b!==_0x4f777b));}[_0x19990d(0x197)](_0x1a6fd5){const _0x284b70=_0x19990d;let _0x354729=this[_0x284b70(0x1d1)](_0x1a6fd5)[_0x284b70(0x24b)][_0x284b70(0x289)](this[_0x284b70(0x262)])??null;return _0x354729?this[_0x284b70(0x191)][_0x284b70(0x235)](_0x354729):null;}[_0x19990d(0x2af)](_0x5c0659){const _0x31bed8=_0x19990d;return(this[_0x31bed8(0x1d1)](_0x5c0659)[_0x31bed8(0x1f0)]['get'](this[_0x31bed8(0x262)])??[])[_0x31bed8(0x237)](_0x3a2f36=>{const _0x3c951e=_0x31bed8;let _0xca895e=this[_0x3c951e(0x191)][_0x3c951e(0x235)](_0x3a2f36);return _0xca895e?[_0xca895e]:[];});}[_0x19990d(0x288)](_0x88a5ed){const _0x1ff314=_0x19990d;let _0x5a035a=this[_0x1ff314(0x1d1)](_0x88a5ed),_0xc28195=[],_0x28a072=_0x5a035a['parentByRecordId'][_0x1ff314(0x289)](this[_0x1ff314(0x262)])??null;for(;_0x28a072;){let _0x31a250=this[_0x1ff314(0x191)][_0x1ff314(0x235)](_0x28a072);_0x31a250&&_0xc28195['push'](_0x31a250),_0x28a072=_0x5a035a[_0x1ff314(0x24b)][_0x1ff314(0x289)](_0x28a072)??null;}return _0xc28195;}[_0x19990d(0x214)](_0x9b9023){const _0x4de33d=_0x19990d;let _0x894fe2=this[_0x4de33d(0x1d1)](_0x9b9023),_0x528b53=_0x894fe2[_0x4de33d(0x31b)]['indexOf'](this[_0x4de33d(0x262)]),_0x1edad5=_0x894fe2[_0x4de33d(0x2e2)][_0x4de33d(0x315)](this[_0x4de33d(0x262)])?this['_collectDescendantIds'](_0x894fe2[_0x4de33d(0x1f0)],this['_recordId']):[];return _0x528b53<0x0?[]:_0x1edad5[_0x4de33d(0x237)](_0x34d355=>{const _0x59287b=_0x4de33d;let _0x5eb1d2=this[_0x59287b(0x191)][_0x59287b(0x235)](_0x34d355);return _0x5eb1d2?[_0x5eb1d2]:[];});}[_0x19990d(0x2bd)](_0x9b3bb6,_0x26b12d,_0x4c45f0){const _0x13f862=_0x19990d;return this[_0x13f862(0x2b2)][_0x13f862(0x29f)](c[_0x13f862(0x1a2)]['id'],{'unitId':this['_base'][_0x13f862(0x2a2)](),'tableId':this[_0x13f862(0x191)]['getId'](),'fieldId':_0x9b3bb6,'recordId':this['_recordId'],'parentRecordId':_0x26b12d,'orderKey':_0x4c45f0,'source':c[_0x13f862(0x272)][_0x13f862(0x2e7)]});}[_0x19990d(0x2b0)](_0x592949,_0xde6745,_0xe9d271='id',_0x2993ea){const _0x3d1d18=_0x19990d;let _0x339a8a=this['_table'][_0x3d1d18(0x2a7)](),_0x46615e=Date[_0x3d1d18(0x25b)](),_0xf45eac={..._0x2993ea,'id':(0x0,l[_0x3d1d18(0x1d0)])(0x6),'values':b(_0x339a8a,_0xde6745,_0xe9d271),'orderKey':(_0x2993ea==null?void 0x0:_0x2993ea[_0x3d1d18(0x263)])||''+_0x46615e,'createdAt':(_0x2993ea==null?void 0x0:_0x2993ea[_0x3d1d18(0x302)])||_0x46615e,'updatedAt':(_0x2993ea==null?void 0x0:_0x2993ea[_0x3d1d18(0x1f6)])||_0x46615e};if(!this['_commandService'][_0x3d1d18(0x29f)](c[_0x3d1d18(0x19d)]['id'],{'unitId':this['_base'][_0x3d1d18(0x2a2)](),'tableId':this[_0x3d1d18(0x191)][_0x3d1d18(0x2a2)](),'fieldId':_0x592949,'parentRecordId':this[_0x3d1d18(0x262)],'record':_0xf45eac,'source':c[_0x3d1d18(0x272)][_0x3d1d18(0x2e7)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x3d1d18(0x262)]+'\x22.');return this[_0x3d1d18(0x1f8)][_0x3d1d18(0x2b3)](F,this[_0x3d1d18(0x240)],this[_0x3d1d18(0x191)],_0xf45eac['id'],this[_0x3d1d18(0x1f8)]);}[_0x19990d(0x1d1)](_0x1be5b5){const _0x58f721=_0x19990d;return(0x0,c[_0x58f721(0x1a0)])(this[_0x58f721(0x191)][_0x58f721(0x2a7)](),_0x1be5b5);}['_collectDescendantIds'](_0x3a1b4d,_0x3e87b8){let _0x3fc409=[],_0x421df5=_0x107394=>{const _0x235dbd=_0x3b36;for(let _0x362d67 of _0x3a1b4d['get'](_0x107394)??[])_0x3fc409[_0x235dbd(0x1b4)](_0x362d67),_0x421df5(_0x362d67);};return _0x421df5(_0x3e87b8),_0x3fc409;}[_0x19990d(0x26f)](){const _0x55db7a=_0x19990d;let _0x4ee7f6=this[_0x55db7a(0x191)][_0x55db7a(0x2a7)]()[_0x55db7a(0x251)][this[_0x55db7a(0x262)]];if(!_0x4ee7f6)throw Error(_0x55db7a(0x241)+this['_recordId']+_0x55db7a(0x192));return _0x4ee7f6;}[_0x19990d(0x280)](_0x1d9537){const _0x5ae40d=_0x19990d;let _0x3aa594=this['_table'][_0x5ae40d(0x2a7)]()[_0x5ae40d(0x24a)][_0x1d9537];if(!_0x3aa594||_0x3aa594[_0x5ae40d(0x258)]!==l[_0x5ae40d(0x1a8)][_0x5ae40d(0x18d)])throw Error(_0x5ae40d(0x1c1)+_0x1d9537+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x3aa594;}[_0x19990d(0x1d9)](_0x5bf45b){const _0x33e053=_0x19990d;let _0x3bb4a5=this[_0x33e053(0x191)][_0x33e053(0x2a7)]()['fields'][_0x5bf45b];if(!_0x3bb4a5||_0x3bb4a5['type']!==l[_0x33e053(0x1a8)][_0x33e053(0x287)])throw Error('[FRecord]:\x20field\x20\x22'+_0x5bf45b+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x3bb4a5;}};I=F=g([h(0x4,l[_0x19990d(0x2b4)]),h(0x5,l[_0x19990d(0x18f)])],I);function L(_0xf0ffe1){const _0x5cbcee=_0x19990d;return!!(_0xf0ffe1&&typeof _0xf0ffe1==_0x5cbcee(0x2d2)&&'id'in _0xf0ffe1&&typeof _0xf0ffe1['id']=='string'&&'name'in _0xf0ffe1&&typeof _0xf0ffe1[_0x5cbcee(0x19c)]=='string');}function R(_0x979c0c,_0x5d6409,_0x16268b){const _0x8bc13b=_0x19990d;if(!L(_0x979c0c))throw Error(_0x8bc13b(0x2b7)+_0x16268b+_0x8bc13b(0x2d7)+_0x5d6409+'\x22\x20is\x20invalid.');return{..._0x979c0c};}let z=class{constructor(_0x142a48,_0xbce33b,_0x31da83,_0x561241,_0xd631fd,_0x452939,_0x2e0138){const _0xf2e6e0=_0x19990d;this[_0xf2e6e0(0x240)]=_0x142a48,this[_0xf2e6e0(0x191)]=_0xbce33b,this[_0xf2e6e0(0x194)]=_0x31da83,this[_0xf2e6e0(0x1f8)]=_0x561241,this[_0xf2e6e0(0x2b2)]=_0xd631fd,this[_0xf2e6e0(0x2fe)]=_0x452939,this[_0xf2e6e0(0x193)]=_0x2e0138;}[_0x19990d(0x2a2)](){return this['_viewId'];}['getPermission'](){const _0xbb8ca8=_0x19990d;let _0x316659=this[_0xbb8ca8(0x191)][_0xbb8ca8(0x2a2)]();return new m(this['_base']['getId'](),(0x0,c[_0xbb8ca8(0x1c2)])(_0x316659,this['_viewId']),[(0x0,c[_0xbb8ca8(0x200)])(_0x316659)],this[_0xbb8ca8(0x2b2)],this['_permissionService']);}[_0x19990d(0x226)](){const _0x2f95db=_0x19990d;return this[_0x2f95db(0x18e)]();}['getName'](){const _0x493808=_0x19990d;return this[_0x493808(0x18e)]()['name'];}[_0x19990d(0x22e)](){const _0x2417f0=_0x19990d;return this['_getView']()[_0x2417f0(0x258)];}[_0x19990d(0x2ef)](_0x2b610a){const _0x256eff=_0x19990d;return this[_0x256eff(0x2b2)][_0x256eff(0x29f)](c[_0x256eff(0x1c7)]['id'],{'unitId':this[_0x256eff(0x240)]['getId'](),'tableId':this[_0x256eff(0x191)]['getId'](),'viewId':this[_0x256eff(0x194)],'name':_0x2b610a});}[_0x19990d(0x1bb)](){const _0x30033c=_0x19990d;let _0x1e6142=this['getType'](),_0x3b6ab7=this['_getView']()[_0x30033c(0x206)];switch(_0x1e6142){case l['BaseViewType'][_0x30033c(0x228)]:return _0x3b6ab7;case l[_0x30033c(0x1e4)]['Kanban']:return _0x3b6ab7;case l['BaseViewType'][_0x30033c(0x2a0)]:return _0x3b6ab7;case l[_0x30033c(0x1e4)][_0x30033c(0x2cf)]:return _0x3b6ab7;case l['BaseViewType'][_0x30033c(0x322)]:return _0x3b6ab7;default:return _0x3b6ab7;}}['updateConfig'](_0x57fe45){const _0x28d7aa=_0x19990d;return this[_0x28d7aa(0x2b2)][_0x28d7aa(0x29f)](c[_0x28d7aa(0x1d3)]['id'],{'unitId':this[_0x28d7aa(0x240)]['getId'](),'tableId':this['_table'][_0x28d7aa(0x2a2)](),'viewId':this[_0x28d7aa(0x194)],'patch':_0x57fe45});}[_0x19990d(0x309)](){const _0x2f2fcd=_0x19990d;var _0x376b38;return l[_0x2f2fcd(0x1e0)][_0x2f2fcd(0x2ad)](((_0x376b38=this['_getView']()['config'][_0x2f2fcd(0x2c3)])==null?void 0x0:_0x376b38['rules'])??[]);}['setConditionalColorRules'](_0x45f569){const _0x222e4b=_0x19990d;return this['_commandService'][_0x222e4b(0x29f)](c[_0x222e4b(0x2cc)]['id'],{'unitId':this[_0x222e4b(0x240)][_0x222e4b(0x2a2)](),'tableId':this[_0x222e4b(0x191)][_0x222e4b(0x2a2)](),'viewId':this[_0x222e4b(0x194)],'type':c['BaseConditionalColorRuleUpdateType'][_0x222e4b(0x2dd)],'rules':_0x45f569});}[_0x19990d(0x1a5)](_0x5f580a){const _0x47ec68=_0x19990d;return this['_commandService'][_0x47ec68(0x29f)](c[_0x47ec68(0x2cc)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x47ec68(0x191)]['getId'](),'viewId':this[_0x47ec68(0x194)],'type':c[_0x47ec68(0x1cc)][_0x47ec68(0x311)],'rule':_0x5f580a});}['deleteConditionalColorRule'](_0x3dcf72){const _0x50bf61=_0x19990d;return this['_commandService'][_0x50bf61(0x29f)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x50bf61(0x240)][_0x50bf61(0x2a2)](),'tableId':this['_table'][_0x50bf61(0x2a2)](),'viewId':this[_0x50bf61(0x194)],'type':c[_0x50bf61(0x1cc)][_0x50bf61(0x22c)],'ruleId':_0x3dcf72});}[_0x19990d(0x202)](){const _0x52ff0e=_0x19990d;return this[_0x52ff0e(0x2b2)][_0x52ff0e(0x29f)](c[_0x52ff0e(0x2cc)]['id'],{'unitId':this['_base'][_0x52ff0e(0x2a2)](),'tableId':this[_0x52ff0e(0x191)][_0x52ff0e(0x2a2)](),'viewId':this['_viewId'],'type':c['BaseConditionalColorRuleUpdateType'][_0x52ff0e(0x2e8)]});}[_0x19990d(0x244)](){const _0x1e6a70=_0x19990d;return this[_0x1e6a70(0x18e)]()['filter']??null;}[_0x19990d(0x2df)](_0x43483e){const _0x295ec1=_0x19990d;return this[_0x295ec1(0x2b2)]['syncExecuteCommand'](c[_0x295ec1(0x264)]['id'],{'unitId':this['_base'][_0x295ec1(0x2a2)](),'tableId':this[_0x295ec1(0x191)][_0x295ec1(0x2a2)](),'viewId':this['_viewId'],'filter':_0x43483e});}[_0x19990d(0x217)](){const _0x19ae11=_0x19990d;return this[_0x19ae11(0x18e)]()[_0x19ae11(0x2e6)]??[];}[_0x19990d(0x30a)](_0xbb5006){const _0x1b7912=_0x19990d;return this[_0x1b7912(0x2b2)][_0x1b7912(0x29f)](c['SetBaseViewSortCommand']['id'],{'unitId':this[_0x1b7912(0x240)][_0x1b7912(0x2a2)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'sort':_0xbb5006});}[_0x19990d(0x2a3)](){const _0x527cf1=_0x19990d;return this[_0x527cf1(0x18e)]()[_0x527cf1(0x305)]??[];}[_0x19990d(0x188)](_0xa7dbe){const _0x2c3d6a=_0x19990d;return this['_commandService'][_0x2c3d6a(0x29f)](c[_0x2c3d6a(0x1dd)]['id'],{'unitId':this[_0x2c3d6a(0x240)][_0x2c3d6a(0x2a2)](),'tableId':this[_0x2c3d6a(0x191)][_0x2c3d6a(0x2a2)](),'viewId':this[_0x2c3d6a(0x194)],'group':_0xa7dbe});}[_0x19990d(0x207)](_0x2d4137){const _0x20eef1=_0x19990d;var _0x11c20b;return y(this[_0x20eef1(0x191)][_0x20eef1(0x2a7)]()[_0x20eef1(0x24a)][_0x2d4137])?((_0x11c20b=this['_getView']()[_0x20eef1(0x29b)])==null?void 0x0:_0x11c20b[_0x2d4137])??{}:{};}['getVisibleFields'](){const _0x346b72=_0x19990d;let _0x1a19f4=this[_0x346b72(0x191)][_0x346b72(0x2a7)](),_0x3bbd63=this[_0x346b72(0x18e)]();return(_0x3bbd63[_0x346b72(0x277)]??_0x1a19f4[_0x346b72(0x277)])[_0x346b72(0x2f0)](_0xa595ed=>{const _0x432c29=_0x346b72;var _0x5d7ddd;let _0x4572da=_0x1a19f4[_0x432c29(0x24a)][_0xa595ed];return y(_0x4572da)&&!((_0x5d7ddd=_0x3bbd63['fieldSettings'])!=null&&(_0x5d7ddd=_0x5d7ddd[_0xa595ed])!=null&&_0x5d7ddd[_0x432c29(0x1c4)]);})[_0x346b72(0x24d)](_0x40b9c6=>this[_0x346b72(0x1f8)][_0x346b72(0x2b3)](_,this[_0x346b72(0x240)],this[_0x346b72(0x191)],_0x40b9c6));}[_0x19990d(0x261)](_0x33237b,_0x126f54){const _0xf7f277=_0x19990d;return y(this[_0xf7f277(0x191)][_0xf7f277(0x2a7)]()[_0xf7f277(0x24a)][_0x33237b])?this[_0xf7f277(0x2b2)][_0xf7f277(0x29f)](c[_0xf7f277(0x33d)]['id'],{'unitId':this[_0xf7f277(0x240)]['getId'](),'tableId':this[_0xf7f277(0x191)]['getId'](),'viewId':this[_0xf7f277(0x194)],'fieldId':_0x33237b,'visible':_0x126f54}):!0x1;}['setFieldWidth'](_0x1d4fc8,_0x103e88){const _0x445edd=_0x19990d;return y(this[_0x445edd(0x191)]['getTable']()[_0x445edd(0x24a)][_0x1d4fc8])?this['_commandService'][_0x445edd(0x29f)](c['SetBaseViewFieldWidthCommand']['id'],{'unitId':this[_0x445edd(0x240)][_0x445edd(0x2a2)](),'tableId':this['_table'][_0x445edd(0x2a2)](),'viewId':this[_0x445edd(0x194)],'fieldId':_0x1d4fc8,'width':_0x103e88}):!0x1;}[_0x19990d(0x2d6)](_0x5824a2,_0x34b1b0){const _0x2915cc=_0x19990d;let _0x431873=this[_0x2915cc(0x191)][_0x2915cc(0x2a7)](),_0x32ed3b=_0x34b1b0[_0x2915cc(0x2ff)]??_0x34b1b0['afterFieldId'];return!y(_0x431873[_0x2915cc(0x24a)][_0x5824a2])||!_0x32ed3b||!y(_0x431873[_0x2915cc(0x24a)][_0x32ed3b])?!0x1:this[_0x2915cc(0x2b2)][_0x2915cc(0x29f)](c[_0x2915cc(0x325)]['id'],{'unitId':this[_0x2915cc(0x240)][_0x2915cc(0x2a2)](),'tableId':this[_0x2915cc(0x191)][_0x2915cc(0x2a2)](),'viewId':this[_0x2915cc(0x194)],'fieldId':_0x5824a2,'target':_0x34b1b0});}[_0x19990d(0x28b)](_0x25b482){const _0x17079f=_0x19990d;return this[_0x17079f(0x2b2)]['syncExecuteCommand'](c[_0x17079f(0x308)]['id'],{'unitId':this[_0x17079f(0x240)]['getId'](),'tableId':this[_0x17079f(0x191)][_0x17079f(0x2a2)](),'viewId':this[_0x17079f(0x194)],'target':_0x25b482});}['delete'](){const _0x37c02d=_0x19990d;return this[_0x37c02d(0x2b2)]['syncExecuteCommand'](c[_0x37c02d(0x22a)]['id'],{'unitId':this[_0x37c02d(0x240)]['getId'](),'tableId':this[_0x37c02d(0x191)][_0x37c02d(0x2a2)](),'viewId':this[_0x37c02d(0x194)]});}[_0x19990d(0x19b)](){const _0x303601=_0x19990d;return this[_0x303601(0x193)][_0x303601(0x19b)](this['_base'][_0x303601(0x30b)]()[_0x303601(0x28e)](),this['_table']['getId'](),this['_viewId']);}['_getView'](){const _0x371e6c=_0x19990d;let _0x43564b=this[_0x371e6c(0x191)][_0x371e6c(0x2a7)]()[_0x371e6c(0x2e3)][this[_0x371e6c(0x194)]];if(!_0x43564b)throw Error(_0x371e6c(0x296)+this[_0x371e6c(0x194)]+_0x371e6c(0x192));return _0x43564b;}};z=g([h(0x4,l[_0x19990d(0x2b4)]),h(0x5,l[_0x19990d(0x18f)]),h(0x6,c[_0x19990d(0x2ac)])],z);let B=class{constructor(_0x4cdda7,_0x452eb4,_0x302634,_0x1a18df,_0x1db4bb,_0x2caaaa){const _0x56b719=_0x19990d;this[_0x56b719(0x240)]=_0x4cdda7,this[_0x56b719(0x199)]=_0x452eb4,this['_injector']=_0x302634,this['_commandService']=_0x1a18df,this[_0x56b719(0x2fe)]=_0x1db4bb,this[_0x56b719(0x193)]=_0x2caaaa;}[_0x19990d(0x30b)](){const _0x5c3824=_0x19990d;return this[_0x5c3824(0x240)]['getBase']();}[_0x19990d(0x2a7)](){return this['_getTable']();}[_0x19990d(0x2a2)](){const _0x51746b=_0x19990d;return this[_0x51746b(0x199)];}[_0x19990d(0x24f)](){const _0x500085=_0x19990d;return new m(this[_0x500085(0x30b)]()[_0x500085(0x1d6)](),(0x0,c[_0x500085(0x200)])(this['_tableId']),[],this[_0x500085(0x2b2)],this[_0x500085(0x2fe)]);}['getHierarchyFieldId'](){const _0x549585=_0x19990d;return(0x0,c[_0x549585(0x2be)])(this['_getTable']());}[_0x19990d(0x2c8)](_0x26379e){const _0x39b2b9=_0x19990d;return this[_0x39b2b9(0x2b2)]['syncExecuteCommand'](c[_0x39b2b9(0x1c0)]['id'],{'unitId':this[_0x39b2b9(0x240)][_0x39b2b9(0x2a2)](),'tableId':this[_0x39b2b9(0x199)],'fieldId':_0x26379e});}[_0x19990d(0x26c)](){const _0x4ab4a5=_0x19990d;return this[_0x4ab4a5(0x30f)]()[_0x4ab4a5(0x19c)];}[_0x19990d(0x286)](){const _0x35bb2f=_0x19990d;let _0x28c938=this[_0x35bb2f(0x240)]['getBase']()[_0x35bb2f(0x28e)]();return(0x0,c[_0x35bb2f(0x1ca)])(this[_0x35bb2f(0x30f)](),_0x28c938);}[_0x19990d(0x2ef)](_0x44020a){const _0x203bdc=_0x19990d;let _0x2a2700=(0x0,c[_0x203bdc(0x247)])(this[_0x203bdc(0x240)][_0x203bdc(0x30b)]()['getSnapshot'](),_0x44020a,this[_0x203bdc(0x199)]);if(!_0x2a2700[_0x203bdc(0x23e)])throw Error(_0x203bdc(0x30c)+_0x44020a+_0x203bdc(0x2d3)+c['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0x2a2700[_0x203bdc(0x26a)]);return this['_commandService'][_0x203bdc(0x29f)](c[_0x203bdc(0x2c1)]['id'],{'unitId':this[_0x203bdc(0x240)][_0x203bdc(0x2a2)](),'tableId':this['_tableId'],'name':_0x44020a});}[_0x19990d(0x19f)](_0x57a616,_0x13fe46){const _0x152aaa=_0x19990d;let _0x515700=this[_0x152aaa(0x240)]['getBase']()[_0x152aaa(0x28e)](),_0xa7ad67=this[_0x152aaa(0x30f)]();if(_0x13fe46){let _0x2dd481=this[_0x152aaa(0x193)]['getProjection'](_0x515700,this[_0x152aaa(0x199)],_0x13fe46),_0x451cb4=_0xa7ad67[_0x152aaa(0x2e3)][_0x13fe46],_0x2b0b95=_0x57a616[_0x152aaa(0x31e)]??J(_0xa7ad67,_0x451cb4,_0x2dd481),_0x29fda7=_0x152aaa(0x232)in _0x2dd481&&Array[_0x152aaa(0x2b1)](_0x2dd481[_0x152aaa(0x232)])?_0x2dd481[_0x152aaa(0x232)]:[];return(0x0,c[_0x152aaa(0x2c9)])({..._0x57a616,'table':_0xa7ad67,'fieldIds':_0x2b0b95,'rows':_0x29fda7});}let _0x40ad6a=(_0xa7ad67[_0x152aaa(0x204)]?_0xa7ad67[_0x152aaa(0x204)][_0x152aaa(0x24d)](_0x3ac5b1=>_0xa7ad67[_0x152aaa(0x251)][_0x3ac5b1]):Object[_0x152aaa(0x209)](_0xa7ad67['records'])[_0x152aaa(0x2e6)]((_0x4d7568,_0x3ce0b5)=>_0x4d7568['orderKey'][_0x152aaa(0x212)](_0x3ce0b5['orderKey'])))[_0x152aaa(0x2f0)](_0x5d3762=>_0x5d3762)['map'](_0x5b3671=>({'recordId':_0x5b3671['id'],'values':_0x5b3671[_0x152aaa(0x209)]})),_0x34f8f1=_0x57a616[_0x152aaa(0x31e)]??_0xa7ad67[_0x152aaa(0x277)][_0x152aaa(0x2f0)](_0x15ebab=>y(_0xa7ad67[_0x152aaa(0x24a)][_0x15ebab]));return(0x0,c[_0x152aaa(0x2c9)])({..._0x57a616,'table':_0xa7ad67,'fieldIds':_0x34f8f1,'rows':_0x40ad6a});}[_0x19990d(0x238)](){const _0x34c2a7=_0x19990d;return this[_0x34c2a7(0x30f)]()['primaryFieldId'];}[_0x19990d(0x284)](){const _0x174356=_0x19990d;let _0x454a49=this[_0x174356(0x30f)]();return _0x454a49[_0x174356(0x277)][_0x174356(0x24d)](_0x9150a4=>_0x454a49[_0x174356(0x24a)][_0x9150a4])[_0x174356(0x2f0)](y)[_0x174356(0x24d)](_0x126c60=>this[_0x174356(0x1f8)][_0x174356(0x2b3)](_,this[_0x174356(0x240)],this,_0x126c60['id']));}[_0x19990d(0x2ee)](_0x2990ae){const _0x1ad191=_0x19990d;let _0x332c7c=this[_0x1ad191(0x30f)]()[_0x1ad191(0x24a)][_0x2990ae];return y(_0x332c7c)?this['_injector'][_0x1ad191(0x2b3)](_,this[_0x1ad191(0x240)],this,_0x332c7c['id']):null;}[_0x19990d(0x1e2)](_0x38f491){const _0xe1c525=_0x19990d;let _0x92e0a=this[_0xe1c525(0x30f)]()[_0xe1c525(0x24a)],_0x2e9394=Object['values'](_0x92e0a)[_0xe1c525(0x293)](_0x4c39c8=>y(_0x4c39c8)&&_0x4c39c8[_0xe1c525(0x19c)]===_0x38f491);return _0x2e9394?this[_0xe1c525(0x1f8)]['createInstance'](_,this['_base'],this,_0x2e9394['id']):null;}[_0x19990d(0x1ae)](){const _0x1e00c1=_0x19990d;let _0x2c5d6c=this[_0x1e00c1(0x30f)]()[_0x1e00c1(0x1f7)];return this[_0x1e00c1(0x1f8)][_0x1e00c1(0x2b3)](_,this[_0x1e00c1(0x240)],this,_0x2c5d6c);}[_0x19990d(0x22f)](_0x4b0581,_0x2d7343,_0x476c75){const _0x3622fa=_0x19990d;var _0x47a872,_0x2ad561;if(!Object[_0x3622fa(0x209)](l['BaseFieldType'])[_0x3622fa(0x2ca)](_0x5641d4=>_0x5641d4===_0x2d7343))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x2d7343)+'\x22.');if(_0x2d7343===l[_0x3622fa(0x1a8)][_0x3622fa(0x1ab)]&&this[_0x3622fa(0x2fb)](_0x4b0581,_0x476c75),_0x2d7343===l['BaseFieldType'][_0x3622fa(0x18d)]&&(typeof(_0x476c75==null||(_0x47a872=_0x476c75[_0x3622fa(0x27f)])==null||(_0x47a872=_0x47a872['config'])==null?void 0x0:_0x47a872[_0x3622fa(0x23b)])!=_0x3622fa(0x2f9)||typeof _0x476c75[_0x3622fa(0x27f)][_0x3622fa(0x206)][_0x3622fa(0x2db)]!=_0x3622fa(0x249)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x49b037={..._0x476c75==null?void 0x0:_0x476c75['field'],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x4b0581,'type':_0x2d7343,'config':(_0x476c75==null||(_0x2ad561=_0x476c75[_0x3622fa(0x27f)])==null?void 0x0:_0x2ad561[_0x3622fa(0x206)])??{}};if(!this[_0x3622fa(0x2b2)][_0x3622fa(0x29f)](c[_0x3622fa(0x313)]['id'],{'unitId':this[_0x3622fa(0x240)][_0x3622fa(0x2a2)](),'tableId':this[_0x3622fa(0x199)],'field':_0x49b037,'index':_0x476c75==null?void 0x0:_0x476c75[_0x3622fa(0x2d8)]}))throw Error(_0x3622fa(0x274)+_0x4b0581+'\x22');return this[_0x3622fa(0x1f8)]['createInstance'](_,this[_0x3622fa(0x240)],this,_0x49b037['id']);}[_0x19990d(0x2fb)](_0x3dc768,_0x59076b){const _0x5bb07d=_0x19990d;var _0x21f9e6;if(!_0x59076b||!(_0x5bb07d(0x279)in _0x59076b)||!Array[_0x5bb07d(0x2b1)](_0x59076b[_0x5bb07d(0x279)]))throw Error(_0x5bb07d(0x2e0));let _0xc2a1d6=this[_0x5bb07d(0x2b2)][_0x5bb07d(0x29f)](c[_0x5bb07d(0x1be)]['id'],{'unitId':this['_base'][_0x5bb07d(0x2a2)](),'tableId':this[_0x5bb07d(0x199)],'formula':String(((_0x21f9e6=_0x59076b[_0x5bb07d(0x27f)])==null||(_0x21f9e6=_0x21f9e6[_0x5bb07d(0x206)])==null?void 0x0:_0x21f9e6['formula'])??'')});if(!_0xc2a1d6[_0x5bb07d(0x23e)])throw Error(_0xc2a1d6[_0x5bb07d(0x26a)]??_0x5bb07d(0x25f));if(_0x59076b[_0x5bb07d(0x279)]['length']>0x0&&!this[_0x5bb07d(0x2b2)][_0x5bb07d(0x29f)](f[_0x5bb07d(0x20a)]['id'],{'unitId':this['_base'][_0x5bb07d(0x2a2)](),'references':_0x59076b['externalReferences']}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x3dc768+'\x22');}[_0x19990d(0x32c)](){const _0x269569=_0x19990d;return this[_0x269569(0x239)]()[_0x269569(0x24d)](_0xab163a=>this[_0x269569(0x1f8)][_0x269569(0x2b3)](I,this['_base'],this,_0xab163a,this['_injector']));}[_0x19990d(0x235)](_0x33d21f){const _0xf0530b=_0x19990d;return this[_0xf0530b(0x30f)]()[_0xf0530b(0x251)][_0x33d21f]?this[_0xf0530b(0x1f8)][_0xf0530b(0x2b3)](I,this[_0xf0530b(0x240)],this,_0x33d21f,this[_0xf0530b(0x1f8)]):null;}[_0x19990d(0x299)](_0x2b2edb={}){const _0x267eb9=_0x19990d;let _0x41b9f2=this[_0x267eb9(0x30f)](),_0x1f5043=this[_0x267eb9(0x239)](_0x2b2edb),_0x4a932f=Math[_0x267eb9(0x1e3)](0x0,_0x2b2edb['offset']??0x0),_0x497681=_0x2b2edb['limit']==null?null:Math['max'](0x0,_0x2b2edb[_0x267eb9(0x1eb)]),_0x564c5b=H(_0x1f5043[_0x267eb9(0x24d)](_0x19f64f=>_0x41b9f2[_0x267eb9(0x251)][_0x19f64f])['filter'](_0x7b4def=>W(_0x7b4def,_0x41b9f2,_0x2b2edb[_0x267eb9(0x2f0)])),_0x41b9f2,_0x2b2edb[_0x267eb9(0x2e6)]);return{'records':V(_0x564c5b,_0x2b2edb)[_0x267eb9(0x24d)](_0x4773f1=>this['_injector'][_0x267eb9(0x2b3)](I,this[_0x267eb9(0x240)],this,_0x4773f1['id'],this[_0x267eb9(0x1f8)])),'total':_0x564c5b[_0x267eb9(0x32b)],'offset':_0x4a932f,'limit':_0x497681,'hasMore':_0x497681!=null&&_0x4a932f+_0x497681<_0x564c5b[_0x267eb9(0x32b)]};}[_0x19990d(0x2fa)](_0xa59238,_0x376ff6='id',_0x167798){const _0x3d7dac=_0x19990d;let _0x4d7618=this[_0x3d7dac(0x30f)](),_0x43d584=Date[_0x3d7dac(0x25b)](),_0x4afacd={..._0x167798,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x4d7618,_0xa59238,_0x376ff6),'orderKey':(_0x167798==null?void 0x0:_0x167798[_0x3d7dac(0x263)])||''+_0x43d584,'createdAt':(_0x167798==null?void 0x0:_0x167798['createdAt'])||_0x43d584,'updatedAt':(_0x167798==null?void 0x0:_0x167798[_0x3d7dac(0x1f6)])||_0x43d584};if(!this[_0x3d7dac(0x2b2)]['syncExecuteCommand'](c['CreateBaseRecordCommand']['id'],{'unitId':this[_0x3d7dac(0x240)]['getId'](),'tableId':this[_0x3d7dac(0x199)],'record':_0x4afacd,'source':c[_0x3d7dac(0x272)][_0x3d7dac(0x2e7)]}))throw Error(_0x3d7dac(0x2aa)+_0x4afacd['id']+'\x22');return this[_0x3d7dac(0x1f8)][_0x3d7dac(0x2b3)](I,this['_base'],this,_0x4afacd['id'],this[_0x3d7dac(0x1f8)]);}['addRecords'](_0x2bd073){const _0x4f76cf=_0x19990d;if(!_0x2bd073['length'])return[];let _0x5aaa11=this[_0x4f76cf(0x30f)](),_0x5aed60=Date['now'](),_0x4e0033=_0x2bd073[_0x4f76cf(0x24d)]((_0x13abda,_0x1a77b9)=>{const _0x322c99=_0x4f76cf;var _0x15f5f6,_0x45cccd,_0xdbdaa5;return{..._0x13abda[_0x322c99(0x1a7)],'id':(0x0,l[_0x322c99(0x1d0)])(0x6),'values':b(_0x5aaa11,_0x13abda[_0x322c99(0x209)],_0x13abda[_0x322c99(0x1d4)]??'id'),'orderKey':((_0x15f5f6=_0x13abda[_0x322c99(0x1a7)])==null?void 0x0:_0x15f5f6['orderKey'])||''+(_0x5aed60+_0x1a77b9),'createdAt':((_0x45cccd=_0x13abda[_0x322c99(0x1a7)])==null?void 0x0:_0x45cccd[_0x322c99(0x302)])||_0x5aed60,'updatedAt':((_0xdbdaa5=_0x13abda[_0x322c99(0x1a7)])==null?void 0x0:_0xdbdaa5[_0x322c99(0x1f6)])||_0x5aed60};});if(!this[_0x4f76cf(0x2b2)][_0x4f76cf(0x29f)](c[_0x4f76cf(0x27e)]['id'],{'unitId':this['_base'][_0x4f76cf(0x2a2)](),'tableId':this['_tableId'],'records':_0x4e0033,'source':c['BaseEventSource'][_0x4f76cf(0x2e7)]}))throw Error(_0x4f76cf(0x271));return _0x4e0033[_0x4f76cf(0x24d)](_0x166d6d=>this[_0x4f76cf(0x1f8)][_0x4f76cf(0x2b3)](I,this[_0x4f76cf(0x240)],this,_0x166d6d['id'],this['_injector']));}[_0x19990d(0x29c)](_0x5d2e16){const _0xbd9690=_0x19990d;return!_0x5d2e16['length']||this[_0xbd9690(0x2b2)][_0xbd9690(0x29f)](c[_0xbd9690(0x294)]['id'],{'unitId':this[_0xbd9690(0x240)][_0xbd9690(0x2a2)](),'tableId':this[_0xbd9690(0x199)],'recordIds':_0x5d2e16,'source':c[_0xbd9690(0x272)][_0xbd9690(0x2e7)]});}['getRange'](_0x370194,_0x552275,_0x24f55c=0x1,_0x432baa=0x1){const _0x43a084=_0x19990d;return this[_0x43a084(0x1f8)]['createInstance'](A,this[_0x43a084(0x240)],this,{'startRow':_0x370194,'endRow':_0x370194+_0x24f55c-0x1,'startColumn':_0x552275,'endColumn':_0x552275+_0x432baa-0x1},this[_0x43a084(0x1f8)]);}[_0x19990d(0x26b)](){const _0x16b551=_0x19990d;var _0x1bc3b1;let _0xacbd4b=(0x0,c[_0x16b551(0x1ea)])(this[_0x16b551(0x30f)]()),_0x471981=((_0x1bc3b1=_0xacbd4b[_0x16b551(0x204)])==null?void 0x0:_0x1bc3b1['length'])??0x0,_0x405970=_0xacbd4b[_0x16b551(0x277)][_0x16b551(0x2f0)](_0x1d8533=>y(_0xacbd4b[_0x16b551(0x24a)][_0x1d8533]))[_0x16b551(0x32b)];return this[_0x16b551(0x292)](0x0,0x0,Math[_0x16b551(0x1e3)](_0x471981,0x1),Math[_0x16b551(0x1e3)](_0x405970,0x1));}[_0x19990d(0x2fd)](){const _0x4fc4b4=_0x19990d;let _0xdb268a=this['_getTable']();return _0xdb268a['viewOrder'][_0x4fc4b4(0x2f0)](_0x514419=>_0xdb268a['views'][_0x514419])[_0x4fc4b4(0x24d)](_0x6988e3=>this[_0x4fc4b4(0x1f8)][_0x4fc4b4(0x2b3)](z,this['_base'],this,_0x6988e3,this[_0x4fc4b4(0x1f8)]));}[_0x19990d(0x326)](_0x467c8a){const _0x474e71=_0x19990d;return this[_0x474e71(0x30f)]()[_0x474e71(0x2e3)][_0x467c8a]?this[_0x474e71(0x1f8)]['createInstance'](z,this['_base'],this,_0x467c8a,this[_0x474e71(0x1f8)]):null;}[_0x19990d(0x198)](_0x4e4b20){const _0x182b4b=_0x19990d;let _0x487938=this[_0x182b4b(0x30f)](),_0x271eb6=Object[_0x182b4b(0x209)](_0x487938[_0x182b4b(0x2e3)])[_0x182b4b(0x293)](_0x5f0676=>_0x5f0676[_0x182b4b(0x19c)]===_0x4e4b20);return _0x271eb6?this[_0x182b4b(0x1f8)]['createInstance'](z,this[_0x182b4b(0x240)],this,_0x271eb6['id'],this[_0x182b4b(0x1f8)]):null;}[_0x19990d(0x2c0)](_0x36d557,_0x11af28,_0x160e53){const _0x3480ac=_0x19990d;var _0x7e0c4e,_0x1ff81d,_0x381fd4,_0x1d2e47;let _0x5cd570=this['_getTable'](),_0x29c7f6=(_0x160e53==null||(_0x7e0c4e=_0x160e53[_0x3480ac(0x1aa)])==null?void 0x0:_0x7e0c4e[_0x3480ac(0x277)])??_0x5cd570['fieldOrder'],_0x18ad4a=[l[_0x3480ac(0x33b)],..._0x29c7f6[_0x3480ac(0x2f0)](_0x107046=>y(_0x5cd570[_0x3480ac(0x24a)][_0x107046]))],_0x5dcf72={..._0x160e53==null?void 0x0:_0x160e53[_0x3480ac(0x1aa)],'id':(0x0,l[_0x3480ac(0x1d0)])(0x6),'name':_0x36d557,'type':_0x11af28,'tableId':this['_tableId'],'config':(_0x160e53==null||(_0x1ff81d=_0x160e53[_0x3480ac(0x1aa)])==null?void 0x0:_0x1ff81d[_0x3480ac(0x206)])??{},'fieldOrder':_0x18ad4a,'fieldSettings':{..._0x160e53==null||(_0x381fd4=_0x160e53[_0x3480ac(0x1aa)])==null?void 0x0:_0x381fd4['fieldSettings'],[l[_0x3480ac(0x33b)]]:{..._0x160e53==null||(_0x1d2e47=_0x160e53[_0x3480ac(0x1aa)])==null||(_0x1d2e47=_0x1d2e47[_0x3480ac(0x29b)])==null?void 0x0:_0x1d2e47[l[_0x3480ac(0x33b)]],'hidden':!0x0}}};if(!this[_0x3480ac(0x2b2)][_0x3480ac(0x29f)](c['CreateBaseViewCommand']['id'],{'unitId':this[_0x3480ac(0x240)][_0x3480ac(0x2a2)](),'tableId':this[_0x3480ac(0x199)],'view':_0x5dcf72,'index':_0x160e53==null?void 0x0:_0x160e53[_0x3480ac(0x2d8)]}))throw Error(_0x3480ac(0x29e)+_0x36d557+'\x22');return this[_0x3480ac(0x1f8)][_0x3480ac(0x2b3)](z,this[_0x3480ac(0x240)],this,_0x5dcf72['id'],this[_0x3480ac(0x1f8)]);}[_0x19990d(0x18c)](){const _0x3abfa6=_0x19990d;let _0x156313=this[_0x3abfa6(0x30f)](),_0x31c066=_0x156313['fieldOrder'][_0x3abfa6(0x2f0)](_0x129777=>y(_0x156313[_0x3abfa6(0x24a)][_0x129777])),_0x23c3d7=_0x156313[_0x3abfa6(0x1e6)][_0x3abfa6(0x2f0)](_0x3375d9=>_0x156313[_0x3abfa6(0x2e3)][_0x3375d9]);return{'id':_0x156313['id'],'name':_0x156313[_0x3abfa6(0x19c)],'formulaName':this[_0x3abfa6(0x286)](),'primaryFieldId':_0x156313['primaryFieldId'],'fieldIds':_0x31c066,'viewIds':_0x23c3d7,'recordCount':this[_0x3abfa6(0x239)]()[_0x3abfa6(0x32b)],'fields':_0x31c066[_0x3abfa6(0x24d)](_0x388029=>{const _0x52b94b=_0x3abfa6;let _0x2101bc=_0x156313[_0x52b94b(0x24a)][_0x388029];return{'id':_0x2101bc['id'],'name':_0x2101bc[_0x52b94b(0x19c)],'type':_0x2101bc[_0x52b94b(0x258)],'config':_0x2101bc['config'],'readonly':_0x2101bc[_0x52b94b(0x1d5)],'description':_0x2101bc[_0x52b94b(0x291)]};}),'views':_0x23c3d7[_0x3abfa6(0x24d)](_0x15e06d=>{const _0x4672b2=_0x3abfa6;let _0x5215ef=_0x156313[_0x4672b2(0x2e3)][_0x15e06d];return{'id':_0x5215ef['id'],'name':_0x5215ef['name'],'type':_0x5215ef['type']};})};}[_0x19990d(0x30f)](){const _0x5cd144=_0x19990d;let _0x34cbbd=this[_0x5cd144(0x240)]['getBase']()['getSnapshot']()[_0x5cd144(0x2f3)][this[_0x5cd144(0x199)]];if(!_0x34cbbd)throw Error('[FTable]:\x20table\x20\x22'+this[_0x5cd144(0x199)]+_0x5cd144(0x192));return _0x34cbbd;}[_0x19990d(0x239)](_0x47ec10={}){const _0x3e4a94=_0x19990d;let _0x2b8661=this[_0x3e4a94(0x240)][_0x3e4a94(0x30b)]()['getSnapshot'](),_0x1a8445=this[_0x3e4a94(0x30f)]();if(_0x47ec10['viewId']){let _0x257616=this['_projectionService'][_0x3e4a94(0x19b)](_0x2b8661,this[_0x3e4a94(0x199)],_0x47ec10[_0x3e4a94(0x301)]);if('rows'in _0x257616&&Array[_0x3e4a94(0x2b1)](_0x257616[_0x3e4a94(0x232)]))return _0x257616[_0x3e4a94(0x232)][_0x3e4a94(0x24d)](_0x47e741=>_0x47e741[_0x3e4a94(0x1de)]);}return(_0x1a8445[_0x3e4a94(0x204)]?_0x1a8445[_0x3e4a94(0x204)][_0x3e4a94(0x24d)](_0x1a89ba=>_0x1a8445[_0x3e4a94(0x251)][_0x1a89ba]):Object[_0x3e4a94(0x209)](_0x1a8445['records'])[_0x3e4a94(0x2e6)]((_0x532995,_0x131df4)=>_0x532995['orderKey']['localeCompare'](_0x131df4[_0x3e4a94(0x263)])))['filter'](_0x25ecac=>_0x25ecac)[_0x3e4a94(0x24d)](_0x2c92b5=>_0x2c92b5['id']);}};B=g([h(0x3,l[_0x19990d(0x2b4)]),h(0x4,l[_0x19990d(0x18f)]),h(0x5,c[_0x19990d(0x2ac)])],B);function V(_0x2af97c,_0x116392){const _0x5e4365=_0x19990d;let _0xbb55b5=Math[_0x5e4365(0x1e3)](0x0,_0x116392[_0x5e4365(0x1b9)]??0x0);return _0x116392[_0x5e4365(0x1eb)]==null?_0x2af97c[_0x5e4365(0x2d0)](_0xbb55b5):_0x2af97c[_0x5e4365(0x2d0)](_0xbb55b5,_0xbb55b5+Math[_0x5e4365(0x1e3)](0x0,_0x116392['limit']));}function H(_0x5027ca,_0x300a9e,_0x46614d=[]){const _0x4a6f4e=_0x19990d;return _0x46614d[_0x4a6f4e(0x32b)]?[..._0x5027ca][_0x4a6f4e(0x2e6)]((_0x4c710e,_0x2f8eaf)=>{const _0x4ea2ff=_0x4a6f4e;for(let _0x4f56f8 of _0x46614d){var _0xa4ad53;let _0x4dce42=_0x4f56f8[_0x4ea2ff(0x186)]===l[_0x4ea2ff(0x2ab)][_0x4ea2ff(0x339)]?-0x1:0x1,_0x1a506f=U(_0x4c710e[_0x4ea2ff(0x209)][_0x4f56f8['fieldId']],_0x2f8eaf[_0x4ea2ff(0x209)][_0x4f56f8[_0x4ea2ff(0x2e9)]],(_0xa4ad53=_0x300a9e['fields'][_0x4f56f8[_0x4ea2ff(0x2e9)]])==null?void 0x0:_0xa4ad53['type']);if(_0x1a506f!==0x0)return _0x1a506f*_0x4dce42;}return String(_0x4c710e['orderKey']??_0x4c710e['id'])['localeCompare'](String(_0x2f8eaf['orderKey']??_0x2f8eaf['id']));}):_0x5027ca;}function U(_0x1738ba,_0x287c64,_0x3e0c6a){const _0x153ffa=_0x19990d;return _0x1738ba==null&&_0x287c64==null?0x0:_0x1738ba==null?-0x1:_0x287c64==null?0x1:typeof _0x1738ba==_0x153ffa(0x2b5)&&typeof _0x287c64==_0x153ffa(0x2b5)?_0x1738ba-_0x287c64:_0x3e0c6a===l['BaseFieldType'][_0x153ffa(0x246)]?Number(_0x1738ba)-Number(_0x287c64):String(_0x1738ba)[_0x153ffa(0x212)](String(_0x287c64));}function W(_0x451740,_0x39cdbe,_0x172221){const _0x3082a8=_0x19990d;var _0x4b1013;if(!_0x172221||!((_0x4b1013=_0x172221['conditions'])!=null&&_0x4b1013[_0x3082a8(0x32b)]))return!0x0;let {conjunction:_0x4e8ed0=l[_0x3082a8(0x31a)]['OR'],conditions:_0x4528a1}=_0x172221;return _0x4e8ed0===l[_0x3082a8(0x31a)]['AND']&&_0x4528a1[_0x3082a8(0x32b)]>0x1?_0x4528a1[_0x3082a8(0x329)](_0x3e5516=>G(_0x451740,_0x39cdbe,_0x3e5516)):_0x4528a1[_0x3082a8(0x2ca)](_0x12a04d=>G(_0x451740,_0x39cdbe,_0x12a04d));}function G(_0x6eb1f2,_0x421bc1,_0x5c9a70){const _0x1a401b=_0x19990d;let _0x393980=_0x6eb1f2['values'][_0x5c9a70[_0x1a401b(0x2e9)]],_0x441a1e=_0x421bc1['fields'][_0x5c9a70['fieldId']];if(K(_0x5c9a70)){let _0x172362=q(_0x5c9a70)['test'](String(_0x393980??''));return _0x5c9a70[_0x1a401b(0x1f3)]===_0x1a401b(0x2da)?_0x172362:!_0x172362;}return!_0x441a1e||(0x0,c[_0x1a401b(0x23c)])(_0x393980,_0x5c9a70[_0x1a401b(0x1f3)],_0x5c9a70[_0x1a401b(0x337)],_0x441a1e);}function K(_0x2c9877){const _0x4b4658=_0x19990d;return _0x2c9877[_0x4b4658(0x1f3)]==='matches'||_0x2c9877[_0x4b4658(0x1f3)]===_0x4b4658(0x1ce);}function q(_0x20bdde){const _0x127be4=_0x19990d;let _0x49a0e3=String(_0x20bdde['value']??'');if(_0x49a0e3[_0x127be4(0x32b)]>0x200)throw Error(_0x127be4(0x1ec));try{return new RegExp(_0x49a0e3,_0x20bdde[_0x127be4(0x223)]?void 0x0:'i');}catch(_0x32708a){throw Error(_0x127be4(0x21a)+_0x49a0e3+'.\x20'+(_0x32708a instanceof Error?_0x32708a[_0x127be4(0x30d)]:String(_0x32708a)));}}function J(_0x582e8c,_0x57052b,_0x402f52){const _0x366b6b=_0x19990d;if(_0x402f52['type']!=='invalid'&&_0x402f52[_0x366b6b(0x258)]!==_0x366b6b(0x324)){var _0x551366;if(_0x402f52[_0x366b6b(0x258)]===l[_0x366b6b(0x1e4)][_0x366b6b(0x190)]){var _0x23e969;let _0x50d2cd=[((_0x23e969=_0x402f52['fields'])==null||(_0x23e969=_0x23e969[0x0])==null?void 0x0:_0x23e969['id'])??_0x582e8c[_0x366b6b(0x1f7)],..._0x402f52['visibleCardFieldIds']??[]];return Array[_0x366b6b(0x253)](new Set(_0x50d2cd[_0x366b6b(0x2f0)](_0x4c78b0=>!!_0x582e8c[_0x366b6b(0x24a)][_0x4c78b0])));}if((_0x551366=_0x402f52[_0x366b6b(0x24a)])!=null&&_0x551366[_0x366b6b(0x32b)])return _0x402f52[_0x366b6b(0x24a)][_0x366b6b(0x24d)](_0x349e04=>_0x349e04['id'])[_0x366b6b(0x2f0)](_0x3ea51d=>{const _0x4d7050=_0x366b6b;var _0x735d2f;return!(!_0x582e8c[_0x4d7050(0x24a)][_0x3ea51d]||_0x57052b!=null&&(_0x735d2f=_0x57052b[_0x4d7050(0x29b)])!=null&&(_0x735d2f=_0x735d2f[_0x3ea51d])!=null&&_0x735d2f[_0x4d7050(0x1c4)]);});}return _0x582e8c[_0x366b6b(0x277)][_0x366b6b(0x2f0)](_0x278359=>{const _0x498438=_0x366b6b;var _0x4b2f44;return!(!_0x582e8c['fields'][_0x278359]||_0x57052b!=null&&(_0x4b2f44=_0x57052b[_0x498438(0x29b)])!=null&&(_0x4b2f44=_0x4b2f44[_0x278359])!=null&&_0x4b2f44[_0x498438(0x1c4)]);});}let Y=class extends u['FBase']{constructor(_0x1d8656,_0x417f9c,_0x37d868,_0x17f376,_0x23cd77){const _0x2411d6=_0x19990d;super(),this[_0x2411d6(0x240)]=_0x1d8656,this[_0x2411d6(0x1f8)]=_0x417f9c,this[_0x2411d6(0x2c7)]=_0x37d868,this[_0x2411d6(0x2b2)]=_0x17f376,this[_0x2411d6(0x2fe)]=_0x23cd77;}[_0x19990d(0x30b)](){const _0x18df7b=_0x19990d;return this[_0x18df7b(0x240)];}[_0x19990d(0x2a2)](){const _0xc43f1e=_0x19990d;return this[_0xc43f1e(0x240)]['getUnitId']();}[_0x19990d(0x24f)](){const _0x530ef2=_0x19990d;return new p(this[_0x530ef2(0x2a2)](),this[_0x530ef2(0x2b2)],this[_0x530ef2(0x2fe)]);}['save'](){const _0x455edb=_0x19990d;return this[_0x455edb(0x2c7)][_0x455edb(0x25d)](this['getId']())??l[_0x455edb(0x1e0)][_0x455edb(0x2ad)](this[_0x455edb(0x240)][_0x455edb(0x28e)]());}[_0x19990d(0x26c)](){const _0x3cc548=_0x19990d;return this[_0x3cc548(0x240)]['getSnapshot']()[_0x3cc548(0x19c)];}['setName'](_0x412a8a){const _0x5a70e9=_0x19990d;this[_0x5a70e9(0x2b2)][_0x5a70e9(0x29f)](c[_0x5a70e9(0x27c)]['id'],{'unitId':this[_0x5a70e9(0x2a2)](),'name':_0x412a8a});}['getTables'](){const _0x20f64b=_0x19990d;let _0x5797a6=this[_0x20f64b(0x240)][_0x20f64b(0x28e)]();return _0x5797a6[_0x20f64b(0x2f7)][_0x20f64b(0x24d)](_0x3f8508=>_0x5797a6[_0x20f64b(0x2f3)][_0x3f8508])[_0x20f64b(0x2f0)](_0x4b6432=>_0x4b6432)['map'](_0x1d59b7=>this[_0x20f64b(0x1f8)][_0x20f64b(0x2b3)](B,this,_0x1d59b7['id'],this['_injector']));}[_0x19990d(0x221)](_0x14a401){const _0x5f04f1=_0x19990d;let _0x4e49d7=this[_0x5f04f1(0x240)][_0x5f04f1(0x28e)]()['tables'][_0x14a401];return _0x4e49d7?this['_injector'][_0x5f04f1(0x2b3)](B,this,_0x4e49d7['id'],this[_0x5f04f1(0x1f8)]):null;}['getTableByName'](_0x3d2be5){const _0x216a64=_0x19990d;let _0x5deae2=this[_0x216a64(0x240)][_0x216a64(0x28e)](),_0x2b8cf4=Object[_0x216a64(0x209)](_0x5deae2[_0x216a64(0x2f3)])[_0x216a64(0x293)](_0x19a78b=>_0x19a78b[_0x216a64(0x19c)]===_0x3d2be5);return _0x2b8cf4?this[_0x216a64(0x1f8)][_0x216a64(0x2b3)](B,this,_0x2b8cf4['id'],this[_0x216a64(0x1f8)]):null;}['insertTable'](_0x5106b7,_0x16b44a){const _0x224e8b=_0x19990d;let _0x53fecc=(0x0,l['createDefaultBaseTableSnapshot'])({'id':(0x0,l[_0x224e8b(0x1d0)])(),'name':_0x5106b7,..._0x16b44a==null?void 0x0:_0x16b44a['table'],'primaryFieldName':_0x16b44a==null?void 0x0:_0x16b44a[_0x224e8b(0x196)]}),_0x44e3f0=l[_0x224e8b(0x1e0)][_0x224e8b(0x260)](_0x53fecc,(_0x16b44a==null?void 0x0:_0x16b44a[_0x224e8b(0x1ee)])??{}),_0x1d23ed=(0x0,c['validateBaseTableName'])(this[_0x224e8b(0x240)][_0x224e8b(0x28e)](),_0x44e3f0[_0x224e8b(0x19c)]);if(!_0x1d23ed[_0x224e8b(0x23e)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x44e3f0['name']+_0x224e8b(0x2d3)+c[_0x224e8b(0x332)]+'\x20'+_0x1d23ed[_0x224e8b(0x26a)]);if(!this[_0x224e8b(0x2b2)][_0x224e8b(0x29f)](c[_0x224e8b(0x2e1)]['id'],{'unitId':this['_base'][_0x224e8b(0x1d6)](),'table':_0x44e3f0,'index':_0x16b44a==null?void 0x0:_0x16b44a['index']}))throw Error(_0x224e8b(0x225)+_0x5106b7+'\x22.');return this['_injector'][_0x224e8b(0x2b3)](B,this,_0x44e3f0['id'],this[_0x224e8b(0x1f8)]);}[_0x19990d(0x222)](_0x3b28fa){const _0x570488=_0x19990d;let _0x3d7496=typeof _0x3b28fa=='string'?_0x3b28fa:_0x3b28fa[_0x570488(0x2a2)]();if(!this[_0x570488(0x2b2)][_0x570488(0x29f)](c[_0x570488(0x25e)]['id'],{'unitId':this['_base'][_0x570488(0x1d6)](),'tableId':_0x3d7496}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x3d7496+'\x22.');return!0x0;}[_0x19990d(0x276)](_0x145321,_0xb58403){const _0x3c16c7=_0x19990d;let _0x42b31c=this[_0x3c16c7(0x240)][_0x3c16c7(0x28e)](),_0x59eb06=typeof _0x145321==_0x3c16c7(0x2f9)?_0x145321:_0x145321[_0x3c16c7(0x2a2)](),_0x2b7629=_0x42b31c['tables'][_0x59eb06];if(!_0x2b7629)throw Error('[FBase]:\x20table\x20\x22'+_0x59eb06+_0x3c16c7(0x192));let _0x21e890=_0x42b31c[_0x3c16c7(0x2f7)][_0x3c16c7(0x338)](_0x59eb06)+0x1,_0x5a29a1=(0x0,l[_0x3c16c7(0x1d0)])(),_0x301438=(0x0,c['copyBaseTableSnapshot'])(_0x2b7629,{'id':_0x5a29a1,'name':(0x0,c['createUniqueBaseTableName'])(_0x42b31c,_0x2b7629[_0x3c16c7(0x19c)]+_0x3c16c7(0x33a)),'includeRecords':(_0xb58403==null?void 0x0:_0xb58403[_0x3c16c7(0x259)])??!0x1,'regenerateViewIds':(_0xb58403==null?void 0x0:_0xb58403[_0x3c16c7(0x203)])??!0x1});if(!this[_0x3c16c7(0x2b2)][_0x3c16c7(0x29f)](c[_0x3c16c7(0x2e1)]['id'],{'unitId':this[_0x3c16c7(0x240)][_0x3c16c7(0x1d6)](),'table':_0x301438,'index':_0x21e890}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x59eb06+'\x22.');return this['_injector']['createInstance'](B,this,_0x301438['id'],this[_0x3c16c7(0x1f8)]);}[_0x19990d(0x18c)](){const _0x2aa59c=_0x19990d;let _0x19d73c=this[_0x2aa59c(0x240)][_0x2aa59c(0x28e)]();return{'id':_0x19d73c['id'],'name':_0x19d73c['name'],'tables':this[_0x2aa59c(0x2eb)]()[_0x2aa59c(0x24d)](_0x3f61f3=>_0x3f61f3[_0x2aa59c(0x18c)]())};}};Y=g([h(0x1,(0x0,l[_0x19990d(0x2f1)])(l[_0x19990d(0x32e)])),h(0x2,l[_0x19990d(0x1e7)]),h(0x3,l['ICommandService']),h(0x4,l[_0x19990d(0x18f)])],Y);var X=class extends u[_0x19990d(0x20f)]{[_0x19990d(0x2a9)](){const _0x38dd3a=_0x19990d;this['_initBaseBeforeEvents'](),this[_0x38dd3a(0x282)]();}['createBase'](_0x58ae1c={},_0xee72d3){const _0x50a483=_0x19990d;let _0x1183dc=this[_0x50a483(0x2d4)][_0x50a483(0x2ce)](l['UniverInstanceType'][_0x50a483(0x23d)],_0x58ae1c,_0xee72d3);return this[_0x50a483(0x1f8)][_0x50a483(0x2b3)](Y,_0x1183dc);}[_0x19990d(0x26e)](){const _0x34f8a9=_0x19990d;let _0x2d4df7=this[_0x34f8a9(0x2d4)]['getCurrentUnitOfType'](l[_0x34f8a9(0x1b7)][_0x34f8a9(0x23d)]);return _0x2d4df7?this[_0x34f8a9(0x1f8)][_0x34f8a9(0x2b3)](Y,_0x2d4df7):null;}[_0x19990d(0x30b)](_0x24d7e9){const _0x2e258b=_0x19990d;let _0x568f19=this[_0x2e258b(0x2d4)]['getUnit'](_0x24d7e9,l[_0x2e258b(0x1b7)][_0x2e258b(0x23d)]);return _0x568f19?this['_injector'][_0x2e258b(0x2b3)](Y,_0x568f19):null;}[_0x19990d(0x295)](){const _0x5e7165=_0x19990d;return this[_0x5e7165(0x2d4)][_0x5e7165(0x20d)](l[_0x5e7165(0x1b7)]['UNIVER_BASE'])[_0x5e7165(0x24d)](_0x282890=>this[_0x5e7165(0x1f8)][_0x5e7165(0x2b3)](Y,_0x282890));}[_0x19990d(0x282)](){const _0x460eb6=_0x19990d;this['disposeWithMe'](this['registerEventHandler'](this[_0x460eb6(0x2bc)][_0x460eb6(0x2d5)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)]((_0x535463,_0x355ab2)=>{const _0x51802=_0x460eb6;var _0x420bf3;if(!Z(_0x535463,c[_0x51802(0x22d)]))return;let _0x5c8beb=_0x535463['params'];if(!((_0x420bf3=_0x5c8beb[_0x51802(0x1fe)])!=null&&_0x420bf3[_0x51802(0x32b)]))return;let _0x31b5d5=this[_0x51802(0x30b)](_0x5c8beb[_0x51802(0x321)]),_0x5028fd=_0x31b5d5==null?void 0x0:_0x31b5d5[_0x51802(0x221)](_0x5c8beb[_0x51802(0x1fe)][0x0][_0x51802(0x230)]);if(!_0x31b5d5||!_0x5028fd)return;let _0x105dbf={'base':_0x31b5d5,'table':_0x5028fd,'changes':_0x5c8beb[_0x51802(0x1fe)],'source':_0x355ab2!=null&&_0x355ab2[_0x51802(0x2ed)]?c[_0x51802(0x272)]['Remote']:_0x5c8beb['source']??c['BaseEventSource']['UI']};this[_0x51802(0x21c)](this['Event']['BaseHierarchyChanged'],_0x105dbf);}))),this['disposeWithMe'](this[_0x460eb6(0x20b)](this[_0x460eb6(0x2bc)][_0x460eb6(0x1a1)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x566d02=>{const _0x3f891b=_0x460eb6;if(_0x566d02['id']!==c[_0x3f891b(0x2e1)]['id'])return;let {unitId:_0x898507,table:_0x75768b,index:_0xb63f23}=_0x566d02['params'],_0x5022d7=this[_0x3f891b(0x30b)](_0x898507);if(!_0x5022d7)return;let _0x25ab6a={'base':_0x5022d7,'table':_0x75768b,'index':_0xb63f23};this['fireEvent'](this[_0x3f891b(0x2bc)][_0x3f891b(0x1a1)],_0x25ab6a);}))),this[_0x460eb6(0x1e9)](this['registerEventHandler'](this['Event']['BaseTableFieldCreated'],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x390429=>{const _0x276411=_0x460eb6;if(_0x390429['id']!==c[_0x276411(0x313)]['id'])return;let {unitId:_0x3f9a94,tableId:_0x4d0bfe,field:_0x3f7c4c,index:_0x3362b9,viewIndexes:_0x65b198}=_0x390429[_0x276411(0x224)],_0x26fa58=this['getBase'](_0x3f9a94);if(!_0x26fa58)return;let _0x29733a=_0x26fa58['getTableById'](_0x4d0bfe);if(!_0x29733a)return;let _0x1f2294={'base':_0x26fa58,'table':_0x29733a,'field':_0x3f7c4c,'index':_0x3362b9,'viewIndexes':_0x65b198};this[_0x276411(0x21c)](this[_0x276411(0x2bc)]['BaseTableFieldCreated'],_0x1f2294);}))),this[_0x460eb6(0x1e9)](this[_0x460eb6(0x20b)](this[_0x460eb6(0x2bc)][_0x460eb6(0x270)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x131832=>{const _0x428376=_0x460eb6;if(_0x131832['id']!==c[_0x428376(0x269)]['id']&&_0x131832['id']!==c[_0x428376(0x27e)]['id'])return;let _0x4d0a4f=_0x131832['params'],{unitId:_0x58524b,tableId:_0x305e0d}=_0x4d0a4f,_0x47423d=_0x4d0a4f[_0x428376(0x251)]??[_0x4d0a4f[_0x428376(0x1a7)]],_0x583aac=this[_0x428376(0x30b)](_0x58524b);if(!_0x583aac)return;let _0x2a629a=_0x583aac[_0x428376(0x221)](_0x305e0d);if(!_0x2a629a)return;let _0x173798={'base':_0x583aac,'table':_0x2a629a,'records':_0x47423d};this['fireEvent'](this[_0x428376(0x2bc)]['BaseTableRecordCreated'],_0x173798);}))),this['disposeWithMe'](this[_0x460eb6(0x20b)](this['Event'][_0x460eb6(0x256)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x2d831f=>{const _0x512a76=_0x460eb6;if(_0x2d831f['id']!==c[_0x512a76(0x30e)]['id'])return;let {unitId:_0x579dcf,tableId:_0x55509b,view:_0x5410d2,index:_0x4d2950}=_0x2d831f[_0x512a76(0x224)],_0x36a78a=this[_0x512a76(0x30b)](_0x579dcf);if(!_0x36a78a)return;let _0x105db3=_0x36a78a[_0x512a76(0x221)](_0x55509b);if(!_0x105db3)return;let _0x3ddba4={'base':_0x36a78a,'table':_0x105db3,'view':_0x5410d2,'index':_0x4d2950};this[_0x512a76(0x21c)](this[_0x512a76(0x2bc)][_0x512a76(0x256)],_0x3ddba4);}))),this[_0x460eb6(0x1e9)](this['registerEventHandler'](this[_0x460eb6(0x2bc)][_0x460eb6(0x32a)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x475c44=>{const _0x19aee2=_0x460eb6;if(_0x475c44['id']!==c[_0x19aee2(0x21f)]['id'])return;let {unitId:_0x1a81e2,tableId:_0x43795b,recordId:_0xf8dce0,fieldId:_0x40d4c0,value:_0x43958e}=_0x475c44[_0x19aee2(0x224)],_0x11c616=this[_0x19aee2(0x30b)](_0x1a81e2);if(!_0x11c616)return;let _0xd41011=_0x11c616[_0x19aee2(0x221)](_0x43795b);if(!_0xd41011)return;let _0x19b3c4=_0xd41011[_0x19aee2(0x2ee)](_0x40d4c0);if(!_0x19b3c4)return;let _0x364388=_0xd41011[_0x19aee2(0x235)](_0xf8dce0);if(!_0x364388)return;let _0x2a63a0={'base':_0x11c616,'table':_0xd41011,'field':_0x19b3c4,'record':_0x364388,'value':_0x43958e};this[_0x19aee2(0x21c)](this[_0x19aee2(0x2bc)][_0x19aee2(0x32a)],_0x2a63a0);})));}[_0x19990d(0x234)](){const _0x3ca052=_0x19990d;this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)]['BeforeBaseHierarchyChange'],()=>this['_commandService'][_0x3ca052(0x328)](_0x32490d=>{const _0x5e0648=_0x3ca052;if(Z(_0x32490d,c['SetBaseRecordValuesCommand'])){let {unitId:_0x27c172,tableId:_0x4e66b0,patches:_0x22ba4b,source:_0x2dbd09=c[_0x5e0648(0x272)]['UI']}=_0x32490d['params'],_0x1ef4bd=this[_0x5e0648(0x1b8)](_0x27c172,_0x4e66b0);if(!_0x1ef4bd)return;this['_fireBeforeHierarchyChange'](_0x1ef4bd[_0x5e0648(0x18b)],_0x1ef4bd[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x1c3)])(_0x1ef4bd[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x22ba4b),_0x2dbd09);return;}if(Z(_0x32490d,c['SetBaseRangeValuesCommand'])){let {unitId:_0x1dcbc9,tableId:_0xcb9ff3,patches:_0xdbb96f,source:_0xa37512=c['BaseEventSource']['UI']}=_0x32490d[_0x5e0648(0x224)],_0x25d719=this[_0x5e0648(0x1b8)](_0x1dcbc9,_0xcb9ff3);if(!_0x25d719)return;let _0x1257c2=_0x25d719['table'][_0x5e0648(0x2a7)]();this[_0x5e0648(0x1df)](_0x25d719[_0x5e0648(0x18b)],_0x25d719['table'],(0x0,c[_0x5e0648(0x1c3)])(_0x1257c2,(0x0,c[_0x5e0648(0x1d2)])(_0x1257c2,_0xdbb96f)),_0xa37512);return;}if(Z(_0x32490d,c[_0x5e0648(0x269)])){let _0x58c390=_0x32490d[_0x5e0648(0x224)],_0x595c23=this[_0x5e0648(0x1b8)](_0x58c390['unitId'],_0x58c390[_0x5e0648(0x230)]);if(!_0x595c23)return;this[_0x5e0648(0x1df)](_0x595c23[_0x5e0648(0x18b)],_0x595c23[_0x5e0648(0x1ee)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x595c23[_0x5e0648(0x1ee)]['getTable'](),[_0x58c390[_0x5e0648(0x1a7)]]),_0x58c390[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x27e)])){let _0x4c87a4=_0x32490d[_0x5e0648(0x224)],_0x5d10b0=this[_0x5e0648(0x1b8)](_0x4c87a4[_0x5e0648(0x321)],_0x4c87a4[_0x5e0648(0x230)]);if(!_0x5d10b0)return;this[_0x5e0648(0x1df)](_0x5d10b0[_0x5e0648(0x18b)],_0x5d10b0[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x24c)])(_0x5d10b0[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x4c87a4['records']),_0x4c87a4['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x215)])){let _0x35c4f0=_0x32490d['params'],_0x1e9520=this['_getHierarchyEventContext'](_0x35c4f0[_0x5e0648(0x321)],_0x35c4f0[_0x5e0648(0x230)]);if(!_0x1e9520)return;this['_fireBeforeHierarchyChange'](_0x1e9520[_0x5e0648(0x18b)],_0x1e9520[_0x5e0648(0x1ee)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x1e9520['table'][_0x5e0648(0x2a7)](),[_0x35c4f0['record']]),_0x35c4f0['source']??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x1a2)])){let _0x1e6bfc=_0x32490d['params'],_0x501373=this[_0x5e0648(0x1b8)](_0x1e6bfc[_0x5e0648(0x321)],_0x1e6bfc['tableId']);if(!_0x501373)return;let _0x35e023=_0x501373[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x189f67=_0x1e6bfc[_0x5e0648(0x2e9)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x35e023),_0x300d87=(0x0,c[_0x5e0648(0x1a0)])(_0x35e023,_0x189f67)['parentByRecordId']['get'](_0x1e6bfc[_0x5e0648(0x1de)])??null;this['_fireBeforeHierarchyChange'](_0x501373['base'],_0x501373[_0x5e0648(0x1ee)],[{'tableId':_0x1e6bfc[_0x5e0648(0x230)],'fieldId':_0x189f67,'recordId':_0x1e6bfc[_0x5e0648(0x1de)],'oldParentRecordId':_0x300d87,'parentRecordId':_0x1e6bfc['parentRecordId']}],_0x1e6bfc['source']??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c['CreateBaseChildRecordCommand'])){let _0x2e7d01=_0x32490d[_0x5e0648(0x224)],_0x4df68f=this[_0x5e0648(0x1b8)](_0x2e7d01['unitId'],_0x2e7d01[_0x5e0648(0x230)]);if(!_0x4df68f)return;let _0x5678ad=_0x2e7d01['fieldId']??(0x0,c[_0x5e0648(0x2be)])(_0x4df68f[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)]());this[_0x5e0648(0x1df)](_0x4df68f[_0x5e0648(0x18b)],_0x4df68f[_0x5e0648(0x1ee)],[{'tableId':_0x2e7d01[_0x5e0648(0x230)],'fieldId':_0x5678ad,'recordId':_0x2e7d01[_0x5e0648(0x1a7)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2e7d01[_0x5e0648(0x31d)]}],_0x2e7d01[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x213)])){let _0x5791e9=_0x32490d[_0x5e0648(0x224)],_0xc725d0=this['_getHierarchyEventContext'](_0x5791e9[_0x5e0648(0x321)],_0x5791e9[_0x5e0648(0x230)]);if(!_0xc725d0)return;this[_0x5e0648(0x1df)](_0xc725d0[_0x5e0648(0x18b)],_0xc725d0[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x32d)])(_0xc725d0['table'][_0x5e0648(0x2a7)](),[_0x5791e9[_0x5e0648(0x1de)]]),_0x5791e9[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x294)])){let _0x7ab7ec=_0x32490d[_0x5e0648(0x224)],_0x1410c0=this[_0x5e0648(0x1b8)](_0x7ab7ec['unitId'],_0x7ab7ec[_0x5e0648(0x230)]);if(!_0x1410c0)return;this[_0x5e0648(0x1df)](_0x1410c0[_0x5e0648(0x18b)],_0x1410c0[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x32d)])(_0x1410c0[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x7ab7ec[_0x5e0648(0x323)]),_0x7ab7ec[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(!Z(_0x32490d,c[_0x5e0648(0x21f)]))return;let _0x273ae1=_0x32490d[_0x5e0648(0x224)],_0x4fd440=this[_0x5e0648(0x1b8)](_0x273ae1[_0x5e0648(0x321)],_0x273ae1[_0x5e0648(0x230)]);if(!_0x4fd440)return;let _0x2709ce=_0x4fd440[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)]();if(!(0x0,c[_0x5e0648(0x25c)])(_0x2709ce)[_0x5e0648(0x219)](_0x273ae1[_0x5e0648(0x2e9)]))return;let _0x1ca228=(0x0,c[_0x5e0648(0x1a0)])(_0x2709ce,_0x273ae1['fieldId'])[_0x5e0648(0x24b)][_0x5e0648(0x289)](_0x273ae1[_0x5e0648(0x1de)])??null,_0x2c58d9=(0x0,c[_0x5e0648(0x2cb)])(_0x273ae1[_0x5e0648(0x337)])[0x0]??null;_0x1ca228!==_0x2c58d9&&this[_0x5e0648(0x1df)](_0x4fd440[_0x5e0648(0x18b)],_0x4fd440[_0x5e0648(0x1ee)],[{'tableId':_0x273ae1['tableId'],'fieldId':_0x273ae1[_0x5e0648(0x2e9)],'recordId':_0x273ae1[_0x5e0648(0x1de)],'oldParentRecordId':_0x1ca228,'parentRecordId':_0x2c58d9}],_0x273ae1[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);}))),this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)][_0x3ca052(0x2b9)],()=>this[_0x3ca052(0x2b2)][_0x3ca052(0x328)](_0x1624ac=>{const _0x42e43a=_0x3ca052;if(_0x1624ac['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0x4e3d54,table:_0xb9ae83,index:_0x3a1310}=_0x1624ac[_0x42e43a(0x224)],_0x15f291=this[_0x42e43a(0x30b)](_0x4e3d54);if(!_0x15f291)return;let _0x3b17ab={'base':_0x15f291,'table':_0xb9ae83,'index':_0x3a1310};if(this[_0x42e43a(0x21c)](this['Event'][_0x42e43a(0x2b9)],_0x3b17ab),_0x3b17ab[_0x42e43a(0x21e)])throw new l[(_0x42e43a(0x31c))]();}))),this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)][_0x3ca052(0x1b0)],()=>this[_0x3ca052(0x2b2)][_0x3ca052(0x328)](_0x548615=>{const _0x2dcf7f=_0x3ca052;if(_0x548615['id']!==c[_0x2dcf7f(0x313)]['id'])return;let {unitId:_0x355482,tableId:_0x14c4a8,field:_0x57186a,index:_0x4fe5c9,viewIndexes:_0x4a0cc5}=_0x548615[_0x2dcf7f(0x224)],_0x264471=this[_0x2dcf7f(0x30b)](_0x355482);if(!_0x264471)return;let _0x485289=_0x264471[_0x2dcf7f(0x221)](_0x14c4a8);if(!_0x485289)return;let _0x4cb572={'base':_0x264471,'table':_0x485289,'field':_0x57186a,'index':_0x4fe5c9,'viewIndexes':_0x4a0cc5};if(this['fireEvent'](this[_0x2dcf7f(0x2bc)]['BeforeBaseTableFieldCreate'],_0x4cb572),_0x4cb572[_0x2dcf7f(0x21e)])throw new l[(_0x2dcf7f(0x31c))]();}))),this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)][_0x3ca052(0x2ae)],()=>this['_commandService'][_0x3ca052(0x328)](_0x4d8cbc=>{const _0x375f7d=_0x3ca052;if(_0x4d8cbc['id']!==c[_0x375f7d(0x269)]['id']&&_0x4d8cbc['id']!==c['BatchCreateBaseRecordsCommand']['id'])return;let _0x402ecd=_0x4d8cbc['params'],{unitId:_0x525089,tableId:_0x479fc9}=_0x402ecd,_0x356457=_0x402ecd[_0x375f7d(0x251)]??[_0x402ecd['record']],_0x34235c=this[_0x375f7d(0x30b)](_0x525089);if(!_0x34235c)return;let _0x5e56d7=_0x34235c[_0x375f7d(0x221)](_0x479fc9);if(!_0x5e56d7)return;let _0x41c39e={'base':_0x34235c,'table':_0x5e56d7,'records':_0x356457};if(this[_0x375f7d(0x21c)](this['Event'][_0x375f7d(0x2ae)],_0x41c39e),_0x41c39e[_0x375f7d(0x21e)])throw new l[(_0x375f7d(0x31c))]();}))),this[_0x3ca052(0x1e9)](this[_0x3ca052(0x20b)](this['Event'][_0x3ca052(0x22b)],()=>this['_commandService'][_0x3ca052(0x328)](_0x2dca12=>{const _0x1b2f62=_0x3ca052;if(_0x2dca12['id']!==c[_0x1b2f62(0x30e)]['id'])return;let {unitId:_0x59649e,tableId:_0x337440,view:_0x229e65,index:_0x4d541a}=_0x2dca12['params'],_0x566f50=this['getBase'](_0x59649e);if(!_0x566f50)return;let _0x57f775=_0x566f50[_0x1b2f62(0x221)](_0x337440);if(!_0x57f775)return;let _0x5d5984={'base':_0x566f50,'table':_0x57f775,'view':_0x229e65,'index':_0x4d541a};if(this[_0x1b2f62(0x21c)](this[_0x1b2f62(0x2bc)][_0x1b2f62(0x22b)],_0x5d5984),_0x5d5984[_0x1b2f62(0x21e)])throw new l[(_0x1b2f62(0x31c))]();}))),this[_0x3ca052(0x1e9)](this[_0x3ca052(0x20b)](this[_0x3ca052(0x2bc)][_0x3ca052(0x275)],()=>this[_0x3ca052(0x2b2)][_0x3ca052(0x328)](_0x1f5c94=>{const _0x355160=_0x3ca052;if(_0x1f5c94['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x4da2d1,tableId:_0x2b4361,recordId:_0x17cf37,fieldId:_0x26d05c,value:_0x52c08d}=_0x1f5c94[_0x355160(0x224)],_0xf119ce=this[_0x355160(0x30b)](_0x4da2d1);if(!_0xf119ce)return;let _0x59d066=_0xf119ce[_0x355160(0x221)](_0x2b4361);if(!_0x59d066)return;let _0x41a34d=_0x59d066[_0x355160(0x2ee)](_0x26d05c);if(!_0x41a34d)return;let _0x38c8ce=_0x59d066['getRecordById'](_0x17cf37);if(!_0x38c8ce)return;let _0x3caea9={'base':_0xf119ce,'table':_0x59d066,'field':_0x41a34d,'record':_0x38c8ce,'value':_0x52c08d};if(this[_0x355160(0x21c)](this[_0x355160(0x2bc)][_0x355160(0x275)],_0x3caea9),_0x3caea9[_0x355160(0x21e)])throw new l[(_0x355160(0x31c))]();})));}[_0x19990d(0x1b8)](_0x554e71,_0x3bbdcb){const _0x539581=_0x19990d;let _0x21eecc=this[_0x539581(0x30b)](_0x554e71),_0x2a548e=_0x21eecc==null?void 0x0:_0x21eecc[_0x539581(0x221)](_0x3bbdcb);return _0x21eecc&&_0x2a548e?{'base':_0x21eecc,'table':_0x2a548e}:null;}[_0x19990d(0x1df)](_0x167f17,_0x43c938,_0x144e9b,_0x396948){const _0x3f28c5=_0x19990d;if(!_0x144e9b[_0x3f28c5(0x32b)])return;let _0x3af896={'base':_0x167f17,'table':_0x43c938,'changes':_0x144e9b,'source':_0x396948};if(this[_0x3f28c5(0x21c)](this[_0x3f28c5(0x2bc)][_0x3f28c5(0x33e)],_0x3af896),_0x3af896[_0x3f28c5(0x21e)])throw new l[(_0x3f28c5(0x31c))]();}};function Z(_0x477f9b,_0x204ffd){return _0x477f9b['id']===_0x204ffd['id']&&_0x477f9b['params']!==void 0x0;}u[_0x19990d(0x20f)]['extend'](X);var Q=class extends u[_0x19990d(0x1da)]{get[_0x19990d(0x1a8)](){return l['BaseFieldType'];}get[_0x19990d(0x31a)](){return l['BaseFilterConjunction'];}get[_0x19990d(0x2c2)](){const _0x3f85bd=_0x19990d;return l[_0x3f85bd(0x2c2)];}get[_0x19990d(0x2f6)](){return v;}get['BaseViewType'](){const _0x12efe2=_0x19990d;return l[_0x12efe2(0x1e4)];}get['BaseConditionalColorTarget'](){const _0x289e9c=_0x19990d;return l[_0x289e9c(0x290)];}get['BaseConditionalColorOperator'](){return l['BaseConditionalColorOperator'];}get[_0x19990d(0x316)](){const _0x3e682f=_0x19990d;return l[_0x3e682f(0x316)];}get[_0x19990d(0x2ab)](){const _0x509631=_0x19990d;return l[_0x509631(0x2ab)];}get[_0x19990d(0x272)](){const _0x2e2c2f=_0x19990d;return c[_0x2e2c2f(0x272)];}get['BaseHierarchyErrorCode'](){const _0x148744=_0x19990d;return c[_0x148744(0x298)];}get[_0x19990d(0x1d7)](){return l['BaseHierarchyInvalidReason'];}get['BaseRecordLinkRole'](){const _0x1bb433=_0x19990d;return l[_0x1bb433(0x2d9)];}};u['FEnum'][_0x19990d(0x304)](Q);var $=class extends u[_0x19990d(0x306)]{get[_0x19990d(0x1a1)](){const _0x3d3a1=_0x19990d;return _0x3d3a1(0x1a1);}get[_0x19990d(0x2b9)](){return'BeforeBaseTableCreate';}get['BaseTableFieldCreated'](){const _0x534519=_0x19990d;return _0x534519(0x336);}get['BeforeBaseTableFieldCreate'](){return'BeforeBaseTableFieldCreate';}get[_0x19990d(0x270)](){const _0x488d41=_0x19990d;return _0x488d41(0x270);}get[_0x19990d(0x2ae)](){const _0x1f0139=_0x19990d;return _0x1f0139(0x2ae);}get[_0x19990d(0x256)](){const _0x3763a7=_0x19990d;return _0x3763a7(0x256);}get['BeforeBaseTableViewCreate'](){const _0x2e4c9e=_0x19990d;return _0x2e4c9e(0x22b);}get[_0x19990d(0x32a)](){const _0xa1fa42=_0x19990d;return _0xa1fa42(0x32a);}get['BeforeBaseTableCellValueChange'](){const _0x30c99e=_0x19990d;return _0x30c99e(0x275);}get[_0x19990d(0x2d5)](){const _0x1da32c=_0x19990d;return _0x1da32c(0x2d5);}get['BeforeBaseHierarchyChange'](){const _0x53457c=_0x19990d;return _0x53457c(0x33e);}};u[_0x19990d(0x306)][_0x19990d(0x304)]($),exports['BaseFieldKeyEnum']=v,Object['defineProperty'](exports,_0x19990d(0x2ba),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x19990d(0x248)]=m,exports[_0x19990d(0x1cb)]=p,Object[_0x19990d(0x1bc)](exports,_0x19990d(0x2f5),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x25a),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x2e4),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x2a1),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x1fb),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x19990d(0x31f)]=$,exports['resolveBaseFieldKey']=S,exports[_0x19990d(0x297)]=b;
|
|
1
|
+
const _0x2530a8=_0x3370;(function(_0x12ad5b,_0x9c7f6){const _0xd97037=_0x3370,_0x2ad834=_0x12ad5b();while(!![]){try{const _0x2d086c=parseInt(_0xd97037(0x294))/0x1+parseInt(_0xd97037(0x331))/0x2*(-parseInt(_0xd97037(0x1c5))/0x3)+-parseInt(_0xd97037(0x1c0))/0x4*(-parseInt(_0xd97037(0x195))/0x5)+parseInt(_0xd97037(0x2c6))/0x6*(parseInt(_0xd97037(0x29e))/0x7)+parseInt(_0xd97037(0x303))/0x8+-parseInt(_0xd97037(0x32b))/0x9+parseInt(_0xd97037(0x2a8))/0xa*(parseInt(_0xd97037(0x2c8))/0xb);if(_0x2d086c===_0x9c7f6)break;else _0x2ad834['push'](_0x2ad834['shift']());}catch(_0x158d09){_0x2ad834['push'](_0x2ad834['shift']());}}}(_0x3dab,0xc7f44),Object[_0x2530a8(0x1cb)](exports,Symbol['toStringTag'],{'value':_0x2530a8(0x22d)}));var e=Object['create'],t=Object[_0x2530a8(0x1cb)],n=Object[_0x2530a8(0x2e5)],r=Object[_0x2530a8(0x284)],i=Object[_0x2530a8(0x1b1)],a=Object[_0x2530a8(0x240)]['hasOwnProperty'],o=(_0x3e3707,_0x59017f,_0x573ed3,_0x2fbd16)=>{const _0x5b8eb4=_0x2530a8;if(_0x59017f&&typeof _0x59017f==_0x5b8eb4(0x186)||typeof _0x59017f==_0x5b8eb4(0x311)){for(var _0x40f67b=r(_0x59017f),_0x5ee4ea=0x0,_0x42161c=_0x40f67b[_0x5b8eb4(0x1d8)],_0xa8b9f2;_0x5ee4ea<_0x42161c;_0x5ee4ea++)_0xa8b9f2=_0x40f67b[_0x5ee4ea],!a[_0x5b8eb4(0x1cd)](_0x3e3707,_0xa8b9f2)&&_0xa8b9f2!==_0x573ed3&&t(_0x3e3707,_0xa8b9f2,{'get':(_0x3df26c=>_0x59017f[_0x3df26c])['bind'](null,_0xa8b9f2),'enumerable':!(_0x2fbd16=n(_0x59017f,_0xa8b9f2))||_0x2fbd16[_0x5b8eb4(0x287)]});}return _0x3e3707;},s=(_0x238f93,_0x2c6a09,_0x181e88)=>(_0x181e88=_0x238f93==null?{}:e(i(_0x238f93)),o(_0x2c6a09||!_0x238f93||!_0x238f93[_0x2530a8(0x2cf)]||!a[_0x2530a8(0x1cd)](_0x238f93,'default')?t(_0x181e88,_0x2530a8(0x1b7),{'value':_0x238f93,'enumerable':!0x0}):_0x181e88,_0x238f93));let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x2be8c5,_0x3a39ae,_0x20d098){const _0x56a442=_0x2530a8;this['_unitId']=_0x2be8c5,this[_0x56a442(0x225)]=_0x3a39ae,this[_0x56a442(0x2e0)]=_0x20d098;}async['setObjectPermissions'](_0x1dc86){const _0x568529=_0x2530a8;return this[_0x568529(0x225)][_0x568529(0x28a)](c[_0x568529(0x212)]['id'],{'unitId':this['_unitId'],'changes':_0x1dc86});}async[_0x2530a8(0x30b)](_0x452c0d,_0x33adaa){const _0x487d24=_0x2530a8;await this[_0x487d24(0x225)]['executeCommand'](c[_0x487d24(0x23e)]['id'],{'unitId':this[_0x487d24(0x1a2)],'objectId':this['_unitId'],'action':_0x452c0d,'value':_0x33adaa});}['getPoint'](_0x2c6e5e){const _0x4758fa=_0x2530a8;return(0x0,c[_0x4758fa(0x1ce)])(this[_0x4758fa(0x2e0)],this[_0x4758fa(0x1a2)],this[_0x4758fa(0x1a2)],_0x2c6e5e);}async[_0x2530a8(0x241)](_0x206123=!0x0){const _0x522886=_0x2530a8;await this[_0x522886(0x225)][_0x522886(0x28a)](c[_0x522886(0x23e)]['id'],{'unitId':this[_0x522886(0x1a2)],'objectId':this[_0x522886(0x1a2)],'action':d[_0x522886(0x238)][_0x522886(0x325)],'value':_0x206123});}async[_0x2530a8(0x32d)](){const _0x1f84af=_0x2530a8;await this[_0x1f84af(0x225)][_0x1f84af(0x28a)](c[_0x1f84af(0x23e)]['id'],{'unitId':this[_0x1f84af(0x1a2)],'objectId':this[_0x1f84af(0x1a2)],'action':d['UnitAction'][_0x1f84af(0x325)],'value':!0x1});}[_0x2530a8(0x218)](){const _0x18e207=_0x2530a8;return(0x0,c['getBasePermissionValue'])(this[_0x18e207(0x2e0)],this[_0x18e207(0x1a2)],this[_0x18e207(0x1a2)],d['UnitAction']['Edit']);}},m=class{constructor(_0x4f89c5,_0x4bccf2,_0x5dd2c8,_0xe0dd9c,_0x3a5ec7){const _0x54851f=_0x2530a8;this[_0x54851f(0x1a2)]=_0x4f89c5,this['_objectId']=_0x4bccf2,this[_0x54851f(0x27d)]=_0x5dd2c8,this[_0x54851f(0x225)]=_0xe0dd9c,this[_0x54851f(0x2e0)]=_0x3a5ec7;}async[_0x2530a8(0x241)](_0x1a6c62=!0x0){const _0x2ebaad=_0x2530a8;await this[_0x2ebaad(0x225)][_0x2ebaad(0x28a)](c[_0x2ebaad(0x23e)]['id'],{'unitId':this[_0x2ebaad(0x1a2)],'objectId':this[_0x2ebaad(0x2e1)],'action':d[_0x2ebaad(0x238)][_0x2ebaad(0x325)],'value':_0x1a6c62});}async[_0x2530a8(0x32d)](){const _0x4efb39=_0x2530a8;await this[_0x4efb39(0x225)][_0x4efb39(0x28a)](c[_0x4efb39(0x23e)]['id'],{'unitId':this[_0x4efb39(0x1a2)],'objectId':this[_0x4efb39(0x2e1)],'action':d[_0x4efb39(0x238)][_0x4efb39(0x325)],'value':!0x1});}[_0x2530a8(0x218)](){const _0x2dcc37=_0x2530a8;return(0x0,c['canEditBaseTargets'])(this[_0x2dcc37(0x2e0)],this[_0x2dcc37(0x1a2)],[...this[_0x2dcc37(0x27d)],this[_0x2dcc37(0x2e1)]]);}};function h(_0x365b5e,_0x46f422){return function(_0xf5af17,_0x134815){_0x46f422(_0xf5af17,_0x134815,_0x365b5e);};}function g(_0x3ac239,_0x516d0e,_0x4b0358,_0x53fc30){const _0x3bf608=_0x2530a8;var _0x4baf54=arguments[_0x3bf608(0x1d8)],_0x23a159=_0x4baf54<0x3?_0x516d0e:_0x53fc30===null?_0x53fc30=Object[_0x3bf608(0x2e5)](_0x516d0e,_0x4b0358):_0x53fc30,_0x530460;if(typeof Reflect==_0x3bf608(0x186)&&typeof Reflect[_0x3bf608(0x2c1)]==_0x3bf608(0x311))_0x23a159=Reflect['decorate'](_0x3ac239,_0x516d0e,_0x4b0358,_0x53fc30);else{for(var _0x36757b=_0x3ac239[_0x3bf608(0x1d8)]-0x1;_0x36757b>=0x0;_0x36757b--)(_0x530460=_0x3ac239[_0x36757b])&&(_0x23a159=(_0x4baf54<0x3?_0x530460(_0x23a159):_0x4baf54>0x3?_0x530460(_0x516d0e,_0x4b0358,_0x23a159):_0x530460(_0x516d0e,_0x4b0358))||_0x23a159);}return _0x4baf54>0x3&&_0x23a159&&Object[_0x3bf608(0x1cb)](_0x516d0e,_0x4b0358,_0x23a159),_0x23a159;}let _=class{constructor(_0x29c10e,_0x25e65d,_0x5b422f,_0x9073a7,_0x453cb7){const _0x4b82da=_0x2530a8;this['_base']=_0x29c10e,this['_table']=_0x25e65d,this[_0x4b82da(0x20b)]=_0x5b422f,this[_0x4b82da(0x225)]=_0x9073a7,this[_0x4b82da(0x2e0)]=_0x453cb7;}[_0x2530a8(0x2ef)](){const _0xaebf80=_0x2530a8;return this[_0xaebf80(0x20b)];}[_0x2530a8(0x25e)](){const _0x7fbf1a=_0x2530a8;let _0x41db13=this[_0x7fbf1a(0x1ec)]['getId']();return new m(this[_0x7fbf1a(0x2ea)][_0x7fbf1a(0x2ef)](),(0x0,c[_0x7fbf1a(0x291)])(_0x41db13,this[_0x7fbf1a(0x20b)]),[(0x0,c[_0x7fbf1a(0x1c1)])(_0x41db13)],this[_0x7fbf1a(0x225)],this[_0x7fbf1a(0x2e0)]);}[_0x2530a8(0x221)](){const _0x52f3d2=_0x2530a8;return this[_0x52f3d2(0x2bd)]();}[_0x2530a8(0x270)](){const _0x4c5785=_0x2530a8;return this['_getField']()[_0x4c5785(0x306)];}[_0x2530a8(0x233)](){const _0x4145c0=_0x2530a8;return this['_getField']()[_0x4145c0(0x2ff)];}[_0x2530a8(0x2d4)](){const _0x30b712=_0x2530a8;return this[_0x30b712(0x2bd)]()[_0x30b712(0x210)];}[_0x2530a8(0x18d)](){const _0x160ded=_0x2530a8;return this[_0x160ded(0x2bd)]()[_0x160ded(0x307)];}[_0x2530a8(0x217)](){const _0x52df71=_0x2530a8;return this[_0x52df71(0x2bd)]()['description'];}['isReadonly'](){const _0xa2b743=_0x2530a8;return!!this[_0xa2b743(0x2bd)]()[_0xa2b743(0x28e)];}[_0x2530a8(0x20c)](_0x34d1f6){return this['update']({'name':_0x34d1f6});}['setConfig'](_0x116a30,_0x43625f){return this['update']({'config':_0x116a30},_0x43625f);}['setDefaultValue'](_0xe758ca){return this['update']({'defaultValue':_0xe758ca});}[_0x2530a8(0x328)](_0x10bc51,_0xa5cc3f){const _0x108258=_0x2530a8;let _0x427d3c=this[_0x108258(0x2bd)]()[_0x108258(0x2ff)];return(_0x10bc51[_0x108258(0x2ff)]??_0x427d3c)===l[_0x108258(0x275)]['Formula']&&(Object['prototype']['hasOwnProperty'][_0x108258(0x1cd)](_0x10bc51,_0x108258(0x210))||_0x10bc51[_0x108258(0x2ff)]===l[_0x108258(0x275)][_0x108258(0x24a)])&&!this['_writeFormulaExternalReferences'](_0xa5cc3f)?!0x1:this[_0x108258(0x225)][_0x108258(0x272)](c[_0x108258(0x2b0)]['id'],{'unitId':this[_0x108258(0x2ea)][_0x108258(0x2ef)](),'tableId':this[_0x108258(0x1ec)][_0x108258(0x2ef)](),'fieldId':this[_0x108258(0x20b)],'patch':_0x10bc51});}[_0x2530a8(0x24b)](_0x34ac69,_0x20b1f9={},_0x17b721){const _0x311939=_0x2530a8;return _0x34ac69===l[_0x311939(0x275)][_0x311939(0x24a)]&&!this[_0x311939(0x2ee)](_0x17b721)?!0x1:this['_commandService']['syncExecuteCommand'](c[_0x311939(0x21b)]['id'],{'unitId':this[_0x311939(0x2ea)][_0x311939(0x2ef)](),'tableId':this[_0x311939(0x1ec)][_0x311939(0x2ef)](),'fieldId':this[_0x311939(0x20b)],'input':{'type':_0x34ac69,'config':_0x20b1f9}});}['delete'](){const _0xd1d382=_0x2530a8;return this['_commandService']['syncExecuteCommand'](c[_0xd1d382(0x1c7)]['id'],{'unitId':this[_0xd1d382(0x2ea)]['getId'](),'tableId':this[_0xd1d382(0x1ec)][_0xd1d382(0x2ef)](),'fieldId':this[_0xd1d382(0x20b)]});}[_0x2530a8(0x2ed)](_0x4d11c9){const _0x57d1cc=_0x2530a8;return this['_commandService'][_0x57d1cc(0x272)](c[_0x57d1cc(0x2b4)]['id'],{'unitId':this[_0x57d1cc(0x2ea)][_0x57d1cc(0x2ef)](),'tableId':this[_0x57d1cc(0x1ec)]['getId'](),'fieldId':this[_0x57d1cc(0x20b)],'target':_0x4d11c9});}[_0x2530a8(0x2bd)](){const _0x4852df=_0x2530a8;let _0x294e05=this['_table']['getTable']()[_0x4852df(0x263)][this['_fieldId']];if(!_0x294e05)throw Error(_0x4852df(0x1d0)+this[_0x4852df(0x20b)]+_0x4852df(0x285));return _0x294e05;}[_0x2530a8(0x2ee)](_0x55be75){const _0x13c700=_0x2530a8;if(!_0x55be75||!Array['isArray'](_0x55be75[_0x13c700(0x2be)]))return console[_0x13c700(0x2a7)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x55be75[_0x13c700(0x2be)]['length']===0x0)return!0x0;let _0x4024bb=this[_0x13c700(0x225)]['syncExecuteCommand'](f[_0x13c700(0x288)]['id'],{'unitId':this[_0x13c700(0x2ea)][_0x13c700(0x2ef)](),'references':_0x55be75['externalReferences']});return _0x4024bb||console[_0x13c700(0x2a7)](_0x13c700(0x203)),_0x4024bb;}};_=g([h(0x3,l['ICommandService']),h(0x4,l[_0x2530a8(0x260)])],_);let v=function(_0x3104dd){const _0x198903=_0x2530a8;return _0x3104dd['Id']='id',_0x3104dd[_0x198903(0x267)]=_0x198903(0x306),_0x3104dd[_0x198903(0x196)]=_0x198903(0x2aa),_0x3104dd;}({});function y(_0x1948bb){const _0x403646=_0x2530a8;return!!(_0x1948bb&&_0x1948bb[_0x403646(0x215)]!==!0x0&&_0x1948bb[_0x403646(0x2ff)]!==l['BaseFieldType'][_0x403646(0x29f)]);}function _0x3dab(){const _0x40bec8=['ValidateBaseFormulaCommand','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','validateBaseTableName','clearConditionalColorRules','type','BeforeBaseTableCellValueChange','UpdateBaseRecordOrderCommand','indexOf','2384032rJtLOO','viewId','SetBaseRecordValuesCommand','name','defaultValue','SetBaseViewFieldVisibleCommand','queryRecords','getActiveBaseHierarchyFieldIds','setPoint','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','BeforeBaseHierarchyChange','AND','stringify','boolean','function','commonExtend','fieldOrder','invalid','getRecordById','fieldId','rows','BaseSortDirection','_baseTableId','ensureBaseTableCellLayout','deepClone','localeCompare','Failed\x20to\x20delete\x20table\x20\x22','clear','IBaseProjectionService','has','deleteProperty',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','getRecord','[FTable]:\x20table\x20\x22','Edit','message','getBaseHierarchyDeletePromotions','update','setOrderKey','BaseConditionalColorRuleUpdateType','11168487WfUznO','SetBaseViewFilterCommand','setReadOnly','getColumn','\x20for\x20field\x20\x22','limit','25490mflAkY','CreateBaseFieldCommand','endColumn','_resourceLoaderService','filter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getFieldByName','Kanban','DuplicateBaseRecordCommand','ApplyBaseJson1Mutation','Facade',',\x20max\x20columns:\x20','onCommandExecuted','setFieldWidth','matches','setValues','Gallery','[FRecord]:\x20attachment\x20at\x20index\x20','object','BaseRecordLinkRole','_getFieldIds','setValue','_getRecordLinkField','\x20Copy','Calendar','getDefaultValue','FUniver','getView','duplicate','_viewId','getViews','some','targetTableId','290iwwHKS','Auto','description','getRange','addLinkedRecord','SetBaseViewFieldOrderCommand','views','beforeCommandExecuted','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','_getAttachmentField','getTable','getBaseRecordPermissionObjectId','getAttachments','_unitId','registerEventHandler',':\x20expected\x20an\x20object.','getCurrentUnitOfType','setParent','now','fieldIds','flatMap','validateBaseHierarchyRecordCreations','getConditionalColorRules','string','BeforeBaseTableRecordCreate','Duplicate\x20Base\x20field\x20name:\x20','_getRecord','UpdateBaseViewConditionalColorRulesCommand','getPrototypeOf','SetBaseViewGroupCommand','map','Failed\x20to\x20duplicate\x20table\x20\x22','getBase','_injector','default','[FRecord]:\x20RecordLink\x20field\x20\x22','getRecordLinkFieldConfig','table','CreateBaseChildRecordCommand','CreateBaseRecordCommand','FBaseTable','get','orderKey','18372mpdUfv','getBaseTablePermissionObjectId','disposeWithMe','cancel','endRow','75RJUaew','getBaseId','DeleteBaseFieldCommand','valid','Set','\x22:\x20expected\x20an\x20array.','defineProperty','_assertInBounds','call','getBasePermissionValue','copyBaseTableSnapshot','[FField]:\x20field\x20\x22','records','visibleCardFieldIds','UniverInstanceType','Failed\x20to\x20create\x20table\x20\x22','\x22.\x20','getSnapshot','getUnit','length','size','FBaseObjectPermission','find','_initBaseBeforeEvents','BaseFieldKeyEnum','BeforeBaseTableViewCreate','getValues','getViewByName','_range','getNumRows','BaseFilterOperator','getBases','Add','_projectionService','_recordId','orderedRecordIds','parseRecordLinkIds','conditions','BASE_TABLE_NAME_REQUIREMENTS','_table','BaseFilterConjunction','number','setConditionalColorRules','getNumColumns','getDataRange','custom','_initialize','getFormulaName','Failed\x20to\x20add\x20field\x20\x22','createInstance','addRecords','trim','getTableByName','[FBaseRange]:\x20table\x20does\x20not\x20exist.','createBase',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','values','setLinkedRecordIds','serializeRecordLinkIds','validateBaseHierarchyRecordPatches','MoveBaseHierarchyRecordCommand','operator','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','getTableById','_univerInstanceService',',\x20range:\x20','createView','Tools','Failed\x20to\x20create\x20view\x20\x22','_fieldId','setName','BASE64','RecordLink','UNIVER_BASE','config','getParent','SetBasePermissionsCommand','symbol','getActiveBase','system','BaseTableCellValueChanged','getDescription','canEdit','BaseConditionalDateMode','_getHierarchyEventContext','ChangeBaseFieldTypeCommand','FEnum','offset','Attachment',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','CreateBaseViewCommand','getField','Grid','deleteRecords','sort','_commandService','_baseUnitId','getViewById','record','_tableId','addConditionalColorRule','generateRandomId','base','Module','resolveBaseHierarchyFieldId','setAttachments','conditionalColoring','getRecords','FEventName','getType','getBaseFacade','toPrimitive','CreateBaseTableCommand','BaseEventSource','UnitAction','value','searchBaseTable','data:','Invalid\x20attachment\x20at\x20index\x20','URL','SetBasePermissionCommand','FBaseTableView','prototype','setEditable','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','BatchDeleteBaseRecordsCommand','isArray','unitId','includeRecords','deleteTable','IResourceLoaderService','getUnitId','Formula','changeType','rowId','addField','getBaseFormulaTableName','validateRecordLinkValue','getFieldSettings',':\x20\x22','[FBase]:\x20table\x20\x22','_initBaseAfterEvents','fireEvent','_resolveRecordIds','push','FBasesEventNameMixin','primaryFieldId','Delete','getSchema','iterator','createUnit','BaseTableFieldCreated','getPermission','getGroup','IPermissionService','url','getChildren','fields','[FRecord]:\x20record\x20\x22','saveUnit','SetBaseViewFieldWidthCommand','Name','getHierarchyFieldId','slice','ICommandService','CanceledError','setHierarchyField','duplicateTable','recordOrder','afterFieldId','getName','DeleteBaseViewCommand','syncExecuteCommand','Base\x20field\x20not\x20found:\x20','multiple','BaseFieldType','constructor','entries','getRow','index','getTables','tables','fieldKey','_parentObjectIds','SetBaseViewSortCommand','formula','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','fieldSettings','\x22\x20has\x20invalid\x20config.','notMatches','getOwnPropertyNames','\x22\x20does\x20not\x20exist.','createUniqueBaseTableName','enumerable','UpsertHostExternalReferencesCommand','params','executeCommand','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','startColumn','BaseHierarchyInvalidReason','readonly','BaseHierarchyChanged','FBaseTableRecord','getBaseFieldPermissionObjectId','BaseTableRecordCreated','BeforeBaseTableCreate','737489rekEGG','Remote','tableOrder','getProjection','[FRecord]:\x20field\x20\x22','addChild','getVisibleFields','forEach','BaseHierarchyErrorCode','_getView','77994MyoMaP','RecordId','_collectDescendantIds','[FView]:\x20view\x20\x22','parentByRecordId','moveField','hidden','matchesBaseCondition','_inject','warn','910ixHHCb','createdAt','auto','Inject','ImageSourceType','regenerateViewIds','FBaseInitialable','Event','UpdateBaseFieldCommand','BaseConditionalColorTarget','viewOrder','childrenByParentId','MoveBaseFieldCommand','save','_prepareFormulaFieldReferences','BaseTableCreated','search','includes','rules','field','tableId','_getField','externalReferences','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','UpdateBaseCellCommand','decorate','RenameBaseViewCommand','updateConfig','getValue','Injector','120qCjJPd','source','103213SSjlsU','[FRecord]:\x20invalid\x20RecordLink\x20value.','resolveBaseRangeHierarchyPatches','\x22\x20is\x20invalid.','getFilter','deleteConditionalColorRule','_fireBeforeHierarchyChange','__esModule','_getHierarchyIndex','Clear','Invalid\x20Base\x20regex\x20filter:\x20','SetBaseRangeValuesCommand','getConfig','BASE_RECORD_ID_FIELD_ID','BatchCreateBaseRecordsCommand','BaseTableViewCreated','BaseConditionalColorOperator','startRow','max','beforeFieldId','parentRecordId','height','buildBaseHierarchyIndex','recordId','_permissionService','_objectId','updatedAt','FBaseTableRange','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getOwnPropertyDescriptor','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','SetBaseTableHierarchyFieldCommand','getAllUnitsForType','deleteAttachments','_base','removeLinkedRecord','_getTable','move','_writeFormulaExternalReferences','getId','BeforeBaseTableFieldCreate','setFilter','extend','view','DeleteBaseRecordCommand','reason','[FBase]:\x20invalid\x20table\x20name\x20\x22','getSort','BaseViewType','getFieldById','hierarchyChanges'];_0x3dab=function(){return _0x40bec8;};return _0x3dab();}function b(_0x5804e7,_0x5ab595,_0x12ecd4='id'){const _0x4af5b5=_0x2530a8;if(!_0x5ab595)return{};let _0x332433={};return Object[_0x4af5b5(0x277)](_0x5ab595)[_0x4af5b5(0x29b)](([_0x795653,_0x2178f2])=>{const _0x3d5ad7=_0x4af5b5;let _0x403687=S(_0x5804e7,_0x795653,_0x12ecd4);_0x332433[_0x403687]=x(_0x5804e7[_0x3d5ad7(0x263)][_0x403687],_0x2178f2);}),_0x332433;}function x(_0x3740dc,_0x3d4a6b){const _0x4986d0=_0x2530a8;if((_0x3740dc==null?void 0x0:_0x3740dc[_0x4986d0(0x2ff)])!==l[_0x4986d0(0x275)][_0x4986d0(0x21e)]||_0x3d4a6b==null)return _0x3d4a6b;if(!Array['isArray'](_0x3d4a6b))throw TypeError(_0x4986d0(0x204)+_0x3740dc['name']+_0x4986d0(0x1ca));return _0x3d4a6b[_0x4986d0(0x1b3)]((_0x1d6822,_0x5cc037)=>C(_0x3740dc,_0x1d6822,_0x5cc037));}function S(_0x145ec1,_0x3ffcf6,_0x5d04da){const _0x2c504b=_0x2530a8;if(_0x5d04da==='id'||_0x5d04da===_0x2c504b(0x2aa)&&_0x145ec1[_0x2c504b(0x263)][_0x3ffcf6])return _0x3ffcf6;let _0x195b85=Object['values'](_0x145ec1[_0x2c504b(0x263)])[_0x2c504b(0x178)](_0x1b4c3f=>_0x1b4c3f[_0x2c504b(0x306)]===_0x3ffcf6);if(_0x195b85[_0x2c504b(0x1d8)]===0x1)return _0x195b85[0x0]['id'];throw _0x195b85[_0x2c504b(0x1d8)]>0x1?Error(_0x2c504b(0x1ae)+_0x3ffcf6):Error(_0x2c504b(0x273)+_0x3ffcf6);}function C(_0x4a4a79,_0xac0387,_0x32bd3c){const _0x377c83=_0x2530a8;let _0x5273b4=_0x377c83(0x23c)+_0x32bd3c+_0x377c83(0x32f)+_0x4a4a79[_0x377c83(0x306)]+'\x22';if(!O(_0xac0387))throw TypeError(_0x5273b4+_0x377c83(0x1a4));if(_0x377c83(0x261)in _0xac0387)throw TypeError(_0x5273b4+_0x377c83(0x1fc));if(_0x377c83(0x2ff)in _0xac0387)throw TypeError(_0x5273b4+_0x377c83(0x322));let _0x3a678d=T(_0xac0387['id'],_0x5273b4,'id'),_0x3fb99e=T(_0xac0387[_0x377c83(0x306)],_0x5273b4,_0x377c83(0x306)),_0x28c459=T(_0xac0387[_0x377c83(0x2c7)],_0x5273b4,_0x377c83(0x2c7));return{'id':_0x3a678d,'name':_0x3fb99e,'source':_0x28c459,'sourceType':w(_0xac0387['sourceType'],_0x28c459,_0x5273b4),...E(_0xac0387,'mimeType',_0x5273b4),...D(_0xac0387,_0x377c83(0x1d9),_0x5273b4),...D(_0xac0387,'width',_0x5273b4),...D(_0xac0387,_0x377c83(0x2dd),_0x5273b4),...E(_0xac0387,'thumbnail',_0x5273b4)};}function w(_0xf1aa4f,_0x352900,_0x4e19c6){const _0x5e7420=_0x2530a8;if(_0xf1aa4f==null)return _0x352900['startsWith'](_0x5e7420(0x23b))?l[_0x5e7420(0x2ac)][_0x5e7420(0x20d)]:l[_0x5e7420(0x2ac)][_0x5e7420(0x23d)];if(_0xf1aa4f===l[_0x5e7420(0x2ac)][_0x5e7420(0x23d)]||_0xf1aa4f===l[_0x5e7420(0x2ac)]['UUID']||_0xf1aa4f===l[_0x5e7420(0x2ac)][_0x5e7420(0x20d)])return _0xf1aa4f;throw TypeError(_0x4e19c6+_0x5e7420(0x21f));}function T(_0x11cf21,_0x9997ad,_0x1d5a61){const _0x604d36=_0x2530a8;if(typeof _0x11cf21!=_0x604d36(0x1ac)||!_0x11cf21[_0x604d36(0x1f8)]())throw TypeError(_0x9997ad+_0x604d36(0x251)+_0x1d5a61+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x11cf21;}function E(_0xf7fcf5,_0x31f706,_0x9c6e8c){const _0x3066f7=_0x2530a8;let _0x56aad8=_0xf7fcf5[_0x31f706];if(_0x56aad8==null)return{};if(typeof _0x56aad8!=_0x3066f7(0x1ac)||!_0x56aad8[_0x3066f7(0x1f8)]())throw TypeError(_0x9c6e8c+':\x20\x22'+_0x31f706+_0x3066f7(0x30c));return{[_0x31f706]:_0x56aad8};}function D(_0x2487dd,_0x2a478d,_0x20578a){const _0x1307b0=_0x2530a8;let _0x1c36e3=_0x2487dd[_0x2a478d];if(_0x1c36e3==null)return{};if(typeof _0x1c36e3!=_0x1307b0(0x1ee)||!Number['isFinite'](_0x1c36e3)||_0x1c36e3<0x0)throw TypeError(_0x20578a+_0x1307b0(0x251)+_0x2a478d+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x2a478d]:_0x1c36e3};}function O(_0x120f8c){const _0x10d0c1=_0x2530a8;return typeof _0x120f8c==_0x10d0c1(0x186)&&!!_0x120f8c&&!Array[_0x10d0c1(0x244)](_0x120f8c);}var k;let A=k=class{constructor(_0x22e542,_0x4c4059,_0x501ffc,_0x3d9db5,_0x426ba5){const _0x5bd06b=_0x2530a8;this[_0x5bd06b(0x2ea)]=_0x22e542,this['_table']=_0x4c4059,this[_0x5bd06b(0x1e1)]=_0x501ffc,this['_inject']=_0x3d9db5,this['_commandService']=_0x426ba5,this[_0x5bd06b(0x1cc)]();}[_0x2530a8(0x1c6)](){const _0x16459e=_0x2530a8;return this[_0x16459e(0x2ea)][_0x16459e(0x2ef)]();}['getTableId'](){const _0x3a65c4=_0x2530a8;return this[_0x3a65c4(0x1ec)][_0x3a65c4(0x2ef)]();}[_0x2530a8(0x198)](){const _0x3bf494=_0x2530a8;return{...this[_0x3bf494(0x1e1)]};}[_0x2530a8(0x278)](){const _0x28ff70=_0x2530a8;return this[_0x28ff70(0x1e1)][_0x28ff70(0x2d9)];}[_0x2530a8(0x32e)](){const _0x41c3a0=_0x2530a8;return this[_0x41c3a0(0x1e1)][_0x41c3a0(0x28c)];}[_0x2530a8(0x1e2)](){const _0x32e808=_0x2530a8;return this[_0x32e808(0x1e1)][_0x32e808(0x1c4)]-this['_range'][_0x32e808(0x2d9)]+0x1;}[_0x2530a8(0x1f0)](){const _0x3ca84e=_0x2530a8;return this[_0x3ca84e(0x1e1)][_0x3ca84e(0x176)]-this['_range'][_0x3ca84e(0x28c)]+0x1;}['getValues'](){const _0x32d8ca=_0x2530a8;let _0x329829=this[_0x32d8ca(0x2ec)](),_0x4c004f=this[_0x32d8ca(0x188)](_0x329829),_0x575201=[];for(let _0x17a6c3=this['_range'][_0x32d8ca(0x2d9)];_0x17a6c3<=this[_0x32d8ca(0x1e1)][_0x32d8ca(0x1c4)];_0x17a6c3++){var _0x430a3e;let _0x3dbc8e=(_0x430a3e=_0x329829[_0x32d8ca(0x24c)])==null?void 0x0:_0x430a3e[_0x17a6c3],_0x44916c=[];for(let _0x5081b5=this[_0x32d8ca(0x1e1)][_0x32d8ca(0x28c)];_0x5081b5<=this[_0x32d8ca(0x1e1)][_0x32d8ca(0x176)];_0x5081b5++){let _0x114558=_0x4c004f[_0x5081b5];_0x44916c[_0x32d8ca(0x256)](_0x3dbc8e&&_0x114558?(0x0,c['getBaseCellValue'])(_0x329829,_0x3dbc8e,_0x114558):null);}_0x575201['push'](_0x44916c);}return _0x575201;}[_0x2530a8(0x2c4)](){const _0x25a703=_0x2530a8;var _0x48c558;return((_0x48c558=this[_0x25a703(0x1df)]()[0x0])==null?void 0x0:_0x48c558[0x0])??null;}['setValue'](_0x151799){return this['setValues']([[_0x151799]]);}[_0x2530a8(0x183)](_0x253b56){const _0x5478aa=_0x2530a8;let _0x469836=this[_0x5478aa(0x1e2)](),_0x3c5277=this[_0x5478aa(0x1f0)]();if(_0x253b56[_0x5478aa(0x1d8)]>_0x469836||_0x253b56['some'](_0x807db8=>_0x807db8[_0x5478aa(0x1d8)]>_0x3c5277)){var _0x227756;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x253b56[_0x5478aa(0x1d8)]+'x'+(((_0x227756=_0x253b56[0x0])==null?void 0x0:_0x227756[_0x5478aa(0x1d8)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0x469836+'x'+_0x3c5277+'.');}let _0x204aae=this[_0x5478aa(0x2ec)](),_0x5ddf27=this[_0x5478aa(0x188)](_0x204aae),_0x2212f4=_0x253b56[_0x5478aa(0x1a9)]((_0x2612a0,_0x80d330)=>_0x2612a0[_0x5478aa(0x1b3)]((_0x4a1a3a,_0x1660c3)=>{const _0x2356cf=_0x5478aa;var _0x56212d;let _0x4598f9=this[_0x2356cf(0x1e1)]['startRow']+_0x80d330,_0x3335cd=_0x5ddf27[this[_0x2356cf(0x1e1)][_0x2356cf(0x28c)]+_0x1660c3],_0x4416e8=(_0x56212d=_0x204aae[_0x2356cf(0x24c)])==null?void 0x0:_0x56212d[_0x4598f9];if(!_0x3335cd||!_0x4416e8)throw Error(_0x2356cf(0x2bf));return{'recordId':_0x4416e8,'fieldId':_0x3335cd,'value':_0x4a1a3a};}));return this[_0x5478aa(0x225)]['syncExecuteCommand'](c[_0x5478aa(0x2d3)]['id'],{'unitId':this[_0x5478aa(0x2ea)]['getId'](),'tableId':this[_0x5478aa(0x1ec)][_0x5478aa(0x2ef)](),'patches':_0x2212f4,'source':c[_0x5478aa(0x237)]['Facade']});}[_0x2530a8(0x31e)](){const _0x87c7f8=_0x2530a8;return this['setValues'](Array['from']({'length':this[_0x87c7f8(0x1e2)]()},()=>Array['from']({'length':this['getNumColumns']()},()=>null)));}[_0x2530a8(0x21d)](_0x55c272,_0x1ac4cb,_0x1a614f=this['getNumRows'](),_0x32a912=this[_0x2530a8(0x1f0)]()){const _0x1a0cbf=_0x2530a8;return this['_inject'][_0x1a0cbf(0x1f6)](k,this['_base'],this[_0x1a0cbf(0x1ec)],{'startRow':this[_0x1a0cbf(0x1e1)][_0x1a0cbf(0x2d9)]+_0x55c272,'startColumn':this['_range'][_0x1a0cbf(0x28c)]+_0x1ac4cb,'endRow':this[_0x1a0cbf(0x1e1)][_0x1a0cbf(0x2d9)]+_0x55c272+_0x1a614f-0x1,'endColumn':this['_range'][_0x1a0cbf(0x28c)]+_0x1ac4cb+_0x32a912-0x1},this[_0x1a0cbf(0x2a6)]);}[_0x2530a8(0x2ec)](){const _0x3ff3d1=_0x2530a8;let _0x4ec602=this['_table'][_0x3ff3d1(0x19f)]();if(!_0x4ec602)throw Error(_0x3ff3d1(0x1fa));return(0x0,c[_0x3ff3d1(0x31a)])(_0x4ec602);}[_0x2530a8(0x1cc)](){const _0x5a5674=_0x2530a8;var _0x13c8c8;let _0x33bdf1=this['_getTable'](),_0x196ebd=((_0x13c8c8=_0x33bdf1[_0x5a5674(0x26e)])==null?void 0x0:_0x13c8c8[_0x5a5674(0x1d8)])??0x0,_0x1f88e8=this[_0x5a5674(0x188)](_0x33bdf1)[_0x5a5674(0x1d8)];if(this['_range'][_0x5a5674(0x2d9)]<0x0||this[_0x5a5674(0x1e1)]['startColumn']<0x0||this[_0x5a5674(0x1e1)][_0x5a5674(0x1c4)]<this['_range'][_0x5a5674(0x2d9)]||this['_range'][_0x5a5674(0x176)]<this[_0x5a5674(0x1e1)]['startColumn']||this[_0x5a5674(0x1e1)][_0x5a5674(0x1c4)]>=Math[_0x5a5674(0x2da)](_0x196ebd,0x1)||this[_0x5a5674(0x1e1)][_0x5a5674(0x176)]>=Math['max'](_0x1f88e8,0x1))throw Error(_0x5a5674(0x19d)+_0x196ebd+_0x5a5674(0x17f)+_0x1f88e8+_0x5a5674(0x207)+JSON[_0x5a5674(0x30f)](this[_0x5a5674(0x1e1)])+'.');}['_getFieldIds'](_0x2fae16){const _0x5f3467=_0x2530a8;return _0x2fae16[_0x5f3467(0x313)][_0x5f3467(0x178)](_0x5e5307=>y(_0x2fae16['fields'][_0x5e5307]));}};A=k=g([h(0x4,l[_0x2530a8(0x26a)])],A);function j(_0x2658f2){'@babel/helpers - typeof';const _0x586a97=_0x2530a8;return j=typeof Symbol==_0x586a97(0x311)&&typeof Symbol[_0x586a97(0x25b)]==_0x586a97(0x213)?function(_0x1c8db4){return typeof _0x1c8db4;}:function(_0x21cc85){const _0x41ff43=_0x586a97;return _0x21cc85&&typeof Symbol==_0x41ff43(0x311)&&_0x21cc85[_0x41ff43(0x276)]===Symbol&&_0x21cc85!==Symbol[_0x41ff43(0x240)]?_0x41ff43(0x213):typeof _0x21cc85;},j(_0x2658f2);}function M(_0x306621,_0x280310){const _0x347a22=_0x2530a8;if(j(_0x306621)!='object'||!_0x306621)return _0x306621;var _0x25e13f=_0x306621[Symbol[_0x347a22(0x235)]];if(_0x25e13f!==void 0x0){var _0x41fc33=_0x25e13f[_0x347a22(0x1cd)](_0x306621,_0x280310||_0x347a22(0x1b7));if(j(_0x41fc33)!=_0x347a22(0x186))return _0x41fc33;throw TypeError(_0x347a22(0x179));}return(_0x280310===_0x347a22(0x1ac)?String:Number)(_0x306621);}function N(_0xa741fa){const _0x336c92=_0x2530a8;var _0x3990e6=M(_0xa741fa,'string');return j(_0x3990e6)==_0x336c92(0x213)?_0x3990e6:_0x3990e6+'';}function P(_0x12ba70,_0x379c04,_0x147132){const _0x1450e5=_0x2530a8;return(_0x379c04=N(_0x379c04))in _0x12ba70?Object[_0x1450e5(0x1cb)](_0x12ba70,_0x379c04,{'value':_0x147132,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x12ba70[_0x379c04]=_0x147132,_0x12ba70;}var F;let I=F=class extends u[_0x2530a8(0x2ae)]{constructor(_0xb008a6,_0x46d25d,_0x4f9f67,_0x1c35f4,_0x167fde,_0x31ffc7){const _0x364ee3=_0x2530a8;super(_0x1c35f4),this[_0x364ee3(0x2ea)]=_0xb008a6,this[_0x364ee3(0x1ec)]=_0x46d25d,this[_0x364ee3(0x1e7)]=_0x4f9f67,this['_injector']=_0x1c35f4,this['_commandService']=_0x167fde,this[_0x364ee3(0x2e0)]=_0x31ffc7,P(this,_0x364ee3(0x226),void 0x0),P(this,_0x364ee3(0x319),void 0x0),this['_baseUnitId']=_0xb008a6[_0x364ee3(0x2ef)](),this['_baseTableId']=_0x46d25d[_0x364ee3(0x2ef)]();}[_0x2530a8(0x234)](){return this['_base'];}['getTableFacade'](){return this['_table'];}[_0x2530a8(0x2ef)](){const _0x53076c=_0x2530a8;return this[_0x53076c(0x1e7)];}[_0x2530a8(0x25e)](){const _0x590ab4=_0x2530a8;let _0x19fcef=this['_table'][_0x590ab4(0x2ef)]();return new m(this['_base']['getId'](),(0x0,c[_0x590ab4(0x1a0)])(_0x19fcef,this[_0x590ab4(0x1e7)]),[(0x0,c[_0x590ab4(0x1c1)])(_0x19fcef)],this[_0x590ab4(0x225)],this[_0x590ab4(0x2e0)]);}[_0x2530a8(0x323)](){const _0x2aa7e0=_0x2530a8;return{...this[_0x2aa7e0(0x1af)](),'values':this[_0x2aa7e0(0x1df)]()};}[_0x2530a8(0x2c4)](_0x4cc66f){const _0x5b350c=_0x2530a8;return y(this[_0x5b350c(0x1ec)]['getTable']()[_0x5b350c(0x263)][_0x4cc66f])?this[_0x5b350c(0x1af)]()[_0x5b350c(0x1fd)][_0x4cc66f]??null:null;}['getValues'](){const _0x3494bc=_0x2530a8;let _0x4c1c8b=this['_table'][_0x3494bc(0x19f)]();return Object['fromEntries'](Object[_0x3494bc(0x277)](this['_getRecord']()['values'])[_0x3494bc(0x178)](([_0x4f4df7])=>y(_0x4c1c8b[_0x3494bc(0x263)][_0x4f4df7])));}[_0x2530a8(0x189)](_0x87a1c9,_0x261555){const _0x34bae3=_0x2530a8;let _0x58d40f=this[_0x34bae3(0x1ec)]['getTable']()[_0x34bae3(0x263)][_0x87a1c9];return this[_0x34bae3(0x225)][_0x34bae3(0x272)](c[_0x34bae3(0x2c0)]['id'],{'unitId':this[_0x34bae3(0x2ea)]['getId'](),'tableId':this[_0x34bae3(0x1ec)][_0x34bae3(0x2ef)](),'recordId':this[_0x34bae3(0x1e7)],'fieldId':_0x87a1c9,'value':x(_0x58d40f,_0x261555),'source':c['BaseEventSource']['Facade']});}[_0x2530a8(0x22f)](_0x4baa0d,_0x57ee09){const _0x1bbce3=_0x2530a8;return this[_0x1bbce3(0x189)](_0x4baa0d,_0x57ee09['map'](_0x493751=>({..._0x493751})));}[_0x2530a8(0x1a1)](_0x14b417){const _0x162b83=_0x2530a8;this[_0x162b83(0x19e)](_0x14b417);let _0x12e140=this[_0x162b83(0x2c4)](_0x14b417);return Array[_0x162b83(0x244)](_0x12e140)?_0x12e140[_0x162b83(0x1b3)]((_0x3c7135,_0x2c53a6)=>R(_0x3c7135,_0x14b417,_0x2c53a6)):[];}[_0x2530a8(0x2e9)](_0x5d2f18,_0x49b92a){const _0x40d7db=_0x2530a8;this[_0x40d7db(0x19e)](_0x5d2f18);let _0x55a2da=new Set(_0x49b92a['map'](_0x538d8d=>_0x538d8d['id']));if(!_0x55a2da[_0x40d7db(0x1d9)])return!0x0;let _0x27523c=this[_0x40d7db(0x1a1)](_0x5d2f18),_0x398e1c=_0x27523c['filter'](_0x11b840=>!_0x55a2da['has'](_0x11b840['id']));return _0x398e1c[_0x40d7db(0x1d8)]===_0x27523c[_0x40d7db(0x1d8)]||this[_0x40d7db(0x22f)](_0x5d2f18,_0x398e1c);}[_0x2530a8(0x183)](_0x745e7,_0x58140b='id'){const _0x16d482=_0x2530a8;let _0x5c10dd=this['_table'][_0x16d482(0x19f)](),_0x487dec=[{'recordId':this[_0x16d482(0x1e7)],'values':b(_0x5c10dd,_0x745e7,_0x58140b)}];return this['_commandService']['syncExecuteCommand'](c[_0x16d482(0x305)]['id'],{'unitId':this['_base'][_0x16d482(0x2ef)](),'tableId':this[_0x16d482(0x1ec)]['getId'](),'patches':_0x487dec,'source':c[_0x16d482(0x237)][_0x16d482(0x17e)]});}['delete'](){const _0x264d41=_0x2530a8;return this[_0x264d41(0x225)][_0x264d41(0x272)](c[_0x264d41(0x2f4)]['id'],{'unitId':this[_0x264d41(0x2ea)][_0x264d41(0x2ef)](),'tableId':this[_0x264d41(0x1ec)][_0x264d41(0x2ef)](),'recordId':this[_0x264d41(0x1e7)],'source':c['BaseEventSource'][_0x264d41(0x17e)]});}[_0x2530a8(0x190)](_0x106747){const _0x2dc93a=_0x2530a8;let _0x228fb2={...this[_0x2dc93a(0x1af)](),..._0x106747,'id':(0x0,l[_0x2dc93a(0x22b)])(0x6)};_0x228fb2['values']={..._0x228fb2[_0x2dc93a(0x1fd)],..._0x106747==null?void 0x0:_0x106747[_0x2dc93a(0x1fd)]},Reflect[_0x2dc93a(0x321)](_0x228fb2[_0x2dc93a(0x1fd)],l[_0x2dc93a(0x2d5)]);let _0x296291=Date[_0x2dc93a(0x1a7)]();if(_0x228fb2[_0x2dc93a(0x1bf)]||=''+_0x296291,_0x228fb2['createdAt']||=_0x296291,_0x228fb2['updatedAt']||=_0x296291,!this[_0x2dc93a(0x225)]['syncExecuteCommand'](c[_0x2dc93a(0x17c)]['id'],{'unitId':this[_0x2dc93a(0x2ea)][_0x2dc93a(0x2ef)](),'tableId':this['_table'][_0x2dc93a(0x2ef)](),'sourceRecordId':this[_0x2dc93a(0x1e7)],'record':_0x228fb2,'source':c[_0x2dc93a(0x237)][_0x2dc93a(0x17e)]}))throw Error(_0x2dc93a(0x28b)+this[_0x2dc93a(0x1e7)]+'\x22.');return this[_0x2dc93a(0x1b6)][_0x2dc93a(0x1f6)](F,this[_0x2dc93a(0x2ea)],this[_0x2dc93a(0x1ec)],_0x228fb2['id'],this['_injector']);}[_0x2530a8(0x329)](_0x13a44a){const _0x519f51=_0x2530a8;return this[_0x519f51(0x225)][_0x519f51(0x272)](c[_0x519f51(0x301)]['id'],{'unitId':this[_0x519f51(0x2ea)]['getId'](),'tableId':this[_0x519f51(0x1ec)][_0x519f51(0x2ef)](),'recordId':this[_0x519f51(0x1e7)],'orderKey':_0x13a44a});}['getLinkedRecordIds'](_0x1f7f94){const _0x3e910b=_0x2530a8;let _0x4b5d2b=this['_getRecordLinkField'](_0x1f7f94),_0x41c632=this[_0x3e910b(0x2c4)](_0x4b5d2b['id']);return(0x0,c[_0x3e910b(0x1e9)])(_0x41c632);}['setLinkedRecordIds'](_0x33b42d,_0x1108d7){const _0x52c1ed=_0x2530a8;let _0x5072f2=this[_0x52c1ed(0x18a)](_0x33b42d),_0x26c569=(0x0,c[_0x52c1ed(0x1ff)])(_0x1108d7),_0x11133f=(0x0,c[_0x52c1ed(0x24f)])(this[_0x52c1ed(0x2ea)][_0x52c1ed(0x1b5)]()[_0x52c1ed(0x1d6)](),_0x5072f2,_0x26c569);if(!_0x11133f[_0x52c1ed(0x1c8)])throw Error(_0x11133f[_0x52c1ed(0x2f5)]??_0x52c1ed(0x2c9));return this['_commandService'][_0x52c1ed(0x272)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x52c1ed(0x1ec)][_0x52c1ed(0x2ef)](),'recordId':this['_recordId'],'fieldId':_0x33b42d,'value':_0x26c569,'source':c['BaseEventSource']['Facade']});}[_0x2530a8(0x199)](_0x530e6b,_0x1ebb63){const _0x4e0ce1=_0x2530a8;let _0xebcbab=this[_0x4e0ce1(0x18a)](_0x530e6b),_0x52f4f0=(0x0,c[_0x4e0ce1(0x1b9)])(_0xebcbab);if(!_0x52f4f0)throw Error(_0x4e0ce1(0x1b8)+_0x530e6b+_0x4e0ce1(0x282));let _0x52ca74=this['getLinkedRecordIds'](_0x530e6b);return _0x52f4f0[_0x4e0ce1(0x274)]&&_0x52ca74[_0x4e0ce1(0x2b9)](_0x1ebb63)?!0x0:this[_0x4e0ce1(0x1fe)](_0x530e6b,_0x52f4f0[_0x4e0ce1(0x274)]?[..._0x52ca74,_0x1ebb63]:[_0x1ebb63]);}[_0x2530a8(0x2eb)](_0x46c7d1,_0x48c6be){const _0x534b52=_0x2530a8;let _0x314394=this['getLinkedRecordIds'](_0x46c7d1);return!_0x314394['includes'](_0x48c6be)||this['setLinkedRecordIds'](_0x46c7d1,_0x314394[_0x534b52(0x178)](_0x5c57e6=>_0x5c57e6!==_0x48c6be));}[_0x2530a8(0x211)](_0x5b00c1){const _0x45367b=_0x2530a8;let _0x11975b=this[_0x45367b(0x2d0)](_0x5b00c1)['parentByRecordId']['get'](this[_0x45367b(0x1e7)])??null;return _0x11975b?this[_0x45367b(0x1ec)]['getRecordById'](_0x11975b):null;}[_0x2530a8(0x262)](_0x36cd3c){const _0x3d7d7a=_0x2530a8;return(this[_0x3d7d7a(0x2d0)](_0x36cd3c)[_0x3d7d7a(0x2b3)][_0x3d7d7a(0x1be)](this[_0x3d7d7a(0x1e7)])??[])[_0x3d7d7a(0x1a9)](_0x2978ed=>{const _0x21c3cd=_0x3d7d7a;let _0x4676a5=this[_0x21c3cd(0x1ec)]['getRecordById'](_0x2978ed);return _0x4676a5?[_0x4676a5]:[];});}['getAncestors'](_0x56100e){const _0x57e33a=_0x2530a8;let _0x587edb=this['_getHierarchyIndex'](_0x56100e),_0x1ff4eb=[],_0x296366=_0x587edb[_0x57e33a(0x2a2)]['get'](this[_0x57e33a(0x1e7)])??null;for(;_0x296366;){let _0x2f84b2=this[_0x57e33a(0x1ec)][_0x57e33a(0x315)](_0x296366);_0x2f84b2&&_0x1ff4eb[_0x57e33a(0x256)](_0x2f84b2),_0x296366=_0x587edb[_0x57e33a(0x2a2)][_0x57e33a(0x1be)](_0x296366)??null;}return _0x1ff4eb;}['getDescendants'](_0x414aaf){const _0x4af0d7=_0x2530a8;let _0x48d540=this['_getHierarchyIndex'](_0x414aaf),_0xc32364=_0x48d540[_0x4af0d7(0x1e8)][_0x4af0d7(0x302)](this['_recordId']),_0x358b1d=_0x48d540['subtreeHeightByRecordId'][_0x4af0d7(0x320)](this['_recordId'])?this[_0x4af0d7(0x2a0)](_0x48d540[_0x4af0d7(0x2b3)],this[_0x4af0d7(0x1e7)]):[];return _0xc32364<0x0?[]:_0x358b1d[_0x4af0d7(0x1a9)](_0x117a59=>{const _0x2482e3=_0x4af0d7;let _0x2204eb=this[_0x2482e3(0x1ec)][_0x2482e3(0x315)](_0x117a59);return _0x2204eb?[_0x2204eb]:[];});}[_0x2530a8(0x1a6)](_0x1d7e11,_0x37cf17,_0x33916b){const _0x273faa=_0x2530a8;return this[_0x273faa(0x225)][_0x273faa(0x272)](c[_0x273faa(0x201)]['id'],{'unitId':this[_0x273faa(0x2ea)]['getId'](),'tableId':this[_0x273faa(0x1ec)][_0x273faa(0x2ef)](),'fieldId':_0x1d7e11,'recordId':this[_0x273faa(0x1e7)],'parentRecordId':_0x37cf17,'orderKey':_0x33916b,'source':c['BaseEventSource'][_0x273faa(0x17e)]});}[_0x2530a8(0x299)](_0x3c20ee,_0xc74e26,_0x33301b='id',_0x336930){const _0x443b7e=_0x2530a8;let _0x4b8109=this['_table'][_0x443b7e(0x19f)](),_0x5a31fc=Date[_0x443b7e(0x1a7)](),_0x20c3bb={..._0x336930,'id':(0x0,l[_0x443b7e(0x22b)])(0x6),'values':b(_0x4b8109,_0xc74e26,_0x33301b),'orderKey':(_0x336930==null?void 0x0:_0x336930['orderKey'])||''+_0x5a31fc,'createdAt':(_0x336930==null?void 0x0:_0x336930[_0x443b7e(0x2a9)])||_0x5a31fc,'updatedAt':(_0x336930==null?void 0x0:_0x336930[_0x443b7e(0x2e2)])||_0x5a31fc};if(!this['_commandService'][_0x443b7e(0x272)](c['CreateBaseChildRecordCommand']['id'],{'unitId':this[_0x443b7e(0x2ea)][_0x443b7e(0x2ef)](),'tableId':this[_0x443b7e(0x1ec)][_0x443b7e(0x2ef)](),'fieldId':_0x3c20ee,'parentRecordId':this[_0x443b7e(0x1e7)],'record':_0x20c3bb,'source':c[_0x443b7e(0x237)][_0x443b7e(0x17e)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x443b7e(0x1e7)]+'\x22.');return this[_0x443b7e(0x1b6)][_0x443b7e(0x1f6)](F,this[_0x443b7e(0x2ea)],this['_table'],_0x20c3bb['id'],this['_injector']);}[_0x2530a8(0x2d0)](_0x1e45b1){const _0x50755a=_0x2530a8;return(0x0,c['buildBaseHierarchyIndex'])(this[_0x50755a(0x1ec)][_0x50755a(0x19f)](),_0x1e45b1);}[_0x2530a8(0x2a0)](_0x4a06eb,_0x5aa5c3){let _0x171cc7=[],_0xf6dd07=_0x54e6eb=>{const _0x5638af=_0x3370;for(let _0x2b52a9 of _0x4a06eb[_0x5638af(0x1be)](_0x54e6eb)??[])_0x171cc7[_0x5638af(0x256)](_0x2b52a9),_0xf6dd07(_0x2b52a9);};return _0xf6dd07(_0x5aa5c3),_0x171cc7;}['_getRecord'](){const _0x62fc2d=_0x2530a8;let _0x13606e=this[_0x62fc2d(0x1ec)][_0x62fc2d(0x19f)]()[_0x62fc2d(0x1d1)][this['_recordId']];if(!_0x13606e)throw Error(_0x62fc2d(0x264)+this[_0x62fc2d(0x1e7)]+'\x22\x20does\x20not\x20exist.');return _0x13606e;}[_0x2530a8(0x18a)](_0x5632db){const _0x11ce20=_0x2530a8;let _0x41e3a4=this[_0x11ce20(0x1ec)]['getTable']()[_0x11ce20(0x263)][_0x5632db];if(!_0x41e3a4||_0x41e3a4[_0x11ce20(0x2ff)]!==l[_0x11ce20(0x275)][_0x11ce20(0x20e)])throw Error('[FRecord]:\x20field\x20\x22'+_0x5632db+_0x11ce20(0x2fc));return _0x41e3a4;}[_0x2530a8(0x19e)](_0x12295a){const _0x42f30f=_0x2530a8;let _0x301599=this[_0x42f30f(0x1ec)][_0x42f30f(0x19f)]()['fields'][_0x12295a];if(!_0x301599||_0x301599['type']!==l[_0x42f30f(0x275)][_0x42f30f(0x21e)])throw Error(_0x42f30f(0x298)+_0x12295a+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x301599;}};I=F=g([h(0x4,l[_0x2530a8(0x26a)]),h(0x5,l['IPermissionService'])],I);function L(_0x5d8bf7){const _0x5cf5c3=_0x2530a8;return!!(_0x5d8bf7&&typeof _0x5d8bf7==_0x5cf5c3(0x186)&&'id'in _0x5d8bf7&&typeof _0x5d8bf7['id']=='string'&&'name'in _0x5d8bf7&&typeof _0x5d8bf7['name']=='string');}function R(_0x277bdb,_0x5c591b,_0x5bae4b){const _0x418f5=_0x2530a8;if(!L(_0x277bdb))throw Error(_0x418f5(0x185)+_0x5bae4b+'\x20in\x20field\x20\x22'+_0x5c591b+_0x418f5(0x2cb));return{..._0x277bdb};}let z=class{constructor(_0x24f1fa,_0x5b9e3a,_0x3198d0,_0x3bf02a,_0x5976b8,_0x1b1eec,_0x56f4cb){const _0x403013=_0x2530a8;this[_0x403013(0x2ea)]=_0x24f1fa,this[_0x403013(0x1ec)]=_0x5b9e3a,this['_viewId']=_0x3198d0,this['_injector']=_0x3bf02a,this[_0x403013(0x225)]=_0x5976b8,this[_0x403013(0x2e0)]=_0x1b1eec,this[_0x403013(0x1e6)]=_0x56f4cb;}[_0x2530a8(0x2ef)](){const _0x36c292=_0x2530a8;return this[_0x36c292(0x191)];}[_0x2530a8(0x25e)](){const _0x5de8d3=_0x2530a8;let _0x36eff1=this[_0x5de8d3(0x1ec)]['getId']();return new m(this[_0x5de8d3(0x2ea)][_0x5de8d3(0x2ef)](),(0x0,c['getBaseViewPermissionObjectId'])(_0x36eff1,this[_0x5de8d3(0x191)]),[(0x0,c[_0x5de8d3(0x1c1)])(_0x36eff1)],this[_0x5de8d3(0x225)],this[_0x5de8d3(0x2e0)]);}[_0x2530a8(0x18f)](){const _0x42c0f5=_0x2530a8;return this[_0x42c0f5(0x29d)]();}[_0x2530a8(0x270)](){const _0x559b93=_0x2530a8;return this[_0x559b93(0x29d)]()[_0x559b93(0x306)];}['getType'](){const _0x539557=_0x2530a8;return this[_0x539557(0x29d)]()[_0x539557(0x2ff)];}[_0x2530a8(0x20c)](_0x1ec168){const _0x280c07=_0x2530a8;return this[_0x280c07(0x225)][_0x280c07(0x272)](c[_0x280c07(0x2c2)]['id'],{'unitId':this[_0x280c07(0x2ea)][_0x280c07(0x2ef)](),'tableId':this[_0x280c07(0x1ec)]['getId'](),'viewId':this['_viewId'],'name':_0x1ec168});}[_0x2530a8(0x2d4)](){const _0x4da735=_0x2530a8;let _0x358eff=this[_0x4da735(0x233)](),_0x330ff2=this[_0x4da735(0x29d)]()[_0x4da735(0x210)];switch(_0x358eff){case l['BaseViewType'][_0x4da735(0x222)]:return _0x330ff2;case l['BaseViewType']['Kanban']:return _0x330ff2;case l[_0x4da735(0x2f8)][_0x4da735(0x18c)]:return _0x330ff2;case l['BaseViewType']['Gantt']:return _0x330ff2;case l[_0x4da735(0x2f8)][_0x4da735(0x184)]:return _0x330ff2;default:return _0x330ff2;}}[_0x2530a8(0x2c3)](_0x1bf0f3){const _0x33f21d=_0x2530a8;return this[_0x33f21d(0x225)][_0x33f21d(0x272)](c['UpdateBaseViewConfigCommand']['id'],{'unitId':this[_0x33f21d(0x2ea)]['getId'](),'tableId':this[_0x33f21d(0x1ec)][_0x33f21d(0x2ef)](),'viewId':this[_0x33f21d(0x191)],'patch':_0x1bf0f3});}[_0x2530a8(0x1ab)](){const _0x472fdf=_0x2530a8;var _0x3b0433;return l[_0x472fdf(0x209)]['deepClone'](((_0x3b0433=this[_0x472fdf(0x29d)]()['config'][_0x472fdf(0x230)])==null?void 0x0:_0x3b0433[_0x472fdf(0x2ba)])??[]);}[_0x2530a8(0x1ef)](_0x3867b1){const _0x257d14=_0x2530a8;return this['_commandService'][_0x257d14(0x272)](c[_0x257d14(0x1b0)]['id'],{'unitId':this[_0x257d14(0x2ea)][_0x257d14(0x2ef)](),'tableId':this[_0x257d14(0x1ec)][_0x257d14(0x2ef)](),'viewId':this[_0x257d14(0x191)],'type':c[_0x257d14(0x32a)][_0x257d14(0x1c9)],'rules':_0x3867b1});}[_0x2530a8(0x22a)](_0x271fb1){const _0x5552d9=_0x2530a8;return this['_commandService'][_0x5552d9(0x272)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this['_base'][_0x5552d9(0x2ef)](),'tableId':this[_0x5552d9(0x1ec)][_0x5552d9(0x2ef)](),'viewId':this[_0x5552d9(0x191)],'type':c[_0x5552d9(0x32a)][_0x5552d9(0x1e5)],'rule':_0x271fb1});}[_0x2530a8(0x2cd)](_0x3f7b67){const _0x13abb1=_0x2530a8;return this[_0x13abb1(0x225)][_0x13abb1(0x272)](c[_0x13abb1(0x1b0)]['id'],{'unitId':this[_0x13abb1(0x2ea)]['getId'](),'tableId':this[_0x13abb1(0x1ec)][_0x13abb1(0x2ef)](),'viewId':this[_0x13abb1(0x191)],'type':c['BaseConditionalColorRuleUpdateType'][_0x13abb1(0x259)],'ruleId':_0x3f7b67});}[_0x2530a8(0x2fe)](){const _0x5a101c=_0x2530a8;return this[_0x5a101c(0x225)][_0x5a101c(0x272)](c[_0x5a101c(0x1b0)]['id'],{'unitId':this[_0x5a101c(0x2ea)]['getId'](),'tableId':this['_table'][_0x5a101c(0x2ef)](),'viewId':this[_0x5a101c(0x191)],'type':c[_0x5a101c(0x32a)][_0x5a101c(0x2d1)]});}[_0x2530a8(0x2cc)](){const _0x57d88b=_0x2530a8;return this[_0x57d88b(0x29d)]()[_0x57d88b(0x178)]??null;}[_0x2530a8(0x2f1)](_0x2e7b4e){const _0x2fe7af=_0x2530a8;return this[_0x2fe7af(0x225)][_0x2fe7af(0x272)](c[_0x2fe7af(0x32c)]['id'],{'unitId':this[_0x2fe7af(0x2ea)][_0x2fe7af(0x2ef)](),'tableId':this[_0x2fe7af(0x1ec)]['getId'](),'viewId':this[_0x2fe7af(0x191)],'filter':_0x2e7b4e});}[_0x2530a8(0x2f7)](){const _0x136893=_0x2530a8;return this[_0x136893(0x29d)]()[_0x136893(0x224)]??[];}['setSort'](_0x59ded6){const _0x1823ad=_0x2530a8;return this[_0x1823ad(0x225)][_0x1823ad(0x272)](c[_0x1823ad(0x27e)]['id'],{'unitId':this['_base'][_0x1823ad(0x2ef)](),'tableId':this[_0x1823ad(0x1ec)][_0x1823ad(0x2ef)](),'viewId':this[_0x1823ad(0x191)],'sort':_0x59ded6});}[_0x2530a8(0x25f)](){const _0x2fd35d=_0x2530a8;return this[_0x2fd35d(0x29d)]()['group']??[];}['setGroup'](_0x1520ae){const _0x480572=_0x2530a8;return this[_0x480572(0x225)][_0x480572(0x272)](c[_0x480572(0x1b2)]['id'],{'unitId':this[_0x480572(0x2ea)][_0x480572(0x2ef)](),'tableId':this[_0x480572(0x1ec)][_0x480572(0x2ef)](),'viewId':this['_viewId'],'group':_0x1520ae});}[_0x2530a8(0x250)](_0x2aba2d){const _0x150d5c=_0x2530a8;var _0x5b35f1;return y(this[_0x150d5c(0x1ec)][_0x150d5c(0x19f)]()[_0x150d5c(0x263)][_0x2aba2d])?((_0x5b35f1=this[_0x150d5c(0x29d)]()[_0x150d5c(0x281)])==null?void 0x0:_0x5b35f1[_0x2aba2d])??{}:{};}[_0x2530a8(0x29a)](){const _0x1f0b01=_0x2530a8;let _0x123ebb=this[_0x1f0b01(0x1ec)][_0x1f0b01(0x19f)](),_0x40c76b=this[_0x1f0b01(0x29d)]();return(_0x40c76b[_0x1f0b01(0x313)]??_0x123ebb[_0x1f0b01(0x313)])[_0x1f0b01(0x178)](_0x3bd988=>{const _0x23ccb6=_0x1f0b01;var _0x515555;let _0x44f805=_0x123ebb[_0x23ccb6(0x263)][_0x3bd988];return y(_0x44f805)&&!((_0x515555=_0x40c76b[_0x23ccb6(0x281)])!=null&&(_0x515555=_0x515555[_0x3bd988])!=null&&_0x515555[_0x23ccb6(0x2a4)]);})[_0x1f0b01(0x1b3)](_0x5bff6e=>this[_0x1f0b01(0x1b6)][_0x1f0b01(0x1f6)](_,this[_0x1f0b01(0x2ea)],this['_table'],_0x5bff6e));}['setFieldVisible'](_0x1f4920,_0x1fec77){const _0x682d9d=_0x2530a8;return y(this[_0x682d9d(0x1ec)][_0x682d9d(0x19f)]()['fields'][_0x1f4920])?this[_0x682d9d(0x225)]['syncExecuteCommand'](c[_0x682d9d(0x308)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x682d9d(0x2ef)](),'viewId':this[_0x682d9d(0x191)],'fieldId':_0x1f4920,'visible':_0x1fec77}):!0x1;}[_0x2530a8(0x181)](_0x39b48b,_0x831338){const _0x35622a=_0x2530a8;return y(this[_0x35622a(0x1ec)]['getTable']()[_0x35622a(0x263)][_0x39b48b])?this[_0x35622a(0x225)]['syncExecuteCommand'](c[_0x35622a(0x266)]['id'],{'unitId':this[_0x35622a(0x2ea)][_0x35622a(0x2ef)](),'tableId':this[_0x35622a(0x1ec)][_0x35622a(0x2ef)](),'viewId':this[_0x35622a(0x191)],'fieldId':_0x39b48b,'width':_0x831338}):!0x1;}[_0x2530a8(0x2a3)](_0x1364fa,_0x48579c){const _0x58ddf7=_0x2530a8;let _0x54ae36=this[_0x58ddf7(0x1ec)][_0x58ddf7(0x19f)](),_0x12da0b=_0x48579c[_0x58ddf7(0x2db)]??_0x48579c[_0x58ddf7(0x26f)];return!y(_0x54ae36[_0x58ddf7(0x263)][_0x1364fa])||!_0x12da0b||!y(_0x54ae36['fields'][_0x12da0b])?!0x1:this['_commandService'][_0x58ddf7(0x272)](c[_0x58ddf7(0x19a)]['id'],{'unitId':this[_0x58ddf7(0x2ea)][_0x58ddf7(0x2ef)](),'tableId':this[_0x58ddf7(0x1ec)][_0x58ddf7(0x2ef)](),'viewId':this[_0x58ddf7(0x191)],'fieldId':_0x1364fa,'target':_0x48579c});}[_0x2530a8(0x2ed)](_0x2bcdeb){const _0x218525=_0x2530a8;return this[_0x218525(0x225)][_0x218525(0x272)](c['MoveBaseViewCommand']['id'],{'unitId':this[_0x218525(0x2ea)]['getId'](),'tableId':this[_0x218525(0x1ec)]['getId'](),'viewId':this[_0x218525(0x191)],'target':_0x2bcdeb});}['delete'](){const _0x46db92=_0x2530a8;return this[_0x46db92(0x225)]['syncExecuteCommand'](c[_0x46db92(0x271)]['id'],{'unitId':this[_0x46db92(0x2ea)][_0x46db92(0x2ef)](),'tableId':this[_0x46db92(0x1ec)]['getId'](),'viewId':this['_viewId']});}['getProjection'](){const _0x2e3dc5=_0x2530a8;return this[_0x2e3dc5(0x1e6)][_0x2e3dc5(0x297)](this['_base'][_0x2e3dc5(0x1b5)]()[_0x2e3dc5(0x1d6)](),this[_0x2e3dc5(0x1ec)]['getId'](),this[_0x2e3dc5(0x191)]);}['_getView'](){const _0x3c3c09=_0x2530a8;let _0x51601c=this[_0x3c3c09(0x1ec)]['getTable']()[_0x3c3c09(0x19b)][this['_viewId']];if(!_0x51601c)throw Error(_0x3c3c09(0x2a1)+this[_0x3c3c09(0x191)]+'\x22\x20does\x20not\x20exist.');return _0x51601c;}};z=g([h(0x4,l[_0x2530a8(0x26a)]),h(0x5,l['IPermissionService']),h(0x6,c[_0x2530a8(0x31f)])],z);let B=class{constructor(_0x5cee25,_0x5e96ee,_0x193e1f,_0x33d0ce,_0x2df99b,_0x18abf3){const _0x2787ef=_0x2530a8;this['_base']=_0x5cee25,this[_0x2787ef(0x229)]=_0x5e96ee,this[_0x2787ef(0x1b6)]=_0x193e1f,this['_commandService']=_0x33d0ce,this['_permissionService']=_0x2df99b,this[_0x2787ef(0x1e6)]=_0x18abf3;}[_0x2530a8(0x1b5)](){const _0x15cc29=_0x2530a8;return this['_base'][_0x15cc29(0x1b5)]();}[_0x2530a8(0x19f)](){const _0x576a47=_0x2530a8;return this[_0x576a47(0x2ec)]();}['getId'](){return this['_tableId'];}[_0x2530a8(0x25e)](){const _0x4ac71b=_0x2530a8;return new m(this[_0x4ac71b(0x1b5)]()[_0x4ac71b(0x249)](),(0x0,c[_0x4ac71b(0x1c1)])(this[_0x4ac71b(0x229)]),[],this[_0x4ac71b(0x225)],this[_0x4ac71b(0x2e0)]);}[_0x2530a8(0x268)](){const _0x3c7038=_0x2530a8;return(0x0,c['resolveBaseHierarchyFieldId'])(this[_0x3c7038(0x2ec)]());}[_0x2530a8(0x26c)](_0x685648){const _0x3f5d91=_0x2530a8;return this[_0x3f5d91(0x225)]['syncExecuteCommand'](c[_0x3f5d91(0x2e7)]['id'],{'unitId':this['_base'][_0x3f5d91(0x2ef)](),'tableId':this[_0x3f5d91(0x229)],'fieldId':_0x685648});}[_0x2530a8(0x270)](){const _0x2c6133=_0x2530a8;return this[_0x2c6133(0x2ec)]()['name'];}[_0x2530a8(0x1f4)](){const _0x30a64b=_0x2530a8;let _0x3006c7=this[_0x30a64b(0x2ea)][_0x30a64b(0x1b5)]()[_0x30a64b(0x1d6)]();return(0x0,c[_0x30a64b(0x24e)])(this[_0x30a64b(0x2ec)](),_0x3006c7);}['setName'](_0x4d2b76){const _0x249ae5=_0x2530a8;let _0x2b7c49=(0x0,c[_0x249ae5(0x2fd)])(this[_0x249ae5(0x2ea)]['getBase']()[_0x249ae5(0x1d6)](),_0x4d2b76,this['_tableId']);if(!_0x2b7c49[_0x249ae5(0x1c8)])throw Error(_0x249ae5(0x280)+_0x4d2b76+_0x249ae5(0x1d5)+c[_0x249ae5(0x1eb)]+'\x20'+_0x2b7c49[_0x249ae5(0x2f5)]);return this[_0x249ae5(0x225)][_0x249ae5(0x272)](c['RenameBaseTableCommand']['id'],{'unitId':this['_base'][_0x249ae5(0x2ef)](),'tableId':this['_tableId'],'name':_0x4d2b76});}[_0x2530a8(0x2b8)](_0xd70240,_0x362368){const _0x5a1083=_0x2530a8;let _0x1c8caa=this[_0x5a1083(0x2ea)][_0x5a1083(0x1b5)]()[_0x5a1083(0x1d6)](),_0x2bc3ff=this[_0x5a1083(0x2ec)]();if(_0x362368){let _0x450224=this[_0x5a1083(0x1e6)][_0x5a1083(0x297)](_0x1c8caa,this[_0x5a1083(0x229)],_0x362368),_0x34bdac=_0x2bc3ff[_0x5a1083(0x19b)][_0x362368],_0x3ae77c=_0xd70240[_0x5a1083(0x1a8)]??J(_0x2bc3ff,_0x34bdac,_0x450224),_0x2da80f='rows'in _0x450224&&Array[_0x5a1083(0x244)](_0x450224[_0x5a1083(0x317)])?_0x450224[_0x5a1083(0x317)]:[];return(0x0,c[_0x5a1083(0x23a)])({..._0xd70240,'table':_0x2bc3ff,'fieldIds':_0x3ae77c,'rows':_0x2da80f});}let _0x110661=(_0x2bc3ff['recordOrder']?_0x2bc3ff[_0x5a1083(0x26e)][_0x5a1083(0x1b3)](_0x3bf552=>_0x2bc3ff['records'][_0x3bf552]):Object[_0x5a1083(0x1fd)](_0x2bc3ff['records'])[_0x5a1083(0x224)]((_0x5436dd,_0x559811)=>_0x5436dd['orderKey'][_0x5a1083(0x31c)](_0x559811[_0x5a1083(0x1bf)])))['filter'](_0x962bb4=>_0x962bb4)[_0x5a1083(0x1b3)](_0x57d753=>({'recordId':_0x57d753['id'],'values':_0x57d753[_0x5a1083(0x1fd)]})),_0x38c594=_0xd70240[_0x5a1083(0x1a8)]??_0x2bc3ff[_0x5a1083(0x313)][_0x5a1083(0x178)](_0x701964=>y(_0x2bc3ff[_0x5a1083(0x263)][_0x701964]));return(0x0,c[_0x5a1083(0x23a)])({..._0xd70240,'table':_0x2bc3ff,'fieldIds':_0x38c594,'rows':_0x110661});}['getPrimaryFieldId'](){return this['_getTable']()['primaryFieldId'];}['getFields'](){const _0x46b5b3=_0x2530a8;let _0x2b0dfe=this['_getTable']();return _0x2b0dfe[_0x46b5b3(0x313)][_0x46b5b3(0x1b3)](_0x4a52bf=>_0x2b0dfe['fields'][_0x4a52bf])[_0x46b5b3(0x178)](y)[_0x46b5b3(0x1b3)](_0x22e8d2=>this[_0x46b5b3(0x1b6)]['createInstance'](_,this[_0x46b5b3(0x2ea)],this,_0x22e8d2['id']));}[_0x2530a8(0x2f9)](_0x35a88c){const _0x518de2=_0x2530a8;let _0x38ae3d=this[_0x518de2(0x2ec)]()[_0x518de2(0x263)][_0x35a88c];return y(_0x38ae3d)?this[_0x518de2(0x1b6)][_0x518de2(0x1f6)](_,this[_0x518de2(0x2ea)],this,_0x38ae3d['id']):null;}[_0x2530a8(0x17a)](_0x190f6c){const _0x149d4a=_0x2530a8;let _0x1b8ab2=this[_0x149d4a(0x2ec)]()[_0x149d4a(0x263)],_0x12767e=Object[_0x149d4a(0x1fd)](_0x1b8ab2)['find'](_0x2a2c04=>y(_0x2a2c04)&&_0x2a2c04[_0x149d4a(0x306)]===_0x190f6c);return _0x12767e?this[_0x149d4a(0x1b6)][_0x149d4a(0x1f6)](_,this[_0x149d4a(0x2ea)],this,_0x12767e['id']):null;}['getPrimaryField'](){const _0x5b3f97=_0x2530a8;let _0x1b8c13=this[_0x5b3f97(0x2ec)]()['primaryFieldId'];return this['_injector'][_0x5b3f97(0x1f6)](_,this[_0x5b3f97(0x2ea)],this,_0x1b8c13);}[_0x2530a8(0x24d)](_0x442056,_0x51017e,_0x3921f6){const _0x2ffba7=_0x2530a8;var _0x50058a,_0x275dae;if(!Object['values'](l[_0x2ffba7(0x275)])[_0x2ffba7(0x193)](_0x45e2d3=>_0x45e2d3===_0x51017e))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x51017e)+'\x22.');if(_0x51017e===l[_0x2ffba7(0x275)][_0x2ffba7(0x24a)]&&this[_0x2ffba7(0x2b6)](_0x442056,_0x3921f6),_0x51017e===l['BaseFieldType']['RecordLink']&&(typeof(_0x3921f6==null||(_0x50058a=_0x3921f6[_0x2ffba7(0x2bb)])==null||(_0x50058a=_0x50058a['config'])==null?void 0x0:_0x50058a[_0x2ffba7(0x194)])!='string'||typeof _0x3921f6[_0x2ffba7(0x2bb)][_0x2ffba7(0x210)][_0x2ffba7(0x274)]!=_0x2ffba7(0x310)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x13442d={..._0x3921f6==null?void 0x0:_0x3921f6[_0x2ffba7(0x2bb)],'id':(0x0,l[_0x2ffba7(0x22b)])(0x6),'name':_0x442056,'type':_0x51017e,'config':(_0x3921f6==null||(_0x275dae=_0x3921f6['field'])==null?void 0x0:_0x275dae[_0x2ffba7(0x210)])??{}};if(!this[_0x2ffba7(0x225)][_0x2ffba7(0x272)](c[_0x2ffba7(0x175)]['id'],{'unitId':this[_0x2ffba7(0x2ea)]['getId'](),'tableId':this[_0x2ffba7(0x229)],'field':_0x13442d,'index':_0x3921f6==null?void 0x0:_0x3921f6[_0x2ffba7(0x279)]}))throw Error(_0x2ffba7(0x1f5)+_0x442056+'\x22');return this[_0x2ffba7(0x1b6)][_0x2ffba7(0x1f6)](_,this['_base'],this,_0x13442d['id']);}[_0x2530a8(0x2b6)](_0x70c19a,_0x17ba6f){const _0x2d6b3d=_0x2530a8;var _0x3b8dd8;if(!_0x17ba6f||!(_0x2d6b3d(0x2be)in _0x17ba6f)||!Array[_0x2d6b3d(0x244)](_0x17ba6f[_0x2d6b3d(0x2be)]))throw Error(_0x2d6b3d(0x2e4));let _0x555f34=this['_commandService'][_0x2d6b3d(0x272)](c[_0x2d6b3d(0x2fb)]['id'],{'unitId':this[_0x2d6b3d(0x2ea)][_0x2d6b3d(0x2ef)](),'tableId':this[_0x2d6b3d(0x229)],'formula':String(((_0x3b8dd8=_0x17ba6f[_0x2d6b3d(0x2bb)])==null||(_0x3b8dd8=_0x3b8dd8[_0x2d6b3d(0x210)])==null?void 0x0:_0x3b8dd8[_0x2d6b3d(0x27f)])??'')});if(!_0x555f34[_0x2d6b3d(0x1c8)])throw Error(_0x555f34['reason']??'Invalid\x20Base\x20formula.');if(_0x17ba6f[_0x2d6b3d(0x2be)][_0x2d6b3d(0x1d8)]>0x0&&!this[_0x2d6b3d(0x225)][_0x2d6b3d(0x272)](f[_0x2d6b3d(0x288)]['id'],{'unitId':this['_base']['getId'](),'references':_0x17ba6f[_0x2d6b3d(0x2be)]}))throw Error(_0x2d6b3d(0x242)+_0x70c19a+'\x22');}[_0x2530a8(0x231)](){const _0x51caf4=_0x2530a8;return this['_resolveRecordIds']()['map'](_0x171d50=>this[_0x51caf4(0x1b6)]['createInstance'](I,this[_0x51caf4(0x2ea)],this,_0x171d50,this[_0x51caf4(0x1b6)]));}[_0x2530a8(0x315)](_0x47d5c5){const _0x46b25d=_0x2530a8;return this[_0x46b25d(0x2ec)]()[_0x46b25d(0x1d1)][_0x47d5c5]?this[_0x46b25d(0x1b6)][_0x46b25d(0x1f6)](I,this[_0x46b25d(0x2ea)],this,_0x47d5c5,this[_0x46b25d(0x1b6)]):null;}[_0x2530a8(0x309)](_0x113ae3={}){const _0x5c7396=_0x2530a8;let _0x23e5c3=this['_getTable'](),_0x11e799=this[_0x5c7396(0x255)](_0x113ae3),_0x29015f=Math['max'](0x0,_0x113ae3['offset']??0x0),_0x242430=_0x113ae3[_0x5c7396(0x330)]==null?null:Math[_0x5c7396(0x2da)](0x0,_0x113ae3[_0x5c7396(0x330)]),_0x53e253=H(_0x11e799[_0x5c7396(0x1b3)](_0x533390=>_0x23e5c3[_0x5c7396(0x1d1)][_0x533390])[_0x5c7396(0x178)](_0x150e18=>W(_0x150e18,_0x23e5c3,_0x113ae3['filter'])),_0x23e5c3,_0x113ae3[_0x5c7396(0x224)]);return{'records':V(_0x53e253,_0x113ae3)[_0x5c7396(0x1b3)](_0x1c991e=>this[_0x5c7396(0x1b6)][_0x5c7396(0x1f6)](I,this['_base'],this,_0x1c991e['id'],this['_injector'])),'total':_0x53e253[_0x5c7396(0x1d8)],'offset':_0x29015f,'limit':_0x242430,'hasMore':_0x242430!=null&&_0x29015f+_0x242430<_0x53e253[_0x5c7396(0x1d8)]};}['addRecord'](_0x58379b,_0x2aebb6='id',_0x448f8e){const _0x5d66ad=_0x2530a8;let _0x3bb93f=this['_getTable'](),_0x194b64=Date[_0x5d66ad(0x1a7)](),_0xb78d29={..._0x448f8e,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x3bb93f,_0x58379b,_0x2aebb6),'orderKey':(_0x448f8e==null?void 0x0:_0x448f8e[_0x5d66ad(0x1bf)])||''+_0x194b64,'createdAt':(_0x448f8e==null?void 0x0:_0x448f8e[_0x5d66ad(0x2a9)])||_0x194b64,'updatedAt':(_0x448f8e==null?void 0x0:_0x448f8e['updatedAt'])||_0x194b64};if(!this[_0x5d66ad(0x225)][_0x5d66ad(0x272)](c['CreateBaseRecordCommand']['id'],{'unitId':this[_0x5d66ad(0x2ea)][_0x5d66ad(0x2ef)](),'tableId':this[_0x5d66ad(0x229)],'record':_0xb78d29,'source':c[_0x5d66ad(0x237)][_0x5d66ad(0x17e)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0xb78d29['id']+'\x22');return this['_injector'][_0x5d66ad(0x1f6)](I,this[_0x5d66ad(0x2ea)],this,_0xb78d29['id'],this[_0x5d66ad(0x1b6)]);}[_0x2530a8(0x1f7)](_0x3ee962){const _0x12e5a3=_0x2530a8;if(!_0x3ee962['length'])return[];let _0x43b3ae=this['_getTable'](),_0x480d9d=Date[_0x12e5a3(0x1a7)](),_0x10ee17=_0x3ee962[_0x12e5a3(0x1b3)]((_0x4423d1,_0x1c9b2b)=>{const _0x31850d=_0x12e5a3;var _0x5bee27,_0x261135,_0x369cca;return{..._0x4423d1[_0x31850d(0x228)],'id':(0x0,l[_0x31850d(0x22b)])(0x6),'values':b(_0x43b3ae,_0x4423d1[_0x31850d(0x1fd)],_0x4423d1[_0x31850d(0x27c)]??'id'),'orderKey':((_0x5bee27=_0x4423d1[_0x31850d(0x228)])==null?void 0x0:_0x5bee27['orderKey'])||''+(_0x480d9d+_0x1c9b2b),'createdAt':((_0x261135=_0x4423d1[_0x31850d(0x228)])==null?void 0x0:_0x261135[_0x31850d(0x2a9)])||_0x480d9d,'updatedAt':((_0x369cca=_0x4423d1[_0x31850d(0x228)])==null?void 0x0:_0x369cca[_0x31850d(0x2e2)])||_0x480d9d};});if(!this['_commandService'][_0x12e5a3(0x272)](c[_0x12e5a3(0x2d6)]['id'],{'unitId':this['_base'][_0x12e5a3(0x2ef)](),'tableId':this[_0x12e5a3(0x229)],'records':_0x10ee17,'source':c[_0x12e5a3(0x237)][_0x12e5a3(0x17e)]}))throw Error('Failed\x20to\x20add\x20records');return _0x10ee17[_0x12e5a3(0x1b3)](_0x2ca330=>this['_injector'][_0x12e5a3(0x1f6)](I,this[_0x12e5a3(0x2ea)],this,_0x2ca330['id'],this[_0x12e5a3(0x1b6)]));}[_0x2530a8(0x223)](_0x1a0f2e){const _0x32e388=_0x2530a8;return!_0x1a0f2e[_0x32e388(0x1d8)]||this[_0x32e388(0x225)]['syncExecuteCommand'](c['BatchDeleteBaseRecordsCommand']['id'],{'unitId':this[_0x32e388(0x2ea)]['getId'](),'tableId':this[_0x32e388(0x229)],'recordIds':_0x1a0f2e,'source':c['BaseEventSource'][_0x32e388(0x17e)]});}[_0x2530a8(0x198)](_0x2d5891,_0x736207,_0x26f213=0x1,_0x39868a=0x1){return this['_injector']['createInstance'](A,this['_base'],this,{'startRow':_0x2d5891,'endRow':_0x2d5891+_0x26f213-0x1,'startColumn':_0x736207,'endColumn':_0x736207+_0x39868a-0x1},this['_injector']);}[_0x2530a8(0x1f1)](){const _0x184a3b=_0x2530a8;var _0x4f8682;let _0x5e9846=(0x0,c[_0x184a3b(0x31a)])(this[_0x184a3b(0x2ec)]()),_0x185db4=((_0x4f8682=_0x5e9846['recordOrder'])==null?void 0x0:_0x4f8682[_0x184a3b(0x1d8)])??0x0,_0x43ff2f=_0x5e9846[_0x184a3b(0x313)][_0x184a3b(0x178)](_0x1d9a6c=>y(_0x5e9846[_0x184a3b(0x263)][_0x1d9a6c]))[_0x184a3b(0x1d8)];return this[_0x184a3b(0x198)](0x0,0x0,Math[_0x184a3b(0x2da)](_0x185db4,0x1),Math[_0x184a3b(0x2da)](_0x43ff2f,0x1));}[_0x2530a8(0x192)](){const _0x14aa90=_0x2530a8;let _0x39d868=this[_0x14aa90(0x2ec)]();return _0x39d868[_0x14aa90(0x2b2)][_0x14aa90(0x178)](_0x7dcb32=>_0x39d868[_0x14aa90(0x19b)][_0x7dcb32])[_0x14aa90(0x1b3)](_0x29e00d=>this[_0x14aa90(0x1b6)][_0x14aa90(0x1f6)](z,this[_0x14aa90(0x2ea)],this,_0x29e00d,this[_0x14aa90(0x1b6)]));}[_0x2530a8(0x227)](_0x2bb05f){const _0x39cbdd=_0x2530a8;return this['_getTable']()[_0x39cbdd(0x19b)][_0x2bb05f]?this[_0x39cbdd(0x1b6)][_0x39cbdd(0x1f6)](z,this['_base'],this,_0x2bb05f,this[_0x39cbdd(0x1b6)]):null;}[_0x2530a8(0x1e0)](_0x30b23e){const _0x215cf9=_0x2530a8;let _0x5d9855=this[_0x215cf9(0x2ec)](),_0x28277f=Object['values'](_0x5d9855[_0x215cf9(0x19b)])['find'](_0x251e43=>_0x251e43[_0x215cf9(0x306)]===_0x30b23e);return _0x28277f?this['_injector'][_0x215cf9(0x1f6)](z,this[_0x215cf9(0x2ea)],this,_0x28277f['id'],this[_0x215cf9(0x1b6)]):null;}[_0x2530a8(0x208)](_0x51da92,_0x3d6e6d,_0x22f9ee){const _0x580d51=_0x2530a8;var _0x451b9d,_0x550a75,_0x22a2e9,_0x2c520c;let _0x6a5ee1=this[_0x580d51(0x2ec)](),_0x365bee=(_0x22f9ee==null||(_0x451b9d=_0x22f9ee['view'])==null?void 0x0:_0x451b9d[_0x580d51(0x313)])??_0x6a5ee1[_0x580d51(0x313)],_0x1d4e30=[l['BASE_RECORD_ID_FIELD_ID'],..._0x365bee[_0x580d51(0x178)](_0x11a87a=>y(_0x6a5ee1['fields'][_0x11a87a]))],_0x2f42ae={..._0x22f9ee==null?void 0x0:_0x22f9ee[_0x580d51(0x2f3)],'id':(0x0,l[_0x580d51(0x22b)])(0x6),'name':_0x51da92,'type':_0x3d6e6d,'tableId':this[_0x580d51(0x229)],'config':(_0x22f9ee==null||(_0x550a75=_0x22f9ee[_0x580d51(0x2f3)])==null?void 0x0:_0x550a75[_0x580d51(0x210)])??{},'fieldOrder':_0x1d4e30,'fieldSettings':{..._0x22f9ee==null||(_0x22a2e9=_0x22f9ee[_0x580d51(0x2f3)])==null?void 0x0:_0x22a2e9[_0x580d51(0x281)],[l[_0x580d51(0x2d5)]]:{..._0x22f9ee==null||(_0x2c520c=_0x22f9ee[_0x580d51(0x2f3)])==null||(_0x2c520c=_0x2c520c[_0x580d51(0x281)])==null?void 0x0:_0x2c520c[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this[_0x580d51(0x225)][_0x580d51(0x272)](c[_0x580d51(0x220)]['id'],{'unitId':this[_0x580d51(0x2ea)][_0x580d51(0x2ef)](),'tableId':this['_tableId'],'view':_0x2f42ae,'index':_0x22f9ee==null?void 0x0:_0x22f9ee[_0x580d51(0x279)]}))throw Error(_0x580d51(0x20a)+_0x51da92+'\x22');return this[_0x580d51(0x1b6)][_0x580d51(0x1f6)](z,this[_0x580d51(0x2ea)],this,_0x2f42ae['id'],this[_0x580d51(0x1b6)]);}[_0x2530a8(0x25a)](){const _0x2e45b3=_0x2530a8;let _0x3aea1d=this['_getTable'](),_0x454010=_0x3aea1d[_0x2e45b3(0x313)][_0x2e45b3(0x178)](_0x5df6ff=>y(_0x3aea1d[_0x2e45b3(0x263)][_0x5df6ff])),_0x1012fc=_0x3aea1d[_0x2e45b3(0x2b2)][_0x2e45b3(0x178)](_0x35ef21=>_0x3aea1d[_0x2e45b3(0x19b)][_0x35ef21]);return{'id':_0x3aea1d['id'],'name':_0x3aea1d[_0x2e45b3(0x306)],'formulaName':this[_0x2e45b3(0x1f4)](),'primaryFieldId':_0x3aea1d[_0x2e45b3(0x258)],'fieldIds':_0x454010,'viewIds':_0x1012fc,'recordCount':this[_0x2e45b3(0x255)]()[_0x2e45b3(0x1d8)],'fields':_0x454010[_0x2e45b3(0x1b3)](_0x3f3d79=>{const _0x5bf271=_0x2e45b3;let _0x1db0a1=_0x3aea1d[_0x5bf271(0x263)][_0x3f3d79];return{'id':_0x1db0a1['id'],'name':_0x1db0a1[_0x5bf271(0x306)],'type':_0x1db0a1[_0x5bf271(0x2ff)],'config':_0x1db0a1[_0x5bf271(0x210)],'readonly':_0x1db0a1['readonly'],'description':_0x1db0a1[_0x5bf271(0x197)]};}),'views':_0x1012fc[_0x2e45b3(0x1b3)](_0x3b3f1c=>{const _0x54bd87=_0x2e45b3;let _0x834850=_0x3aea1d[_0x54bd87(0x19b)][_0x3b3f1c];return{'id':_0x834850['id'],'name':_0x834850[_0x54bd87(0x306)],'type':_0x834850[_0x54bd87(0x2ff)]};})};}[_0x2530a8(0x2ec)](){const _0x393841=_0x2530a8;let _0x7f8897=this['_base'][_0x393841(0x1b5)]()[_0x393841(0x1d6)]()[_0x393841(0x27b)][this[_0x393841(0x229)]];if(!_0x7f8897)throw Error(_0x393841(0x324)+this[_0x393841(0x229)]+_0x393841(0x285));return _0x7f8897;}[_0x2530a8(0x255)](_0x55eb13={}){const _0x5299ab=_0x2530a8;let _0x3bf949=this[_0x5299ab(0x2ea)]['getBase']()[_0x5299ab(0x1d6)](),_0x755b6=this[_0x5299ab(0x2ec)]();if(_0x55eb13[_0x5299ab(0x304)]){let _0x579f75=this[_0x5299ab(0x1e6)][_0x5299ab(0x297)](_0x3bf949,this[_0x5299ab(0x229)],_0x55eb13[_0x5299ab(0x304)]);if(_0x5299ab(0x317)in _0x579f75&&Array['isArray'](_0x579f75['rows']))return _0x579f75[_0x5299ab(0x317)][_0x5299ab(0x1b3)](_0x5c781c=>_0x5c781c['recordId']);}return(_0x755b6[_0x5299ab(0x26e)]?_0x755b6['recordOrder']['map'](_0x563ccb=>_0x755b6[_0x5299ab(0x1d1)][_0x563ccb]):Object[_0x5299ab(0x1fd)](_0x755b6['records'])[_0x5299ab(0x224)]((_0x2e2334,_0x498cf5)=>_0x2e2334['orderKey'][_0x5299ab(0x31c)](_0x498cf5[_0x5299ab(0x1bf)])))[_0x5299ab(0x178)](_0x271165=>_0x271165)[_0x5299ab(0x1b3)](_0x3a4e3a=>_0x3a4e3a['id']);}};B=g([h(0x3,l[_0x2530a8(0x26a)]),h(0x4,l[_0x2530a8(0x260)]),h(0x5,c[_0x2530a8(0x31f)])],B);function V(_0x49ef03,_0x5a5652){const _0x9d0838=_0x2530a8;let _0x5cc079=Math['max'](0x0,_0x5a5652[_0x9d0838(0x21d)]??0x0);return _0x5a5652[_0x9d0838(0x330)]==null?_0x49ef03[_0x9d0838(0x269)](_0x5cc079):_0x49ef03['slice'](_0x5cc079,_0x5cc079+Math[_0x9d0838(0x2da)](0x0,_0x5a5652[_0x9d0838(0x330)]));}function H(_0x2f3ab8,_0x4a302f,_0xcb77aa=[]){return _0xcb77aa['length']?[..._0x2f3ab8]['sort']((_0x5b6d36,_0x24a120)=>{const _0x18ace7=_0x3370;for(let _0x30eda7 of _0xcb77aa){var _0x1fbb25;let _0x1a302f=_0x30eda7['direction']===l[_0x18ace7(0x318)]['DESC']?-0x1:0x1,_0x4f7348=U(_0x5b6d36[_0x18ace7(0x1fd)][_0x30eda7['fieldId']],_0x24a120[_0x18ace7(0x1fd)][_0x30eda7['fieldId']],(_0x1fbb25=_0x4a302f['fields'][_0x30eda7[_0x18ace7(0x316)]])==null?void 0x0:_0x1fbb25[_0x18ace7(0x2ff)]);if(_0x4f7348!==0x0)return _0x4f7348*_0x1a302f;}return String(_0x5b6d36[_0x18ace7(0x1bf)]??_0x5b6d36['id'])['localeCompare'](String(_0x24a120[_0x18ace7(0x1bf)]??_0x24a120['id']));}):_0x2f3ab8;}function U(_0x30dd3f,_0x261e4b,_0x1b72eb){const _0x140e48=_0x2530a8;return _0x30dd3f==null&&_0x261e4b==null?0x0:_0x30dd3f==null?-0x1:_0x261e4b==null?0x1:typeof _0x30dd3f==_0x140e48(0x1ee)&&typeof _0x261e4b==_0x140e48(0x1ee)?_0x30dd3f-_0x261e4b:_0x1b72eb===l[_0x140e48(0x275)]['Date']?Number(_0x30dd3f)-Number(_0x261e4b):String(_0x30dd3f)[_0x140e48(0x31c)](String(_0x261e4b));}function W(_0x3f8a3b,_0x3185d5,_0x296c3b){const _0x7de783=_0x2530a8;var _0x31023e;if(!_0x296c3b||!((_0x31023e=_0x296c3b[_0x7de783(0x1ea)])!=null&&_0x31023e[_0x7de783(0x1d8)]))return!0x0;let {conjunction:_0x1ad7a2=l[_0x7de783(0x1ed)]['OR'],conditions:_0x1c8274}=_0x296c3b;return _0x1ad7a2===l[_0x7de783(0x1ed)][_0x7de783(0x30e)]&&_0x1c8274[_0x7de783(0x1d8)]>0x1?_0x1c8274['every'](_0x319d3b=>G(_0x3f8a3b,_0x3185d5,_0x319d3b)):_0x1c8274[_0x7de783(0x193)](_0x51d75e=>G(_0x3f8a3b,_0x3185d5,_0x51d75e));}function G(_0x181d6a,_0x2cb84,_0x25fe0a){const _0x518660=_0x2530a8;let _0x4e56aa=_0x181d6a[_0x518660(0x1fd)][_0x25fe0a[_0x518660(0x316)]],_0x3c2aff=_0x2cb84[_0x518660(0x263)][_0x25fe0a[_0x518660(0x316)]];if(K(_0x25fe0a)){let _0x1354a3=q(_0x25fe0a)['test'](String(_0x4e56aa??''));return _0x25fe0a[_0x518660(0x202)]===_0x518660(0x182)?_0x1354a3:!_0x1354a3;}return!_0x3c2aff||(0x0,c[_0x518660(0x2a5)])(_0x4e56aa,_0x25fe0a[_0x518660(0x202)],_0x25fe0a[_0x518660(0x239)],_0x3c2aff);}function K(_0x49db15){const _0x1d8fa1=_0x2530a8;return _0x49db15[_0x1d8fa1(0x202)]===_0x1d8fa1(0x182)||_0x49db15[_0x1d8fa1(0x202)]===_0x1d8fa1(0x283);}function q(_0x54323e){const _0xc113e1=_0x2530a8;let _0x5e1cca=String(_0x54323e[_0xc113e1(0x239)]??'');if(_0x5e1cca[_0xc113e1(0x1d8)]>0x200)throw Error(_0xc113e1(0x2e6));try{return new RegExp(_0x5e1cca,_0x54323e['caseSensitive']?void 0x0:'i');}catch(_0x2a2bdc){throw Error(_0xc113e1(0x2d2)+_0x5e1cca+'.\x20'+(_0x2a2bdc instanceof Error?_0x2a2bdc[_0xc113e1(0x326)]:String(_0x2a2bdc)));}}function J(_0x3da055,_0x4a079d,_0xec2b5e){const _0x2d8bfd=_0x2530a8;if(_0xec2b5e[_0x2d8bfd(0x2ff)]!==_0x2d8bfd(0x314)&&_0xec2b5e[_0x2d8bfd(0x2ff)]!==_0x2d8bfd(0x1f2)){var _0x520f2a;if(_0xec2b5e[_0x2d8bfd(0x2ff)]===l[_0x2d8bfd(0x2f8)][_0x2d8bfd(0x17b)]){var _0x14e6db;let _0x3848ed=[((_0x14e6db=_0xec2b5e[_0x2d8bfd(0x263)])==null||(_0x14e6db=_0x14e6db[0x0])==null?void 0x0:_0x14e6db['id'])??_0x3da055[_0x2d8bfd(0x258)],..._0xec2b5e[_0x2d8bfd(0x1d2)]??[]];return Array['from'](new Set(_0x3848ed[_0x2d8bfd(0x178)](_0xb4bda0=>!!_0x3da055[_0x2d8bfd(0x263)][_0xb4bda0])));}if((_0x520f2a=_0xec2b5e[_0x2d8bfd(0x263)])!=null&&_0x520f2a[_0x2d8bfd(0x1d8)])return _0xec2b5e[_0x2d8bfd(0x263)][_0x2d8bfd(0x1b3)](_0x23f85c=>_0x23f85c['id'])[_0x2d8bfd(0x178)](_0x55ab0e=>{const _0x1d6b8e=_0x2d8bfd;var _0x4c84e3;return!(!_0x3da055[_0x1d6b8e(0x263)][_0x55ab0e]||_0x4a079d!=null&&(_0x4c84e3=_0x4a079d['fieldSettings'])!=null&&(_0x4c84e3=_0x4c84e3[_0x55ab0e])!=null&&_0x4c84e3[_0x1d6b8e(0x2a4)]);});}return _0x3da055[_0x2d8bfd(0x313)][_0x2d8bfd(0x178)](_0x479ce9=>{const _0x40f014=_0x2d8bfd;var _0x1a8096;return!(!_0x3da055['fields'][_0x479ce9]||_0x4a079d!=null&&(_0x1a8096=_0x4a079d[_0x40f014(0x281)])!=null&&(_0x1a8096=_0x1a8096[_0x479ce9])!=null&&_0x1a8096[_0x40f014(0x2a4)]);});}let Y=class extends u['FBase']{constructor(_0x5b2a8a,_0x394daf,_0x2a80a5,_0x16b0f8,_0x42e22e){const _0x413af5=_0x2530a8;super(),this[_0x413af5(0x2ea)]=_0x5b2a8a,this[_0x413af5(0x1b6)]=_0x394daf,this['_resourceLoaderService']=_0x2a80a5,this[_0x413af5(0x225)]=_0x16b0f8,this[_0x413af5(0x2e0)]=_0x42e22e;}[_0x2530a8(0x1b5)](){const _0x69ddcc=_0x2530a8;return this[_0x69ddcc(0x2ea)];}[_0x2530a8(0x2ef)](){const _0x2a512c=_0x2530a8;return this[_0x2a512c(0x2ea)][_0x2a512c(0x249)]();}[_0x2530a8(0x25e)](){const _0x576c36=_0x2530a8;return new p(this[_0x576c36(0x2ef)](),this[_0x576c36(0x225)],this['_permissionService']);}[_0x2530a8(0x2b5)](){const _0x1d182c=_0x2530a8;return this[_0x1d182c(0x177)][_0x1d182c(0x265)](this[_0x1d182c(0x2ef)]())??l[_0x1d182c(0x209)][_0x1d182c(0x31b)](this[_0x1d182c(0x2ea)][_0x1d182c(0x1d6)]());}[_0x2530a8(0x270)](){const _0x2248fa=_0x2530a8;return this[_0x2248fa(0x2ea)][_0x2248fa(0x1d6)]()[_0x2248fa(0x306)];}[_0x2530a8(0x20c)](_0x468c1b){const _0x234d70=_0x2530a8;this[_0x234d70(0x225)][_0x234d70(0x272)](c['SetBaseNameCommand']['id'],{'unitId':this['getId'](),'name':_0x468c1b});}[_0x2530a8(0x27a)](){const _0x400ab1=_0x2530a8;let _0x5e1f34=this[_0x400ab1(0x2ea)][_0x400ab1(0x1d6)]();return _0x5e1f34[_0x400ab1(0x296)][_0x400ab1(0x1b3)](_0x1f880b=>_0x5e1f34[_0x400ab1(0x27b)][_0x1f880b])[_0x400ab1(0x178)](_0x4a8a76=>_0x4a8a76)['map'](_0x4dfe00=>this['_injector'][_0x400ab1(0x1f6)](B,this,_0x4dfe00['id'],this[_0x400ab1(0x1b6)]));}[_0x2530a8(0x205)](_0x443b7d){const _0x20754c=_0x2530a8;let _0x4638c4=this[_0x20754c(0x2ea)][_0x20754c(0x1d6)]()[_0x20754c(0x27b)][_0x443b7d];return _0x4638c4?this[_0x20754c(0x1b6)][_0x20754c(0x1f6)](B,this,_0x4638c4['id'],this['_injector']):null;}[_0x2530a8(0x1f9)](_0x3dbc7c){const _0x18207a=_0x2530a8;let _0x50273b=this[_0x18207a(0x2ea)][_0x18207a(0x1d6)](),_0x122b7f=Object[_0x18207a(0x1fd)](_0x50273b[_0x18207a(0x27b)])[_0x18207a(0x1db)](_0x44b25d=>_0x44b25d['name']===_0x3dbc7c);return _0x122b7f?this[_0x18207a(0x1b6)][_0x18207a(0x1f6)](B,this,_0x122b7f['id'],this['_injector']):null;}['insertTable'](_0x5775d2,_0x94a2a2){const _0x3545f3=_0x2530a8;let _0x1edada=(0x0,l['createDefaultBaseTableSnapshot'])({'id':(0x0,l[_0x3545f3(0x22b)])(),'name':_0x5775d2,..._0x94a2a2==null?void 0x0:_0x94a2a2[_0x3545f3(0x1ba)],'primaryFieldName':_0x94a2a2==null?void 0x0:_0x94a2a2['primaryFieldName']}),_0x494044=l['Tools'][_0x3545f3(0x312)](_0x1edada,(_0x94a2a2==null?void 0x0:_0x94a2a2[_0x3545f3(0x1ba)])??{}),_0x39c41b=(0x0,c['validateBaseTableName'])(this['_base'][_0x3545f3(0x1d6)](),_0x494044[_0x3545f3(0x306)]);if(!_0x39c41b[_0x3545f3(0x1c8)])throw Error(_0x3545f3(0x2f6)+_0x494044[_0x3545f3(0x306)]+_0x3545f3(0x1d5)+c[_0x3545f3(0x1eb)]+'\x20'+_0x39c41b[_0x3545f3(0x2f5)]);if(!this[_0x3545f3(0x225)][_0x3545f3(0x272)](c[_0x3545f3(0x236)]['id'],{'unitId':this[_0x3545f3(0x2ea)][_0x3545f3(0x249)](),'table':_0x494044,'index':_0x94a2a2==null?void 0x0:_0x94a2a2[_0x3545f3(0x279)]}))throw Error(_0x3545f3(0x1d4)+_0x5775d2+'\x22.');return this[_0x3545f3(0x1b6)][_0x3545f3(0x1f6)](B,this,_0x494044['id'],this['_injector']);}[_0x2530a8(0x247)](_0x1b70fd){const _0x5a0392=_0x2530a8;let _0x225434=typeof _0x1b70fd==_0x5a0392(0x1ac)?_0x1b70fd:_0x1b70fd[_0x5a0392(0x2ef)]();if(!this[_0x5a0392(0x225)][_0x5a0392(0x272)](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0x5a0392(0x2ea)][_0x5a0392(0x249)](),'tableId':_0x225434}))throw Error(_0x5a0392(0x31d)+_0x225434+'\x22.');return!0x0;}[_0x2530a8(0x26d)](_0xdefc2d,_0x506e55){const _0x3ce45a=_0x2530a8;let _0x4c9aa4=this[_0x3ce45a(0x2ea)][_0x3ce45a(0x1d6)](),_0x13270c=typeof _0xdefc2d=='string'?_0xdefc2d:_0xdefc2d['getId'](),_0x2132b7=_0x4c9aa4[_0x3ce45a(0x27b)][_0x13270c];if(!_0x2132b7)throw Error(_0x3ce45a(0x252)+_0x13270c+_0x3ce45a(0x285));let _0x3455e4=_0x4c9aa4[_0x3ce45a(0x296)]['indexOf'](_0x13270c)+0x1,_0x23228f=(0x0,l[_0x3ce45a(0x22b)])(),_0x2e4ed7=(0x0,c[_0x3ce45a(0x1cf)])(_0x2132b7,{'id':_0x23228f,'name':(0x0,c[_0x3ce45a(0x286)])(_0x4c9aa4,_0x2132b7[_0x3ce45a(0x306)]+_0x3ce45a(0x18b)),'includeRecords':(_0x506e55==null?void 0x0:_0x506e55[_0x3ce45a(0x246)])??!0x1,'regenerateViewIds':(_0x506e55==null?void 0x0:_0x506e55[_0x3ce45a(0x2ad)])??!0x1});if(!this[_0x3ce45a(0x225)][_0x3ce45a(0x272)](c[_0x3ce45a(0x236)]['id'],{'unitId':this[_0x3ce45a(0x2ea)][_0x3ce45a(0x249)](),'table':_0x2e4ed7,'index':_0x3455e4}))throw Error(_0x3ce45a(0x1b4)+_0x13270c+'\x22.');return this['_injector'][_0x3ce45a(0x1f6)](B,this,_0x2e4ed7['id'],this[_0x3ce45a(0x1b6)]);}[_0x2530a8(0x25a)](){const _0x48e21e=_0x2530a8;let _0x3c69b8=this[_0x48e21e(0x2ea)][_0x48e21e(0x1d6)]();return{'id':_0x3c69b8['id'],'name':_0x3c69b8[_0x48e21e(0x306)],'tables':this[_0x48e21e(0x27a)]()['map'](_0x5341b1=>_0x5341b1['getSchema']())};}};function _0x3370(_0x532773,_0xd269ca){_0x532773=_0x532773-0x175;const _0x3dab62=_0x3dab();let _0x33709d=_0x3dab62[_0x532773];return _0x33709d;}Y=g([h(0x1,(0x0,l[_0x2530a8(0x2ab)])(l[_0x2530a8(0x2c5)])),h(0x2,l[_0x2530a8(0x248)]),h(0x3,l[_0x2530a8(0x26a)]),h(0x4,l[_0x2530a8(0x260)])],Y);var X=class extends u[_0x2530a8(0x18e)]{[_0x2530a8(0x1f3)](){const _0x24e985=_0x2530a8;this[_0x24e985(0x1dc)](),this[_0x24e985(0x253)]();}[_0x2530a8(0x1fb)](_0x1d0749={},_0x179cfc){const _0x3c0c22=_0x2530a8;let _0x4d14da=this[_0x3c0c22(0x206)][_0x3c0c22(0x25c)](l[_0x3c0c22(0x1d3)][_0x3c0c22(0x20f)],_0x1d0749,_0x179cfc);return this[_0x3c0c22(0x1b6)][_0x3c0c22(0x1f6)](Y,_0x4d14da);}[_0x2530a8(0x214)](){const _0x522546=_0x2530a8;let _0x391636=this[_0x522546(0x206)][_0x522546(0x1a5)](l[_0x522546(0x1d3)][_0x522546(0x20f)]);return _0x391636?this[_0x522546(0x1b6)][_0x522546(0x1f6)](Y,_0x391636):null;}[_0x2530a8(0x1b5)](_0xb06c6e){const _0x2a7432=_0x2530a8;let _0x407e28=this[_0x2a7432(0x206)][_0x2a7432(0x1d7)](_0xb06c6e,l['UniverInstanceType'][_0x2a7432(0x20f)]);return _0x407e28?this[_0x2a7432(0x1b6)][_0x2a7432(0x1f6)](Y,_0x407e28):null;}[_0x2530a8(0x1e4)](){const _0x184f54=_0x2530a8;return this[_0x184f54(0x206)][_0x184f54(0x2e8)](l[_0x184f54(0x1d3)][_0x184f54(0x20f)])['map'](_0x31d609=>this['_injector'][_0x184f54(0x1f6)](Y,_0x31d609));}[_0x2530a8(0x253)](){const _0x3e8606=_0x2530a8;this['disposeWithMe'](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x28f)],()=>this[_0x3e8606(0x225)]['onCommandExecuted']((_0x15e4fc,_0x3a6391)=>{const _0x1e2f79=_0x3e8606;var _0x373f63;if(!Z(_0x15e4fc,c[_0x1e2f79(0x17d)]))return;let _0x447109=_0x15e4fc[_0x1e2f79(0x289)];if(!((_0x373f63=_0x447109[_0x1e2f79(0x2fa)])!=null&&_0x373f63[_0x1e2f79(0x1d8)]))return;let _0x551a91=this[_0x1e2f79(0x1b5)](_0x447109['unitId']),_0x4b80bb=_0x551a91==null?void 0x0:_0x551a91[_0x1e2f79(0x205)](_0x447109[_0x1e2f79(0x2fa)][0x0]['tableId']);if(!_0x551a91||!_0x4b80bb)return;let _0x48e5a0={'base':_0x551a91,'table':_0x4b80bb,'changes':_0x447109[_0x1e2f79(0x2fa)],'source':_0x3a6391!=null&&_0x3a6391['fromCollab']?c[_0x1e2f79(0x237)][_0x1e2f79(0x295)]:_0x447109[_0x1e2f79(0x2c7)]??c['BaseEventSource']['UI']};this['fireEvent'](this[_0x1e2f79(0x2af)][_0x1e2f79(0x28f)],_0x48e5a0);}))),this['disposeWithMe'](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x2b7)],()=>this[_0x3e8606(0x225)][_0x3e8606(0x180)](_0x6e0ada=>{const _0x50de89=_0x3e8606;if(_0x6e0ada['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0x33d583,table:_0x82c160,index:_0x1102e4}=_0x6e0ada[_0x50de89(0x289)],_0x351bd1=this[_0x50de89(0x1b5)](_0x33d583);if(!_0x351bd1)return;let _0x2b16d8={'base':_0x351bd1,'table':_0x82c160,'index':_0x1102e4};this[_0x50de89(0x254)](this[_0x50de89(0x2af)][_0x50de89(0x2b7)],_0x2b16d8);}))),this[_0x3e8606(0x1c2)](this['registerEventHandler'](this[_0x3e8606(0x2af)][_0x3e8606(0x25d)],()=>this[_0x3e8606(0x225)]['onCommandExecuted'](_0x3e54b5=>{const _0x16bcd3=_0x3e8606;if(_0x3e54b5['id']!==c[_0x16bcd3(0x175)]['id'])return;let {unitId:_0x791766,tableId:_0x5125c4,field:_0x2e1f9d,index:_0x1b6416,viewIndexes:_0x472245}=_0x3e54b5['params'],_0x8a0f6c=this[_0x16bcd3(0x1b5)](_0x791766);if(!_0x8a0f6c)return;let _0x213d41=_0x8a0f6c['getTableById'](_0x5125c4);if(!_0x213d41)return;let _0x166f60={'base':_0x8a0f6c,'table':_0x213d41,'field':_0x2e1f9d,'index':_0x1b6416,'viewIndexes':_0x472245};this[_0x16bcd3(0x254)](this[_0x16bcd3(0x2af)][_0x16bcd3(0x25d)],_0x166f60);}))),this[_0x3e8606(0x1c2)](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x292)],()=>this[_0x3e8606(0x225)][_0x3e8606(0x180)](_0x5a3b46=>{const _0x588b41=_0x3e8606;if(_0x5a3b46['id']!==c[_0x588b41(0x1bc)]['id']&&_0x5a3b46['id']!==c[_0x588b41(0x2d6)]['id'])return;let _0xc92615=_0x5a3b46['params'],{unitId:_0x213138,tableId:_0x33db63}=_0xc92615,_0x4d90f1=_0xc92615[_0x588b41(0x1d1)]??[_0xc92615[_0x588b41(0x228)]],_0xd37ccd=this[_0x588b41(0x1b5)](_0x213138);if(!_0xd37ccd)return;let _0x4db569=_0xd37ccd[_0x588b41(0x205)](_0x33db63);if(!_0x4db569)return;let _0x3fd5c2={'base':_0xd37ccd,'table':_0x4db569,'records':_0x4d90f1};this[_0x588b41(0x254)](this[_0x588b41(0x2af)][_0x588b41(0x292)],_0x3fd5c2);}))),this[_0x3e8606(0x1c2)](this[_0x3e8606(0x1a3)](this[_0x3e8606(0x2af)][_0x3e8606(0x2d7)],()=>this[_0x3e8606(0x225)][_0x3e8606(0x180)](_0xb71ba5=>{const _0x770bb7=_0x3e8606;if(_0xb71ba5['id']!==c[_0x770bb7(0x220)]['id'])return;let {unitId:_0x1b1c5e,tableId:_0x332761,view:_0x5d77df,index:_0x4b56ab}=_0xb71ba5[_0x770bb7(0x289)],_0x479527=this['getBase'](_0x1b1c5e);if(!_0x479527)return;let _0x555828=_0x479527[_0x770bb7(0x205)](_0x332761);if(!_0x555828)return;let _0x2d9066={'base':_0x479527,'table':_0x555828,'view':_0x5d77df,'index':_0x4b56ab};this[_0x770bb7(0x254)](this[_0x770bb7(0x2af)][_0x770bb7(0x2d7)],_0x2d9066);}))),this[_0x3e8606(0x1c2)](this['registerEventHandler'](this[_0x3e8606(0x2af)][_0x3e8606(0x216)],()=>this[_0x3e8606(0x225)]['onCommandExecuted'](_0x33d45c=>{const _0x34987d=_0x3e8606;if(_0x33d45c['id']!==c[_0x34987d(0x2c0)]['id'])return;let {unitId:_0x2b85a6,tableId:_0x1bf564,recordId:_0x274643,fieldId:_0x5a0f24,value:_0x445ea2}=_0x33d45c[_0x34987d(0x289)],_0x5ee4c6=this['getBase'](_0x2b85a6);if(!_0x5ee4c6)return;let _0x4c73be=_0x5ee4c6[_0x34987d(0x205)](_0x1bf564);if(!_0x4c73be)return;let _0x1aad61=_0x4c73be[_0x34987d(0x2f9)](_0x5a0f24);if(!_0x1aad61)return;let _0x4cbb7f=_0x4c73be[_0x34987d(0x315)](_0x274643);if(!_0x4cbb7f)return;let _0x4aac08={'base':_0x5ee4c6,'table':_0x4c73be,'field':_0x1aad61,'record':_0x4cbb7f,'value':_0x445ea2};this[_0x34987d(0x254)](this['Event'][_0x34987d(0x216)],_0x4aac08);})));}[_0x2530a8(0x1dc)](){const _0x346ff4=_0x2530a8;this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x30d)],()=>this[_0x346ff4(0x225)]['beforeCommandExecuted'](_0x560df3=>{const _0x2085bc=_0x346ff4;if(Z(_0x560df3,c[_0x2085bc(0x305)])){let {unitId:_0x4e146c,tableId:_0x37eb08,patches:_0x2c0bde,source:_0x2040be=c['BaseEventSource']['UI']}=_0x560df3['params'],_0x2e1188=this[_0x2085bc(0x21a)](_0x4e146c,_0x37eb08);if(!_0x2e1188)return;this[_0x2085bc(0x2ce)](_0x2e1188['base'],_0x2e1188['table'],(0x0,c[_0x2085bc(0x200)])(_0x2e1188['table'][_0x2085bc(0x19f)](),_0x2c0bde),_0x2040be);return;}if(Z(_0x560df3,c[_0x2085bc(0x2d3)])){let {unitId:_0xdabc84,tableId:_0xbffee8,patches:_0x58b1f6,source:_0x594eb6=c[_0x2085bc(0x237)]['UI']}=_0x560df3[_0x2085bc(0x289)],_0x2d11da=this[_0x2085bc(0x21a)](_0xdabc84,_0xbffee8);if(!_0x2d11da)return;let _0x51d35f=_0x2d11da['table'][_0x2085bc(0x19f)]();this['_fireBeforeHierarchyChange'](_0x2d11da[_0x2085bc(0x22c)],_0x2d11da['table'],(0x0,c[_0x2085bc(0x200)])(_0x51d35f,(0x0,c[_0x2085bc(0x2ca)])(_0x51d35f,_0x58b1f6)),_0x594eb6);return;}if(Z(_0x560df3,c['CreateBaseRecordCommand'])){let _0x4e9d11=_0x560df3[_0x2085bc(0x289)],_0x3380ee=this['_getHierarchyEventContext'](_0x4e9d11[_0x2085bc(0x245)],_0x4e9d11['tableId']);if(!_0x3380ee)return;this[_0x2085bc(0x2ce)](_0x3380ee[_0x2085bc(0x22c)],_0x3380ee[_0x2085bc(0x1ba)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x3380ee[_0x2085bc(0x1ba)]['getTable'](),[_0x4e9d11['record']]),_0x4e9d11[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x2d6)])){let _0x5e8705=_0x560df3[_0x2085bc(0x289)],_0x3f1aaf=this['_getHierarchyEventContext'](_0x5e8705[_0x2085bc(0x245)],_0x5e8705[_0x2085bc(0x2bc)]);if(!_0x3f1aaf)return;this[_0x2085bc(0x2ce)](_0x3f1aaf['base'],_0x3f1aaf['table'],(0x0,c[_0x2085bc(0x1aa)])(_0x3f1aaf['table'][_0x2085bc(0x19f)](),_0x5e8705['records']),_0x5e8705[_0x2085bc(0x2c7)]??c['BaseEventSource']['UI']);return;}if(Z(_0x560df3,c['DuplicateBaseRecordCommand'])){let _0x4ea91c=_0x560df3[_0x2085bc(0x289)],_0x449891=this['_getHierarchyEventContext'](_0x4ea91c[_0x2085bc(0x245)],_0x4ea91c[_0x2085bc(0x2bc)]);if(!_0x449891)return;this[_0x2085bc(0x2ce)](_0x449891[_0x2085bc(0x22c)],_0x449891['table'],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x449891[_0x2085bc(0x1ba)]['getTable'](),[_0x4ea91c[_0x2085bc(0x228)]]),_0x4ea91c['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x201)])){let _0x43307e=_0x560df3[_0x2085bc(0x289)],_0x41fdf2=this[_0x2085bc(0x21a)](_0x43307e[_0x2085bc(0x245)],_0x43307e['tableId']);if(!_0x41fdf2)return;let _0x1ec801=_0x41fdf2[_0x2085bc(0x1ba)][_0x2085bc(0x19f)](),_0x5df6a6=_0x43307e[_0x2085bc(0x316)]??(0x0,c[_0x2085bc(0x22e)])(_0x1ec801),_0x4ff519=(0x0,c[_0x2085bc(0x2de)])(_0x1ec801,_0x5df6a6)['parentByRecordId'][_0x2085bc(0x1be)](_0x43307e['recordId'])??null;this[_0x2085bc(0x2ce)](_0x41fdf2[_0x2085bc(0x22c)],_0x41fdf2[_0x2085bc(0x1ba)],[{'tableId':_0x43307e['tableId'],'fieldId':_0x5df6a6,'recordId':_0x43307e['recordId'],'oldParentRecordId':_0x4ff519,'parentRecordId':_0x43307e['parentRecordId']}],_0x43307e[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x1bb)])){let _0x408c90=_0x560df3[_0x2085bc(0x289)],_0x4d4cbc=this['_getHierarchyEventContext'](_0x408c90[_0x2085bc(0x245)],_0x408c90[_0x2085bc(0x2bc)]);if(!_0x4d4cbc)return;let _0xf6e85d=_0x408c90[_0x2085bc(0x316)]??(0x0,c[_0x2085bc(0x22e)])(_0x4d4cbc[_0x2085bc(0x1ba)]['getTable']());this[_0x2085bc(0x2ce)](_0x4d4cbc[_0x2085bc(0x22c)],_0x4d4cbc[_0x2085bc(0x1ba)],[{'tableId':_0x408c90['tableId'],'fieldId':_0xf6e85d,'recordId':_0x408c90[_0x2085bc(0x228)]['id'],'oldParentRecordId':null,'parentRecordId':_0x408c90[_0x2085bc(0x2dc)]}],_0x408c90[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x2f4)])){let _0x32e13c=_0x560df3[_0x2085bc(0x289)],_0x16053d=this['_getHierarchyEventContext'](_0x32e13c[_0x2085bc(0x245)],_0x32e13c[_0x2085bc(0x2bc)]);if(!_0x16053d)return;this['_fireBeforeHierarchyChange'](_0x16053d[_0x2085bc(0x22c)],_0x16053d[_0x2085bc(0x1ba)],(0x0,c[_0x2085bc(0x327)])(_0x16053d[_0x2085bc(0x1ba)][_0x2085bc(0x19f)](),[_0x32e13c['recordId']]),_0x32e13c[_0x2085bc(0x2c7)]??c['BaseEventSource']['UI']);return;}if(Z(_0x560df3,c[_0x2085bc(0x243)])){let _0x1d27ed=_0x560df3[_0x2085bc(0x289)],_0xdbf7d8=this[_0x2085bc(0x21a)](_0x1d27ed[_0x2085bc(0x245)],_0x1d27ed[_0x2085bc(0x2bc)]);if(!_0xdbf7d8)return;this[_0x2085bc(0x2ce)](_0xdbf7d8[_0x2085bc(0x22c)],_0xdbf7d8['table'],(0x0,c[_0x2085bc(0x327)])(_0xdbf7d8[_0x2085bc(0x1ba)][_0x2085bc(0x19f)](),_0x1d27ed['recordIds']),_0x1d27ed[_0x2085bc(0x2c7)]??c['BaseEventSource']['UI']);return;}if(!Z(_0x560df3,c[_0x2085bc(0x2c0)]))return;let _0x120a4e=_0x560df3['params'],_0x3e2ae9=this[_0x2085bc(0x21a)](_0x120a4e[_0x2085bc(0x245)],_0x120a4e[_0x2085bc(0x2bc)]);if(!_0x3e2ae9)return;let _0x55870f=_0x3e2ae9['table'][_0x2085bc(0x19f)]();if(!(0x0,c[_0x2085bc(0x30a)])(_0x55870f)[_0x2085bc(0x2b9)](_0x120a4e['fieldId']))return;let _0x4181cb=(0x0,c['buildBaseHierarchyIndex'])(_0x55870f,_0x120a4e[_0x2085bc(0x316)])[_0x2085bc(0x2a2)][_0x2085bc(0x1be)](_0x120a4e[_0x2085bc(0x2df)])??null,_0x15ae59=(0x0,c[_0x2085bc(0x1e9)])(_0x120a4e[_0x2085bc(0x239)])[0x0]??null;_0x4181cb!==_0x15ae59&&this[_0x2085bc(0x2ce)](_0x3e2ae9[_0x2085bc(0x22c)],_0x3e2ae9['table'],[{'tableId':_0x120a4e[_0x2085bc(0x2bc)],'fieldId':_0x120a4e[_0x2085bc(0x316)],'recordId':_0x120a4e[_0x2085bc(0x2df)],'oldParentRecordId':_0x4181cb,'parentRecordId':_0x15ae59}],_0x120a4e[_0x2085bc(0x2c7)]??c[_0x2085bc(0x237)]['UI']);}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x293)],()=>this[_0x346ff4(0x225)][_0x346ff4(0x19c)](_0x857d06=>{const _0x4cdac1=_0x346ff4;if(_0x857d06['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0xabc258,table:_0x5a550d,index:_0x2e1202}=_0x857d06['params'],_0x40b8da=this['getBase'](_0xabc258);if(!_0x40b8da)return;let _0x1706ce={'base':_0x40b8da,'table':_0x5a550d,'index':_0x2e1202};if(this[_0x4cdac1(0x254)](this[_0x4cdac1(0x2af)][_0x4cdac1(0x293)],_0x1706ce),_0x1706ce[_0x4cdac1(0x1c3)])throw new l[(_0x4cdac1(0x26b))]();}))),this[_0x346ff4(0x1c2)](this['registerEventHandler'](this['Event']['BeforeBaseTableFieldCreate'],()=>this[_0x346ff4(0x225)][_0x346ff4(0x19c)](_0x53abdb=>{const _0x53579b=_0x346ff4;if(_0x53abdb['id']!==c[_0x53579b(0x175)]['id'])return;let {unitId:_0x2eeac5,tableId:_0x428c6d,field:_0x2e4e76,index:_0x5553eb,viewIndexes:_0x19d13c}=_0x53abdb[_0x53579b(0x289)],_0x3c5389=this[_0x53579b(0x1b5)](_0x2eeac5);if(!_0x3c5389)return;let _0x57cf67=_0x3c5389[_0x53579b(0x205)](_0x428c6d);if(!_0x57cf67)return;let _0x2ea57a={'base':_0x3c5389,'table':_0x57cf67,'field':_0x2e4e76,'index':_0x5553eb,'viewIndexes':_0x19d13c};if(this['fireEvent'](this['Event']['BeforeBaseTableFieldCreate'],_0x2ea57a),_0x2ea57a[_0x53579b(0x1c3)])throw new l[(_0x53579b(0x26b))]();}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x1ad)],()=>this[_0x346ff4(0x225)][_0x346ff4(0x19c)](_0x2d5257=>{const _0x3938fd=_0x346ff4;if(_0x2d5257['id']!==c['CreateBaseRecordCommand']['id']&&_0x2d5257['id']!==c[_0x3938fd(0x2d6)]['id'])return;let _0x1766cf=_0x2d5257[_0x3938fd(0x289)],{unitId:_0x3526a8,tableId:_0x4c1d57}=_0x1766cf,_0xecf1ab=_0x1766cf[_0x3938fd(0x1d1)]??[_0x1766cf[_0x3938fd(0x228)]],_0x217664=this[_0x3938fd(0x1b5)](_0x3526a8);if(!_0x217664)return;let _0xf669e5=_0x217664[_0x3938fd(0x205)](_0x4c1d57);if(!_0xf669e5)return;let _0x53b2c9={'base':_0x217664,'table':_0xf669e5,'records':_0xecf1ab};if(this[_0x3938fd(0x254)](this[_0x3938fd(0x2af)][_0x3938fd(0x1ad)],_0x53b2c9),_0x53b2c9[_0x3938fd(0x1c3)])throw new l[(_0x3938fd(0x26b))]();}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x1de)],()=>this['_commandService'][_0x346ff4(0x19c)](_0x56770d=>{const _0x294c0a=_0x346ff4;if(_0x56770d['id']!==c[_0x294c0a(0x220)]['id'])return;let {unitId:_0x4d2555,tableId:_0x5599f9,view:_0x5d65bf,index:_0x460eef}=_0x56770d['params'],_0x386cee=this[_0x294c0a(0x1b5)](_0x4d2555);if(!_0x386cee)return;let _0x3b15f5=_0x386cee[_0x294c0a(0x205)](_0x5599f9);if(!_0x3b15f5)return;let _0x34137e={'base':_0x386cee,'table':_0x3b15f5,'view':_0x5d65bf,'index':_0x460eef};if(this['fireEvent'](this[_0x294c0a(0x2af)][_0x294c0a(0x1de)],_0x34137e),_0x34137e[_0x294c0a(0x1c3)])throw new l[(_0x294c0a(0x26b))]();}))),this[_0x346ff4(0x1c2)](this[_0x346ff4(0x1a3)](this[_0x346ff4(0x2af)][_0x346ff4(0x300)],()=>this['_commandService']['beforeCommandExecuted'](_0x3ea70d=>{const _0x38c9b6=_0x346ff4;if(_0x3ea70d['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x562ced,tableId:_0x3762f4,recordId:_0xb7bcac,fieldId:_0x2b0481,value:_0x3c2c2a}=_0x3ea70d[_0x38c9b6(0x289)],_0x2f90b2=this[_0x38c9b6(0x1b5)](_0x562ced);if(!_0x2f90b2)return;let _0x168602=_0x2f90b2[_0x38c9b6(0x205)](_0x3762f4);if(!_0x168602)return;let _0x3927ff=_0x168602[_0x38c9b6(0x2f9)](_0x2b0481);if(!_0x3927ff)return;let _0x2973c7=_0x168602[_0x38c9b6(0x315)](_0xb7bcac);if(!_0x2973c7)return;let _0x256d78={'base':_0x2f90b2,'table':_0x168602,'field':_0x3927ff,'record':_0x2973c7,'value':_0x3c2c2a};if(this[_0x38c9b6(0x254)](this[_0x38c9b6(0x2af)][_0x38c9b6(0x300)],_0x256d78),_0x256d78[_0x38c9b6(0x1c3)])throw new l[(_0x38c9b6(0x26b))]();})));}[_0x2530a8(0x21a)](_0xd3c36,_0xca814f){const _0xd1604=_0x2530a8;let _0x5324a9=this[_0xd1604(0x1b5)](_0xd3c36),_0x1c1aa9=_0x5324a9==null?void 0x0:_0x5324a9[_0xd1604(0x205)](_0xca814f);return _0x5324a9&&_0x1c1aa9?{'base':_0x5324a9,'table':_0x1c1aa9}:null;}[_0x2530a8(0x2ce)](_0x3252be,_0x18ca01,_0x3c79f5,_0x316f99){const _0x5997ae=_0x2530a8;if(!_0x3c79f5[_0x5997ae(0x1d8)])return;let _0x5e11d2={'base':_0x3252be,'table':_0x18ca01,'changes':_0x3c79f5,'source':_0x316f99};if(this[_0x5997ae(0x254)](this[_0x5997ae(0x2af)][_0x5997ae(0x30d)],_0x5e11d2),_0x5e11d2[_0x5997ae(0x1c3)])throw new l['CanceledError']();}};function Z(_0x2dd54b,_0x26c3a5){const _0x68746d=_0x2530a8;return _0x2dd54b['id']===_0x26c3a5['id']&&_0x2dd54b[_0x68746d(0x289)]!==void 0x0;}u[_0x2530a8(0x18e)][_0x2530a8(0x2f2)](X);var Q=class extends u[_0x2530a8(0x21c)]{get[_0x2530a8(0x275)](){const _0x4e05db=_0x2530a8;return l[_0x4e05db(0x275)];}get[_0x2530a8(0x1ed)](){return l['BaseFilterConjunction'];}get[_0x2530a8(0x1e3)](){return l['BaseFilterOperator'];}get['BaseFieldKeyEnum'](){return v;}get[_0x2530a8(0x2f8)](){const _0x28cba0=_0x2530a8;return l[_0x28cba0(0x2f8)];}get[_0x2530a8(0x2b1)](){const _0x6e58a7=_0x2530a8;return l[_0x6e58a7(0x2b1)];}get[_0x2530a8(0x2d8)](){const _0x1d26c7=_0x2530a8;return l[_0x1d26c7(0x2d8)];}get[_0x2530a8(0x219)](){const _0x552f04=_0x2530a8;return l[_0x552f04(0x219)];}get[_0x2530a8(0x318)](){return l['BaseSortDirection'];}get[_0x2530a8(0x237)](){const _0x2ef012=_0x2530a8;return c[_0x2ef012(0x237)];}get[_0x2530a8(0x29c)](){const _0x3140ff=_0x2530a8;return c[_0x3140ff(0x29c)];}get[_0x2530a8(0x28d)](){const _0x5982fc=_0x2530a8;return l[_0x5982fc(0x28d)];}get[_0x2530a8(0x187)](){const _0x233dde=_0x2530a8;return l[_0x233dde(0x187)];}};u[_0x2530a8(0x21c)]['extend'](Q);var $=class extends u['FEventName']{get[_0x2530a8(0x2b7)](){const _0x5706c2=_0x2530a8;return _0x5706c2(0x2b7);}get[_0x2530a8(0x293)](){return'BeforeBaseTableCreate';}get[_0x2530a8(0x25d)](){const _0xcdd06a=_0x2530a8;return _0xcdd06a(0x25d);}get[_0x2530a8(0x2f0)](){const _0x8fb92a=_0x2530a8;return _0x8fb92a(0x2f0);}get[_0x2530a8(0x292)](){return'BaseTableRecordCreated';}get['BeforeBaseTableRecordCreate'](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x53752e=_0x2530a8;return _0x53752e(0x2d7);}get['BeforeBaseTableViewCreate'](){const _0x2dec9e=_0x2530a8;return _0x2dec9e(0x1de);}get[_0x2530a8(0x216)](){const _0x22e8b5=_0x2530a8;return _0x22e8b5(0x216);}get[_0x2530a8(0x300)](){const _0x9a32c4=_0x2530a8;return _0x9a32c4(0x300);}get['BaseHierarchyChanged'](){const _0x2eb267=_0x2530a8;return _0x2eb267(0x28f);}get['BeforeBaseHierarchyChange'](){const _0x2d28b3=_0x2530a8;return _0x2d28b3(0x30d);}};u[_0x2530a8(0x232)]['extend']($),exports[_0x2530a8(0x1dd)]=v,Object[_0x2530a8(0x1cb)](exports,'FBase',{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x2530a8(0x1da)]=m,exports['FBasePermission']=p,Object[_0x2530a8(0x1cb)](exports,_0x2530a8(0x1bd),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x2530a8(0x1cb)](exports,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x2530a8(0x1cb)](exports,_0x2530a8(0x2e3),{'enumerable':!0x0,'get':function(){return A;}}),Object['defineProperty'](exports,_0x2530a8(0x290),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x2530a8(0x1cb)](exports,_0x2530a8(0x23f),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x2530a8(0x257)]=$,exports['resolveBaseFieldKey']=S,exports['resolveBaseFieldValues']=b;
|