@univerjs-pro/bases 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/fields/field-core-plugin.d.ts +2 -2
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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;
|
|
1
|
+
const _0x2481ff=_0x31f5;(function(_0x2b0c3f,_0x2ed3ac){const _0x296636=_0x31f5,_0x154543=_0x2b0c3f();while(!![]){try{const _0x3b5402=-parseInt(_0x296636(0x143))/0x1*(parseInt(_0x296636(0x161))/0x2)+parseInt(_0x296636(0x1a2))/0x3*(-parseInt(_0x296636(0x285))/0x4)+-parseInt(_0x296636(0x181))/0x5*(parseInt(_0x296636(0x177))/0x6)+parseInt(_0x296636(0x1bd))/0x7*(parseInt(_0x296636(0x186))/0x8)+-parseInt(_0x296636(0x243))/0x9*(-parseInt(_0x296636(0x170))/0xa)+-parseInt(_0x296636(0x1b3))/0xb+parseInt(_0x296636(0x121))/0xc*(parseInt(_0x296636(0x1f6))/0xd);if(_0x3b5402===_0x2ed3ac)break;else _0x154543['push'](_0x154543['shift']());}catch(_0x3ef39c){_0x154543['push'](_0x154543['shift']());}}}(_0x9181,0xcacf7),Object[_0x2481ff(0x2c1)](exports,Symbol[_0x2481ff(0x197)],{'value':_0x2481ff(0x22f)}));var e=Object[_0x2481ff(0x112)],t=Object['defineProperty'],n=Object[_0x2481ff(0x15e)],r=Object['getOwnPropertyNames'],i=Object[_0x2481ff(0x282)],a=Object[_0x2481ff(0x286)][_0x2481ff(0x294)],o=(_0x917e8,_0x4b8561,_0x25b768,_0x58c9b9)=>{const _0x468aef=_0x2481ff;if(_0x4b8561&&typeof _0x4b8561==_0x468aef(0x137)||typeof _0x4b8561==_0x468aef(0x134)){for(var _0x469725=r(_0x4b8561),_0x1c04d1=0x0,_0x3c5341=_0x469725[_0x468aef(0x256)],_0x8631e;_0x1c04d1<_0x3c5341;_0x1c04d1++)_0x8631e=_0x469725[_0x1c04d1],!a[_0x468aef(0x238)](_0x917e8,_0x8631e)&&_0x8631e!==_0x25b768&&t(_0x917e8,_0x8631e,{'get':(_0x4781a7=>_0x4b8561[_0x4781a7])[_0x468aef(0x2be)](null,_0x8631e),'enumerable':!(_0x58c9b9=n(_0x4b8561,_0x8631e))||_0x58c9b9[_0x468aef(0x29c)]});}return _0x917e8;},s=(_0xb45b84,_0x270479,_0x1897dc)=>(_0x1897dc=_0xb45b84==null?{}:e(i(_0xb45b84)),o(_0x270479||!_0xb45b84||!_0xb45b84['__esModule']||!a[_0x2481ff(0x238)](_0xb45b84,_0x2481ff(0x2bf))?t(_0x1897dc,_0x2481ff(0x2bf),{'value':_0xb45b84,'enumerable':!0x0}):_0x1897dc,_0xb45b84));function _0x31f5(_0x4706f0,_0x5ae1bd){_0x4706f0=_0x4706f0-0x10c;const _0x91813=_0x9181();let _0x31f5b2=_0x91813[_0x4706f0];return _0x31f5b2;}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(_0x3e6eb4,_0x305cf8,_0x337804){const _0x425b15=_0x2481ff;this[_0x425b15(0x188)]=_0x3e6eb4,this['_commandService']=_0x305cf8,this[_0x425b15(0x267)]=_0x337804;}async[_0x2481ff(0x251)](_0x560820){const _0x3a39a5=_0x2481ff;return this[_0x3a39a5(0x13e)][_0x3a39a5(0x199)](c[_0x3a39a5(0x2a8)]['id'],{'unitId':this['_unitId'],'changes':_0x560820});}async['setPoint'](_0x14cc65,_0x33987d){const _0x55633e=_0x2481ff;await this[_0x55633e(0x13e)]['executeCommand'](c[_0x55633e(0x17b)]['id'],{'unitId':this[_0x55633e(0x188)],'objectId':this[_0x55633e(0x188)],'action':_0x14cc65,'value':_0x33987d});}[_0x2481ff(0x296)](_0xecc8b8){const _0xc5640=_0x2481ff;return(0x0,c[_0xc5640(0x19f)])(this[_0xc5640(0x267)],this['_unitId'],this[_0xc5640(0x188)],_0xecc8b8);}async['setEditable'](_0x4488d2=!0x0){const _0x3cd654=_0x2481ff;await this['_commandService'][_0x3cd654(0x199)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x3cd654(0x188)],'objectId':this[_0x3cd654(0x188)],'action':d[_0x3cd654(0x17d)][_0x3cd654(0x24b)],'value':_0x4488d2});}async['setReadOnly'](){const _0x854b20=_0x2481ff;await this[_0x854b20(0x13e)][_0x854b20(0x199)](c[_0x854b20(0x17b)]['id'],{'unitId':this[_0x854b20(0x188)],'objectId':this[_0x854b20(0x188)],'action':d[_0x854b20(0x17d)][_0x854b20(0x24b)],'value':!0x1});}[_0x2481ff(0x1d6)](){const _0x1c2f79=_0x2481ff;return(0x0,c[_0x1c2f79(0x19f)])(this[_0x1c2f79(0x267)],this[_0x1c2f79(0x188)],this[_0x1c2f79(0x188)],d['UnitAction'][_0x1c2f79(0x24b)]);}},m=class{constructor(_0x9a08e8,_0x553492,_0x542939,_0x3f441c,_0x39de51){const _0x201ac2=_0x2481ff;this[_0x201ac2(0x188)]=_0x9a08e8,this[_0x201ac2(0x1ba)]=_0x553492,this[_0x201ac2(0x1f7)]=_0x542939,this[_0x201ac2(0x13e)]=_0x3f441c,this[_0x201ac2(0x267)]=_0x39de51;}async[_0x2481ff(0x162)](_0x3e3fc3=!0x0){const _0x44285b=_0x2481ff;await this['_commandService'][_0x44285b(0x199)](c['SetBasePermissionCommand']['id'],{'unitId':this['_unitId'],'objectId':this[_0x44285b(0x1ba)],'action':d['UnitAction']['Edit'],'value':_0x3e3fc3});}async[_0x2481ff(0x274)](){const _0x2afa42=_0x2481ff;await this[_0x2afa42(0x13e)]['executeCommand'](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x2afa42(0x188)],'objectId':this[_0x2afa42(0x1ba)],'action':d[_0x2afa42(0x17d)]['Edit'],'value':!0x1});}['canEdit'](){const _0x254fdc=_0x2481ff;return(0x0,c['canEditBaseTargets'])(this[_0x254fdc(0x267)],this[_0x254fdc(0x188)],[...this[_0x254fdc(0x1f7)],this[_0x254fdc(0x1ba)]]);}};function h(_0xa3a360,_0x96b448){return function(_0x18d187,_0x48ef08){_0x96b448(_0x18d187,_0x48ef08,_0xa3a360);};}function g(_0x5417c0,_0x23587c,_0x2e50e8,_0x34808b){const _0x3ca00f=_0x2481ff;var _0x29fa47=arguments[_0x3ca00f(0x256)],_0x450431=_0x29fa47<0x3?_0x23587c:_0x34808b===null?_0x34808b=Object[_0x3ca00f(0x15e)](_0x23587c,_0x2e50e8):_0x34808b,_0x47123c;if(typeof Reflect==_0x3ca00f(0x137)&&typeof Reflect['decorate']==_0x3ca00f(0x134))_0x450431=Reflect[_0x3ca00f(0x227)](_0x5417c0,_0x23587c,_0x2e50e8,_0x34808b);else{for(var _0x919d4c=_0x5417c0[_0x3ca00f(0x256)]-0x1;_0x919d4c>=0x0;_0x919d4c--)(_0x47123c=_0x5417c0[_0x919d4c])&&(_0x450431=(_0x29fa47<0x3?_0x47123c(_0x450431):_0x29fa47>0x3?_0x47123c(_0x23587c,_0x2e50e8,_0x450431):_0x47123c(_0x23587c,_0x2e50e8))||_0x450431);}return _0x29fa47>0x3&&_0x450431&&Object[_0x3ca00f(0x2c1)](_0x23587c,_0x2e50e8,_0x450431),_0x450431;}let _=class{constructor(_0x9b3ddc,_0x173ee8,_0x4c32b7,_0x5cebc6,_0x212f0a){const _0xe0ed0=_0x2481ff;this[_0xe0ed0(0x217)]=_0x9b3ddc,this['_table']=_0x173ee8,this['_fieldId']=_0x4c32b7,this[_0xe0ed0(0x13e)]=_0x5cebc6,this[_0xe0ed0(0x267)]=_0x212f0a;}[_0x2481ff(0x178)](){return this['_fieldId'];}[_0x2481ff(0x1f1)](){const _0x3b6416=_0x2481ff;let _0x8af938=this[_0x3b6416(0x1c0)][_0x3b6416(0x178)]();return new m(this['_base'][_0x3b6416(0x178)](),(0x0,c[_0x3b6416(0x221)])(_0x8af938,this[_0x3b6416(0x17e)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x8af938)],this[_0x3b6416(0x13e)],this[_0x3b6416(0x267)]);}[_0x2481ff(0x230)](){return this['_getField']();}[_0x2481ff(0x120)](){const _0x4bc7fb=_0x2481ff;return this[_0x4bc7fb(0x1f8)]()[_0x4bc7fb(0x22c)];}['getType'](){const _0x1b50cb=_0x2481ff;return this[_0x1b50cb(0x1f8)]()[_0x1b50cb(0x18e)];}[_0x2481ff(0x196)](){const _0x5a4d16=_0x2481ff;return this[_0x5a4d16(0x1f8)]()['config'];}[_0x2481ff(0x23d)](){const _0x5cb525=_0x2481ff;return this[_0x5cb525(0x1f8)]()[_0x5cb525(0x265)];}['getDescription'](){const _0x16b449=_0x2481ff;return this['_getField']()[_0x16b449(0x222)];}[_0x2481ff(0x25d)](){const _0x19a0da=_0x2481ff;return!!this[_0x19a0da(0x1f8)]()['readonly'];}[_0x2481ff(0x22d)](_0xb0580d){const _0x196559=_0x2481ff;return this[_0x196559(0x119)]({'name':_0xb0580d});}['setConfig'](_0x2c279,_0x2d1264){const _0xde9f50=_0x2481ff;return this[_0xde9f50(0x119)]({'config':_0x2c279},_0x2d1264);}[_0x2481ff(0x2c2)](_0x33887d){const _0x48757e=_0x2481ff;return this[_0x48757e(0x119)]({'defaultValue':_0x33887d});}[_0x2481ff(0x119)](_0x3468af,_0x4416c7){const _0x1ebf41=_0x2481ff;let _0x8d4617=this[_0x1ebf41(0x1f8)]()[_0x1ebf41(0x18e)];return(_0x3468af['type']??_0x8d4617)===l['BaseFieldType']['Formula']&&(Object[_0x1ebf41(0x286)][_0x1ebf41(0x294)][_0x1ebf41(0x238)](_0x3468af,_0x1ebf41(0x147))||_0x3468af['type']===l[_0x1ebf41(0x272)][_0x1ebf41(0x19e)])&&!this['_writeFormulaExternalReferences'](_0x4416c7)?!0x1:this[_0x1ebf41(0x13e)][_0x1ebf41(0x13f)](c['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x1ebf41(0x217)][_0x1ebf41(0x178)](),'tableId':this[_0x1ebf41(0x1c0)][_0x1ebf41(0x178)](),'fieldId':this['_fieldId'],'patch':_0x3468af});}[_0x2481ff(0x1e8)](_0x5b8307,_0x39e4ac={},_0x1643a5){const _0x4a35ae=_0x2481ff;return _0x5b8307===l['BaseFieldType']['Formula']&&!this[_0x4a35ae(0x1c2)](_0x1643a5)?!0x1:this['_commandService']['syncExecuteCommand'](c[_0x4a35ae(0x1db)]['id'],{'unitId':this[_0x4a35ae(0x217)]['getId'](),'tableId':this[_0x4a35ae(0x1c0)]['getId'](),'fieldId':this[_0x4a35ae(0x17e)],'input':{'type':_0x5b8307,'config':_0x39e4ac}});}[_0x2481ff(0x1d0)](){const _0x8ee3d0=_0x2481ff;return this[_0x8ee3d0(0x13e)]['syncExecuteCommand'](c[_0x8ee3d0(0x23b)]['id'],{'unitId':this[_0x8ee3d0(0x217)][_0x8ee3d0(0x178)](),'tableId':this[_0x8ee3d0(0x1c0)][_0x8ee3d0(0x178)](),'fieldId':this[_0x8ee3d0(0x17e)]});}[_0x2481ff(0x11d)](_0x1ba520){const _0x4f31ae=_0x2481ff;return this[_0x4f31ae(0x13e)]['syncExecuteCommand'](c['MoveBaseFieldCommand']['id'],{'unitId':this[_0x4f31ae(0x217)][_0x4f31ae(0x178)](),'tableId':this[_0x4f31ae(0x1c0)][_0x4f31ae(0x178)](),'fieldId':this[_0x4f31ae(0x17e)],'target':_0x1ba520});}[_0x2481ff(0x1f8)](){const _0x33f2e8=_0x2481ff;let _0x2793dd=this[_0x33f2e8(0x1c0)]['getTable']()[_0x33f2e8(0x214)][this[_0x33f2e8(0x17e)]];if(!_0x2793dd)throw Error(_0x33f2e8(0x1ca)+this[_0x33f2e8(0x17e)]+_0x33f2e8(0x21f));return _0x2793dd;}[_0x2481ff(0x1c2)](_0x4cd16f){const _0x2288af=_0x2481ff;if(!_0x4cd16f||!Array[_0x2288af(0x1a4)](_0x4cd16f[_0x2288af(0x1c7)]))return console[_0x2288af(0x142)](_0x2288af(0x11f)),!0x1;if(_0x4cd16f[_0x2288af(0x1c7)][_0x2288af(0x256)]===0x0)return!0x0;let _0x165029=this[_0x2288af(0x13e)][_0x2288af(0x13f)](f['UpsertHostExternalReferencesCommand']['id'],{'unitId':this[_0x2288af(0x217)]['getId'](),'references':_0x4cd16f[_0x2288af(0x1c7)]});return _0x165029||console[_0x2288af(0x142)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x165029;}};_=g([h(0x3,l['ICommandService']),h(0x4,l[_0x2481ff(0x17f)])],_);let v=function(_0xf067bf){const _0x56127a=_0x2481ff;return _0xf067bf['Id']='id',_0xf067bf['Name']='name',_0xf067bf[_0x56127a(0x124)]='auto',_0xf067bf;}({});function y(_0x5c5a39){const _0x5bd8fb=_0x2481ff;return!!(_0x5c5a39&&_0x5c5a39[_0x5bd8fb(0x235)]!==!0x0&&_0x5c5a39[_0x5bd8fb(0x18e)]!==l[_0x5bd8fb(0x272)][_0x5bd8fb(0x2ae)]);}function b(_0x2a545b,_0x3e2295,_0x411d1c='id'){const _0x384030=_0x2481ff;if(!_0x3e2295)return{};let _0x31a4e3={};return Object[_0x384030(0x1d7)](_0x3e2295)[_0x384030(0x24f)](([_0x3f32b2,_0x39d56f])=>{const _0x10f58c=_0x384030;let _0x5dedf9=S(_0x2a545b,_0x3f32b2,_0x411d1c);_0x31a4e3[_0x5dedf9]=x(_0x2a545b[_0x10f58c(0x214)][_0x5dedf9],_0x39d56f);}),_0x31a4e3;}function x(_0x58d6e7,_0x3d5e66){const _0x26863d=_0x2481ff;if((_0x58d6e7==null?void 0x0:_0x58d6e7[_0x26863d(0x18e)])!==l['BaseFieldType'][_0x26863d(0x116)]||_0x3d5e66==null)return _0x3d5e66;if(!Array[_0x26863d(0x1a4)](_0x3d5e66))throw TypeError(_0x26863d(0x2b2)+_0x58d6e7['name']+_0x26863d(0x297));return _0x3d5e66[_0x26863d(0x21d)]((_0x4eccc3,_0x2d2ca7)=>C(_0x58d6e7,_0x4eccc3,_0x2d2ca7));}function S(_0x32f653,_0x329c60,_0x5d0bbd){const _0x2b9ab2=_0x2481ff;if(_0x5d0bbd==='id'||_0x5d0bbd==='auto'&&_0x32f653[_0x2b9ab2(0x214)][_0x329c60])return _0x329c60;let _0x431bf8=Object[_0x2b9ab2(0x11e)](_0x32f653[_0x2b9ab2(0x214)])[_0x2b9ab2(0x1b1)](_0x3c311e=>_0x3c311e[_0x2b9ab2(0x22c)]===_0x329c60);if(_0x431bf8[_0x2b9ab2(0x256)]===0x1)return _0x431bf8[0x0]['id'];throw _0x431bf8['length']>0x1?Error(_0x2b9ab2(0x1cd)+_0x329c60):Error(_0x2b9ab2(0x19b)+_0x329c60);}function C(_0x2f32d0,_0x314c8f,_0x3dedc1){const _0x2073d6=_0x2481ff;let _0x5c6856=_0x2073d6(0x1c8)+_0x3dedc1+_0x2073d6(0x139)+_0x2f32d0[_0x2073d6(0x22c)]+'\x22';if(!O(_0x314c8f))throw TypeError(_0x5c6856+_0x2073d6(0x273));if(_0x2073d6(0x212)in _0x314c8f)throw TypeError(_0x5c6856+_0x2073d6(0x2c0));if(_0x2073d6(0x18e)in _0x314c8f)throw TypeError(_0x5c6856+_0x2073d6(0x224));let _0x5ab912=T(_0x314c8f['id'],_0x5c6856,'id'),_0x4a22ca=T(_0x314c8f[_0x2073d6(0x22c)],_0x5c6856,_0x2073d6(0x22c)),_0x188b0d=T(_0x314c8f[_0x2073d6(0x2b0)],_0x5c6856,'source');return{'id':_0x5ab912,'name':_0x4a22ca,'source':_0x188b0d,'sourceType':w(_0x314c8f[_0x2073d6(0x122)],_0x188b0d,_0x5c6856),...E(_0x314c8f,_0x2073d6(0x17c),_0x5c6856),...D(_0x314c8f,_0x2073d6(0x225),_0x5c6856),...D(_0x314c8f,_0x2073d6(0x152),_0x5c6856),...D(_0x314c8f,'height',_0x5c6856),...E(_0x314c8f,_0x2073d6(0x110),_0x5c6856)};}function w(_0x1c117a,_0xd11a0c,_0x3abf4b){const _0x520b7d=_0x2481ff;if(_0x1c117a==null)return _0xd11a0c['startsWith']('data:')?l['ImageSourceType'][_0x520b7d(0x1aa)]:l[_0x520b7d(0x115)][_0x520b7d(0x1fc)];if(_0x1c117a===l[_0x520b7d(0x115)][_0x520b7d(0x1fc)]||_0x1c117a===l[_0x520b7d(0x115)][_0x520b7d(0x12d)]||_0x1c117a===l[_0x520b7d(0x115)][_0x520b7d(0x1aa)])return _0x1c117a;throw TypeError(_0x3abf4b+_0x520b7d(0x14b));}function T(_0x3147eb,_0x4f2dc4,_0x21526c){const _0x126144=_0x2481ff;if(typeof _0x3147eb!='string'||!_0x3147eb[_0x126144(0x2b6)]())throw TypeError(_0x4f2dc4+_0x126144(0x1ce)+_0x21526c+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x3147eb;}function E(_0x4ab24f,_0x550d84,_0x1a06a2){const _0x133f67=_0x2481ff;let _0x378df4=_0x4ab24f[_0x550d84];if(_0x378df4==null)return{};if(typeof _0x378df4!=_0x133f67(0x20e)||!_0x378df4[_0x133f67(0x2b6)]())throw TypeError(_0x1a06a2+_0x133f67(0x1ce)+_0x550d84+_0x133f67(0x1ae));return{[_0x550d84]:_0x378df4};}function _0x9181(){const _0x5f118a=['Attachment','UNIVER_BASE','limit','update','BaseFieldKeyEnum','includeRecords','getLinkedRecordIds','move','values','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getName','732HGVFDb','sourceType','setFieldWidth','Auto','Add','addRecord','Gallery','rowId','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','setValues','setOrderKey','setParent','UUID','BaseTableCellValueChanged','view','extend','_getAttachmentField','invalid','RenameBaseTableCommand','function','parentRecordId','FUniver','object','MoveBaseHierarchyRecordCommand','\x20for\x20field\x20\x22','_univerInstanceService','addLinkedRecord','recordOrder','Date','_commandService','syncExecuteCommand','BaseRecordLinkRole','toPrimitive','warn','2pUtCap','\x22\x20is\x20not\x20an\x20Attachment\x20field.','getValues','\x20exceeds\x20range\x20size\x20','config','BatchCreateBaseRecordsCommand','BeforeBaseTableCellValueChange','getChildren',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','_tableId','number','BaseTableRecordCreated','tableId','getFields','records','width','resolveBaseHierarchyFieldId','removeLinkedRecord','BaseConditionalColorOperator','getAllUnitsForType','fromCollab','[FRecord]:\x20RecordLink\x20field\x20\x22','UpdateBaseCellCommand',',\x20max\x20columns:\x20','getFieldByName','_injector','createUniqueBaseTableName','getOwnPropertyDescriptor','operator','getBaseFormulaTableName','538036FioXpM','setEditable','queryRecords','includes','CanceledError','getAttachments','fieldOrder','MoveBaseViewCommand','endRow','flatMap','get','conditionalColoring','resolveBaseRangeHierarchyPatches','fireEvent','saveUnit','804750LVYFlH','getFormulaName','indexOf','moveField','Clear','BaseViewType','getBase','13398uisXww','getId','BaseTableCreated','validateBaseTableName','SetBasePermissionCommand','mimeType','UnitAction','_fieldId','IPermissionService','deleteAttachments','1120vAGYmw','getActiveBaseHierarchyFieldIds','addField','_resolveRecordIds','notMatches','48zVlhbl','createInstance','_unitId','getBases','_getRecordLinkField','deleteProperty','getRecordById','getBaseTablePermissionObjectId','type','deleteTable','has','\x20Copy','deepClone','startRow','offset','fieldId','getConfig','toStringTag','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','executeCommand','FBaseInitialable','Base\x20field\x20not\x20found:\x20','fieldSettings','setAttachments','Formula','getBasePermissionValue','_assertInBounds','validateBaseHierarchyRecordPatches','84WgYOkZ','field','isArray','_initBaseAfterEvents','slice','DESC','CreateBaseRecordCommand','Inject','BASE64','ensureBaseTableCellLayout','SetBaseViewSortCommand','SetBaseViewFilterCommand','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','addRecords','_resourceLoaderService','filter','[FRecord]:\x20record\x20\x22','3013450FdYTBM','createBase','fromEntries','primaryFieldId','record','orderKey','getSnapshot','_objectId','getActiveBase','[FView]:\x20view\x20\x22','731311ImiDDr','BASE_TABLE_NAME_REQUIREMENTS','_baseUnitId','_table','BaseFilterOperator','_writeFormulaExternalReferences','getBaseViewPermissionObjectId','startColumn','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','[FBase]:\x20table\x20\x22','externalReferences','Invalid\x20attachment\x20at\x20index\x20','endColumn','[FField]:\x20field\x20\x22','_getTable','RecordLink','Duplicate\x20Base\x20field\x20name:\x20',':\x20\x22','getFilter','delete','getRange','createdAt','Set','ValidateBaseFormulaCommand','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','canEdit','entries','getTable','index','getFieldById','ChangeBaseFieldTypeCommand','BaseTableFieldCreated','Failed\x20to\x20add\x20records','_projectionService','IResourceLoaderService','setConditionalColorRules','updateConfig','BeforeBaseTableCreate','Invalid\x20Base\x20formula.','test','BeforeBaseHierarchyChange','iterator','getNumColumns','changeType','getSort',',\x20range:\x20','cancel','recordId','createDefaultBaseTableSnapshot','some','createView','getViewById','getPermission','Invalid\x20Base\x20regex\x20filter:\x20','viewId','caseSensitive','[FRecord]:\x20field\x20\x22','210106MSkvyd','_parentObjectIds','_getField','registerEventHandler','getTables','_range','URL','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','ApplyBaseJson1Mutation','searchBaseTable','orderedRecordIds','BatchDeleteBaseRecordsCommand','UniverInstanceType','deleteRecords','generateRandomId','_recordId','_getHierarchyEventContext','_getRecord','BeforeBaseTableFieldCreate','BaseTableViewCreated','BaseConditionalColorRuleUpdateType','UpdateBaseRecordOrderCommand','getPrimaryField','_inject','string','sort','getValue','\x20in\x20field\x20\x22','url','localeCompare','fields','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','BaseEventSource','_base','FBasePermission','params','valid','getAncestors','SetBaseViewGroupCommand','map','getRecord','\x22\x20does\x20not\x20exist.','FBaseTableView','getBaseFieldPermissionObjectId','description','tables',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','size','BaseHierarchyInvalidReason','decorate','getRecords','commonExtend','SetBaseTableHierarchyFieldCommand','_initBaseBeforeEvents','name','setName','beforeCommandExecuted','Module','getField','UpdateBaseViewConditionalColorRulesCommand','parseRecordLinkIds','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','SetBaseViewFieldVisibleCommand','system','fieldKey','getColumn','call','Kanban','DuplicateBaseRecordCommand','DeleteBaseFieldCommand','FBase','getDefaultValue','disposeWithMe','Unsupported\x20Base\x20field\x20type\x20\x22','UpsertHostExternalReferencesCommand','getNumRows','setGroup','135DzpJoh','getTableByName','validateBaseHierarchyRecordCreations','childrenByParentId','CreateBaseTableCommand','getPrimaryFieldId','fieldIds','getBaseHierarchyDeletePromotions','Edit','boolean','readonly','BeforeBaseTableRecordCreate','forEach','addConditionalColorRule','setObjectPermissions','_getHierarchyIndex','getHierarchyFieldId','value','now','length','CreateBaseViewCommand','setFieldVisible','Gantt','Event','message','visibleCardFieldIds','isReadonly','DeleteBaseRecordCommand','_getFieldIds','find','duplicateTable','addChild','getTableId','getBaseId','defaultValue','CreateBaseFieldCommand','_permissionService','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','BaseConditionalDateMode','max','FBaseTable','CreateBaseChildRecordCommand','from','getUnitId','unitId','BaseConditionalColorTarget','setSort','BaseFieldType',':\x20expected\x20an\x20object.','setReadOnly','\x22.\x20','[FTable]:\x20table\x20\x22','multiple','matchesBaseCondition','push','SetBaseNameCommand','_fireBeforeHierarchyChange','getRow','ICommandService','SetBaseRangeValuesCommand','updatedAt','hidden','setValue','getPrototypeOf','IBaseProjectionService','onCommandExecuted','96708PltkYO','prototype','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','constructor','getTableById','getGroup','getDataRange','Failed\x20to\x20create\x20table\x20\x22','_viewId','BaseFilterConjunction','getVisibleFields','resolveBaseFieldValues','UpdateBaseViewConfigCommand','parentByRecordId','_prepareFormulaFieldReferences','hasOwnProperty','symbol','getPoint','\x22:\x20expected\x20an\x20array.','group','reason','Failed\x20to\x20add\x20field\x20\x22','_baseTableId','enumerable','subtreeHeightByRecordId','Failed\x20to\x20duplicate\x20table\x20\x22','\x22\x20has\x20invalid\x20config.','deleteConditionalColorRule','BeforeBaseTableViewCreate','afterFieldId','save','serializeRecordLinkIds','_getView','matches','BaseSortDirection','SetBasePermissionsCommand','getProjection','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','duplicate','FBaseTableField','table','RecordId','SetBaseViewFieldWidthCommand','source','Tools','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','Facade','hierarchyChanges','getFieldSettings','trim','FBasesEventNameMixin','setLinkedRecordIds','BASE_RECORD_ID_FIELD_ID','views','rows','SetBaseViewFieldOrderCommand','getView','bind','default',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','defineProperty','setDefaultValue','getParent','buildBaseHierarchyIndex','FEventName','\x22\x20is\x20invalid.','conditions','base','BaseHierarchyChanged','thumbnail','getTableFacade','create','Grid','RenameBaseViewCommand','ImageSourceType'];_0x9181=function(){return _0x5f118a;};return _0x9181();}function D(_0x12dd1e,_0x117551,_0x54d902){const _0x394576=_0x2481ff;let _0xd91c37=_0x12dd1e[_0x117551];if(_0xd91c37==null)return{};if(typeof _0xd91c37!=_0x394576(0x14d)||!Number['isFinite'](_0xd91c37)||_0xd91c37<0x0)throw TypeError(_0x54d902+_0x394576(0x1ce)+_0x117551+_0x394576(0x1d5));return{[_0x117551]:_0xd91c37};}function O(_0x107da1){const _0x418327=_0x2481ff;return typeof _0x107da1==_0x418327(0x137)&&!!_0x107da1&&!Array[_0x418327(0x1a4)](_0x107da1);}var k;let A=k=class{constructor(_0x236549,_0x1facf3,_0x273d61,_0x718111,_0x358fa7){const _0x25e050=_0x2481ff;this[_0x25e050(0x217)]=_0x236549,this['_table']=_0x1facf3,this[_0x25e050(0x1fb)]=_0x273d61,this['_inject']=_0x718111,this[_0x25e050(0x13e)]=_0x358fa7,this[_0x25e050(0x1a0)]();}[_0x2481ff(0x264)](){return this['_base']['getId']();}[_0x2481ff(0x263)](){const _0x410bc8=_0x2481ff;return this[_0x410bc8(0x1c0)][_0x410bc8(0x178)]();}[_0x2481ff(0x1d1)](){const _0x7232a9=_0x2481ff;return{...this[_0x7232a9(0x1fb)]};}[_0x2481ff(0x27c)](){const _0x16a44e=_0x2481ff;return this[_0x16a44e(0x1fb)][_0x16a44e(0x193)];}[_0x2481ff(0x237)](){return this['_range']['startColumn'];}[_0x2481ff(0x241)](){const _0x36a829=_0x2481ff;return this['_range']['endRow']-this['_range'][_0x36a829(0x193)]+0x1;}[_0x2481ff(0x1e7)](){const _0x391484=_0x2481ff;return this['_range'][_0x391484(0x1c9)]-this[_0x391484(0x1fb)][_0x391484(0x1c4)]+0x1;}['getValues'](){const _0x4e2b84=_0x2481ff;let _0x1dea21=this['_getTable'](),_0x36488b=this[_0x4e2b84(0x25f)](_0x1dea21),_0x45da42=[];for(let _0x41391a=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x193)];_0x41391a<=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x169)];_0x41391a++){var _0x3ac8a0;let _0x583d2f=(_0x3ac8a0=_0x1dea21[_0x4e2b84(0x128)])==null?void 0x0:_0x3ac8a0[_0x41391a],_0x170602=[];for(let _0x5cf4bf=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x1c4)];_0x5cf4bf<=this[_0x4e2b84(0x1fb)][_0x4e2b84(0x1c9)];_0x5cf4bf++){let _0x1a2830=_0x36488b[_0x5cf4bf];_0x170602[_0x4e2b84(0x279)](_0x583d2f&&_0x1a2830?(0x0,c['getBaseCellValue'])(_0x1dea21,_0x583d2f,_0x1a2830):null);}_0x45da42[_0x4e2b84(0x279)](_0x170602);}return _0x45da42;}[_0x2481ff(0x210)](){var _0x428cb3;return((_0x428cb3=this['getValues']()[0x0])==null?void 0x0:_0x428cb3[0x0])??null;}['setValue'](_0x245521){const _0x2dd0bc=_0x2481ff;return this[_0x2dd0bc(0x12a)]([[_0x245521]]);}[_0x2481ff(0x12a)](_0x2d5971){const _0x36d6aa=_0x2481ff;let _0x58d057=this['getNumRows'](),_0x318b20=this['getNumColumns']();if(_0x2d5971[_0x36d6aa(0x256)]>_0x58d057||_0x2d5971['some'](_0x51eefe=>_0x51eefe[_0x36d6aa(0x256)]>_0x318b20)){var _0x1d7f3d;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x2d5971[_0x36d6aa(0x256)]+'x'+(((_0x1d7f3d=_0x2d5971[0x0])==null?void 0x0:_0x1d7f3d[_0x36d6aa(0x256)])??0x0)+_0x36d6aa(0x146)+_0x58d057+'x'+_0x318b20+'.');}let _0x576ded=this[_0x36d6aa(0x1cb)](),_0x41b4a2=this[_0x36d6aa(0x25f)](_0x576ded),_0x168dd7=_0x2d5971[_0x36d6aa(0x16a)]((_0x4cea5a,_0x410cc1)=>_0x4cea5a[_0x36d6aa(0x21d)]((_0x538177,_0x5e89f3)=>{const _0x46ab3f=_0x36d6aa;var _0xaff91;let _0xed7f93=this[_0x46ab3f(0x1fb)][_0x46ab3f(0x193)]+_0x410cc1,_0x157d64=_0x41b4a2[this[_0x46ab3f(0x1fb)][_0x46ab3f(0x1c4)]+_0x5e89f3],_0x5e20d5=(_0xaff91=_0x576ded['rowId'])==null?void 0x0:_0xaff91[_0xed7f93];if(!_0x157d64||!_0x5e20d5)throw Error(_0x46ab3f(0x1fd));return{'recordId':_0x5e20d5,'fieldId':_0x157d64,'value':_0x538177};}));return this[_0x36d6aa(0x13e)][_0x36d6aa(0x13f)](c[_0x36d6aa(0x27e)]['id'],{'unitId':this['_base'][_0x36d6aa(0x178)](),'tableId':this['_table'][_0x36d6aa(0x178)](),'patches':_0x168dd7,'source':c['BaseEventSource'][_0x36d6aa(0x2b3)]});}['clear'](){const _0xe6d5b=_0x2481ff;return this[_0xe6d5b(0x12a)](Array[_0xe6d5b(0x26d)]({'length':this[_0xe6d5b(0x241)]()},()=>Array['from']({'length':this[_0xe6d5b(0x1e7)]()},()=>null)));}[_0x2481ff(0x194)](_0x4137cc,_0x1d0545,_0x3dcd05=this[_0x2481ff(0x241)](),_0x118bd8=this[_0x2481ff(0x1e7)]()){const _0x2ce700=_0x2481ff;return this['_inject']['createInstance'](k,this[_0x2ce700(0x217)],this['_table'],{'startRow':this['_range'][_0x2ce700(0x193)]+_0x4137cc,'startColumn':this['_range'][_0x2ce700(0x1c4)]+_0x1d0545,'endRow':this['_range']['startRow']+_0x4137cc+_0x3dcd05-0x1,'endColumn':this['_range'][_0x2ce700(0x1c4)]+_0x1d0545+_0x118bd8-0x1},this[_0x2ce700(0x20d)]);}['_getTable'](){let _0x460c82=this['_table']['getTable']();if(!_0x460c82)throw Error('[FBaseRange]:\x20table\x20does\x20not\x20exist.');return(0x0,c['ensureBaseTableCellLayout'])(_0x460c82);}[_0x2481ff(0x1a0)](){const _0x2ec258=_0x2481ff;var _0x222b31;let _0x4ae2dc=this['_getTable'](),_0x4a5bf7=((_0x222b31=_0x4ae2dc[_0x2ec258(0x13c)])==null?void 0x0:_0x222b31[_0x2ec258(0x256)])??0x0,_0x23d421=this[_0x2ec258(0x25f)](_0x4ae2dc)['length'];if(this[_0x2ec258(0x1fb)]['startRow']<0x0||this['_range'][_0x2ec258(0x1c4)]<0x0||this[_0x2ec258(0x1fb)][_0x2ec258(0x169)]<this['_range'][_0x2ec258(0x193)]||this[_0x2ec258(0x1fb)][_0x2ec258(0x1c9)]<this[_0x2ec258(0x1fb)]['startColumn']||this['_range'][_0x2ec258(0x169)]>=Math['max'](_0x4a5bf7,0x1)||this[_0x2ec258(0x1fb)][_0x2ec258(0x1c9)]>=Math['max'](_0x23d421,0x1))throw Error(_0x2ec258(0x233)+_0x4a5bf7+_0x2ec258(0x15a)+_0x23d421+_0x2ec258(0x1ea)+JSON['stringify'](this[_0x2ec258(0x1fb)])+'.');}['_getFieldIds'](_0x106b94){const _0x478db2=_0x2481ff;return _0x106b94[_0x478db2(0x167)]['filter'](_0x1e9064=>y(_0x106b94[_0x478db2(0x214)][_0x1e9064]));}};A=k=g([h(0x4,l['ICommandService'])],A);function j(_0x3e5436){'@babel/helpers - typeof';const _0x275f7b=_0x2481ff;return j=typeof Symbol==_0x275f7b(0x134)&&typeof Symbol[_0x275f7b(0x1e6)]==_0x275f7b(0x295)?function(_0x376fee){return typeof _0x376fee;}:function(_0x3bf647){const _0x8a0aa8=_0x275f7b;return _0x3bf647&&typeof Symbol==_0x8a0aa8(0x134)&&_0x3bf647[_0x8a0aa8(0x288)]===Symbol&&_0x3bf647!==Symbol[_0x8a0aa8(0x286)]?_0x8a0aa8(0x295):typeof _0x3bf647;},j(_0x3e5436);}function M(_0x38289a,_0x24ed81){const _0x36e14b=_0x2481ff;if(j(_0x38289a)!=_0x36e14b(0x137)||!_0x38289a)return _0x38289a;var _0x313021=_0x38289a[Symbol[_0x36e14b(0x141)]];if(_0x313021!==void 0x0){var _0x1295fe=_0x313021[_0x36e14b(0x238)](_0x38289a,_0x24ed81||'default');if(j(_0x1295fe)!='object')return _0x1295fe;throw TypeError(_0x36e14b(0x215));}return(_0x24ed81===_0x36e14b(0x20e)?String:Number)(_0x38289a);}function N(_0x14a3f7){const _0x1551e9=_0x2481ff;var _0x708db4=M(_0x14a3f7,'string');return j(_0x708db4)==_0x1551e9(0x295)?_0x708db4:_0x708db4+'';}function P(_0x57d070,_0x4bceeb,_0x520b1f){return(_0x4bceeb=N(_0x4bceeb))in _0x57d070?Object['defineProperty'](_0x57d070,_0x4bceeb,{'value':_0x520b1f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x57d070[_0x4bceeb]=_0x520b1f,_0x57d070;}var F;let I=F=class extends u[_0x2481ff(0x19a)]{constructor(_0x26dcf0,_0x5796e7,_0x504c35,_0x26287f,_0x5eddea,_0x5c6c8b){const _0x1f00a4=_0x2481ff;super(_0x26287f),this['_base']=_0x26dcf0,this[_0x1f00a4(0x1c0)]=_0x5796e7,this[_0x1f00a4(0x205)]=_0x504c35,this[_0x1f00a4(0x15c)]=_0x26287f,this[_0x1f00a4(0x13e)]=_0x5eddea,this[_0x1f00a4(0x267)]=_0x5c6c8b,P(this,_0x1f00a4(0x1bf),void 0x0),P(this,'_baseTableId',void 0x0),this[_0x1f00a4(0x1bf)]=_0x26dcf0[_0x1f00a4(0x178)](),this[_0x1f00a4(0x29b)]=_0x5796e7[_0x1f00a4(0x178)]();}['getBaseFacade'](){const _0x2ae9a1=_0x2481ff;return this[_0x2ae9a1(0x217)];}[_0x2481ff(0x111)](){const _0xee2eb4=_0x2481ff;return this[_0xee2eb4(0x1c0)];}[_0x2481ff(0x178)](){const _0x28c331=_0x2481ff;return this[_0x28c331(0x205)];}['getPermission'](){const _0x12c879=_0x2481ff;let _0x24cfd7=this[_0x12c879(0x1c0)][_0x12c879(0x178)]();return new m(this[_0x12c879(0x217)][_0x12c879(0x178)](),(0x0,c['getBaseRecordPermissionObjectId'])(_0x24cfd7,this[_0x12c879(0x205)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x24cfd7)],this['_commandService'],this[_0x12c879(0x267)]);}[_0x2481ff(0x21e)](){const _0x4759c4=_0x2481ff;return{...this[_0x4759c4(0x207)](),'values':this[_0x4759c4(0x145)]()};}[_0x2481ff(0x210)](_0xb06a24){const _0x334376=_0x2481ff;return y(this['_table'][_0x334376(0x1d8)]()['fields'][_0xb06a24])?this[_0x334376(0x207)]()[_0x334376(0x11e)][_0xb06a24]??null:null;}[_0x2481ff(0x145)](){const _0x49197e=_0x2481ff;let _0x23d78e=this[_0x49197e(0x1c0)]['getTable']();return Object[_0x49197e(0x1b5)](Object[_0x49197e(0x1d7)](this[_0x49197e(0x207)]()[_0x49197e(0x11e)])[_0x49197e(0x1b1)](([_0x2ade23])=>y(_0x23d78e[_0x49197e(0x214)][_0x2ade23])));}['setValue'](_0x33a6b9,_0x472ff2){const _0x12b03=_0x2481ff;let _0x585eb4=this[_0x12b03(0x1c0)][_0x12b03(0x1d8)]()[_0x12b03(0x214)][_0x33a6b9];return this[_0x12b03(0x13e)][_0x12b03(0x13f)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x12b03(0x178)](),'tableId':this[_0x12b03(0x1c0)]['getId'](),'recordId':this['_recordId'],'fieldId':_0x33a6b9,'value':x(_0x585eb4,_0x472ff2),'source':c['BaseEventSource'][_0x12b03(0x2b3)]});}[_0x2481ff(0x19d)](_0x21c85f,_0x379c8f){const _0x426126=_0x2481ff;return this[_0x426126(0x281)](_0x21c85f,_0x379c8f[_0x426126(0x21d)](_0x3721f9=>({..._0x3721f9})));}[_0x2481ff(0x166)](_0x1417d9){const _0x5ea950=_0x2481ff;this[_0x5ea950(0x131)](_0x1417d9);let _0x352d7a=this['getValue'](_0x1417d9);return Array[_0x5ea950(0x1a4)](_0x352d7a)?_0x352d7a[_0x5ea950(0x21d)]((_0x28bf39,_0x12ba88)=>R(_0x28bf39,_0x1417d9,_0x12ba88)):[];}[_0x2481ff(0x180)](_0x1c9f45,_0x811559){const _0x2ab810=_0x2481ff;this[_0x2ab810(0x131)](_0x1c9f45);let _0x275a80=new Set(_0x811559[_0x2ab810(0x21d)](_0x18f987=>_0x18f987['id']));if(!_0x275a80['size'])return!0x0;let _0x3e4fd7=this[_0x2ab810(0x166)](_0x1c9f45),_0x197264=_0x3e4fd7[_0x2ab810(0x1b1)](_0x5467bd=>!_0x275a80[_0x2ab810(0x190)](_0x5467bd['id']));return _0x197264[_0x2ab810(0x256)]===_0x3e4fd7[_0x2ab810(0x256)]||this[_0x2ab810(0x19d)](_0x1c9f45,_0x197264);}[_0x2481ff(0x12a)](_0x24daa7,_0x2e81c6='id'){const _0x5ea9cb=_0x2481ff;let _0x5eb9ff=this[_0x5ea9cb(0x1c0)][_0x5ea9cb(0x1d8)](),_0x57958a=[{'recordId':this[_0x5ea9cb(0x205)],'values':b(_0x5eb9ff,_0x24daa7,_0x2e81c6)}];return this[_0x5ea9cb(0x13e)][_0x5ea9cb(0x13f)](c['SetBaseRecordValuesCommand']['id'],{'unitId':this['_base'][_0x5ea9cb(0x178)](),'tableId':this[_0x5ea9cb(0x1c0)]['getId'](),'patches':_0x57958a,'source':c['BaseEventSource'][_0x5ea9cb(0x2b3)]});}['delete'](){const _0x3ee5d1=_0x2481ff;return this[_0x3ee5d1(0x13e)][_0x3ee5d1(0x13f)](c[_0x3ee5d1(0x25e)]['id'],{'unitId':this[_0x3ee5d1(0x217)][_0x3ee5d1(0x178)](),'tableId':this['_table'][_0x3ee5d1(0x178)](),'recordId':this['_recordId'],'source':c[_0x3ee5d1(0x216)][_0x3ee5d1(0x2b3)]});}[_0x2481ff(0x2ab)](_0x3073b0){const _0x161dc6=_0x2481ff;let _0x2d030e={...this['_getRecord'](),..._0x3073b0,'id':(0x0,l[_0x161dc6(0x204)])(0x6)};_0x2d030e[_0x161dc6(0x11e)]={..._0x2d030e[_0x161dc6(0x11e)],..._0x3073b0==null?void 0x0:_0x3073b0[_0x161dc6(0x11e)]},Reflect[_0x161dc6(0x18b)](_0x2d030e[_0x161dc6(0x11e)],l[_0x161dc6(0x2b9)]);let _0x3a32f4=Date['now']();if(_0x2d030e[_0x161dc6(0x1b8)]||=''+_0x3a32f4,_0x2d030e[_0x161dc6(0x1d2)]||=_0x3a32f4,_0x2d030e['updatedAt']||=_0x3a32f4,!this[_0x161dc6(0x13e)][_0x161dc6(0x13f)](c[_0x161dc6(0x23a)]['id'],{'unitId':this[_0x161dc6(0x217)][_0x161dc6(0x178)](),'tableId':this[_0x161dc6(0x1c0)][_0x161dc6(0x178)](),'sourceRecordId':this[_0x161dc6(0x205)],'record':_0x2d030e,'source':c[_0x161dc6(0x216)]['Facade']}))throw Error(_0x161dc6(0x198)+this[_0x161dc6(0x205)]+'\x22.');return this[_0x161dc6(0x15c)][_0x161dc6(0x187)](F,this[_0x161dc6(0x217)],this['_table'],_0x2d030e['id'],this[_0x161dc6(0x15c)]);}[_0x2481ff(0x12b)](_0x14821d){const _0x1fa7b2=_0x2481ff;return this[_0x1fa7b2(0x13e)]['syncExecuteCommand'](c[_0x1fa7b2(0x20b)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table']['getId'](),'recordId':this['_recordId'],'orderKey':_0x14821d});}[_0x2481ff(0x11c)](_0x44b97b){const _0x269fee=_0x2481ff;let _0x3b3464=this['_getRecordLinkField'](_0x44b97b),_0x25d46d=this[_0x269fee(0x210)](_0x3b3464['id']);return(0x0,c[_0x269fee(0x232)])(_0x25d46d);}['setLinkedRecordIds'](_0x3715b0,_0x15fdf0){const _0x27b659=_0x2481ff;let _0x235b9a=this[_0x27b659(0x18a)](_0x3715b0),_0x4630e5=(0x0,c[_0x27b659(0x2a4)])(_0x15fdf0),_0x2b7ca5=(0x0,c['validateRecordLinkValue'])(this[_0x27b659(0x217)][_0x27b659(0x176)]()[_0x27b659(0x1b9)](),_0x235b9a,_0x4630e5);if(!_0x2b7ca5[_0x27b659(0x21a)])throw Error(_0x2b7ca5[_0x27b659(0x299)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x27b659(0x13e)][_0x27b659(0x13f)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x27b659(0x178)](),'tableId':this[_0x27b659(0x1c0)][_0x27b659(0x178)](),'recordId':this['_recordId'],'fieldId':_0x3715b0,'value':_0x4630e5,'source':c[_0x27b659(0x216)][_0x27b659(0x2b3)]});}[_0x2481ff(0x13b)](_0xbc6fc5,_0x406cd5){const _0x6b2c=_0x2481ff;let _0x5bf615=this[_0x6b2c(0x18a)](_0xbc6fc5),_0x4ba457=(0x0,c['getRecordLinkFieldConfig'])(_0x5bf615);if(!_0x4ba457)throw Error(_0x6b2c(0x158)+_0xbc6fc5+_0x6b2c(0x29f));let _0x4dbefb=this[_0x6b2c(0x11c)](_0xbc6fc5);return _0x4ba457['multiple']&&_0x4dbefb[_0x6b2c(0x164)](_0x406cd5)?!0x0:this[_0x6b2c(0x2b8)](_0xbc6fc5,_0x4ba457[_0x6b2c(0x277)]?[..._0x4dbefb,_0x406cd5]:[_0x406cd5]);}[_0x2481ff(0x154)](_0x249cc9,_0x1e8569){const _0x365d33=_0x2481ff;let _0x3a01d4=this[_0x365d33(0x11c)](_0x249cc9);return!_0x3a01d4[_0x365d33(0x164)](_0x1e8569)||this[_0x365d33(0x2b8)](_0x249cc9,_0x3a01d4[_0x365d33(0x1b1)](_0x40b444=>_0x40b444!==_0x1e8569));}[_0x2481ff(0x2c3)](_0xf951aa){const _0x277eb5=_0x2481ff;let _0xd65f83=this[_0x277eb5(0x252)](_0xf951aa)[_0x277eb5(0x292)][_0x277eb5(0x16b)](this[_0x277eb5(0x205)])??null;return _0xd65f83?this['_table'][_0x277eb5(0x18c)](_0xd65f83):null;}[_0x2481ff(0x14a)](_0x14b22c){const _0x40632d=_0x2481ff;return(this[_0x40632d(0x252)](_0x14b22c)[_0x40632d(0x246)][_0x40632d(0x16b)](this[_0x40632d(0x205)])??[])[_0x40632d(0x16a)](_0x3481b3=>{const _0x407709=_0x40632d;let _0x17ab74=this[_0x407709(0x1c0)]['getRecordById'](_0x3481b3);return _0x17ab74?[_0x17ab74]:[];});}[_0x2481ff(0x21b)](_0x354064){const _0x3f166b=_0x2481ff;let _0x53e7ba=this['_getHierarchyIndex'](_0x354064),_0x14f888=[],_0x4ad930=_0x53e7ba['parentByRecordId'][_0x3f166b(0x16b)](this[_0x3f166b(0x205)])??null;for(;_0x4ad930;){let _0x4402ec=this[_0x3f166b(0x1c0)]['getRecordById'](_0x4ad930);_0x4402ec&&_0x14f888[_0x3f166b(0x279)](_0x4402ec),_0x4ad930=_0x53e7ba['parentByRecordId'][_0x3f166b(0x16b)](_0x4ad930)??null;}return _0x14f888;}['getDescendants'](_0xf3eedd){const _0x41e4c8=_0x2481ff;let _0x4271b6=this[_0x41e4c8(0x252)](_0xf3eedd),_0x232bc0=_0x4271b6[_0x41e4c8(0x200)][_0x41e4c8(0x172)](this[_0x41e4c8(0x205)]),_0x29930d=_0x4271b6[_0x41e4c8(0x29d)][_0x41e4c8(0x190)](this['_recordId'])?this['_collectDescendantIds'](_0x4271b6[_0x41e4c8(0x246)],this[_0x41e4c8(0x205)]):[];return _0x232bc0<0x0?[]:_0x29930d[_0x41e4c8(0x16a)](_0x461a77=>{const _0x5bc714=_0x41e4c8;let _0x361f1b=this[_0x5bc714(0x1c0)][_0x5bc714(0x18c)](_0x461a77);return _0x361f1b?[_0x361f1b]:[];});}[_0x2481ff(0x12c)](_0x594904,_0x24c09a,_0x1334fb){const _0x2a0fdc=_0x2481ff;return this[_0x2a0fdc(0x13e)][_0x2a0fdc(0x13f)](c[_0x2a0fdc(0x138)]['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x2a0fdc(0x178)](),'fieldId':_0x594904,'recordId':this[_0x2a0fdc(0x205)],'parentRecordId':_0x24c09a,'orderKey':_0x1334fb,'source':c[_0x2a0fdc(0x216)]['Facade']});}[_0x2481ff(0x262)](_0x111fd9,_0x4517f7,_0x28cb7c='id',_0xccebcb){const _0xe0c372=_0x2481ff;let _0x2b286b=this[_0xe0c372(0x1c0)][_0xe0c372(0x1d8)](),_0x3c01a7=Date['now'](),_0x38b2b5={..._0xccebcb,'id':(0x0,l[_0xe0c372(0x204)])(0x6),'values':b(_0x2b286b,_0x4517f7,_0x28cb7c),'orderKey':(_0xccebcb==null?void 0x0:_0xccebcb['orderKey'])||''+_0x3c01a7,'createdAt':(_0xccebcb==null?void 0x0:_0xccebcb[_0xe0c372(0x1d2)])||_0x3c01a7,'updatedAt':(_0xccebcb==null?void 0x0:_0xccebcb[_0xe0c372(0x27f)])||_0x3c01a7};if(!this[_0xe0c372(0x13e)][_0xe0c372(0x13f)](c['CreateBaseChildRecordCommand']['id'],{'unitId':this[_0xe0c372(0x217)][_0xe0c372(0x178)](),'tableId':this[_0xe0c372(0x1c0)]['getId'](),'fieldId':_0x111fd9,'parentRecordId':this[_0xe0c372(0x205)],'record':_0x38b2b5,'source':c[_0xe0c372(0x216)]['Facade']}))throw Error(_0xe0c372(0x1c5)+this[_0xe0c372(0x205)]+'\x22.');return this['_injector'][_0xe0c372(0x187)](F,this[_0xe0c372(0x217)],this[_0xe0c372(0x1c0)],_0x38b2b5['id'],this['_injector']);}[_0x2481ff(0x252)](_0x2635f7){const _0x12d5a5=_0x2481ff;return(0x0,c['buildBaseHierarchyIndex'])(this[_0x12d5a5(0x1c0)]['getTable'](),_0x2635f7);}['_collectDescendantIds'](_0x4b2081,_0x214845){let _0x360446=[],_0x5852a5=_0xee1370=>{const _0x50be60=_0x31f5;for(let _0x5bafd8 of _0x4b2081[_0x50be60(0x16b)](_0xee1370)??[])_0x360446[_0x50be60(0x279)](_0x5bafd8),_0x5852a5(_0x5bafd8);};return _0x5852a5(_0x214845),_0x360446;}['_getRecord'](){const _0x1bf3ad=_0x2481ff;let _0x410507=this[_0x1bf3ad(0x1c0)][_0x1bf3ad(0x1d8)]()[_0x1bf3ad(0x151)][this[_0x1bf3ad(0x205)]];if(!_0x410507)throw Error(_0x1bf3ad(0x1b2)+this['_recordId']+_0x1bf3ad(0x21f));return _0x410507;}[_0x2481ff(0x18a)](_0x62e9b7){const _0x5ab46b=_0x2481ff;let _0xd1bff=this[_0x5ab46b(0x1c0)]['getTable']()[_0x5ab46b(0x214)][_0x62e9b7];if(!_0xd1bff||_0xd1bff[_0x5ab46b(0x18e)]!==l[_0x5ab46b(0x272)][_0x5ab46b(0x1cc)])throw Error(_0x5ab46b(0x1f5)+_0x62e9b7+_0x5ab46b(0x268));return _0xd1bff;}[_0x2481ff(0x131)](_0x264625){const _0x30ba28=_0x2481ff;let _0x20bfd6=this['_table'][_0x30ba28(0x1d8)]()['fields'][_0x264625];if(!_0x20bfd6||_0x20bfd6[_0x30ba28(0x18e)]!==l[_0x30ba28(0x272)][_0x30ba28(0x116)])throw Error(_0x30ba28(0x1f5)+_0x264625+_0x30ba28(0x144));return _0x20bfd6;}};I=F=g([h(0x4,l[_0x2481ff(0x27d)]),h(0x5,l[_0x2481ff(0x17f)])],I);function L(_0x5d08fd){const _0x22a770=_0x2481ff;return!!(_0x5d08fd&&typeof _0x5d08fd==_0x22a770(0x137)&&'id'in _0x5d08fd&&typeof _0x5d08fd['id']==_0x22a770(0x20e)&&_0x22a770(0x22c)in _0x5d08fd&&typeof _0x5d08fd[_0x22a770(0x22c)]==_0x22a770(0x20e));}function R(_0x2340f7,_0x2e92da,_0x78f73f){const _0x118a0f=_0x2481ff;if(!L(_0x2340f7))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x78f73f+_0x118a0f(0x211)+_0x2e92da+_0x118a0f(0x10c));return{..._0x2340f7};}let z=class{constructor(_0x5da5d1,_0x2f6958,_0x117c4a,_0x1eee5f,_0xf5816e,_0x4a2b48,_0x59330e){const _0x283d5c=_0x2481ff;this[_0x283d5c(0x217)]=_0x5da5d1,this[_0x283d5c(0x1c0)]=_0x2f6958,this[_0x283d5c(0x28d)]=_0x117c4a,this[_0x283d5c(0x15c)]=_0x1eee5f,this['_commandService']=_0xf5816e,this['_permissionService']=_0x4a2b48,this[_0x283d5c(0x1de)]=_0x59330e;}[_0x2481ff(0x178)](){const _0x4cc9e0=_0x2481ff;return this[_0x4cc9e0(0x28d)];}[_0x2481ff(0x1f1)](){const _0x383d75=_0x2481ff;let _0x4e0912=this[_0x383d75(0x1c0)][_0x383d75(0x178)]();return new m(this[_0x383d75(0x217)][_0x383d75(0x178)](),(0x0,c[_0x383d75(0x1c3)])(_0x4e0912,this['_viewId']),[(0x0,c[_0x383d75(0x18d)])(_0x4e0912)],this[_0x383d75(0x13e)],this[_0x383d75(0x267)]);}[_0x2481ff(0x2bd)](){const _0x12fd5b=_0x2481ff;return this[_0x12fd5b(0x2a5)]();}[_0x2481ff(0x120)](){const _0x4925c6=_0x2481ff;return this[_0x4925c6(0x2a5)]()[_0x4925c6(0x22c)];}['getType'](){const _0x372e93=_0x2481ff;return this[_0x372e93(0x2a5)]()['type'];}[_0x2481ff(0x22d)](_0x3eaffa){const _0x4c4ab6=_0x2481ff;return this[_0x4c4ab6(0x13e)][_0x4c4ab6(0x13f)](c[_0x4c4ab6(0x114)]['id'],{'unitId':this[_0x4c4ab6(0x217)]['getId'](),'tableId':this[_0x4c4ab6(0x1c0)]['getId'](),'viewId':this['_viewId'],'name':_0x3eaffa});}[_0x2481ff(0x196)](){const _0x17f907=_0x2481ff;let _0x1eb7de=this['getType'](),_0x29653b=this['_getView']()[_0x17f907(0x147)];switch(_0x1eb7de){case l[_0x17f907(0x175)][_0x17f907(0x113)]:return _0x29653b;case l[_0x17f907(0x175)][_0x17f907(0x239)]:return _0x29653b;case l[_0x17f907(0x175)]['Calendar']:return _0x29653b;case l[_0x17f907(0x175)][_0x17f907(0x259)]:return _0x29653b;case l[_0x17f907(0x175)][_0x17f907(0x127)]:return _0x29653b;default:return _0x29653b;}}[_0x2481ff(0x1e1)](_0x12c678){const _0x185491=_0x2481ff;return this[_0x185491(0x13e)][_0x185491(0x13f)](c[_0x185491(0x291)]['id'],{'unitId':this[_0x185491(0x217)][_0x185491(0x178)](),'tableId':this[_0x185491(0x1c0)][_0x185491(0x178)](),'viewId':this[_0x185491(0x28d)],'patch':_0x12c678});}['getConditionalColorRules'](){const _0x57bdf9=_0x2481ff;var _0x4fa01d;return l[_0x57bdf9(0x2b1)][_0x57bdf9(0x192)](((_0x4fa01d=this[_0x57bdf9(0x2a5)]()[_0x57bdf9(0x147)][_0x57bdf9(0x16c)])==null?void 0x0:_0x4fa01d['rules'])??[]);}[_0x2481ff(0x1e0)](_0x30cbac){const _0x3a0d2e=_0x2481ff;return this[_0x3a0d2e(0x13e)][_0x3a0d2e(0x13f)](c[_0x3a0d2e(0x231)]['id'],{'unitId':this[_0x3a0d2e(0x217)][_0x3a0d2e(0x178)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'type':c[_0x3a0d2e(0x20a)][_0x3a0d2e(0x1d3)],'rules':_0x30cbac});}[_0x2481ff(0x250)](_0x50c8a4){const _0x42df67=_0x2481ff;return this[_0x42df67(0x13e)][_0x42df67(0x13f)](c[_0x42df67(0x231)]['id'],{'unitId':this[_0x42df67(0x217)]['getId'](),'tableId':this[_0x42df67(0x1c0)][_0x42df67(0x178)](),'viewId':this[_0x42df67(0x28d)],'type':c[_0x42df67(0x20a)][_0x42df67(0x125)],'rule':_0x50c8a4});}[_0x2481ff(0x2a0)](_0x18d7a7){const _0x1d22a1=_0x2481ff;return this[_0x1d22a1(0x13e)][_0x1d22a1(0x13f)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x1d22a1(0x217)]['getId'](),'tableId':this[_0x1d22a1(0x1c0)][_0x1d22a1(0x178)](),'viewId':this[_0x1d22a1(0x28d)],'type':c[_0x1d22a1(0x20a)]['Delete'],'ruleId':_0x18d7a7});}['clearConditionalColorRules'](){const _0x5ef3b7=_0x2481ff;return this[_0x5ef3b7(0x13e)][_0x5ef3b7(0x13f)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this['_base'][_0x5ef3b7(0x178)](),'tableId':this[_0x5ef3b7(0x1c0)][_0x5ef3b7(0x178)](),'viewId':this['_viewId'],'type':c[_0x5ef3b7(0x20a)][_0x5ef3b7(0x174)]});}[_0x2481ff(0x1cf)](){const _0x511b28=_0x2481ff;return this[_0x511b28(0x2a5)]()['filter']??null;}['setFilter'](_0x2433f3){const _0x57505e=_0x2481ff;return this[_0x57505e(0x13e)]['syncExecuteCommand'](c[_0x57505e(0x1ad)]['id'],{'unitId':this[_0x57505e(0x217)]['getId'](),'tableId':this[_0x57505e(0x1c0)][_0x57505e(0x178)](),'viewId':this[_0x57505e(0x28d)],'filter':_0x2433f3});}[_0x2481ff(0x1e9)](){const _0x10e19c=_0x2481ff;return this[_0x10e19c(0x2a5)]()[_0x10e19c(0x20f)]??[];}[_0x2481ff(0x271)](_0x12a67b){const _0x362329=_0x2481ff;return this[_0x362329(0x13e)][_0x362329(0x13f)](c[_0x362329(0x1ac)]['id'],{'unitId':this[_0x362329(0x217)][_0x362329(0x178)](),'tableId':this['_table'][_0x362329(0x178)](),'viewId':this['_viewId'],'sort':_0x12a67b});}[_0x2481ff(0x28a)](){const _0x44a50e=_0x2481ff;return this[_0x44a50e(0x2a5)]()[_0x44a50e(0x298)]??[];}[_0x2481ff(0x242)](_0x486ac2){const _0x252a6d=_0x2481ff;return this[_0x252a6d(0x13e)][_0x252a6d(0x13f)](c[_0x252a6d(0x21c)]['id'],{'unitId':this[_0x252a6d(0x217)]['getId'](),'tableId':this[_0x252a6d(0x1c0)][_0x252a6d(0x178)](),'viewId':this[_0x252a6d(0x28d)],'group':_0x486ac2});}[_0x2481ff(0x2b5)](_0x42b399){const _0x367bdc=_0x2481ff;var _0x3777eb;return y(this[_0x367bdc(0x1c0)][_0x367bdc(0x1d8)]()['fields'][_0x42b399])?((_0x3777eb=this[_0x367bdc(0x2a5)]()['fieldSettings'])==null?void 0x0:_0x3777eb[_0x42b399])??{}:{};}[_0x2481ff(0x28f)](){const _0x1c1531=_0x2481ff;let _0x5e3367=this['_table'][_0x1c1531(0x1d8)](),_0x477ba2=this[_0x1c1531(0x2a5)]();return(_0x477ba2[_0x1c1531(0x167)]??_0x5e3367[_0x1c1531(0x167)])[_0x1c1531(0x1b1)](_0x14e965=>{const _0x2fdcc6=_0x1c1531;var _0x1777b3;let _0x24201b=_0x5e3367[_0x2fdcc6(0x214)][_0x14e965];return y(_0x24201b)&&!((_0x1777b3=_0x477ba2[_0x2fdcc6(0x19c)])!=null&&(_0x1777b3=_0x1777b3[_0x14e965])!=null&&_0x1777b3['hidden']);})[_0x1c1531(0x21d)](_0x4b7eb1=>this[_0x1c1531(0x15c)][_0x1c1531(0x187)](_,this[_0x1c1531(0x217)],this['_table'],_0x4b7eb1));}[_0x2481ff(0x258)](_0x3ea8a7,_0x4c8436){const _0x1d2bd4=_0x2481ff;return y(this[_0x1d2bd4(0x1c0)][_0x1d2bd4(0x1d8)]()['fields'][_0x3ea8a7])?this[_0x1d2bd4(0x13e)][_0x1d2bd4(0x13f)](c[_0x1d2bd4(0x234)]['id'],{'unitId':this[_0x1d2bd4(0x217)]['getId'](),'tableId':this['_table'][_0x1d2bd4(0x178)](),'viewId':this[_0x1d2bd4(0x28d)],'fieldId':_0x3ea8a7,'visible':_0x4c8436}):!0x1;}[_0x2481ff(0x123)](_0x5931b6,_0x4085f8){const _0xaa3134=_0x2481ff;return y(this[_0xaa3134(0x1c0)]['getTable']()[_0xaa3134(0x214)][_0x5931b6])?this[_0xaa3134(0x13e)][_0xaa3134(0x13f)](c[_0xaa3134(0x2af)]['id'],{'unitId':this[_0xaa3134(0x217)][_0xaa3134(0x178)](),'tableId':this[_0xaa3134(0x1c0)][_0xaa3134(0x178)](),'viewId':this[_0xaa3134(0x28d)],'fieldId':_0x5931b6,'width':_0x4085f8}):!0x1;}[_0x2481ff(0x173)](_0x37b489,_0x573abc){const _0x21597f=_0x2481ff;let _0x5f4803=this[_0x21597f(0x1c0)]['getTable'](),_0x25bd15=_0x573abc['beforeFieldId']??_0x573abc[_0x21597f(0x2a2)];return!y(_0x5f4803['fields'][_0x37b489])||!_0x25bd15||!y(_0x5f4803[_0x21597f(0x214)][_0x25bd15])?!0x1:this[_0x21597f(0x13e)]['syncExecuteCommand'](c[_0x21597f(0x2bc)]['id'],{'unitId':this[_0x21597f(0x217)][_0x21597f(0x178)](),'tableId':this[_0x21597f(0x1c0)][_0x21597f(0x178)](),'viewId':this['_viewId'],'fieldId':_0x37b489,'target':_0x573abc});}[_0x2481ff(0x11d)](_0x5112f2){const _0x5bbe92=_0x2481ff;return this[_0x5bbe92(0x13e)][_0x5bbe92(0x13f)](c[_0x5bbe92(0x168)]['id'],{'unitId':this['_base'][_0x5bbe92(0x178)](),'tableId':this['_table'][_0x5bbe92(0x178)](),'viewId':this[_0x5bbe92(0x28d)],'target':_0x5112f2});}[_0x2481ff(0x1d0)](){const _0x213765=_0x2481ff;return this['_commandService'][_0x213765(0x13f)](c['DeleteBaseViewCommand']['id'],{'unitId':this[_0x213765(0x217)][_0x213765(0x178)](),'tableId':this[_0x213765(0x1c0)]['getId'](),'viewId':this[_0x213765(0x28d)]});}['getProjection'](){const _0x290f5c=_0x2481ff;return this[_0x290f5c(0x1de)][_0x290f5c(0x2a9)](this['_base'][_0x290f5c(0x176)]()[_0x290f5c(0x1b9)](),this['_table'][_0x290f5c(0x178)](),this[_0x290f5c(0x28d)]);}[_0x2481ff(0x2a5)](){const _0x1650bd=_0x2481ff;let _0x165d9d=this[_0x1650bd(0x1c0)][_0x1650bd(0x1d8)]()[_0x1650bd(0x2ba)][this['_viewId']];if(!_0x165d9d)throw Error(_0x1650bd(0x1bc)+this[_0x1650bd(0x28d)]+'\x22\x20does\x20not\x20exist.');return _0x165d9d;}};z=g([h(0x4,l[_0x2481ff(0x27d)]),h(0x5,l[_0x2481ff(0x17f)]),h(0x6,c[_0x2481ff(0x283)])],z);let B=class{constructor(_0x502349,_0x194e60,_0x24b2d6,_0x28b7ab,_0x161e06,_0x598474){const _0x257331=_0x2481ff;this[_0x257331(0x217)]=_0x502349,this[_0x257331(0x14c)]=_0x194e60,this['_injector']=_0x24b2d6,this[_0x257331(0x13e)]=_0x28b7ab,this[_0x257331(0x267)]=_0x161e06,this[_0x257331(0x1de)]=_0x598474;}[_0x2481ff(0x176)](){const _0x502f59=_0x2481ff;return this[_0x502f59(0x217)][_0x502f59(0x176)]();}[_0x2481ff(0x1d8)](){return this['_getTable']();}['getId'](){const _0x4b8b3d=_0x2481ff;return this[_0x4b8b3d(0x14c)];}[_0x2481ff(0x1f1)](){const _0x385d7d=_0x2481ff;return new m(this[_0x385d7d(0x176)]()[_0x385d7d(0x26e)](),(0x0,c[_0x385d7d(0x18d)])(this[_0x385d7d(0x14c)]),[],this['_commandService'],this[_0x385d7d(0x267)]);}[_0x2481ff(0x253)](){const _0x54e03b=_0x2481ff;return(0x0,c[_0x54e03b(0x153)])(this[_0x54e03b(0x1cb)]());}['setHierarchyField'](_0x26df22){const _0x1c0660=_0x2481ff;return this[_0x1c0660(0x13e)][_0x1c0660(0x13f)](c[_0x1c0660(0x22a)]['id'],{'unitId':this[_0x1c0660(0x217)][_0x1c0660(0x178)](),'tableId':this[_0x1c0660(0x14c)],'fieldId':_0x26df22});}[_0x2481ff(0x120)](){const _0x1f6244=_0x2481ff;return this[_0x1f6244(0x1cb)]()[_0x1f6244(0x22c)];}[_0x2481ff(0x171)](){const _0x283597=_0x2481ff;let _0x9a51cb=this[_0x283597(0x217)][_0x283597(0x176)]()[_0x283597(0x1b9)]();return(0x0,c[_0x283597(0x160)])(this[_0x283597(0x1cb)](),_0x9a51cb);}[_0x2481ff(0x22d)](_0x46c832){const _0x374d68=_0x2481ff;let _0x415fbe=(0x0,c[_0x374d68(0x17a)])(this[_0x374d68(0x217)][_0x374d68(0x176)]()[_0x374d68(0x1b9)](),_0x46c832,this['_tableId']);if(!_0x415fbe[_0x374d68(0x21a)])throw Error(_0x374d68(0x2aa)+_0x46c832+_0x374d68(0x275)+c[_0x374d68(0x1be)]+'\x20'+_0x415fbe[_0x374d68(0x299)]);return this[_0x374d68(0x13e)][_0x374d68(0x13f)](c[_0x374d68(0x133)]['id'],{'unitId':this[_0x374d68(0x217)][_0x374d68(0x178)](),'tableId':this[_0x374d68(0x14c)],'name':_0x46c832});}['search'](_0x34019b,_0x38f18a){const _0xa68d02=_0x2481ff;let _0x37106b=this['_base'][_0xa68d02(0x176)]()[_0xa68d02(0x1b9)](),_0x41d3d4=this[_0xa68d02(0x1cb)]();if(_0x38f18a){let _0x10303e=this['_projectionService'][_0xa68d02(0x2a9)](_0x37106b,this[_0xa68d02(0x14c)],_0x38f18a),_0x3d6d1c=_0x41d3d4['views'][_0x38f18a],_0x286d59=_0x34019b['fieldIds']??J(_0x41d3d4,_0x3d6d1c,_0x10303e),_0x16c45f=_0xa68d02(0x2bb)in _0x10303e&&Array['isArray'](_0x10303e['rows'])?_0x10303e[_0xa68d02(0x2bb)]:[];return(0x0,c[_0xa68d02(0x1ff)])({..._0x34019b,'table':_0x41d3d4,'fieldIds':_0x286d59,'rows':_0x16c45f});}let _0xc9fc6c=(_0x41d3d4[_0xa68d02(0x13c)]?_0x41d3d4[_0xa68d02(0x13c)][_0xa68d02(0x21d)](_0x2c8f3b=>_0x41d3d4[_0xa68d02(0x151)][_0x2c8f3b]):Object[_0xa68d02(0x11e)](_0x41d3d4[_0xa68d02(0x151)])['sort']((_0x5b3271,_0x1de388)=>_0x5b3271[_0xa68d02(0x1b8)]['localeCompare'](_0x1de388['orderKey'])))[_0xa68d02(0x1b1)](_0x58313a=>_0x58313a)[_0xa68d02(0x21d)](_0x561c3e=>({'recordId':_0x561c3e['id'],'values':_0x561c3e['values']})),_0x3af033=_0x34019b[_0xa68d02(0x249)]??_0x41d3d4[_0xa68d02(0x167)][_0xa68d02(0x1b1)](_0x3b5789=>y(_0x41d3d4[_0xa68d02(0x214)][_0x3b5789]));return(0x0,c[_0xa68d02(0x1ff)])({..._0x34019b,'table':_0x41d3d4,'fieldIds':_0x3af033,'rows':_0xc9fc6c});}[_0x2481ff(0x248)](){const _0x3702fe=_0x2481ff;return this[_0x3702fe(0x1cb)]()['primaryFieldId'];}[_0x2481ff(0x150)](){const _0x4ceeca=_0x2481ff;let _0x151fc9=this[_0x4ceeca(0x1cb)]();return _0x151fc9[_0x4ceeca(0x167)][_0x4ceeca(0x21d)](_0x5203b8=>_0x151fc9[_0x4ceeca(0x214)][_0x5203b8])[_0x4ceeca(0x1b1)](y)[_0x4ceeca(0x21d)](_0x585d70=>this[_0x4ceeca(0x15c)][_0x4ceeca(0x187)](_,this[_0x4ceeca(0x217)],this,_0x585d70['id']));}[_0x2481ff(0x1da)](_0x5d79d2){const _0x4e6cd4=_0x2481ff;let _0x1df6d7=this[_0x4e6cd4(0x1cb)]()['fields'][_0x5d79d2];return y(_0x1df6d7)?this[_0x4e6cd4(0x15c)][_0x4e6cd4(0x187)](_,this[_0x4e6cd4(0x217)],this,_0x1df6d7['id']):null;}[_0x2481ff(0x15b)](_0x1e5350){const _0x4165e6=_0x2481ff;let _0x896fee=this['_getTable']()['fields'],_0x51fd72=Object[_0x4165e6(0x11e)](_0x896fee)[_0x4165e6(0x260)](_0x477aa8=>y(_0x477aa8)&&_0x477aa8['name']===_0x1e5350);return _0x51fd72?this[_0x4165e6(0x15c)][_0x4165e6(0x187)](_,this[_0x4165e6(0x217)],this,_0x51fd72['id']):null;}[_0x2481ff(0x20c)](){const _0x680ac7=_0x2481ff;let _0x10b93e=this[_0x680ac7(0x1cb)]()[_0x680ac7(0x1b6)];return this[_0x680ac7(0x15c)][_0x680ac7(0x187)](_,this[_0x680ac7(0x217)],this,_0x10b93e);}[_0x2481ff(0x183)](_0x4fe23c,_0xc9b1c2,_0x549120){const _0x2bcbca=_0x2481ff;var _0xed2e96,_0xe6800f;if(!Object[_0x2bcbca(0x11e)](l[_0x2bcbca(0x272)])[_0x2bcbca(0x1ee)](_0x4da259=>_0x4da259===_0xc9b1c2))throw Error(_0x2bcbca(0x23f)+String(_0xc9b1c2)+'\x22.');if(_0xc9b1c2===l[_0x2bcbca(0x272)][_0x2bcbca(0x19e)]&&this[_0x2bcbca(0x293)](_0x4fe23c,_0x549120),_0xc9b1c2===l['BaseFieldType']['RecordLink']&&(typeof(_0x549120==null||(_0xed2e96=_0x549120[_0x2bcbca(0x1a3)])==null||(_0xed2e96=_0xed2e96[_0x2bcbca(0x147)])==null?void 0x0:_0xed2e96['targetTableId'])!=_0x2bcbca(0x20e)||typeof _0x549120[_0x2bcbca(0x1a3)][_0x2bcbca(0x147)][_0x2bcbca(0x277)]!=_0x2bcbca(0x24c)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x5a2224={..._0x549120==null?void 0x0:_0x549120[_0x2bcbca(0x1a3)],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x4fe23c,'type':_0xc9b1c2,'config':(_0x549120==null||(_0xe6800f=_0x549120[_0x2bcbca(0x1a3)])==null?void 0x0:_0xe6800f[_0x2bcbca(0x147)])??{}};if(!this['_commandService']['syncExecuteCommand'](c[_0x2bcbca(0x266)]['id'],{'unitId':this['_base'][_0x2bcbca(0x178)](),'tableId':this[_0x2bcbca(0x14c)],'field':_0x5a2224,'index':_0x549120==null?void 0x0:_0x549120['index']}))throw Error(_0x2bcbca(0x29a)+_0x4fe23c+'\x22');return this[_0x2bcbca(0x15c)][_0x2bcbca(0x187)](_,this[_0x2bcbca(0x217)],this,_0x5a2224['id']);}[_0x2481ff(0x293)](_0x20b948,_0x245219){const _0x34488a=_0x2481ff;var _0x52d289;if(!_0x245219||!(_0x34488a(0x1c7)in _0x245219)||!Array[_0x34488a(0x1a4)](_0x245219[_0x34488a(0x1c7)]))throw Error(_0x34488a(0x287));let _0x3e8be4=this[_0x34488a(0x13e)][_0x34488a(0x13f)](c[_0x34488a(0x1d4)]['id'],{'unitId':this[_0x34488a(0x217)][_0x34488a(0x178)](),'tableId':this['_tableId'],'formula':String(((_0x52d289=_0x245219['field'])==null||(_0x52d289=_0x52d289[_0x34488a(0x147)])==null?void 0x0:_0x52d289['formula'])??'')});if(!_0x3e8be4[_0x34488a(0x21a)])throw Error(_0x3e8be4['reason']??_0x34488a(0x1e3));if(_0x245219['externalReferences']['length']>0x0&&!this['_commandService'][_0x34488a(0x13f)](f[_0x34488a(0x240)]['id'],{'unitId':this['_base']['getId'](),'references':_0x245219[_0x34488a(0x1c7)]}))throw Error(_0x34488a(0x129)+_0x20b948+'\x22');}[_0x2481ff(0x228)](){const _0x5e661f=_0x2481ff;return this[_0x5e661f(0x184)]()[_0x5e661f(0x21d)](_0x424683=>this[_0x5e661f(0x15c)][_0x5e661f(0x187)](I,this[_0x5e661f(0x217)],this,_0x424683,this[_0x5e661f(0x15c)]));}[_0x2481ff(0x18c)](_0x4b20d2){const _0x35d0ca=_0x2481ff;return this['_getTable']()['records'][_0x4b20d2]?this[_0x35d0ca(0x15c)][_0x35d0ca(0x187)](I,this['_base'],this,_0x4b20d2,this[_0x35d0ca(0x15c)]):null;}[_0x2481ff(0x163)](_0xcc57ec={}){const _0x57926c=_0x2481ff;let _0x212c6f=this[_0x57926c(0x1cb)](),_0x11aa56=this['_resolveRecordIds'](_0xcc57ec),_0x295ec8=Math['max'](0x0,_0xcc57ec[_0x57926c(0x194)]??0x0),_0x38ea19=_0xcc57ec[_0x57926c(0x118)]==null?null:Math[_0x57926c(0x26a)](0x0,_0xcc57ec[_0x57926c(0x118)]),_0x23cdba=H(_0x11aa56[_0x57926c(0x21d)](_0x5d54b2=>_0x212c6f[_0x57926c(0x151)][_0x5d54b2])[_0x57926c(0x1b1)](_0x20bb56=>W(_0x20bb56,_0x212c6f,_0xcc57ec['filter'])),_0x212c6f,_0xcc57ec[_0x57926c(0x20f)]);return{'records':V(_0x23cdba,_0xcc57ec)['map'](_0x168644=>this['_injector'][_0x57926c(0x187)](I,this[_0x57926c(0x217)],this,_0x168644['id'],this[_0x57926c(0x15c)])),'total':_0x23cdba[_0x57926c(0x256)],'offset':_0x295ec8,'limit':_0x38ea19,'hasMore':_0x38ea19!=null&&_0x295ec8+_0x38ea19<_0x23cdba[_0x57926c(0x256)]};}[_0x2481ff(0x126)](_0x4b6621,_0x5b0660='id',_0xe4ffe4){const _0x1ed946=_0x2481ff;let _0x2fbd34=this['_getTable'](),_0x3cf2fc=Date[_0x1ed946(0x255)](),_0x2e8009={..._0xe4ffe4,'id':(0x0,l[_0x1ed946(0x204)])(0x6),'values':b(_0x2fbd34,_0x4b6621,_0x5b0660),'orderKey':(_0xe4ffe4==null?void 0x0:_0xe4ffe4[_0x1ed946(0x1b8)])||''+_0x3cf2fc,'createdAt':(_0xe4ffe4==null?void 0x0:_0xe4ffe4[_0x1ed946(0x1d2)])||_0x3cf2fc,'updatedAt':(_0xe4ffe4==null?void 0x0:_0xe4ffe4['updatedAt'])||_0x3cf2fc};if(!this[_0x1ed946(0x13e)][_0x1ed946(0x13f)](c[_0x1ed946(0x1a8)]['id'],{'unitId':this['_base'][_0x1ed946(0x178)](),'tableId':this[_0x1ed946(0x14c)],'record':_0x2e8009,'source':c[_0x1ed946(0x216)][_0x1ed946(0x2b3)]}))throw Error('Failed\x20to\x20add\x20record\x20with\x20id\x20\x22'+_0x2e8009['id']+'\x22');return this['_injector'][_0x1ed946(0x187)](I,this[_0x1ed946(0x217)],this,_0x2e8009['id'],this[_0x1ed946(0x15c)]);}[_0x2481ff(0x1af)](_0x353693){const _0x1ca153=_0x2481ff;if(!_0x353693['length'])return[];let _0x4198ef=this[_0x1ca153(0x1cb)](),_0x37a42e=Date[_0x1ca153(0x255)](),_0x29ea1f=_0x353693[_0x1ca153(0x21d)]((_0x2517f8,_0x120d7e)=>{const _0x3d4d0d=_0x1ca153;var _0x55b973,_0x53bfe9,_0x165226;return{..._0x2517f8[_0x3d4d0d(0x1b7)],'id':(0x0,l[_0x3d4d0d(0x204)])(0x6),'values':b(_0x4198ef,_0x2517f8[_0x3d4d0d(0x11e)],_0x2517f8[_0x3d4d0d(0x236)]??'id'),'orderKey':((_0x55b973=_0x2517f8[_0x3d4d0d(0x1b7)])==null?void 0x0:_0x55b973[_0x3d4d0d(0x1b8)])||''+(_0x37a42e+_0x120d7e),'createdAt':((_0x53bfe9=_0x2517f8['record'])==null?void 0x0:_0x53bfe9[_0x3d4d0d(0x1d2)])||_0x37a42e,'updatedAt':((_0x165226=_0x2517f8[_0x3d4d0d(0x1b7)])==null?void 0x0:_0x165226[_0x3d4d0d(0x27f)])||_0x37a42e};});if(!this[_0x1ca153(0x13e)]['syncExecuteCommand'](c[_0x1ca153(0x148)]['id'],{'unitId':this[_0x1ca153(0x217)]['getId'](),'tableId':this[_0x1ca153(0x14c)],'records':_0x29ea1f,'source':c['BaseEventSource'][_0x1ca153(0x2b3)]}))throw Error(_0x1ca153(0x1dd));return _0x29ea1f[_0x1ca153(0x21d)](_0x34d07d=>this['_injector'][_0x1ca153(0x187)](I,this['_base'],this,_0x34d07d['id'],this[_0x1ca153(0x15c)]));}[_0x2481ff(0x203)](_0x57437d){const _0x23db01=_0x2481ff;return!_0x57437d[_0x23db01(0x256)]||this['_commandService'][_0x23db01(0x13f)](c[_0x23db01(0x201)]['id'],{'unitId':this[_0x23db01(0x217)][_0x23db01(0x178)](),'tableId':this[_0x23db01(0x14c)],'recordIds':_0x57437d,'source':c[_0x23db01(0x216)]['Facade']});}[_0x2481ff(0x1d1)](_0x2a19e8,_0x1b432e,_0x22b293=0x1,_0x59aed3=0x1){const _0x5d944d=_0x2481ff;return this[_0x5d944d(0x15c)]['createInstance'](A,this['_base'],this,{'startRow':_0x2a19e8,'endRow':_0x2a19e8+_0x22b293-0x1,'startColumn':_0x1b432e,'endColumn':_0x1b432e+_0x59aed3-0x1},this[_0x5d944d(0x15c)]);}[_0x2481ff(0x28b)](){const _0x3d21c3=_0x2481ff;var _0x920643;let _0x24104a=(0x0,c[_0x3d21c3(0x1ab)])(this['_getTable']()),_0x25a196=((_0x920643=_0x24104a[_0x3d21c3(0x13c)])==null?void 0x0:_0x920643[_0x3d21c3(0x256)])??0x0,_0x1089f2=_0x24104a['fieldOrder'][_0x3d21c3(0x1b1)](_0x4938a0=>y(_0x24104a[_0x3d21c3(0x214)][_0x4938a0]))['length'];return this['getRange'](0x0,0x0,Math[_0x3d21c3(0x26a)](_0x25a196,0x1),Math[_0x3d21c3(0x26a)](_0x1089f2,0x1));}['getViews'](){const _0x367624=_0x2481ff;let _0x35dfd7=this['_getTable']();return _0x35dfd7['viewOrder']['filter'](_0x2f72a5=>_0x35dfd7[_0x367624(0x2ba)][_0x2f72a5])[_0x367624(0x21d)](_0x2a77dd=>this['_injector'][_0x367624(0x187)](z,this[_0x367624(0x217)],this,_0x2a77dd,this[_0x367624(0x15c)]));}[_0x2481ff(0x1f0)](_0x2ffff9){const _0x456bfd=_0x2481ff;return this[_0x456bfd(0x1cb)]()[_0x456bfd(0x2ba)][_0x2ffff9]?this[_0x456bfd(0x15c)][_0x456bfd(0x187)](z,this['_base'],this,_0x2ffff9,this['_injector']):null;}['getViewByName'](_0x27fd8b){const _0x1f0bc0=_0x2481ff;let _0x235cd4=this[_0x1f0bc0(0x1cb)](),_0xde4941=Object[_0x1f0bc0(0x11e)](_0x235cd4[_0x1f0bc0(0x2ba)])[_0x1f0bc0(0x260)](_0x10e716=>_0x10e716[_0x1f0bc0(0x22c)]===_0x27fd8b);return _0xde4941?this[_0x1f0bc0(0x15c)]['createInstance'](z,this[_0x1f0bc0(0x217)],this,_0xde4941['id'],this[_0x1f0bc0(0x15c)]):null;}[_0x2481ff(0x1ef)](_0x20b993,_0x56f783,_0x37b7e4){const _0x3fc52a=_0x2481ff;var _0x3d441f,_0x5beafa,_0x29ebda,_0x4331be;let _0x326ca1=this[_0x3fc52a(0x1cb)](),_0x169719=(_0x37b7e4==null||(_0x3d441f=_0x37b7e4[_0x3fc52a(0x12f)])==null?void 0x0:_0x3d441f['fieldOrder'])??_0x326ca1[_0x3fc52a(0x167)],_0x4d5305=[l['BASE_RECORD_ID_FIELD_ID'],..._0x169719[_0x3fc52a(0x1b1)](_0x4a0524=>y(_0x326ca1[_0x3fc52a(0x214)][_0x4a0524]))],_0x322587={..._0x37b7e4==null?void 0x0:_0x37b7e4[_0x3fc52a(0x12f)],'id':(0x0,l[_0x3fc52a(0x204)])(0x6),'name':_0x20b993,'type':_0x56f783,'tableId':this[_0x3fc52a(0x14c)],'config':(_0x37b7e4==null||(_0x5beafa=_0x37b7e4[_0x3fc52a(0x12f)])==null?void 0x0:_0x5beafa[_0x3fc52a(0x147)])??{},'fieldOrder':_0x4d5305,'fieldSettings':{..._0x37b7e4==null||(_0x29ebda=_0x37b7e4[_0x3fc52a(0x12f)])==null?void 0x0:_0x29ebda[_0x3fc52a(0x19c)],[l[_0x3fc52a(0x2b9)]]:{..._0x37b7e4==null||(_0x4331be=_0x37b7e4[_0x3fc52a(0x12f)])==null||(_0x4331be=_0x4331be['fieldSettings'])==null?void 0x0:_0x4331be[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this[_0x3fc52a(0x13e)][_0x3fc52a(0x13f)](c[_0x3fc52a(0x257)]['id'],{'unitId':this[_0x3fc52a(0x217)]['getId'](),'tableId':this['_tableId'],'view':_0x322587,'index':_0x37b7e4==null?void 0x0:_0x37b7e4[_0x3fc52a(0x1d9)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x20b993+'\x22');return this[_0x3fc52a(0x15c)][_0x3fc52a(0x187)](z,this['_base'],this,_0x322587['id'],this[_0x3fc52a(0x15c)]);}['getSchema'](){const _0x14e92f=_0x2481ff;let _0x1d4012=this[_0x14e92f(0x1cb)](),_0x1e4827=_0x1d4012[_0x14e92f(0x167)][_0x14e92f(0x1b1)](_0x1ed693=>y(_0x1d4012['fields'][_0x1ed693])),_0x4b959c=_0x1d4012['viewOrder'][_0x14e92f(0x1b1)](_0x2c349c=>_0x1d4012[_0x14e92f(0x2ba)][_0x2c349c]);return{'id':_0x1d4012['id'],'name':_0x1d4012[_0x14e92f(0x22c)],'formulaName':this[_0x14e92f(0x171)](),'primaryFieldId':_0x1d4012[_0x14e92f(0x1b6)],'fieldIds':_0x1e4827,'viewIds':_0x4b959c,'recordCount':this[_0x14e92f(0x184)]()['length'],'fields':_0x1e4827[_0x14e92f(0x21d)](_0x124b80=>{const _0x1a4f1b=_0x14e92f;let _0x4dec81=_0x1d4012[_0x1a4f1b(0x214)][_0x124b80];return{'id':_0x4dec81['id'],'name':_0x4dec81[_0x1a4f1b(0x22c)],'type':_0x4dec81[_0x1a4f1b(0x18e)],'config':_0x4dec81['config'],'readonly':_0x4dec81[_0x1a4f1b(0x24d)],'description':_0x4dec81['description']};}),'views':_0x4b959c[_0x14e92f(0x21d)](_0x248808=>{const _0x2049a3=_0x14e92f;let _0x5f0803=_0x1d4012['views'][_0x248808];return{'id':_0x5f0803['id'],'name':_0x5f0803[_0x2049a3(0x22c)],'type':_0x5f0803[_0x2049a3(0x18e)]};})};}[_0x2481ff(0x1cb)](){const _0x329568=_0x2481ff;let _0x32b174=this['_base'][_0x329568(0x176)]()['getSnapshot']()[_0x329568(0x223)][this[_0x329568(0x14c)]];if(!_0x32b174)throw Error(_0x329568(0x276)+this[_0x329568(0x14c)]+_0x329568(0x21f));return _0x32b174;}[_0x2481ff(0x184)](_0x3f89f1={}){const _0x417a07=_0x2481ff;let _0x59decf=this[_0x417a07(0x217)]['getBase']()[_0x417a07(0x1b9)](),_0x177a6e=this[_0x417a07(0x1cb)]();if(_0x3f89f1[_0x417a07(0x1f3)]){let _0x255673=this[_0x417a07(0x1de)][_0x417a07(0x2a9)](_0x59decf,this[_0x417a07(0x14c)],_0x3f89f1[_0x417a07(0x1f3)]);if(_0x417a07(0x2bb)in _0x255673&&Array[_0x417a07(0x1a4)](_0x255673[_0x417a07(0x2bb)]))return _0x255673[_0x417a07(0x2bb)][_0x417a07(0x21d)](_0x358a64=>_0x358a64[_0x417a07(0x1ec)]);}return(_0x177a6e[_0x417a07(0x13c)]?_0x177a6e[_0x417a07(0x13c)][_0x417a07(0x21d)](_0x1b0f5e=>_0x177a6e['records'][_0x1b0f5e]):Object[_0x417a07(0x11e)](_0x177a6e[_0x417a07(0x151)])[_0x417a07(0x20f)]((_0x1d1520,_0x4cfddd)=>_0x1d1520[_0x417a07(0x1b8)]['localeCompare'](_0x4cfddd[_0x417a07(0x1b8)])))['filter'](_0x3f0ec9=>_0x3f0ec9)['map'](_0x2bdd96=>_0x2bdd96['id']);}};B=g([h(0x3,l[_0x2481ff(0x27d)]),h(0x4,l[_0x2481ff(0x17f)]),h(0x5,c[_0x2481ff(0x283)])],B);function V(_0x17d025,_0x492f66){const _0x42bd79=_0x2481ff;let _0x1cdffa=Math[_0x42bd79(0x26a)](0x0,_0x492f66['offset']??0x0);return _0x492f66['limit']==null?_0x17d025[_0x42bd79(0x1a6)](_0x1cdffa):_0x17d025[_0x42bd79(0x1a6)](_0x1cdffa,_0x1cdffa+Math['max'](0x0,_0x492f66[_0x42bd79(0x118)]));}function H(_0x235c67,_0x2c08ac,_0x407252=[]){const _0x4d9c38=_0x2481ff;return _0x407252[_0x4d9c38(0x256)]?[..._0x235c67][_0x4d9c38(0x20f)]((_0x5044ce,_0x3227ac)=>{const _0x456fbc=_0x4d9c38;for(let _0x4c0416 of _0x407252){var _0x415b84;let _0x13ddf0=_0x4c0416['direction']===l['BaseSortDirection'][_0x456fbc(0x1a7)]?-0x1:0x1,_0x11831f=U(_0x5044ce[_0x456fbc(0x11e)][_0x4c0416[_0x456fbc(0x195)]],_0x3227ac[_0x456fbc(0x11e)][_0x4c0416[_0x456fbc(0x195)]],(_0x415b84=_0x2c08ac['fields'][_0x4c0416[_0x456fbc(0x195)]])==null?void 0x0:_0x415b84[_0x456fbc(0x18e)]);if(_0x11831f!==0x0)return _0x11831f*_0x13ddf0;}return String(_0x5044ce[_0x456fbc(0x1b8)]??_0x5044ce['id'])[_0x456fbc(0x213)](String(_0x3227ac['orderKey']??_0x3227ac['id']));}):_0x235c67;}function U(_0x55d2d5,_0x445592,_0xff3e08){const _0x250d59=_0x2481ff;return _0x55d2d5==null&&_0x445592==null?0x0:_0x55d2d5==null?-0x1:_0x445592==null?0x1:typeof _0x55d2d5==_0x250d59(0x14d)&&typeof _0x445592==_0x250d59(0x14d)?_0x55d2d5-_0x445592:_0xff3e08===l[_0x250d59(0x272)][_0x250d59(0x13d)]?Number(_0x55d2d5)-Number(_0x445592):String(_0x55d2d5)[_0x250d59(0x213)](String(_0x445592));}function W(_0x1efc3f,_0x169911,_0x5686d1){const _0x26fc00=_0x2481ff;var _0x95b61e;if(!_0x5686d1||!((_0x95b61e=_0x5686d1[_0x26fc00(0x10d)])!=null&&_0x95b61e['length']))return!0x0;let {conjunction:_0x49dc8b=l[_0x26fc00(0x28e)]['OR'],conditions:_0x44ebd5}=_0x5686d1;return _0x49dc8b===l[_0x26fc00(0x28e)]['AND']&&_0x44ebd5['length']>0x1?_0x44ebd5['every'](_0x1dc27f=>G(_0x1efc3f,_0x169911,_0x1dc27f)):_0x44ebd5[_0x26fc00(0x1ee)](_0x2d087e=>G(_0x1efc3f,_0x169911,_0x2d087e));}function G(_0x32f5d3,_0x2d31a4,_0xe07cad){const _0x2d20c6=_0x2481ff;let _0x2b8285=_0x32f5d3[_0x2d20c6(0x11e)][_0xe07cad['fieldId']],_0x1227d1=_0x2d31a4['fields'][_0xe07cad['fieldId']];if(K(_0xe07cad)){let _0x4a4682=q(_0xe07cad)[_0x2d20c6(0x1e4)](String(_0x2b8285??''));return _0xe07cad[_0x2d20c6(0x15f)]===_0x2d20c6(0x2a6)?_0x4a4682:!_0x4a4682;}return!_0x1227d1||(0x0,c[_0x2d20c6(0x278)])(_0x2b8285,_0xe07cad[_0x2d20c6(0x15f)],_0xe07cad[_0x2d20c6(0x254)],_0x1227d1);}function K(_0x5cde55){const _0x30150d=_0x2481ff;return _0x5cde55[_0x30150d(0x15f)]===_0x30150d(0x2a6)||_0x5cde55[_0x30150d(0x15f)]===_0x30150d(0x185);}function q(_0x33b5cc){const _0x2eed0a=_0x2481ff;let _0x3eb20c=String(_0x33b5cc[_0x2eed0a(0x254)]??'');if(_0x3eb20c[_0x2eed0a(0x256)]>0x200)throw Error('Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.');try{return new RegExp(_0x3eb20c,_0x33b5cc[_0x2eed0a(0x1f4)]?void 0x0:'i');}catch(_0x58e2df){throw Error(_0x2eed0a(0x1f2)+_0x3eb20c+'.\x20'+(_0x58e2df instanceof Error?_0x58e2df[_0x2eed0a(0x25b)]:String(_0x58e2df)));}}function J(_0x5dec44,_0x3aeb7e,_0x4c1e3f){const _0x6c0228=_0x2481ff;if(_0x4c1e3f[_0x6c0228(0x18e)]!==_0x6c0228(0x132)&&_0x4c1e3f['type']!=='custom'){var _0x263d58;if(_0x4c1e3f['type']===l[_0x6c0228(0x175)][_0x6c0228(0x239)]){var _0x44fce4;let _0x3aba01=[((_0x44fce4=_0x4c1e3f[_0x6c0228(0x214)])==null||(_0x44fce4=_0x44fce4[0x0])==null?void 0x0:_0x44fce4['id'])??_0x5dec44[_0x6c0228(0x1b6)],..._0x4c1e3f[_0x6c0228(0x25c)]??[]];return Array[_0x6c0228(0x26d)](new Set(_0x3aba01[_0x6c0228(0x1b1)](_0x1243b5=>!!_0x5dec44['fields'][_0x1243b5])));}if((_0x263d58=_0x4c1e3f['fields'])!=null&&_0x263d58[_0x6c0228(0x256)])return _0x4c1e3f[_0x6c0228(0x214)][_0x6c0228(0x21d)](_0x5e5f32=>_0x5e5f32['id'])[_0x6c0228(0x1b1)](_0x2c9a0c=>{const _0xd2890d=_0x6c0228;var _0x15af68;return!(!_0x5dec44[_0xd2890d(0x214)][_0x2c9a0c]||_0x3aeb7e!=null&&(_0x15af68=_0x3aeb7e[_0xd2890d(0x19c)])!=null&&(_0x15af68=_0x15af68[_0x2c9a0c])!=null&&_0x15af68['hidden']);});}return _0x5dec44['fieldOrder'][_0x6c0228(0x1b1)](_0x39da6e=>{const _0x44f518=_0x6c0228;var _0x285d4f;return!(!_0x5dec44[_0x44f518(0x214)][_0x39da6e]||_0x3aeb7e!=null&&(_0x285d4f=_0x3aeb7e['fieldSettings'])!=null&&(_0x285d4f=_0x285d4f[_0x39da6e])!=null&&_0x285d4f[_0x44f518(0x280)]);});}let Y=class extends u['FBase']{constructor(_0x14f9d8,_0x11ea90,_0x473a3c,_0x5069a2,_0x5ab6ea){const _0x1a77b8=_0x2481ff;super(),this[_0x1a77b8(0x217)]=_0x14f9d8,this[_0x1a77b8(0x15c)]=_0x11ea90,this[_0x1a77b8(0x1b0)]=_0x473a3c,this[_0x1a77b8(0x13e)]=_0x5069a2,this[_0x1a77b8(0x267)]=_0x5ab6ea;}[_0x2481ff(0x176)](){const _0x1b1e8b=_0x2481ff;return this[_0x1b1e8b(0x217)];}[_0x2481ff(0x178)](){const _0x1ed976=_0x2481ff;return this[_0x1ed976(0x217)]['getUnitId']();}[_0x2481ff(0x1f1)](){const _0x5d29b3=_0x2481ff;return new p(this[_0x5d29b3(0x178)](),this[_0x5d29b3(0x13e)],this[_0x5d29b3(0x267)]);}[_0x2481ff(0x2a3)](){const _0x44326e=_0x2481ff;return this['_resourceLoaderService'][_0x44326e(0x16f)](this[_0x44326e(0x178)]())??l[_0x44326e(0x2b1)][_0x44326e(0x192)](this['_base'][_0x44326e(0x1b9)]());}['getName'](){const _0x1fb73b=_0x2481ff;return this[_0x1fb73b(0x217)][_0x1fb73b(0x1b9)]()[_0x1fb73b(0x22c)];}[_0x2481ff(0x22d)](_0x43c7ba){const _0x4148e9=_0x2481ff;this['_commandService'][_0x4148e9(0x13f)](c[_0x4148e9(0x27a)]['id'],{'unitId':this[_0x4148e9(0x178)](),'name':_0x43c7ba});}[_0x2481ff(0x1fa)](){const _0x48964c=_0x2481ff;let _0x37b3b4=this[_0x48964c(0x217)]['getSnapshot']();return _0x37b3b4['tableOrder'][_0x48964c(0x21d)](_0x35636c=>_0x37b3b4[_0x48964c(0x223)][_0x35636c])[_0x48964c(0x1b1)](_0xcf4b2b=>_0xcf4b2b)[_0x48964c(0x21d)](_0x412cb5=>this[_0x48964c(0x15c)][_0x48964c(0x187)](B,this,_0x412cb5['id'],this[_0x48964c(0x15c)]));}[_0x2481ff(0x289)](_0x2755b5){const _0x44d2ab=_0x2481ff;let _0x585e64=this['_base'][_0x44d2ab(0x1b9)]()[_0x44d2ab(0x223)][_0x2755b5];return _0x585e64?this[_0x44d2ab(0x15c)]['createInstance'](B,this,_0x585e64['id'],this['_injector']):null;}[_0x2481ff(0x244)](_0x213d77){const _0x5a683a=_0x2481ff;let _0x1e7265=this[_0x5a683a(0x217)]['getSnapshot'](),_0x3461b9=Object['values'](_0x1e7265['tables'])[_0x5a683a(0x260)](_0x260b9d=>_0x260b9d[_0x5a683a(0x22c)]===_0x213d77);return _0x3461b9?this[_0x5a683a(0x15c)][_0x5a683a(0x187)](B,this,_0x3461b9['id'],this['_injector']):null;}['insertTable'](_0x46e7ea,_0x43b374){const _0x2cb800=_0x2481ff;let _0x206797=(0x0,l[_0x2cb800(0x1ed)])({'id':(0x0,l[_0x2cb800(0x204)])(),'name':_0x46e7ea,..._0x43b374==null?void 0x0:_0x43b374[_0x2cb800(0x2ad)],'primaryFieldName':_0x43b374==null?void 0x0:_0x43b374['primaryFieldName']}),_0x33bd86=l['Tools'][_0x2cb800(0x229)](_0x206797,(_0x43b374==null?void 0x0:_0x43b374[_0x2cb800(0x2ad)])??{}),_0x23a1ce=(0x0,c[_0x2cb800(0x17a)])(this['_base']['getSnapshot'](),_0x33bd86[_0x2cb800(0x22c)]);if(!_0x23a1ce[_0x2cb800(0x21a)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x33bd86[_0x2cb800(0x22c)]+_0x2cb800(0x275)+c[_0x2cb800(0x1be)]+'\x20'+_0x23a1ce['reason']);if(!this[_0x2cb800(0x13e)][_0x2cb800(0x13f)](c[_0x2cb800(0x247)]['id'],{'unitId':this[_0x2cb800(0x217)][_0x2cb800(0x26e)](),'table':_0x33bd86,'index':_0x43b374==null?void 0x0:_0x43b374[_0x2cb800(0x1d9)]}))throw Error(_0x2cb800(0x28c)+_0x46e7ea+'\x22.');return this[_0x2cb800(0x15c)]['createInstance'](B,this,_0x33bd86['id'],this[_0x2cb800(0x15c)]);}[_0x2481ff(0x18f)](_0x114c8e){const _0x4291b8=_0x2481ff;let _0x2d321d=typeof _0x114c8e==_0x4291b8(0x20e)?_0x114c8e:_0x114c8e[_0x4291b8(0x178)]();if(!this['_commandService'][_0x4291b8(0x13f)](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0x4291b8(0x217)]['getUnitId'](),'tableId':_0x2d321d}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x2d321d+'\x22.');return!0x0;}[_0x2481ff(0x261)](_0x2ee15b,_0x537596){const _0x43e3fe=_0x2481ff;let _0x613d1a=this[_0x43e3fe(0x217)][_0x43e3fe(0x1b9)](),_0x45b838=typeof _0x2ee15b==_0x43e3fe(0x20e)?_0x2ee15b:_0x2ee15b['getId'](),_0x232ece=_0x613d1a[_0x43e3fe(0x223)][_0x45b838];if(!_0x232ece)throw Error(_0x43e3fe(0x1c6)+_0x45b838+'\x22\x20does\x20not\x20exist.');let _0x276375=_0x613d1a['tableOrder'][_0x43e3fe(0x172)](_0x45b838)+0x1,_0xee4114=(0x0,l[_0x43e3fe(0x204)])(),_0x415f74=(0x0,c['copyBaseTableSnapshot'])(_0x232ece,{'id':_0xee4114,'name':(0x0,c[_0x43e3fe(0x15d)])(_0x613d1a,_0x232ece[_0x43e3fe(0x22c)]+_0x43e3fe(0x191)),'includeRecords':(_0x537596==null?void 0x0:_0x537596[_0x43e3fe(0x11b)])??!0x1,'regenerateViewIds':(_0x537596==null?void 0x0:_0x537596['regenerateViewIds'])??!0x1});if(!this['_commandService'][_0x43e3fe(0x13f)](c[_0x43e3fe(0x247)]['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x415f74,'index':_0x276375}))throw Error(_0x43e3fe(0x29e)+_0x45b838+'\x22.');return this['_injector'][_0x43e3fe(0x187)](B,this,_0x415f74['id'],this['_injector']);}['getSchema'](){const _0x1ebfbf=_0x2481ff;let _0x486438=this['_base'][_0x1ebfbf(0x1b9)]();return{'id':_0x486438['id'],'name':_0x486438[_0x1ebfbf(0x22c)],'tables':this[_0x1ebfbf(0x1fa)]()['map'](_0x2e9310=>_0x2e9310['getSchema']())};}};Y=g([h(0x1,(0x0,l[_0x2481ff(0x1a9)])(l['Injector'])),h(0x2,l[_0x2481ff(0x1df)]),h(0x3,l[_0x2481ff(0x27d)]),h(0x4,l['IPermissionService'])],Y);var X=class extends u[_0x2481ff(0x136)]{['_initialize'](){const _0xa895be=_0x2481ff;this['_initBaseBeforeEvents'](),this[_0xa895be(0x1a5)]();}[_0x2481ff(0x1b4)](_0x5d1462={},_0xf050c5){const _0x1f6cbb=_0x2481ff;let _0xe66ec8=this['_univerInstanceService']['createUnit'](l[_0x1f6cbb(0x202)][_0x1f6cbb(0x117)],_0x5d1462,_0xf050c5);return this['_injector'][_0x1f6cbb(0x187)](Y,_0xe66ec8);}[_0x2481ff(0x1bb)](){const _0x3d494a=_0x2481ff;let _0x32881b=this[_0x3d494a(0x13a)]['getCurrentUnitOfType'](l[_0x3d494a(0x202)][_0x3d494a(0x117)]);return _0x32881b?this[_0x3d494a(0x15c)]['createInstance'](Y,_0x32881b):null;}[_0x2481ff(0x176)](_0x1a9eb4){const _0x597b2c=_0x2481ff;let _0x26eca0=this[_0x597b2c(0x13a)]['getUnit'](_0x1a9eb4,l[_0x597b2c(0x202)][_0x597b2c(0x117)]);return _0x26eca0?this[_0x597b2c(0x15c)]['createInstance'](Y,_0x26eca0):null;}[_0x2481ff(0x189)](){const _0x3ef020=_0x2481ff;return this[_0x3ef020(0x13a)][_0x3ef020(0x156)](l[_0x3ef020(0x202)][_0x3ef020(0x117)])[_0x3ef020(0x21d)](_0x4fefd1=>this[_0x3ef020(0x15c)][_0x3ef020(0x187)](Y,_0x4fefd1));}[_0x2481ff(0x1a5)](){const _0x2eb57a=_0x2481ff;this['disposeWithMe'](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)]['BaseHierarchyChanged'],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)]((_0x2b3ec6,_0x1a9c03)=>{const _0x1774cc=_0x2eb57a;var _0x32e943;if(!Z(_0x2b3ec6,c[_0x1774cc(0x1fe)]))return;let _0x132664=_0x2b3ec6['params'];if(!((_0x32e943=_0x132664[_0x1774cc(0x2b4)])!=null&&_0x32e943[_0x1774cc(0x256)]))return;let _0x2a826d=this['getBase'](_0x132664['unitId']),_0x5cb46a=_0x2a826d==null?void 0x0:_0x2a826d[_0x1774cc(0x289)](_0x132664[_0x1774cc(0x2b4)][0x0][_0x1774cc(0x14f)]);if(!_0x2a826d||!_0x5cb46a)return;let _0x3e3add={'base':_0x2a826d,'table':_0x5cb46a,'changes':_0x132664[_0x1774cc(0x2b4)],'source':_0x1a9c03!=null&&_0x1a9c03[_0x1774cc(0x157)]?c[_0x1774cc(0x216)]['Remote']:_0x132664['source']??c[_0x1774cc(0x216)]['UI']};this[_0x1774cc(0x16e)](this[_0x1774cc(0x25a)][_0x1774cc(0x10f)],_0x3e3add);}))),this[_0x2eb57a(0x23e)](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x179)],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)](_0x549438=>{const _0x3a39a9=_0x2eb57a;if(_0x549438['id']!==c[_0x3a39a9(0x247)]['id'])return;let {unitId:_0x50d6bb,table:_0x1d40a4,index:_0x3989f0}=_0x549438[_0x3a39a9(0x219)],_0x462f3f=this[_0x3a39a9(0x176)](_0x50d6bb);if(!_0x462f3f)return;let _0x45a4de={'base':_0x462f3f,'table':_0x1d40a4,'index':_0x3989f0};this['fireEvent'](this['Event'][_0x3a39a9(0x179)],_0x45a4de);}))),this[_0x2eb57a(0x23e)](this[_0x2eb57a(0x1f9)](this['Event'][_0x2eb57a(0x1dc)],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)](_0xdc3768=>{const _0x2503e2=_0x2eb57a;if(_0xdc3768['id']!==c[_0x2503e2(0x266)]['id'])return;let {unitId:_0x252570,tableId:_0x589d0d,field:_0x29179e,index:_0x158c61,viewIndexes:_0x1b268c}=_0xdc3768[_0x2503e2(0x219)],_0x17edf0=this[_0x2503e2(0x176)](_0x252570);if(!_0x17edf0)return;let _0x2ad076=_0x17edf0[_0x2503e2(0x289)](_0x589d0d);if(!_0x2ad076)return;let _0xb40f18={'base':_0x17edf0,'table':_0x2ad076,'field':_0x29179e,'index':_0x158c61,'viewIndexes':_0x1b268c};this[_0x2503e2(0x16e)](this[_0x2503e2(0x25a)][_0x2503e2(0x1dc)],_0xb40f18);}))),this['disposeWithMe'](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x14e)],()=>this[_0x2eb57a(0x13e)]['onCommandExecuted'](_0x34b5a1=>{const _0x327ffb=_0x2eb57a;if(_0x34b5a1['id']!==c['CreateBaseRecordCommand']['id']&&_0x34b5a1['id']!==c[_0x327ffb(0x148)]['id'])return;let _0x19949e=_0x34b5a1[_0x327ffb(0x219)],{unitId:_0x547d06,tableId:_0x350455}=_0x19949e,_0x260717=_0x19949e[_0x327ffb(0x151)]??[_0x19949e[_0x327ffb(0x1b7)]],_0x23a0a9=this['getBase'](_0x547d06);if(!_0x23a0a9)return;let _0x6ebfbe=_0x23a0a9[_0x327ffb(0x289)](_0x350455);if(!_0x6ebfbe)return;let _0x3918f7={'base':_0x23a0a9,'table':_0x6ebfbe,'records':_0x260717};this[_0x327ffb(0x16e)](this[_0x327ffb(0x25a)]['BaseTableRecordCreated'],_0x3918f7);}))),this[_0x2eb57a(0x23e)](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x209)],()=>this[_0x2eb57a(0x13e)][_0x2eb57a(0x284)](_0x1e01c8=>{const _0x490c3b=_0x2eb57a;if(_0x1e01c8['id']!==c[_0x490c3b(0x257)]['id'])return;let {unitId:_0x10e43f,tableId:_0x4962b,view:_0x58d92a,index:_0x36d6e7}=_0x1e01c8[_0x490c3b(0x219)],_0x154dbf=this[_0x490c3b(0x176)](_0x10e43f);if(!_0x154dbf)return;let _0x3c07ab=_0x154dbf[_0x490c3b(0x289)](_0x4962b);if(!_0x3c07ab)return;let _0x240ff9={'base':_0x154dbf,'table':_0x3c07ab,'view':_0x58d92a,'index':_0x36d6e7};this[_0x490c3b(0x16e)](this[_0x490c3b(0x25a)][_0x490c3b(0x209)],_0x240ff9);}))),this['disposeWithMe'](this[_0x2eb57a(0x1f9)](this[_0x2eb57a(0x25a)][_0x2eb57a(0x12e)],()=>this['_commandService']['onCommandExecuted'](_0x33e74e=>{const _0x4a7570=_0x2eb57a;if(_0x33e74e['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x27977e,tableId:_0x32ef10,recordId:_0x2c13ff,fieldId:_0x3e3a30,value:_0x1f92e7}=_0x33e74e[_0x4a7570(0x219)],_0xe5d5c=this[_0x4a7570(0x176)](_0x27977e);if(!_0xe5d5c)return;let _0x294c13=_0xe5d5c['getTableById'](_0x32ef10);if(!_0x294c13)return;let _0x22f432=_0x294c13[_0x4a7570(0x1da)](_0x3e3a30);if(!_0x22f432)return;let _0x50e3af=_0x294c13[_0x4a7570(0x18c)](_0x2c13ff);if(!_0x50e3af)return;let _0x5451ce={'base':_0xe5d5c,'table':_0x294c13,'field':_0x22f432,'record':_0x50e3af,'value':_0x1f92e7};this[_0x4a7570(0x16e)](this[_0x4a7570(0x25a)][_0x4a7570(0x12e)],_0x5451ce);})));}[_0x2481ff(0x22b)](){const _0x19a011=_0x2481ff;this[_0x19a011(0x23e)](this[_0x19a011(0x1f9)](this['Event'][_0x19a011(0x1e5)],()=>this[_0x19a011(0x13e)]['beforeCommandExecuted'](_0x1b3169=>{const _0x4d5be5=_0x19a011;if(Z(_0x1b3169,c['SetBaseRecordValuesCommand'])){let {unitId:_0x10ac27,tableId:_0x44e9f8,patches:_0x2192c4,source:_0x1c17a1=c['BaseEventSource']['UI']}=_0x1b3169[_0x4d5be5(0x219)],_0x2c0fd5=this[_0x4d5be5(0x206)](_0x10ac27,_0x44e9f8);if(!_0x2c0fd5)return;this[_0x4d5be5(0x27b)](_0x2c0fd5[_0x4d5be5(0x10e)],_0x2c0fd5[_0x4d5be5(0x2ad)],(0x0,c[_0x4d5be5(0x1a1)])(_0x2c0fd5['table']['getTable'](),_0x2192c4),_0x1c17a1);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x27e)])){let {unitId:_0x43bb38,tableId:_0x5632dc,patches:_0x299eba,source:_0x2b18c7=c[_0x4d5be5(0x216)]['UI']}=_0x1b3169[_0x4d5be5(0x219)],_0x26d482=this[_0x4d5be5(0x206)](_0x43bb38,_0x5632dc);if(!_0x26d482)return;let _0x534f25=_0x26d482['table'][_0x4d5be5(0x1d8)]();this[_0x4d5be5(0x27b)](_0x26d482['base'],_0x26d482[_0x4d5be5(0x2ad)],(0x0,c[_0x4d5be5(0x1a1)])(_0x534f25,(0x0,c[_0x4d5be5(0x16d)])(_0x534f25,_0x299eba)),_0x2b18c7);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x1a8)])){let _0x4243df=_0x1b3169[_0x4d5be5(0x219)],_0x1213b2=this[_0x4d5be5(0x206)](_0x4243df[_0x4d5be5(0x26f)],_0x4243df[_0x4d5be5(0x14f)]);if(!_0x1213b2)return;this[_0x4d5be5(0x27b)](_0x1213b2[_0x4d5be5(0x10e)],_0x1213b2['table'],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x1213b2[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)](),[_0x4243df[_0x4d5be5(0x1b7)]]),_0x4243df[_0x4d5be5(0x2b0)]??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c['BatchCreateBaseRecordsCommand'])){let _0x887553=_0x1b3169[_0x4d5be5(0x219)],_0x49580c=this['_getHierarchyEventContext'](_0x887553[_0x4d5be5(0x26f)],_0x887553[_0x4d5be5(0x14f)]);if(!_0x49580c)return;this[_0x4d5be5(0x27b)](_0x49580c[_0x4d5be5(0x10e)],_0x49580c[_0x4d5be5(0x2ad)],(0x0,c[_0x4d5be5(0x245)])(_0x49580c[_0x4d5be5(0x2ad)]['getTable'](),_0x887553[_0x4d5be5(0x151)]),_0x887553['source']??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x23a)])){let _0x335245=_0x1b3169[_0x4d5be5(0x219)],_0x2ee314=this[_0x4d5be5(0x206)](_0x335245[_0x4d5be5(0x26f)],_0x335245[_0x4d5be5(0x14f)]);if(!_0x2ee314)return;this[_0x4d5be5(0x27b)](_0x2ee314[_0x4d5be5(0x10e)],_0x2ee314['table'],(0x0,c[_0x4d5be5(0x245)])(_0x2ee314['table'][_0x4d5be5(0x1d8)](),[_0x335245[_0x4d5be5(0x1b7)]]),_0x335245[_0x4d5be5(0x2b0)]??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c['MoveBaseHierarchyRecordCommand'])){let _0x169588=_0x1b3169[_0x4d5be5(0x219)],_0x41c887=this[_0x4d5be5(0x206)](_0x169588[_0x4d5be5(0x26f)],_0x169588[_0x4d5be5(0x14f)]);if(!_0x41c887)return;let _0x2e23fb=_0x41c887['table'][_0x4d5be5(0x1d8)](),_0x1bf558=_0x169588['fieldId']??(0x0,c[_0x4d5be5(0x153)])(_0x2e23fb),_0x1b59d7=(0x0,c['buildBaseHierarchyIndex'])(_0x2e23fb,_0x1bf558)[_0x4d5be5(0x292)][_0x4d5be5(0x16b)](_0x169588[_0x4d5be5(0x1ec)])??null;this['_fireBeforeHierarchyChange'](_0x41c887['base'],_0x41c887[_0x4d5be5(0x2ad)],[{'tableId':_0x169588[_0x4d5be5(0x14f)],'fieldId':_0x1bf558,'recordId':_0x169588[_0x4d5be5(0x1ec)],'oldParentRecordId':_0x1b59d7,'parentRecordId':_0x169588[_0x4d5be5(0x135)]}],_0x169588['source']??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x26c)])){let _0x2209f1=_0x1b3169[_0x4d5be5(0x219)],_0x4d8142=this['_getHierarchyEventContext'](_0x2209f1['unitId'],_0x2209f1[_0x4d5be5(0x14f)]);if(!_0x4d8142)return;let _0xf4edb1=_0x2209f1[_0x4d5be5(0x195)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x4d8142[_0x4d5be5(0x2ad)]['getTable']());this[_0x4d5be5(0x27b)](_0x4d8142[_0x4d5be5(0x10e)],_0x4d8142['table'],[{'tableId':_0x2209f1[_0x4d5be5(0x14f)],'fieldId':_0xf4edb1,'recordId':_0x2209f1['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x2209f1['parentRecordId']}],_0x2209f1[_0x4d5be5(0x2b0)]??c[_0x4d5be5(0x216)]['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x25e)])){let _0x1cc4f5=_0x1b3169['params'],_0x49e7f4=this[_0x4d5be5(0x206)](_0x1cc4f5[_0x4d5be5(0x26f)],_0x1cc4f5[_0x4d5be5(0x14f)]);if(!_0x49e7f4)return;this[_0x4d5be5(0x27b)](_0x49e7f4[_0x4d5be5(0x10e)],_0x49e7f4['table'],(0x0,c[_0x4d5be5(0x24a)])(_0x49e7f4[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)](),[_0x1cc4f5[_0x4d5be5(0x1ec)]]),_0x1cc4f5[_0x4d5be5(0x2b0)]??c['BaseEventSource']['UI']);return;}if(Z(_0x1b3169,c[_0x4d5be5(0x201)])){let _0x3a8e36=_0x1b3169[_0x4d5be5(0x219)],_0x495f20=this[_0x4d5be5(0x206)](_0x3a8e36[_0x4d5be5(0x26f)],_0x3a8e36[_0x4d5be5(0x14f)]);if(!_0x495f20)return;this[_0x4d5be5(0x27b)](_0x495f20[_0x4d5be5(0x10e)],_0x495f20['table'],(0x0,c[_0x4d5be5(0x24a)])(_0x495f20[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)](),_0x3a8e36['recordIds']),_0x3a8e36['source']??c[_0x4d5be5(0x216)]['UI']);return;}if(!Z(_0x1b3169,c[_0x4d5be5(0x159)]))return;let _0x36a24c=_0x1b3169[_0x4d5be5(0x219)],_0x5449ab=this[_0x4d5be5(0x206)](_0x36a24c[_0x4d5be5(0x26f)],_0x36a24c[_0x4d5be5(0x14f)]);if(!_0x5449ab)return;let _0x511565=_0x5449ab[_0x4d5be5(0x2ad)][_0x4d5be5(0x1d8)]();if(!(0x0,c[_0x4d5be5(0x182)])(_0x511565)[_0x4d5be5(0x164)](_0x36a24c[_0x4d5be5(0x195)]))return;let _0x16832e=(0x0,c[_0x4d5be5(0x2c4)])(_0x511565,_0x36a24c['fieldId'])[_0x4d5be5(0x292)]['get'](_0x36a24c[_0x4d5be5(0x1ec)])??null,_0x4c679d=(0x0,c[_0x4d5be5(0x232)])(_0x36a24c[_0x4d5be5(0x254)])[0x0]??null;_0x16832e!==_0x4c679d&&this[_0x4d5be5(0x27b)](_0x5449ab[_0x4d5be5(0x10e)],_0x5449ab[_0x4d5be5(0x2ad)],[{'tableId':_0x36a24c[_0x4d5be5(0x14f)],'fieldId':_0x36a24c[_0x4d5be5(0x195)],'recordId':_0x36a24c['recordId'],'oldParentRecordId':_0x16832e,'parentRecordId':_0x4c679d}],_0x36a24c['source']??c[_0x4d5be5(0x216)]['UI']);}))),this[_0x19a011(0x23e)](this['registerEventHandler'](this[_0x19a011(0x25a)][_0x19a011(0x1e2)],()=>this[_0x19a011(0x13e)]['beforeCommandExecuted'](_0x24e709=>{const _0x44de38=_0x19a011;if(_0x24e709['id']!==c[_0x44de38(0x247)]['id'])return;let {unitId:_0x4c90cd,table:_0x5bd99f,index:_0x1c38dd}=_0x24e709[_0x44de38(0x219)],_0x148ed4=this[_0x44de38(0x176)](_0x4c90cd);if(!_0x148ed4)return;let _0x4014b9={'base':_0x148ed4,'table':_0x5bd99f,'index':_0x1c38dd};if(this[_0x44de38(0x16e)](this[_0x44de38(0x25a)]['BeforeBaseTableCreate'],_0x4014b9),_0x4014b9[_0x44de38(0x1eb)])throw new l[(_0x44de38(0x165))]();}))),this['disposeWithMe'](this[_0x19a011(0x1f9)](this[_0x19a011(0x25a)]['BeforeBaseTableFieldCreate'],()=>this['_commandService'][_0x19a011(0x22e)](_0x24e446=>{const _0x207978=_0x19a011;if(_0x24e446['id']!==c[_0x207978(0x266)]['id'])return;let {unitId:_0x1dc599,tableId:_0x4e571d,field:_0x4bd4ca,index:_0x4b9f4e,viewIndexes:_0x25d6ef}=_0x24e446[_0x207978(0x219)],_0x1e26e5=this[_0x207978(0x176)](_0x1dc599);if(!_0x1e26e5)return;let _0x5e3dd5=_0x1e26e5[_0x207978(0x289)](_0x4e571d);if(!_0x5e3dd5)return;let _0x462e8a={'base':_0x1e26e5,'table':_0x5e3dd5,'field':_0x4bd4ca,'index':_0x4b9f4e,'viewIndexes':_0x25d6ef};if(this['fireEvent'](this[_0x207978(0x25a)][_0x207978(0x208)],_0x462e8a),_0x462e8a['cancel'])throw new l[(_0x207978(0x165))]();}))),this[_0x19a011(0x23e)](this['registerEventHandler'](this[_0x19a011(0x25a)][_0x19a011(0x24e)],()=>this['_commandService']['beforeCommandExecuted'](_0x47b3a4=>{const _0x1a18f7=_0x19a011;if(_0x47b3a4['id']!==c[_0x1a18f7(0x1a8)]['id']&&_0x47b3a4['id']!==c[_0x1a18f7(0x148)]['id'])return;let _0x48ca29=_0x47b3a4[_0x1a18f7(0x219)],{unitId:_0x49962c,tableId:_0x39b4d1}=_0x48ca29,_0x2868f5=_0x48ca29[_0x1a18f7(0x151)]??[_0x48ca29['record']],_0x4de50c=this[_0x1a18f7(0x176)](_0x49962c);if(!_0x4de50c)return;let _0x492c58=_0x4de50c[_0x1a18f7(0x289)](_0x39b4d1);if(!_0x492c58)return;let _0x50844a={'base':_0x4de50c,'table':_0x492c58,'records':_0x2868f5};if(this['fireEvent'](this[_0x1a18f7(0x25a)]['BeforeBaseTableRecordCreate'],_0x50844a),_0x50844a[_0x1a18f7(0x1eb)])throw new l[(_0x1a18f7(0x165))]();}))),this[_0x19a011(0x23e)](this[_0x19a011(0x1f9)](this['Event']['BeforeBaseTableViewCreate'],()=>this[_0x19a011(0x13e)][_0x19a011(0x22e)](_0x17cb7e=>{const _0x44da3c=_0x19a011;if(_0x17cb7e['id']!==c['CreateBaseViewCommand']['id'])return;let {unitId:_0x362dc9,tableId:_0x53f361,view:_0x406c20,index:_0x420add}=_0x17cb7e[_0x44da3c(0x219)],_0x2eee64=this[_0x44da3c(0x176)](_0x362dc9);if(!_0x2eee64)return;let _0x28001e=_0x2eee64[_0x44da3c(0x289)](_0x53f361);if(!_0x28001e)return;let _0x47a4c1={'base':_0x2eee64,'table':_0x28001e,'view':_0x406c20,'index':_0x420add};if(this[_0x44da3c(0x16e)](this[_0x44da3c(0x25a)][_0x44da3c(0x2a1)],_0x47a4c1),_0x47a4c1[_0x44da3c(0x1eb)])throw new l['CanceledError']();}))),this['disposeWithMe'](this[_0x19a011(0x1f9)](this[_0x19a011(0x25a)][_0x19a011(0x149)],()=>this[_0x19a011(0x13e)][_0x19a011(0x22e)](_0xa3da56=>{const _0x15364e=_0x19a011;if(_0xa3da56['id']!==c[_0x15364e(0x159)]['id'])return;let {unitId:_0x30c504,tableId:_0x252d42,recordId:_0x14dde0,fieldId:_0x2d4fee,value:_0x5483c3}=_0xa3da56[_0x15364e(0x219)],_0x3d1d7a=this[_0x15364e(0x176)](_0x30c504);if(!_0x3d1d7a)return;let _0x17af38=_0x3d1d7a['getTableById'](_0x252d42);if(!_0x17af38)return;let _0x73613f=_0x17af38['getFieldById'](_0x2d4fee);if(!_0x73613f)return;let _0x4ca882=_0x17af38[_0x15364e(0x18c)](_0x14dde0);if(!_0x4ca882)return;let _0x2d6f17={'base':_0x3d1d7a,'table':_0x17af38,'field':_0x73613f,'record':_0x4ca882,'value':_0x5483c3};if(this[_0x15364e(0x16e)](this[_0x15364e(0x25a)]['BeforeBaseTableCellValueChange'],_0x2d6f17),_0x2d6f17[_0x15364e(0x1eb)])throw new l[(_0x15364e(0x165))]();})));}[_0x2481ff(0x206)](_0x362ef7,_0x258137){const _0x4aeb1a=_0x2481ff;let _0x41979e=this[_0x4aeb1a(0x176)](_0x362ef7),_0x12b471=_0x41979e==null?void 0x0:_0x41979e[_0x4aeb1a(0x289)](_0x258137);return _0x41979e&&_0x12b471?{'base':_0x41979e,'table':_0x12b471}:null;}[_0x2481ff(0x27b)](_0x4e27b0,_0x21e13e,_0x4f3b86,_0x475239){const _0x1d640d=_0x2481ff;if(!_0x4f3b86[_0x1d640d(0x256)])return;let _0x449321={'base':_0x4e27b0,'table':_0x21e13e,'changes':_0x4f3b86,'source':_0x475239};if(this[_0x1d640d(0x16e)](this[_0x1d640d(0x25a)]['BeforeBaseHierarchyChange'],_0x449321),_0x449321[_0x1d640d(0x1eb)])throw new l['CanceledError']();}};function Z(_0x1f87f8,_0x1fbfe1){return _0x1f87f8['id']===_0x1fbfe1['id']&&_0x1f87f8['params']!==void 0x0;}u[_0x2481ff(0x136)][_0x2481ff(0x130)](X);var Q=class extends u['FEnum']{get['BaseFieldType'](){const _0x2c9f66=_0x2481ff;return l[_0x2c9f66(0x272)];}get[_0x2481ff(0x28e)](){const _0x214710=_0x2481ff;return l[_0x214710(0x28e)];}get['BaseFilterOperator'](){const _0x22631e=_0x2481ff;return l[_0x22631e(0x1c1)];}get[_0x2481ff(0x11a)](){return v;}get[_0x2481ff(0x175)](){return l['BaseViewType'];}get[_0x2481ff(0x270)](){const _0x57c918=_0x2481ff;return l[_0x57c918(0x270)];}get[_0x2481ff(0x155)](){return l['BaseConditionalColorOperator'];}get[_0x2481ff(0x269)](){return l['BaseConditionalDateMode'];}get[_0x2481ff(0x2a7)](){const _0x26a5c7=_0x2481ff;return l[_0x26a5c7(0x2a7)];}get[_0x2481ff(0x216)](){const _0x4c69ad=_0x2481ff;return c[_0x4c69ad(0x216)];}get['BaseHierarchyErrorCode'](){return c['BaseHierarchyErrorCode'];}get[_0x2481ff(0x226)](){const _0x1cc7f0=_0x2481ff;return l[_0x1cc7f0(0x226)];}get[_0x2481ff(0x140)](){const _0x36327c=_0x2481ff;return l[_0x36327c(0x140)];}};u['FEnum']['extend'](Q);var $=class extends u['FEventName']{get[_0x2481ff(0x179)](){const _0x2bb003=_0x2481ff;return _0x2bb003(0x179);}get[_0x2481ff(0x1e2)](){const _0x28626d=_0x2481ff;return _0x28626d(0x1e2);}get[_0x2481ff(0x1dc)](){const _0x53b284=_0x2481ff;return _0x53b284(0x1dc);}get[_0x2481ff(0x208)](){const _0x2c963f=_0x2481ff;return _0x2c963f(0x208);}get[_0x2481ff(0x14e)](){return'BaseTableRecordCreated';}get[_0x2481ff(0x24e)](){const _0x16f8d4=_0x2481ff;return _0x16f8d4(0x24e);}get['BaseTableViewCreated'](){const _0x3a824b=_0x2481ff;return _0x3a824b(0x209);}get[_0x2481ff(0x2a1)](){const _0x257f49=_0x2481ff;return _0x257f49(0x2a1);}get[_0x2481ff(0x12e)](){const _0x4c77d0=_0x2481ff;return _0x4c77d0(0x12e);}get[_0x2481ff(0x149)](){const _0x4d31e1=_0x2481ff;return _0x4d31e1(0x149);}get[_0x2481ff(0x10f)](){const _0x4d4ed2=_0x2481ff;return _0x4d4ed2(0x10f);}get[_0x2481ff(0x1e5)](){return'BeforeBaseHierarchyChange';}};u[_0x2481ff(0x2c5)][_0x2481ff(0x130)]($),exports['BaseFieldKeyEnum']=v,Object['defineProperty'](exports,_0x2481ff(0x23c),{'enumerable':!0x0,'get':function(){return Y;}}),exports['FBaseObjectPermission']=m,exports[_0x2481ff(0x218)]=p,Object[_0x2481ff(0x2c1)](exports,_0x2481ff(0x26b),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x2481ff(0x2c1)](exports,_0x2481ff(0x2ac),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x2481ff(0x2c1)](exports,'FBaseTableRange',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x2481ff(0x2c1)](exports,'FBaseTableRecord',{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x2481ff(0x2c1)](exports,_0x2481ff(0x220),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x2481ff(0x2b7)]=$,exports['resolveBaseFieldKey']=S,exports[_0x2481ff(0x290)]=b;
|