@univerjs-pro/bases 1.0.0-alpha.0 → 1.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/controllers/base-remote-formula.controller.d.ts +2 -2
- package/lib/types/services/base-command.service.d.ts +5 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +6 -6
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a8bbc=_0x43aa;(function(_0x211699,_0x5f1953){const _0x37e5dd=_0x43aa,_0x435f6d=_0x211699();while(!![]){try{const _0x3ab233=-parseInt(_0x37e5dd(0x32f))/0x1+parseInt(_0x37e5dd(0x21d))/0x2*(parseInt(_0x37e5dd(0x19b))/0x3)+parseInt(_0x37e5dd(0x268))/0x4+-parseInt(_0x37e5dd(0x34c))/0x5+-parseInt(_0x37e5dd(0x1d4))/0x6+-parseInt(_0x37e5dd(0x1e3))/0x7+parseInt(_0x37e5dd(0x330))/0x8*(parseInt(_0x37e5dd(0x19c))/0x9);if(_0x3ab233===_0x5f1953)break;else _0x435f6d['push'](_0x435f6d['shift']());}catch(_0x2ac190){_0x435f6d['push'](_0x435f6d['shift']());}}}(_0x20b3,0xdbeea),Object[_0x4a8bbc(0x2a9)](exports,Symbol['toStringTag'],{'value':_0x4a8bbc(0x1a8)}));let e=require('@univerjs/core/facade'),t=require('@univerjs-pro/bases'),n=require('@univerjs/core');const r={'Text':_0x4a8bbc(0x328),'SingleSelect':_0x4a8bbc(0x2d9),'MultiSelect':'multiSelect','Person':'person','Group':_0x4a8bbc(0x2fa),'Date':_0x4a8bbc(0x20b),'Attachment':'attachment','Number':'number','Checkbox':_0x4a8bbc(0x22f),'Link':_0x4a8bbc(0x23c),'Formula':_0x4a8bbc(0x1f3),'Lookup':_0x4a8bbc(0x1a6),'Flow':_0x4a8bbc(0x1f4),'Button':'button','Numbering':'numbering','Phone':_0x4a8bbc(0x27b),'Email':_0x4a8bbc(0x1b4),'Location':'location','Barcode':_0x4a8bbc(0x21b),'Progress':_0x4a8bbc(0x216),'Currency':_0x4a8bbc(0x29b),'Rating':_0x4a8bbc(0x320),'TwoWayLink':_0x4a8bbc(0x2b6),'RecordId':_0x4a8bbc(0x202),'CreatedBy':'createdBy','UpdatedBy':_0x4a8bbc(0x1af),'CreatedAt':_0x4a8bbc(0x298),'UpdatedAt':_0x4a8bbc(0x2c9),'Summary':'summary'},i={'Grid':_0x4a8bbc(0x2e9),'Kanban':_0x4a8bbc(0x22c),'Calendar':_0x4a8bbc(0x2e5),'Gantt':_0x4a8bbc(0x252),'Gallery':'gallery'},a={'Is':'is','IsNot':'isNot','Contains':'contains','DoesNotContain':'doesNotContain','IsEmpty':_0x4a8bbc(0x23b),'IsNotEmpty':_0x4a8bbc(0x23e),'GreaterThan':_0x4a8bbc(0x200),'GreaterThanOrEqual':'greaterThanOrEqual','LessThan':_0x4a8bbc(0x2a7),'LessThanOrEqual':'lessThanOrEqual','Matches':_0x4a8bbc(0x219),'NotMatches':_0x4a8bbc(0x251)},o={'Asc':_0x4a8bbc(0x1b6),'Desc':_0x4a8bbc(0x25e)},s={'Id':'id','Name':_0x4a8bbc(0x1b0),'Auto':_0x4a8bbc(0x211)},c={'Immediate':_0x4a8bbc(0x1d9),'Coalesce':_0x4a8bbc(0x2e2),'Silent':_0x4a8bbc(0x1f1)},l={'Single':'single','None':'none'},u={'CommandFailed':_0x4a8bbc(0x1de),'FieldNotFound':_0x4a8bbc(0x2ac),'DuplicateFieldName':_0x4a8bbc(0x285),'TableNotFound':_0x4a8bbc(0x31d),'ViewNotFound':'ViewNotFound','RecordNotFound':_0x4a8bbc(0x2c6),'InvalidFilter':_0x4a8bbc(0x322),'InvalidOperation':'InvalidOperation','BatchAlreadyRunning':_0x4a8bbc(0x230),'BatchFailed':_0x4a8bbc(0x341)};var d=class extends e[_0x4a8bbc(0x1df)]{get[_0x4a8bbc(0x255)](){return r;}get[_0x4a8bbc(0x1da)](){return i;}get[_0x4a8bbc(0x209)](){return a;}get['BaseSortDirectionEnum'](){return o;}get[_0x4a8bbc(0x26d)](){return s;}get[_0x4a8bbc(0x1f2)](){return c;}get[_0x4a8bbc(0x310)](){return l;}get[_0x4a8bbc(0x206)](){return u;}};e[_0x4a8bbc(0x1df)][_0x4a8bbc(0x273)](d);function f(_0x4e740b){'@babel/helpers - typeof';const _0x3c7486=_0x4a8bbc;return f=typeof Symbol=='function'&&typeof Symbol[_0x3c7486(0x27d)]=='symbol'?function(_0x44cb9b){return typeof _0x44cb9b;}:function(_0x1c70fd){const _0xe9ebb9=_0x3c7486;return _0x1c70fd&&typeof Symbol==_0xe9ebb9(0x30a)&&_0x1c70fd[_0xe9ebb9(0x2a8)]===Symbol&&_0x1c70fd!==Symbol['prototype']?'symbol':typeof _0x1c70fd;},f(_0x4e740b);}function p(_0x56484d,_0x206e8c){const _0x22bc08=_0x4a8bbc;if(f(_0x56484d)!=_0x22bc08(0x22a)||!_0x56484d)return _0x56484d;var _0x1be423=_0x56484d[Symbol[_0x22bc08(0x24a)]];if(_0x1be423!==void 0x0){var _0x129ac2=_0x1be423[_0x22bc08(0x1e9)](_0x56484d,_0x206e8c||_0x22bc08(0x240));if(f(_0x129ac2)!='object')return _0x129ac2;throw TypeError(_0x22bc08(0x2ec));}return(_0x206e8c===_0x22bc08(0x2b0)?String:Number)(_0x56484d);}function m(_0x372adb){const _0x46f6b5=_0x4a8bbc;var _0x434002=p(_0x372adb,_0x46f6b5(0x2b0));return f(_0x434002)==_0x46f6b5(0x1b7)?_0x434002:_0x434002+'';}function h(_0x2c6e6b,_0x3e0514,_0x7b22f8){const _0x74d049=_0x4a8bbc;return(_0x3e0514=m(_0x3e0514))in _0x2c6e6b?Object[_0x74d049(0x2a9)](_0x2c6e6b,_0x3e0514,{'value':_0x7b22f8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2c6e6b[_0x3e0514]=_0x7b22f8,_0x2c6e6b;}const g=u;var _=class extends Error{constructor(_0x566fb2,_0x329230,_0x2100b6={}){const _0x53fc8f=_0x4a8bbc;super(_0x329230),this[_0x53fc8f(0x224)]=_0x566fb2,this[_0x53fc8f(0x279)]=_0x2100b6,h(this,_0x53fc8f(0x1b0),_0x53fc8f(0x215));}};function v(_0x4a84ee){return _0x4a84ee instanceof _;}function y(_0x1118f3,_0x113c18,_0x506839={}){const _0x2eb4f1=_0x4a8bbc;if(!_0x113c18)throw new _(g[_0x2eb4f1(0x1de)],_0x2eb4f1(0x203)+_0x1118f3,{..._0x506839,'commandId':_0x1118f3});}const b={'BaseCreating':_0x4a8bbc(0x301),'BaseCreated':_0x4a8bbc(0x2ef),'BaseReady':_0x4a8bbc(0x1ca),'BeforeBaseTableCreate':_0x4a8bbc(0x1c5),'BeforeBaseFieldCreate':_0x4a8bbc(0x308),'BeforeBaseRecordCreate':_0x4a8bbc(0x2b3),'BeforeBaseCellValueChange':_0x4a8bbc(0x27e),'BeforeBaseViewCreate':'BeforeBaseViewCreate','BaseTableChanged':_0x4a8bbc(0x30e),'BaseFieldChanged':'BaseFieldChanged','BaseRecordChanged':'BaseRecordChanged','BaseCellValueChanged':'BaseCellValueChanged','BaseViewChanged':_0x4a8bbc(0x312),'BaseBatchChanged':_0x4a8bbc(0x2ee),'TableChanged':_0x4a8bbc(0x208),'FieldChanged':_0x4a8bbc(0x262),'RecordChanged':_0x4a8bbc(0x2aa),'CellValueChanged':'CellValueChanged','ViewChanged':_0x4a8bbc(0x305)};var x=class extends e[_0x4a8bbc(0x304)]{get[_0x4a8bbc(0x301)](){const _0x4db624=_0x4a8bbc;return _0x4db624(0x301);}get['BaseCreated'](){const _0x176556=_0x4a8bbc;return _0x176556(0x2ef);}get[_0x4a8bbc(0x1ca)](){const _0x3c42ed=_0x4a8bbc;return _0x3c42ed(0x1ca);}get['BeforeBaseTableCreate'](){const _0x112657=_0x4a8bbc;return _0x112657(0x1c5);}get['BeforeBaseFieldCreate'](){const _0x2c6beb=_0x4a8bbc;return _0x2c6beb(0x308);}get[_0x4a8bbc(0x2b3)](){return'BeforeBaseRecordCreate';}get['BeforeBaseCellValueChange'](){const _0x3889ff=_0x4a8bbc;return _0x3889ff(0x27e);}get['BeforeBaseViewCreate'](){const _0x4befd6=_0x4a8bbc;return _0x4befd6(0x2f3);}get[_0x4a8bbc(0x30e)](){const _0x4f6f4a=_0x4a8bbc;return _0x4f6f4a(0x30e);}get[_0x4a8bbc(0x24d)](){const _0x3937a2=_0x4a8bbc;return _0x3937a2(0x24d);}get[_0x4a8bbc(0x2ad)](){const _0x1f1e56=_0x4a8bbc;return _0x1f1e56(0x2ad);}get[_0x4a8bbc(0x1f5)](){const _0x294bdb=_0x4a8bbc;return _0x294bdb(0x1f5);}get['BaseViewChanged'](){const _0x3e16ea=_0x4a8bbc;return _0x3e16ea(0x312);}get[_0x4a8bbc(0x2ee)](){const _0x32bc96=_0x4a8bbc;return _0x32bc96(0x2ee);}get['TableChanged'](){const _0x5f337c=_0x4a8bbc;return _0x5f337c(0x208);}get[_0x4a8bbc(0x262)](){const _0x2ca72f=_0x4a8bbc;return _0x2ca72f(0x262);}get['RecordChanged'](){return'RecordChanged';}get['CellValueChanged'](){return'CellValueChanged';}get[_0x4a8bbc(0x305)](){const _0x929b68=_0x4a8bbc;return _0x929b68(0x305);}};e['FEventName'][_0x4a8bbc(0x273)](x);var S=class{constructor(_0x179eb5,_0x162529){const _0xb5325d=_0x4a8bbc;this[_0xb5325d(0x2cf)]=_0x179eb5,this[_0xb5325d(0x2af)]=_0x162529;}[_0x4a8bbc(0x296)](_0x44789a){const _0x45a235=_0x4a8bbc;this[_0x45a235(0x2af)][_0x45a235(0x296)](this[_0x45a235(0x2cf)],_0x44789a);}[_0x4a8bbc(0x26a)](_0x49bc6c,_0x37ca5){const _0x2fb465=_0x4a8bbc;this['_permissionService'][_0x2fb465(0x26a)](_0x49bc6c,_0x37ca5);}[_0x4a8bbc(0x259)](_0x4b8a4d,_0x1881d8,_0x37730a){const _0x5be5bc=_0x4a8bbc;this[_0x5be5bc(0x2af)]['setFieldPermission'](_0x4b8a4d,_0x1881d8,_0x37730a);}['setRecordPermission'](_0x107e10,_0x1118ba,_0xfa9e52){const _0x9e933=_0x4a8bbc;this[_0x9e933(0x2af)][_0x9e933(0x335)](_0x107e10,_0x1118ba,_0xfa9e52);}[_0x4a8bbc(0x348)](){const _0x5fa45e=_0x4a8bbc;this[_0x5fa45e(0x2af)][_0x5fa45e(0x348)](this['_baseId']);}[_0x4a8bbc(0x28c)](_0x19d9e1){this['_permissionService']['clearTablePermission'](_0x19d9e1);}[_0x4a8bbc(0x1fe)](_0x5148a4,_0x13ae98){const _0x5a4941=_0x4a8bbc;this['_permissionService'][_0x5a4941(0x1fe)](_0x5148a4,_0x13ae98);}[_0x4a8bbc(0x1cd)](_0x16700a,_0x104492){const _0x547331=_0x4a8bbc;this[_0x547331(0x2af)][_0x547331(0x1cd)](_0x16700a,_0x104492);}['canCreateTable'](){const _0x2adb96=_0x4a8bbc;return this[_0x2adb96(0x2af)]['canCreateTable'](this[_0x2adb96(0x2cf)]);}[_0x4a8bbc(0x28f)](_0x5edfe5){return this['_permissionService']['canDeleteTable'](_0x5edfe5);}[_0x4a8bbc(0x1ce)](_0xc91852){const _0x55fa6d=_0x4a8bbc;return this['_permissionService'][_0x55fa6d(0x1ce)](_0xc91852);}[_0x4a8bbc(0x346)](_0xaf5a08,_0x1cc96b){const _0x1b7d2d=_0x4a8bbc;return this['_permissionService'][_0x1b7d2d(0x346)](_0xaf5a08,_0x1cc96b);}['canDeleteField'](_0x181bd7,_0x4a302f){const _0x2ecf98=_0x4a8bbc;return this[_0x2ecf98(0x2af)][_0x2ecf98(0x31a)](_0x181bd7,_0x4a302f);}[_0x4a8bbc(0x2a4)](_0x3d6a98){const _0x1dea7b=_0x4a8bbc;return this[_0x1dea7b(0x2af)][_0x1dea7b(0x2a4)](_0x3d6a98);}[_0x4a8bbc(0x29e)](_0x3f2b43,_0x1e8edd){const _0x289fb9=_0x4a8bbc;return this['_permissionService'][_0x289fb9(0x29e)](_0x3f2b43,_0x1e8edd);}['canEditCell'](_0x580efb,_0x4acb4b,_0x34c26f){const _0x19209e=_0x4a8bbc;return this[_0x19209e(0x2af)][_0x19209e(0x2c5)](_0x580efb,_0x4acb4b,_0x34c26f);}[_0x4a8bbc(0x1bb)](_0x1a08cf,_0x30404f){const _0x5e5480=_0x4a8bbc;return this[_0x5e5480(0x2af)][_0x5e5480(0x1bb)](_0x1a08cf,_0x30404f);}[_0x4a8bbc(0x2d2)](){const _0x5c4b37=_0x4a8bbc;return this[_0x5c4b37(0x2af)]['getSnapshot']();}},C=class{constructor(_0x39b7c4,_0x12252b){const _0x3ab49b=_0x4a8bbc;this[_0x3ab49b(0x2f7)]=_0x39b7c4,this[_0x3ab49b(0x2af)]=_0x12252b;}[_0x4a8bbc(0x236)](_0x332a1e){const _0x18ec2f=_0x4a8bbc;this[_0x18ec2f(0x2af)][_0x18ec2f(0x26a)](this[_0x18ec2f(0x2f7)],_0x332a1e);}[_0x4a8bbc(0x239)](){const _0x3b3791=_0x4a8bbc;this['_permissionService'][_0x3b3791(0x28c)](this[_0x3b3791(0x2f7)]);}[_0x4a8bbc(0x28f)](){const _0x15e420=_0x4a8bbc;return this['_permissionService'][_0x15e420(0x28f)](this[_0x15e420(0x2f7)]);}[_0x4a8bbc(0x1ce)](){const _0x19e7ca=_0x4a8bbc;return this[_0x19e7ca(0x2af)][_0x19e7ca(0x1ce)](this[_0x19e7ca(0x2f7)]);}['canCreateRecord'](){const _0x59427d=_0x4a8bbc;return this[_0x59427d(0x2af)][_0x59427d(0x2a4)](this[_0x59427d(0x2f7)]);}[_0x4a8bbc(0x1bb)](_0xbb734e){const _0x4020a0=_0x4a8bbc;return this[_0x4020a0(0x2af)]['canManageView'](this[_0x4020a0(0x2f7)],_0xbb734e);}[_0x4a8bbc(0x2c5)](_0x5ac7f2,_0x269320){const _0x4dd961=_0x4a8bbc;return this[_0x4dd961(0x2af)][_0x4dd961(0x2c5)](this[_0x4dd961(0x2f7)],_0x5ac7f2,_0x269320);}},w=class{constructor(_0xa6d48f,_0x355764,_0x3a0113,_0x24236b){const _0xf6c1cb=_0x4a8bbc;this[_0xf6c1cb(0x2bd)]=_0xa6d48f,this['_tableId']=_0x355764,this[_0xf6c1cb(0x2d5)]=_0x3a0113,this['_commandService']=_0x24236b;}['getId'](){const _0x58628f=_0x4a8bbc;return this[_0x58628f(0x2d5)];}[_0x4a8bbc(0x1ea)](){const _0x51d77d=_0x4a8bbc;return this[_0x51d77d(0x345)]();}['getSnapshot'](){const _0x1f1fa4=_0x4a8bbc;return this[_0x1f1fa4(0x345)]();}[_0x4a8bbc(0x1a2)](){const _0x3c4cb7=_0x4a8bbc;return this[_0x3c4cb7(0x345)]()[_0x3c4cb7(0x1b0)];}['getType'](){return this['_getField']()['type'];}['getConfig'](){const _0x534a14=_0x4a8bbc;return this[_0x534a14(0x345)]()['config'];}['getDefaultValue'](){const _0x3bcd21=_0x4a8bbc;return this['_getField']()[_0x3bcd21(0x2b2)];}['getDescription'](){const _0x6c712b=_0x4a8bbc;return this[_0x6c712b(0x345)]()[_0x6c712b(0x1d2)];}['isReadonly'](){const _0x26cd10=_0x4a8bbc;return!!this[_0x26cd10(0x345)]()[_0x26cd10(0x264)];}[_0x4a8bbc(0x1dc)](_0x4ddca9){const _0x35bbab=_0x4a8bbc;this[_0x35bbab(0x338)]({'name':_0x4ddca9});}['setConfig'](_0x367ab6){const _0x3a9cd5=_0x4a8bbc;this[_0x3a9cd5(0x338)]({'config':_0x367ab6});}['setDefaultValue'](_0x318711){const _0x2e25f6=_0x4a8bbc;this[_0x2e25f6(0x338)]({'defaultValue':_0x318711});}[_0x4a8bbc(0x338)](_0xdfebc9){const _0x5b3bce=_0x4a8bbc;y(t[_0x5b3bce(0x2d7)]['id'],this[_0x5b3bce(0x1b9)]['syncExecuteCommand'](t[_0x5b3bce(0x2d7)]['id'],{'unitId':this[_0x5b3bce(0x2bd)][_0x5b3bce(0x1d8)](),'tableId':this[_0x5b3bce(0x2f7)],'fieldId':this[_0x5b3bce(0x2d5)],'patch':_0xdfebc9}),{'unitId':this[_0x5b3bce(0x2bd)][_0x5b3bce(0x1d8)](),'tableId':this[_0x5b3bce(0x2f7)],'fieldId':this[_0x5b3bce(0x2d5)]});}['changeType'](_0x402ab9){const _0x1c37fb=_0x4a8bbc;y(t[_0x1c37fb(0x1d7)]['id'],this['_commandService'][_0x1c37fb(0x28a)](t[_0x1c37fb(0x1d7)]['id'],{'unitId':this[_0x1c37fb(0x2bd)][_0x1c37fb(0x1d8)](),'tableId':this[_0x1c37fb(0x2f7)],'fieldId':this[_0x1c37fb(0x2d5)],'input':_0x402ab9}),{'unitId':this[_0x1c37fb(0x2bd)][_0x1c37fb(0x1d8)](),'tableId':this[_0x1c37fb(0x2f7)],'fieldId':this[_0x1c37fb(0x2d5)]});}[_0x4a8bbc(0x1e6)](){const _0x14606c=_0x4a8bbc;y(t[_0x14606c(0x1ec)]['id'],this['_commandService'][_0x14606c(0x28a)](t['DeleteBaseFieldCommand']['id'],{'unitId':this['_base'][_0x14606c(0x1d8)](),'tableId':this[_0x14606c(0x2f7)],'fieldId':this[_0x14606c(0x2d5)]}),{'unitId':this[_0x14606c(0x2bd)][_0x14606c(0x1d8)](),'tableId':this[_0x14606c(0x2f7)],'fieldId':this['_fieldId']});}[_0x4a8bbc(0x2c3)](_0x32ac53){const _0x2cdb87=_0x4a8bbc;y(t[_0x2cdb87(0x2a0)]['id'],this[_0x2cdb87(0x1b9)][_0x2cdb87(0x28a)](t[_0x2cdb87(0x2a0)]['id'],{'unitId':this['_base'][_0x2cdb87(0x1d8)](),'tableId':this[_0x2cdb87(0x2f7)],'fieldId':this[_0x2cdb87(0x2d5)],'target':_0x32ac53}),{'unitId':this[_0x2cdb87(0x2bd)]['getUnitId'](),'tableId':this[_0x2cdb87(0x2f7)],'fieldId':this['_fieldId']});}[_0x4a8bbc(0x345)](){const _0x264ccd=_0x4a8bbc;var _0x89c80f;let _0x3e3eb1=(_0x89c80f=this[_0x264ccd(0x2bd)][_0x264ccd(0x2d2)]()['tables'][this['_tableId']])==null?void 0x0:_0x89c80f[_0x264ccd(0x2db)][this[_0x264ccd(0x2d5)]];if(!_0x3e3eb1||_0x3e3eb1['deleted'])throw Error(_0x264ccd(0x31e)+this[_0x264ccd(0x2d5)]+_0x264ccd(0x20c));return _0x3e3eb1;}},T=class e{constructor(_0x584bdb,_0x1bab6b,_0x4e4157,_0x4febe5){const _0x1de9b0=_0x4a8bbc;this[_0x1de9b0(0x2bd)]=_0x584bdb,this[_0x1de9b0(0x2f7)]=_0x1bab6b,this[_0x1de9b0(0x204)]=_0x4e4157,this[_0x1de9b0(0x1b9)]=_0x4febe5,this[_0x1de9b0(0x235)]();}[_0x4a8bbc(0x1d8)](){const _0x256ce4=_0x4a8bbc;return this[_0x256ce4(0x2bd)][_0x256ce4(0x1d8)]();}[_0x4a8bbc(0x250)](){const _0x5b2538=_0x4a8bbc;return this[_0x5b2538(0x2bd)][_0x5b2538(0x1d8)]();}[_0x4a8bbc(0x2dc)](){const _0x261423=_0x4a8bbc;return this[_0x261423(0x2f7)];}[_0x4a8bbc(0x233)](){const _0x5466df=_0x4a8bbc;return{...this[_0x5466df(0x204)]};}['getRow'](){const _0x21bc89=_0x4a8bbc;return this[_0x21bc89(0x204)]['startRow'];}['getColumn'](){const _0xdd44a4=_0x4a8bbc;return this[_0xdd44a4(0x204)][_0xdd44a4(0x337)];}[_0x4a8bbc(0x2e7)](){const _0x54d0d6=_0x4a8bbc;return this[_0x54d0d6(0x204)][_0x54d0d6(0x28d)]-this[_0x54d0d6(0x204)][_0x54d0d6(0x272)]+0x1;}[_0x4a8bbc(0x199)](){const _0x1d5517=_0x4a8bbc;return this[_0x1d5517(0x204)][_0x1d5517(0x2dd)]-this[_0x1d5517(0x204)]['startColumn']+0x1;}[_0x4a8bbc(0x19e)](){const _0x96e4eb=_0x4a8bbc;let _0x1315d0=this['_getTable'](),_0x1527d4=[];for(let _0x5b226c=this['_range'][_0x96e4eb(0x272)];_0x5b226c<=this[_0x96e4eb(0x204)][_0x96e4eb(0x28d)];_0x5b226c++){var _0x182a51;let _0x8336c2=(_0x182a51=_0x1315d0[_0x96e4eb(0x212)])==null?void 0x0:_0x182a51[_0x5b226c],_0x5bbcec=[];for(let _0x120266=this[_0x96e4eb(0x204)][_0x96e4eb(0x337)];_0x120266<=this[_0x96e4eb(0x204)][_0x96e4eb(0x2dd)];_0x120266++){var _0x2e4cae;let _0x39f3c9=(_0x2e4cae=_0x1315d0[_0x96e4eb(0x290)])==null?void 0x0:_0x2e4cae[_0x120266];_0x5bbcec[_0x96e4eb(0x1ae)](_0x8336c2&&_0x39f3c9?(0x0,t[_0x96e4eb(0x1c7)])(_0x1315d0,_0x8336c2,_0x39f3c9):null);}_0x1527d4[_0x96e4eb(0x1ae)](_0x5bbcec);}return _0x1527d4;}[_0x4a8bbc(0x2b8)](){const _0x3bcef0=_0x4a8bbc;var _0x2f247f,_0x2639d2;return(_0x2f247f=(_0x2639d2=this[_0x3bcef0(0x19e)]()[0x0])==null?void 0x0:_0x2639d2[0x0])==null?null:_0x2f247f;}[_0x4a8bbc(0x25f)](_0x585c72){const _0xc154e=_0x4a8bbc;this[_0xc154e(0x289)]([[_0x585c72]]);}[_0x4a8bbc(0x289)](_0x338bc0){const _0x182d85=_0x4a8bbc;if(_0x338bc0['length']!==this[_0x182d85(0x2e7)]()||_0x338bc0['some'](_0x4ea4ae=>_0x4ea4ae[_0x182d85(0x2f2)]!==this[_0x182d85(0x199)]())){var _0x3da8e7,_0x2bc5d6;throw Error(_0x182d85(0x1fc)+_0x338bc0[_0x182d85(0x2f2)]+'x'+((_0x3da8e7=(_0x2bc5d6=_0x338bc0[0x0])==null?void 0x0:_0x2bc5d6[_0x182d85(0x2f2)])==null?0x0:_0x3da8e7)+_0x182d85(0x2d3)+this['getNumRows']()+'x'+this[_0x182d85(0x199)]()+'.');}let _0xebbac9=_0x338bc0[_0x182d85(0x254)]((_0x20a158,_0x18d2cb)=>_0x20a158[_0x182d85(0x2e6)]((_0x3d1ff1,_0xd572e5)=>({'row':this[_0x182d85(0x204)][_0x182d85(0x272)]+_0x18d2cb,'col':this[_0x182d85(0x204)]['startColumn']+_0xd572e5,'value':_0x3d1ff1})));y(t['SetBaseRangeValuesCommand']['id'],this['_commandService'][_0x182d85(0x28a)](t[_0x182d85(0x2a3)]['id'],{'unitId':this[_0x182d85(0x2bd)][_0x182d85(0x1d8)](),'tableId':this['_tableId'],'patches':_0xebbac9}),{'unitId':this['_base'][_0x182d85(0x1d8)](),'tableId':this[_0x182d85(0x2f7)]});}[_0x4a8bbc(0x2df)](){const _0x446e4a=_0x4a8bbc;this[_0x446e4a(0x289)](Array[_0x446e4a(0x26b)]({'length':this[_0x446e4a(0x2e7)]()},()=>Array['from']({'length':this[_0x446e4a(0x199)]()},()=>null)));}['offset'](_0x62bdf5,_0x52422b,_0x2ec633=this[_0x4a8bbc(0x2e7)](),_0x4c7b52=this['getNumColumns']()){const _0x452917=_0x4a8bbc;return new e(this[_0x452917(0x2bd)],this[_0x452917(0x2f7)],{'startRow':this[_0x452917(0x204)]['startRow']+_0x62bdf5,'startColumn':this[_0x452917(0x204)][_0x452917(0x337)]+_0x52422b,'endRow':this[_0x452917(0x204)]['startRow']+_0x62bdf5+_0x2ec633-0x1,'endColumn':this[_0x452917(0x204)]['startColumn']+_0x52422b+_0x4c7b52-0x1},this['_commandService']);}['_getTable'](){const _0x2c1b0d=_0x4a8bbc;let _0x37691c=this[_0x2c1b0d(0x2bd)][_0x2c1b0d(0x2d2)]()['tables'][this['_tableId']];if(!_0x37691c||_0x37691c[_0x2c1b0d(0x20f)])throw Error('[FBaseRange]:\x20table\x20\x22'+this[_0x2c1b0d(0x2f7)]+_0x2c1b0d(0x20c));return(0x0,t[_0x2c1b0d(0x267)])(_0x37691c);}[_0x4a8bbc(0x235)](){const _0x4cbc2c=_0x4a8bbc;var _0x4b6ec0,_0x298e45;let _0x52361c=this['_getTable'](),_0x1530ef=(_0x4b6ec0=(_0x298e45=_0x52361c['recordOrder'])==null?void 0x0:_0x298e45['length'])==null?0x0:_0x4b6ec0,_0x48f433=_0x52361c[_0x4cbc2c(0x288)]['length'];if(this['_range'][_0x4cbc2c(0x272)]<0x0||this[_0x4cbc2c(0x204)][_0x4cbc2c(0x337)]<0x0||this[_0x4cbc2c(0x204)]['endRow']<this[_0x4cbc2c(0x204)][_0x4cbc2c(0x272)]||this[_0x4cbc2c(0x204)][_0x4cbc2c(0x2dd)]<this[_0x4cbc2c(0x204)][_0x4cbc2c(0x337)]||this[_0x4cbc2c(0x204)][_0x4cbc2c(0x28d)]>=Math[_0x4cbc2c(0x34a)](_0x1530ef,0x1)||this[_0x4cbc2c(0x204)][_0x4cbc2c(0x2dd)]>=Math[_0x4cbc2c(0x34a)](_0x48f433,0x1))throw Error(_0x4cbc2c(0x30f)+_0x1530ef+_0x4cbc2c(0x33a)+_0x48f433+_0x4cbc2c(0x343)+JSON['stringify'](this['_range'])+'.');}};function E(_0x1d48a7,_0x3961f6,_0x5c2d72=s['Id']){const _0x3e638e=_0x4a8bbc;if(!_0x3961f6)return{};let _0x1d2915={};return Object['entries'](_0x3961f6)[_0x3e638e(0x1c8)](([_0x5418dd,_0x1e5299])=>{_0x1d2915[D(_0x1d48a7,_0x5418dd,_0x5c2d72)]=_0x1e5299;}),_0x1d2915;}function D(_0x1fa453,_0x47f5e5,_0x470829){const _0x58f9ad=_0x4a8bbc;if(_0x470829===s['Id'])return _0x47f5e5;if(_0x470829===s['Auto']){let _0x44e7ad=_0x1fa453[_0x58f9ad(0x2db)][_0x47f5e5];if(_0x44e7ad&&!_0x44e7ad['deleted'])return _0x47f5e5;}let _0xce62f0=Object[_0x58f9ad(0x2fc)](_0x1fa453['fields'])[_0x58f9ad(0x2de)](_0x56c47e=>!_0x56c47e['deleted']&&_0x56c47e[_0x58f9ad(0x1b0)]===_0x47f5e5);if(_0xce62f0[_0x58f9ad(0x2f2)]===0x1)return _0xce62f0[0x0]['id'];throw _0xce62f0[_0x58f9ad(0x2f2)]>0x1?new _(g['DuplicateFieldName'],'Duplicate\x20Base\x20field\x20name:\x20'+_0x47f5e5,{'tableId':_0x1fa453['id'],'fieldName':_0x47f5e5,'fieldIds':_0xce62f0['map'](_0x3610a0=>_0x3610a0['id'])}):new _(g[_0x58f9ad(0x2ac)],'Base\x20field\x20not\x20found:\x20'+_0x47f5e5,{'tableId':_0x1fa453['id'],'fieldName':_0x47f5e5,'fieldKey':_0x470829});}var O=class e{constructor(_0x5d67ce,_0xd6b845,_0x461b89,_0x4d4e8f){const _0x20369a=_0x4a8bbc;this[_0x20369a(0x2bd)]=_0x5d67ce,this['_tableId']=_0xd6b845,this[_0x20369a(0x1e0)]=_0x461b89,this[_0x20369a(0x1b9)]=_0x4d4e8f;}[_0x4a8bbc(0x27f)](){const _0x5bd42f=_0x4a8bbc;return this[_0x5bd42f(0x1e0)];}[_0x4a8bbc(0x306)](){const _0x3276ec=_0x4a8bbc;return this[_0x3276ec(0x293)]();}[_0x4a8bbc(0x2d2)](){const _0x58960e=_0x4a8bbc;return this[_0x58960e(0x293)]();}[_0x4a8bbc(0x2b8)](_0x362e2d){const _0x226408=_0x4a8bbc;var _0x19e2d3;return(_0x19e2d3=this[_0x226408(0x293)]()['values'][_0x362e2d])==null?null:_0x19e2d3;}['getValues'](){const _0x1f2f69=_0x4a8bbc;return{...this['_getRecord']()[_0x1f2f69(0x2fc)]};}[_0x4a8bbc(0x25f)](_0x3be76a,_0x3a7c99){const _0x2f54de=_0x4a8bbc;y(t[_0x2f54de(0x1f7)]['id'],this[_0x2f54de(0x1b9)][_0x2f54de(0x28a)](t[_0x2f54de(0x1f7)]['id'],{'unitId':this[_0x2f54de(0x2bd)]['getUnitId'](),'tableId':this[_0x2f54de(0x2f7)],'recordId':this[_0x2f54de(0x1e0)],'fieldId':_0x3be76a,'value':_0x3a7c99}),{'unitId':this[_0x2f54de(0x2bd)][_0x2f54de(0x1d8)](),'tableId':this[_0x2f54de(0x2f7)],'recordId':this[_0x2f54de(0x1e0)],'fieldId':_0x3be76a});}['setValues'](_0x2fc59f,_0x18bda3={}){const _0x229368=_0x4a8bbc;var _0x51bb4c;let _0x1a4cc6=this['_base'][_0x229368(0x2d2)]()[_0x229368(0x297)][this['_tableId']];y(t['SetBaseRecordValuesCommand']['id'],this[_0x229368(0x1b9)][_0x229368(0x28a)](t[_0x229368(0x23a)]['id'],{'unitId':this[_0x229368(0x2bd)][_0x229368(0x1d8)](),'tableId':this[_0x229368(0x2f7)],'patches':[{'recordId':this['_recordId'],'values':E(_0x1a4cc6,_0x2fc59f,(_0x51bb4c=_0x18bda3['fieldKey'])==null?'id':_0x51bb4c)}]}),{'unitId':this[_0x229368(0x2bd)][_0x229368(0x1d8)](),'tableId':this[_0x229368(0x2f7)],'recordId':this[_0x229368(0x1e0)]});}[_0x4a8bbc(0x1e6)](){const _0x549b19=_0x4a8bbc;y(t[_0x549b19(0x2cc)]['id'],this[_0x549b19(0x1b9)][_0x549b19(0x28a)](t[_0x549b19(0x2cc)]['id'],{'unitId':this[_0x549b19(0x2bd)]['getUnitId'](),'tableId':this[_0x549b19(0x2f7)],'recordId':this['_recordId']}),{'unitId':this[_0x549b19(0x2bd)][_0x549b19(0x1d8)](),'tableId':this[_0x549b19(0x2f7)],'recordId':this['_recordId']});}['duplicate'](_0x3f4208={}){const _0x39d2db=_0x4a8bbc;var _0x3261bd,_0x490fce,_0x463db3;let _0x37984b=Date[_0x39d2db(0x1c4)](),_0x241643={'id':(_0x3261bd=_0x3f4208['id'])==null?k(_0x39d2db(0x261)):_0x3261bd,'values':(_0x490fce=_0x3f4208[_0x39d2db(0x2fc)])==null?{}:_0x490fce,'orderKey':(_0x463db3=_0x3f4208[_0x39d2db(0x24c)])==null?''+_0x37984b:_0x463db3,'createdAt':_0x37984b,'updatedAt':_0x37984b};return y(t[_0x39d2db(0x27a)]['id'],this[_0x39d2db(0x1b9)]['syncExecuteCommand'](t[_0x39d2db(0x27a)]['id'],{'unitId':this[_0x39d2db(0x2bd)][_0x39d2db(0x1d8)](),'tableId':this['_tableId'],'sourceRecordId':this[_0x39d2db(0x1e0)],'record':_0x241643}),{'unitId':this[_0x39d2db(0x2bd)][_0x39d2db(0x1d8)](),'tableId':this[_0x39d2db(0x2f7)],'recordId':_0x241643['id'],'sourceRecordId':this[_0x39d2db(0x1e0)]}),new e(this['_base'],this[_0x39d2db(0x2f7)],_0x241643['id'],this[_0x39d2db(0x1b9)]);}[_0x4a8bbc(0x29d)](_0x40e61b){const _0x583f59=_0x4a8bbc;y(t['UpdateBaseRecordOrderCommand']['id'],this[_0x583f59(0x1b9)][_0x583f59(0x28a)](t[_0x583f59(0x210)]['id'],{'unitId':this[_0x583f59(0x2bd)][_0x583f59(0x1d8)](),'tableId':this['_tableId'],'recordId':this[_0x583f59(0x1e0)],'orderKey':_0x40e61b}),{'unitId':this[_0x583f59(0x2bd)][_0x583f59(0x1d8)](),'tableId':this['_tableId'],'recordId':this[_0x583f59(0x1e0)]});}['_getRecord'](){const _0x19e243=_0x4a8bbc;var _0x4bb163;let _0x488a7b=(_0x4bb163=this['_base'][_0x19e243(0x2d2)]()['tables'][this[_0x19e243(0x2f7)]])==null?void 0x0:_0x4bb163[_0x19e243(0x333)][this[_0x19e243(0x1e0)]];if(!_0x488a7b||_0x488a7b[_0x19e243(0x20f)])throw Error(_0x19e243(0x258)+this['_recordId']+'\x22\x20does\x20not\x20exist.');return _0x488a7b;}};function _0x43aa(_0x43826f,_0x113ee5){_0x43826f=_0x43826f-0x198;const _0x20b361=_0x20b3();let _0x43aae8=_0x20b361[_0x43826f];return _0x43aae8;}function k(_0x1a4b9d){const _0xb921b8=_0x4a8bbc;return _0x1a4b9d+'-'+Math[_0xb921b8(0x231)]()[_0xb921b8(0x2ae)](0x24)[_0xb921b8(0x1cf)](0x2,0xa);}var A=class{constructor(_0x25f4be,_0x2ff436,_0x369208,_0x27e353,_0x46b91a){const _0x551cb8=_0x4a8bbc;this[_0x551cb8(0x2bd)]=_0x25f4be,this[_0x551cb8(0x2f7)]=_0x2ff436,this[_0x551cb8(0x317)]=_0x369208,this[_0x551cb8(0x1b9)]=_0x27e353,this[_0x551cb8(0x294)]=_0x46b91a;}[_0x4a8bbc(0x27f)](){const _0x7a1f46=_0x4a8bbc;return this[_0x7a1f46(0x317)];}['getView'](){return this['_getView']();}[_0x4a8bbc(0x2d2)](){const _0xd94206=_0x4a8bbc;return this[_0xd94206(0x20e)]();}['getName'](){const _0x2f5b74=_0x4a8bbc;return this[_0x2f5b74(0x20e)]()[_0x2f5b74(0x1b0)];}[_0x4a8bbc(0x2ca)](){const _0x397ec2=_0x4a8bbc;return this[_0x397ec2(0x20e)]()[_0x397ec2(0x342)];}[_0x4a8bbc(0x1dc)](_0x49c392){const _0x127292=_0x4a8bbc;y(t[_0x127292(0x2d0)]['id'],this['_commandService']['syncExecuteCommand'](t['RenameBaseViewCommand']['id'],{'unitId':this[_0x127292(0x2bd)][_0x127292(0x1d8)](),'tableId':this[_0x127292(0x2f7)],'viewId':this[_0x127292(0x317)],'name':_0x49c392}),{'unitId':this[_0x127292(0x2bd)][_0x127292(0x1d8)](),'tableId':this['_tableId'],'viewId':this[_0x127292(0x317)]});}['getConfig'](){const _0x787785=_0x4a8bbc;return this[_0x787785(0x20e)]()['config'];}[_0x4a8bbc(0x284)](_0x55ef1a){const _0x2c0123=_0x4a8bbc;y(t['UpdateBaseViewConfigCommand']['id'],this[_0x2c0123(0x1b9)][_0x2c0123(0x28a)](t['UpdateBaseViewConfigCommand']['id'],{'unitId':this[_0x2c0123(0x2bd)][_0x2c0123(0x1d8)](),'tableId':this[_0x2c0123(0x2f7)],'viewId':this['_viewId'],'patch':_0x55ef1a}),{'unitId':this[_0x2c0123(0x2bd)]['getUnitId'](),'tableId':this[_0x2c0123(0x2f7)],'viewId':this[_0x2c0123(0x317)]});}[_0x4a8bbc(0x1aa)](){const _0x2fee69=_0x4a8bbc;var _0x56aa3a;return(_0x56aa3a=this['_getView']()[_0x2fee69(0x2de)])==null?null:_0x56aa3a;}['setFilter'](_0x3087d9){const _0x25823a=_0x4a8bbc;y(t[_0x25823a(0x20d)]['id'],this[_0x25823a(0x1b9)]['syncExecuteCommand'](t['SetBaseViewFilterCommand']['id'],{'unitId':this[_0x25823a(0x2bd)][_0x25823a(0x1d8)](),'tableId':this[_0x25823a(0x2f7)],'viewId':this[_0x25823a(0x317)],'filter':_0x3087d9}),{'unitId':this[_0x25823a(0x2bd)]['getUnitId'](),'tableId':this[_0x25823a(0x2f7)],'viewId':this[_0x25823a(0x317)]});}[_0x4a8bbc(0x1a7)](){const _0x2a9f6c=_0x4a8bbc;var _0xd928e;return(_0xd928e=this[_0x2a9f6c(0x20e)]()['sort'])==null?[]:_0xd928e;}[_0x4a8bbc(0x228)](_0x58496c){const _0x3c68df=_0x4a8bbc;y(t[_0x3c68df(0x1f9)]['id'],this[_0x3c68df(0x1b9)][_0x3c68df(0x28a)](t[_0x3c68df(0x1f9)]['id'],{'unitId':this['_base']['getUnitId'](),'tableId':this[_0x3c68df(0x2f7)],'viewId':this['_viewId'],'sort':_0x58496c}),{'unitId':this[_0x3c68df(0x2bd)]['getUnitId'](),'tableId':this['_tableId'],'viewId':this[_0x3c68df(0x317)]});}[_0x4a8bbc(0x2bc)](){const _0x9619c8=_0x4a8bbc;var _0x1c3985;return(_0x1c3985=this[_0x9619c8(0x20e)]()[_0x9619c8(0x2fa)])==null?[]:_0x1c3985;}['setGroup'](_0xab3393){const _0x5a6e11=_0x4a8bbc;y(t['SetBaseViewGroupCommand']['id'],this[_0x5a6e11(0x1b9)][_0x5a6e11(0x28a)](t['SetBaseViewGroupCommand']['id'],{'unitId':this[_0x5a6e11(0x2bd)][_0x5a6e11(0x1d8)](),'tableId':this[_0x5a6e11(0x2f7)],'viewId':this[_0x5a6e11(0x317)],'group':_0xab3393}),{'unitId':this[_0x5a6e11(0x2bd)][_0x5a6e11(0x1d8)](),'tableId':this[_0x5a6e11(0x2f7)],'viewId':this[_0x5a6e11(0x317)]});}['getFieldSettings'](_0x2cbe52){const _0x2ca8d6=_0x4a8bbc;var _0x764f97,_0x4fb092;return(_0x764f97=(_0x4fb092=this['_getView']()[_0x2ca8d6(0x291)])==null?void 0x0:_0x4fb092[_0x2cbe52])==null?{}:_0x764f97;}['getVisibleFields'](){const _0x2ffb0a=_0x4a8bbc;var _0x337646;let _0x163057=this[_0x2ffb0a(0x2bd)]['getSnapshot']()[_0x2ffb0a(0x297)][this[_0x2ffb0a(0x2f7)]],_0xde5f1e=this['_getView']();return((_0x337646=_0xde5f1e['fieldOrder'])==null?_0x163057[_0x2ffb0a(0x288)]:_0x337646)['map'](_0x24c5cb=>_0x163057[_0x2ffb0a(0x2db)][_0x24c5cb])[_0x2ffb0a(0x2de)](_0x170e66=>{const _0x4fc049=_0x2ffb0a;var _0x1ca537;return!!(_0x170e66&&!_0x170e66['deleted']&&!(!((_0x1ca537=_0xde5f1e[_0x4fc049(0x291)])==null||(_0x1ca537=_0x1ca537[_0x170e66['id']])==null)&&_0x1ca537[_0x4fc049(0x1ef)]));})['map'](_0x19c992=>new w(this[_0x2ffb0a(0x2bd)],this[_0x2ffb0a(0x2f7)],_0x19c992['id'],this[_0x2ffb0a(0x1b9)]));}[_0x4a8bbc(0x220)](_0x51c9e7,_0x9dd475){const _0x23603f=_0x4a8bbc;y(t[_0x23603f(0x1c6)]['id'],this[_0x23603f(0x1b9)][_0x23603f(0x28a)](t[_0x23603f(0x1c6)]['id'],{'unitId':this[_0x23603f(0x2bd)][_0x23603f(0x1d8)](),'tableId':this[_0x23603f(0x2f7)],'viewId':this['_viewId'],'fieldId':_0x51c9e7,'visible':_0x9dd475}),{'unitId':this[_0x23603f(0x2bd)][_0x23603f(0x1d8)](),'tableId':this[_0x23603f(0x2f7)],'viewId':this[_0x23603f(0x317)],'fieldId':_0x51c9e7});}[_0x4a8bbc(0x24e)](_0x35fcb7,_0x5879a5){const _0x1561f4=_0x4a8bbc;y(t[_0x1561f4(0x1b2)]['id'],this[_0x1561f4(0x1b9)][_0x1561f4(0x28a)](t[_0x1561f4(0x1b2)]['id'],{'unitId':this[_0x1561f4(0x2bd)]['getUnitId'](),'tableId':this[_0x1561f4(0x2f7)],'viewId':this[_0x1561f4(0x317)],'fieldId':_0x35fcb7,'width':_0x5879a5}),{'unitId':this[_0x1561f4(0x2bd)][_0x1561f4(0x1d8)](),'tableId':this[_0x1561f4(0x2f7)],'viewId':this[_0x1561f4(0x317)],'fieldId':_0x35fcb7});}[_0x4a8bbc(0x1c0)](_0x5c612e,_0x4dc91a){const _0x1dbb5e=_0x4a8bbc;y(t[_0x1dbb5e(0x2cb)]['id'],this[_0x1dbb5e(0x1b9)][_0x1dbb5e(0x28a)](t[_0x1dbb5e(0x2cb)]['id'],{'unitId':this[_0x1dbb5e(0x2bd)][_0x1dbb5e(0x1d8)](),'tableId':this[_0x1dbb5e(0x2f7)],'viewId':this[_0x1dbb5e(0x317)],'fieldId':_0x5c612e,'target':_0x4dc91a}),{'unitId':this['_base']['getUnitId'](),'tableId':this[_0x1dbb5e(0x2f7)],'viewId':this[_0x1dbb5e(0x317)],'fieldId':_0x5c612e});}[_0x4a8bbc(0x2c3)](_0x31f192){const _0x2f1d67=_0x4a8bbc;y(t[_0x2f1d67(0x28e)]['id'],this[_0x2f1d67(0x1b9)][_0x2f1d67(0x28a)](t[_0x2f1d67(0x28e)]['id'],{'unitId':this['_base'][_0x2f1d67(0x1d8)](),'tableId':this[_0x2f1d67(0x2f7)],'viewId':this[_0x2f1d67(0x317)],'target':_0x31f192}),{'unitId':this[_0x2f1d67(0x2bd)][_0x2f1d67(0x1d8)](),'tableId':this['_tableId'],'viewId':this[_0x2f1d67(0x317)]});}['delete'](){const _0x93ce6b=_0x4a8bbc;y(t['DeleteBaseViewCommand']['id'],this['_commandService'][_0x93ce6b(0x28a)](t[_0x93ce6b(0x227)]['id'],{'unitId':this['_base'][_0x93ce6b(0x1d8)](),'tableId':this[_0x93ce6b(0x2f7)],'viewId':this[_0x93ce6b(0x317)]}),{'unitId':this[_0x93ce6b(0x2bd)]['getUnitId'](),'tableId':this[_0x93ce6b(0x2f7)],'viewId':this[_0x93ce6b(0x317)]});}[_0x4a8bbc(0x1bc)](){const _0x32597d=_0x4a8bbc;return this[_0x32597d(0x294)]['getProjection'](this['_base'][_0x32597d(0x2d2)](),this['_tableId'],this[_0x32597d(0x317)]);}[_0x4a8bbc(0x20e)](){const _0x3b1263=_0x4a8bbc;var _0x4102b6;let _0xbcfd9a=(_0x4102b6=this[_0x3b1263(0x2bd)][_0x3b1263(0x2d2)]()[_0x3b1263(0x297)][this[_0x3b1263(0x2f7)]])==null?void 0x0:_0x4102b6['views'][this[_0x3b1263(0x317)]];if(!_0xbcfd9a||_0xbcfd9a[_0x3b1263(0x20f)])throw Error(_0x3b1263(0x332)+this[_0x3b1263(0x317)]+_0x3b1263(0x20c));return _0xbcfd9a;}},j=class{constructor(_0x8a7f23,_0x21e1ae,_0x3a1cc4,_0x322e30,_0x1fc38c){const _0x51307d=_0x4a8bbc;this[_0x51307d(0x2bd)]=_0x8a7f23,this[_0x51307d(0x2f7)]=_0x21e1ae,this['_commandService']=_0x3a1cc4,this[_0x51307d(0x294)]=_0x322e30,this['_permissionService']=_0x1fc38c;}[_0x4a8bbc(0x205)](){const _0x3138fe=_0x4a8bbc;return this[_0x3138fe(0x2bd)];}['getTable'](){return this['_getTable']();}[_0x4a8bbc(0x2d2)](){return this['_getTable']();}['getId'](){return this['_tableId'];}[_0x4a8bbc(0x1a2)](){const _0x56dc56=_0x4a8bbc;return this[_0x56dc56(0x32d)]()[_0x56dc56(0x1b0)];}[_0x4a8bbc(0x2e3)](){const _0x168567=_0x4a8bbc;return this['_getTable']()[_0x168567(0x198)];}['setName'](_0x4a6e97){const _0x16a08a=_0x4a8bbc;y(t[_0x16a08a(0x22d)]['id'],this[_0x16a08a(0x1b9)][_0x16a08a(0x28a)](t[_0x16a08a(0x22d)]['id'],{'unitId':this[_0x16a08a(0x2bd)][_0x16a08a(0x1d8)](),'tableId':this['_tableId'],'name':_0x4a6e97}),{'unitId':this[_0x16a08a(0x2bd)][_0x16a08a(0x1d8)](),'tableId':this[_0x16a08a(0x2f7)]});}[_0x4a8bbc(0x2a2)](){const _0x36e81e=_0x4a8bbc;let _0x215ee0=this[_0x36e81e(0x32d)]();return _0x215ee0[_0x36e81e(0x288)][_0x36e81e(0x2e6)](_0xacab09=>_0x215ee0[_0x36e81e(0x2db)][_0xacab09])[_0x36e81e(0x2de)](_0x269363=>!!(_0x269363&&!_0x269363['deleted']))['map'](_0x34d03d=>this[_0x36e81e(0x249)](_0x34d03d['id']));}['listFields'](){const _0x2ebb92=_0x4a8bbc;return this[_0x2ebb92(0x2a2)]();}[_0x4a8bbc(0x1ea)](_0x2cfda0){const _0x47d6f5=_0x4a8bbc;let _0x55a244=this[_0x47d6f5(0x32d)]()[_0x47d6f5(0x2db)][_0x2cfda0];return _0x55a244&&!_0x55a244['deleted']?this[_0x47d6f5(0x249)](_0x55a244['id']):null;}[_0x4a8bbc(0x29c)](_0x3ac19e){return this['getField'](_0x3ac19e);}[_0x4a8bbc(0x243)](_0x5ded9e){const _0x109f09=_0x4a8bbc;let _0x34b4b8=Object[_0x109f09(0x2fc)](this[_0x109f09(0x32d)]()[_0x109f09(0x2db)])[_0x109f09(0x2fe)](_0x3cc30d=>!_0x3cc30d['deleted']&&_0x3cc30d[_0x109f09(0x1b0)]===_0x5ded9e);return _0x34b4b8?this[_0x109f09(0x249)](_0x34b4b8['id']):null;}[_0x4a8bbc(0x207)](){const _0x34b351=_0x4a8bbc;return this[_0x34b351(0x249)](this['_getTable']()[_0x34b351(0x198)]);}[_0x4a8bbc(0x222)](_0xca6bd0){const _0x509635=_0x4a8bbc;var _0x58979f,_0x3cbe4b;let _0xbb0dbd={'id':(_0x58979f=_0xca6bd0['id'])==null?B(_0x509635(0x1bd)):_0x58979f,'name':_0xca6bd0[_0x509635(0x1b0)],'type':_0xca6bd0['type'],'config':(_0x3cbe4b=_0xca6bd0[_0x509635(0x1e4)])==null?{}:_0x3cbe4b,'defaultValue':_0xca6bd0[_0x509635(0x2b2)],'description':_0xca6bd0['description'],'readonly':_0xca6bd0[_0x509635(0x264)]};return y(t['CreateBaseFieldCommand']['id'],this['_commandService'][_0x509635(0x28a)](t[_0x509635(0x1fb)]['id'],{'unitId':this[_0x509635(0x2bd)][_0x509635(0x1d8)](),'tableId':this[_0x509635(0x2f7)],'field':_0xbb0dbd,'index':_0xca6bd0[_0x509635(0x1a5)]}),{'unitId':this[_0x509635(0x2bd)][_0x509635(0x1d8)](),'tableId':this['_tableId'],'fieldId':_0xbb0dbd['id']}),this['_wrapField'](_0xbb0dbd['id']);}['createField'](_0x7f4d8e){return this['addField'](_0x7f4d8e);}[_0x4a8bbc(0x336)](_0x568d94,_0x37a5e8){const _0x3fc48e=_0x4a8bbc;y(t[_0x3fc48e(0x2d7)]['id'],this['_commandService']['syncExecuteCommand'](t[_0x3fc48e(0x2d7)]['id'],{'unitId':this[_0x3fc48e(0x2bd)][_0x3fc48e(0x1d8)](),'tableId':this['_tableId'],'fieldId':_0x568d94,'patch':_0x37a5e8}),{'unitId':this[_0x3fc48e(0x2bd)]['getUnitId'](),'tableId':this[_0x3fc48e(0x2f7)],'fieldId':_0x568d94});}[_0x4a8bbc(0x1a4)](_0x51e9f7,_0x4a5710){const _0x36f468=_0x4a8bbc;y(t[_0x36f468(0x1d7)]['id'],this[_0x36f468(0x1b9)][_0x36f468(0x28a)](t['ChangeBaseFieldTypeCommand']['id'],{'unitId':this[_0x36f468(0x2bd)]['getUnitId'](),'tableId':this['_tableId'],'fieldId':_0x51e9f7,'input':_0x4a5710}),{'unitId':this[_0x36f468(0x2bd)][_0x36f468(0x1d8)](),'tableId':this['_tableId'],'fieldId':_0x51e9f7});}[_0x4a8bbc(0x245)](_0x45e723){const _0x3eb785=_0x4a8bbc;y(t[_0x3eb785(0x1ec)]['id'],this[_0x3eb785(0x1b9)][_0x3eb785(0x28a)](t[_0x3eb785(0x1ec)]['id'],{'unitId':this[_0x3eb785(0x2bd)]['getUnitId'](),'tableId':this['_tableId'],'fieldId':_0x45e723}),{'unitId':this[_0x3eb785(0x2bd)]['getUnitId'](),'tableId':this['_tableId'],'fieldId':_0x45e723});}[_0x4a8bbc(0x1c0)](_0x14d27f,_0x3edd1a){const _0x5db992=_0x4a8bbc;y(t['MoveBaseFieldCommand']['id'],this[_0x5db992(0x1b9)][_0x5db992(0x28a)](t[_0x5db992(0x2a0)]['id'],{'unitId':this[_0x5db992(0x2bd)]['getUnitId'](),'tableId':this[_0x5db992(0x2f7)],'fieldId':_0x14d27f,'target':_0x3edd1a}),{'unitId':this[_0x5db992(0x2bd)][_0x5db992(0x1d8)](),'tableId':this[_0x5db992(0x2f7)],'fieldId':_0x14d27f});}['getRecord'](_0x1f94a5){const _0x1ffc7d=_0x4a8bbc;let _0x28bd4b=this[_0x1ffc7d(0x32d)]()[_0x1ffc7d(0x333)][_0x1f94a5];return _0x28bd4b&&!_0x28bd4b[_0x1ffc7d(0x20f)]?this[_0x1ffc7d(0x2c4)](_0x28bd4b['id']):null;}[_0x4a8bbc(0x313)](_0x5534da){const _0x125d2d=_0x4a8bbc;return this[_0x125d2d(0x306)](_0x5534da);}[_0x4a8bbc(0x241)](_0x3823d0={}){const _0x1b0f29=_0x4a8bbc;return M(N(this['_resolveRecordIds'](_0x3823d0)['map'](_0x10c9d1=>this[_0x1b0f29(0x32d)]()[_0x1b0f29(0x333)][_0x10c9d1])[_0x1b0f29(0x2de)](_0x4f2121=>!!(_0x4f2121&&!_0x4f2121[_0x1b0f29(0x20f)]))['filter'](_0x3f1a47=>F(_0x3f1a47,_0x3823d0[_0x1b0f29(0x2de)])),this[_0x1b0f29(0x32d)](),_0x3823d0['sort']),_0x3823d0)[_0x1b0f29(0x2e6)](_0x45c284=>this[_0x1b0f29(0x2c4)](_0x45c284['id']));}[_0x4a8bbc(0x21c)](_0x15ea3a={}){const _0x274f9f=_0x4a8bbc;var _0x795cf9;let _0x3b5cad=N(this['_resolveRecordIds'](_0x15ea3a)[_0x274f9f(0x2e6)](_0x53c4b6=>this[_0x274f9f(0x32d)]()[_0x274f9f(0x333)][_0x53c4b6])[_0x274f9f(0x2de)](_0x5a892a=>!!(_0x5a892a&&!_0x5a892a[_0x274f9f(0x20f)]))['filter'](_0x504990=>F(_0x504990,_0x15ea3a[_0x274f9f(0x2de)])),this[_0x274f9f(0x32d)](),_0x15ea3a['sort']),_0x469d39=Math[_0x274f9f(0x34a)](0x0,(_0x795cf9=_0x15ea3a[_0x274f9f(0x24b)])==null?0x0:_0x795cf9),_0x15dd06=_0x15ea3a['limit']==null?null:Math[_0x274f9f(0x34a)](0x0,_0x15ea3a['limit']);return{'records':M(_0x3b5cad,_0x15ea3a)['map'](_0x2d86bf=>this[_0x274f9f(0x2c4)](_0x2d86bf['id'])),'total':_0x3b5cad[_0x274f9f(0x2f2)],'offset':_0x469d39,'limit':_0x15dd06,'hasMore':_0x15dd06!=null&&_0x469d39+_0x15dd06<_0x3b5cad[_0x274f9f(0x2f2)]};}[_0x4a8bbc(0x2d1)](_0x5adb28){const _0x56a6ee=_0x4a8bbc;var _0x1b3dd2;let _0x69fa6c=this[_0x56a6ee(0x32d)]();if(_0x5adb28[_0x56a6ee(0x2da)]){let _0x26b256=this[_0x56a6ee(0x294)]['getProjection'](this[_0x56a6ee(0x2bd)]['getSnapshot'](),this[_0x56a6ee(0x2f7)],_0x5adb28[_0x56a6ee(0x2da)]);if('rows'in _0x26b256&&Array[_0x56a6ee(0x32c)](_0x26b256['rows']))return _0x26b256[_0x56a6ee(0x19a)][_0x56a6ee(0x2e6)](_0x44e5b4=>_0x44e5b4[_0x56a6ee(0x202)]);}return((_0x1b3dd2=_0x69fa6c[_0x56a6ee(0x234)])==null?Object[_0x56a6ee(0x2fc)](_0x69fa6c[_0x56a6ee(0x333)])[_0x56a6ee(0x329)]((_0x360c6e,_0x444f3b)=>_0x360c6e[_0x56a6ee(0x24c)][_0x56a6ee(0x221)](_0x444f3b[_0x56a6ee(0x24c)]))['map'](_0x392c21=>_0x392c21['id']):_0x1b3dd2)[_0x56a6ee(0x2e6)](_0x156cf1=>_0x69fa6c[_0x56a6ee(0x333)][_0x156cf1])[_0x56a6ee(0x2de)](_0x4589c2=>!!(_0x4589c2&&!_0x4589c2['deleted']))['map'](_0x282b68=>_0x282b68['id']);}[_0x4a8bbc(0x270)](_0x4b3e80={}){const _0x3e24d3=_0x4a8bbc;return this[_0x3e24d3(0x241)](_0x4b3e80);}['addRecord'](_0x5b4547={}){const _0x5019d1=_0x4a8bbc;var _0x3bb14f,_0x34f926,_0xbd6bf7,_0xdab91b,_0x26dc96,_0x23f13e;let _0x289fa5=Date['now'](),_0x19eaf5=this[_0x5019d1(0x32d)](),_0xd13e92={'id':(_0x3bb14f=_0x5b4547['id'])==null?B(_0x5019d1(0x261)):_0x3bb14f,'values':{...E(_0x19eaf5,_0x5b4547[_0x5019d1(0x2fc)],(_0x34f926=_0x5b4547['fieldKey'])==null?'id':_0x34f926),...E(_0x19eaf5,_0x5b4547[_0x5019d1(0x2db)],(_0xbd6bf7=_0x5b4547['fieldKey'])==null?_0x5019d1(0x1b0):_0xbd6bf7)},'orderKey':(_0xdab91b=_0x5b4547[_0x5019d1(0x24c)])==null?''+_0x289fa5:_0xdab91b,'createdAt':(_0x26dc96=_0x5b4547[_0x5019d1(0x298)])==null?_0x289fa5:_0x26dc96,'updatedAt':(_0x23f13e=_0x5b4547[_0x5019d1(0x2c9)])==null?_0x289fa5:_0x23f13e,'createdBy':_0x5b4547[_0x5019d1(0x27c)],'updatedBy':_0x5b4547[_0x5019d1(0x1af)]};return y(t[_0x5019d1(0x33e)]['id'],this[_0x5019d1(0x1b9)]['syncExecuteCommand'](t['CreateBaseRecordCommand']['id'],{'unitId':this[_0x5019d1(0x2bd)]['getUnitId'](),'tableId':this['_tableId'],'record':_0xd13e92}),{'unitId':this['_base'][_0x5019d1(0x1d8)](),'tableId':this['_tableId'],'recordId':_0xd13e92['id']}),this[_0x5019d1(0x2c4)](_0xd13e92['id']);}[_0x4a8bbc(0x30b)](_0x2f5cc8={}){const _0x29657c=_0x4a8bbc;return this[_0x29657c(0x321)](_0x2f5cc8);}[_0x4a8bbc(0x2ab)](_0x2441d0){const _0x424697=_0x4a8bbc;if(!_0x2441d0['length'])return[];let _0x2b43b6=Date[_0x424697(0x1c4)](),_0x551d76=this[_0x424697(0x32d)](),_0x18fccd=_0x2441d0[_0x424697(0x2e6)]((_0x3e6e9c,_0x3672a9)=>{const _0x4d7000=_0x424697;var _0x46ccff,_0x5ae966,_0x28c07f,_0x135f60,_0xdc9ef4,_0x445868;return{'id':(_0x46ccff=_0x3e6e9c['id'])==null?B(_0x4d7000(0x261)):_0x46ccff,'values':{...E(_0x551d76,_0x3e6e9c[_0x4d7000(0x2fc)],(_0x5ae966=_0x3e6e9c[_0x4d7000(0x34e)])==null?'id':_0x5ae966),...E(_0x551d76,_0x3e6e9c[_0x4d7000(0x2db)],(_0x28c07f=_0x3e6e9c[_0x4d7000(0x34e)])==null?_0x4d7000(0x1b0):_0x28c07f)},'orderKey':(_0x135f60=_0x3e6e9c['orderKey'])==null?''+(_0x2b43b6+_0x3672a9):_0x135f60,'createdAt':(_0xdc9ef4=_0x3e6e9c[_0x4d7000(0x298)])==null?_0x2b43b6:_0xdc9ef4,'updatedAt':(_0x445868=_0x3e6e9c[_0x4d7000(0x2c9)])==null?_0x2b43b6:_0x445868,'createdBy':_0x3e6e9c[_0x4d7000(0x27c)],'updatedBy':_0x3e6e9c[_0x4d7000(0x1af)]};});return y(t[_0x424697(0x2ce)]['id'],this[_0x424697(0x1b9)][_0x424697(0x28a)](t['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x424697(0x2bd)][_0x424697(0x1d8)](),'tableId':this['_tableId'],'records':_0x18fccd}),{'unitId':this[_0x424697(0x2bd)]['getUnitId'](),'tableId':this[_0x424697(0x2f7)],'recordIds':_0x18fccd['map'](_0x1a7bc2=>_0x1a7bc2['id'])}),_0x18fccd[_0x424697(0x2e6)](_0x4f61cc=>this[_0x424697(0x2c4)](_0x4f61cc['id']));}[_0x4a8bbc(0x319)](_0x4fccb2,_0x2e0e9a={}){const _0x202de0=_0x4a8bbc;let _0x41d0c9=this[_0x202de0(0x32d)](),_0x5ef7dc=_0x4fccb2[_0x202de0(0x2e6)](_0x125b81=>{const _0x31b52a=_0x202de0;var _0x35b109,_0x382ef4,_0x4816b5,_0x3817ff;return{'recordId':_0x125b81[_0x31b52a(0x202)],'values':{...E(_0x41d0c9,_0x125b81[_0x31b52a(0x2fc)],(_0x35b109=(_0x382ef4=_0x125b81['fieldKey'])==null?_0x2e0e9a[_0x31b52a(0x34e)]:_0x382ef4)==null?'id':_0x35b109),...E(_0x41d0c9,_0x125b81[_0x31b52a(0x2db)],(_0x4816b5=(_0x3817ff=_0x125b81[_0x31b52a(0x34e)])==null?_0x2e0e9a['fieldKey']:_0x3817ff)==null?'name':_0x4816b5)}};});y(t[_0x202de0(0x23a)]['id'],this['_commandService']['syncExecuteCommand'](t['SetBaseRecordValuesCommand']['id'],{'unitId':this[_0x202de0(0x2bd)][_0x202de0(0x1d8)](),'tableId':this['_tableId'],'patches':_0x5ef7dc}),{'unitId':this[_0x202de0(0x2bd)][_0x202de0(0x1d8)](),'tableId':this['_tableId'],'recordIds':_0x5ef7dc[_0x202de0(0x2e6)](_0x467e06=>_0x467e06[_0x202de0(0x202)])});}[_0x4a8bbc(0x325)](_0x483318,_0x4c0573,_0x44288a={}){const _0x524d97=_0x4a8bbc;this[_0x524d97(0x319)]([{'recordId':_0x483318,'values':_0x4c0573}],_0x44288a);}[_0x4a8bbc(0x1ff)](_0x3c15d9){const _0x4b1267=_0x4a8bbc;y(t[_0x4b1267(0x2cc)]['id'],this[_0x4b1267(0x1b9)][_0x4b1267(0x28a)](t['DeleteBaseRecordCommand']['id'],{'unitId':this['_base'][_0x4b1267(0x1d8)](),'tableId':this[_0x4b1267(0x2f7)],'recordId':_0x3c15d9}),{'unitId':this[_0x4b1267(0x2bd)][_0x4b1267(0x1d8)](),'tableId':this[_0x4b1267(0x2f7)],'recordId':_0x3c15d9});}[_0x4a8bbc(0x1db)](_0x2982ed){const _0x533528=_0x4a8bbc;_0x2982ed[_0x533528(0x2f2)]&&y(t[_0x533528(0x2a6)]['id'],this[_0x533528(0x1b9)]['syncExecuteCommand'](t[_0x533528(0x2a6)]['id'],{'unitId':this[_0x533528(0x2bd)][_0x533528(0x1d8)](),'tableId':this[_0x533528(0x2f7)],'recordIds':_0x2982ed}),{'unitId':this[_0x533528(0x2bd)]['getUnitId'](),'tableId':this['_tableId'],'recordIds':_0x2982ed});}[_0x4a8bbc(0x25d)](_0x79bfb6,_0x2bf65f={}){const _0x34454b=_0x4a8bbc;var _0x433b31,_0x36cbe6,_0x19e5b3,_0x39d569,_0x54dbc8,_0x261323;let _0x3aba8e=this[_0x34454b(0x32d)]()[_0x34454b(0x333)][_0x79bfb6];if(!_0x3aba8e||_0x3aba8e[_0x34454b(0x20f)])throw Error('[FTable]:\x20record\x20\x22'+_0x79bfb6+_0x34454b(0x20c));let _0xd067d5=Date[_0x34454b(0x1c4)](),_0x5f225c={'id':(_0x433b31=_0x2bf65f['id'])==null?B('record'):_0x433b31,'values':{...E(this[_0x34454b(0x32d)](),_0x2bf65f[_0x34454b(0x2fc)],(_0x36cbe6=_0x2bf65f[_0x34454b(0x34e)])==null?'id':_0x36cbe6),...E(this[_0x34454b(0x32d)](),_0x2bf65f[_0x34454b(0x2db)],(_0x19e5b3=_0x2bf65f[_0x34454b(0x34e)])==null?_0x34454b(0x1b0):_0x19e5b3)},'orderKey':(_0x39d569=_0x2bf65f[_0x34454b(0x24c)])==null?''+_0xd067d5:_0x39d569,'createdAt':(_0x54dbc8=_0x2bf65f[_0x34454b(0x298)])==null?_0xd067d5:_0x54dbc8,'updatedAt':(_0x261323=_0x2bf65f[_0x34454b(0x2c9)])==null?_0xd067d5:_0x261323,'createdBy':_0x2bf65f[_0x34454b(0x27c)],'updatedBy':_0x2bf65f[_0x34454b(0x1af)]};return y(t['DuplicateBaseRecordCommand']['id'],this['_commandService']['syncExecuteCommand'](t[_0x34454b(0x27a)]['id'],{'unitId':this[_0x34454b(0x2bd)][_0x34454b(0x1d8)](),'tableId':this[_0x34454b(0x2f7)],'sourceRecordId':_0x79bfb6,'record':_0x5f225c}),{'unitId':this[_0x34454b(0x2bd)][_0x34454b(0x1d8)](),'tableId':this['_tableId'],'recordId':_0x5f225c['id'],'sourceRecordId':_0x79bfb6}),this[_0x34454b(0x2c4)](_0x5f225c['id']);}['updateCell'](_0x2d45c6,_0x33ef9a,_0x5337b0){const _0x1eadee=_0x4a8bbc;y(t['UpdateBaseCellCommand']['id'],this['_commandService'][_0x1eadee(0x28a)](t[_0x1eadee(0x1f7)]['id'],{'unitId':this[_0x1eadee(0x2bd)]['getUnitId'](),'tableId':this[_0x1eadee(0x2f7)],'recordId':_0x2d45c6,'fieldId':_0x33ef9a,'value':_0x5337b0}),{'unitId':this[_0x1eadee(0x2bd)][_0x1eadee(0x1d8)](),'tableId':this[_0x1eadee(0x2f7)],'recordId':_0x2d45c6,'fieldId':_0x33ef9a});}[_0x4a8bbc(0x1fa)](_0x41de2d,_0x13de7e,_0x188913){const _0x40cf8b=_0x4a8bbc;this[_0x40cf8b(0x1c2)](_0x41de2d,_0x13de7e,_0x188913);}[_0x4a8bbc(0x280)](_0x1b6d28,_0x14f1ba){const _0x6556db=_0x4a8bbc;var _0x1c9517,_0x58ae3d;return(_0x1c9517=(_0x58ae3d=this[_0x6556db(0x32d)]()['records'][_0x1b6d28])==null||(_0x58ae3d=_0x58ae3d[_0x6556db(0x2fc)])==null?void 0x0:_0x58ae3d[_0x14f1ba])==null?null:_0x1c9517;}[_0x4a8bbc(0x300)](_0xcfd932,_0x24f7ce){const _0x547cbb=_0x4a8bbc;var _0x108ad6;y(t['UpdateBaseRecordOrderCommand']['id'],this['_commandService'][_0x547cbb(0x28a)](t[_0x547cbb(0x210)]['id'],{'unitId':this[_0x547cbb(0x2bd)][_0x547cbb(0x1d8)](),'tableId':this['_tableId'],'recordId':_0xcfd932,'orderKey':(_0x108ad6=_0x24f7ce[_0x547cbb(0x24c)])==null?this[_0x547cbb(0x32d)]()[_0x547cbb(0x333)][_0xcfd932][_0x547cbb(0x24c)]:_0x108ad6}),{'unitId':this['_base'][_0x547cbb(0x1d8)](),'tableId':this[_0x547cbb(0x2f7)],'recordId':_0xcfd932});}[_0x4a8bbc(0x233)](_0x31759d,_0xebd146,_0x15f824=0x1,_0x26d30e=0x1){const _0x428914=_0x4a8bbc;return new T(this[_0x428914(0x2bd)],this['_tableId'],{'startRow':_0x31759d,'endRow':_0x31759d+_0x15f824-0x1,'startColumn':_0xebd146,'endColumn':_0xebd146+_0x26d30e-0x1},this[_0x428914(0x1b9)]);}[_0x4a8bbc(0x226)](){const _0x39bd35=_0x4a8bbc;var _0x26b242,_0x4866e3;let _0x218b94=(0x0,t['ensureBaseTableCellLayout'])(this[_0x39bd35(0x32d)]()),_0x427e6a=(_0x26b242=(_0x4866e3=_0x218b94[_0x39bd35(0x234)])==null?void 0x0:_0x4866e3['filter'](_0x123394=>{const _0x4b3e27=_0x39bd35;var _0x415809;return!((_0x415809=_0x218b94['records'][_0x123394])!=null&&_0x415809[_0x4b3e27(0x20f)]);})[_0x39bd35(0x2f2)])==null?0x0:_0x26b242,_0x359be9=_0x218b94[_0x39bd35(0x288)]['filter'](_0x105a15=>{const _0x9e721a=_0x39bd35;var _0x5ad48c;return!((_0x5ad48c=_0x218b94['fields'][_0x105a15])!=null&&_0x5ad48c[_0x9e721a(0x20f)]);})[_0x39bd35(0x2f2)];return this['getRange'](0x0,0x0,Math[_0x39bd35(0x34a)](_0x427e6a,0x1),Math[_0x39bd35(0x34a)](_0x359be9,0x1));}[_0x4a8bbc(0x30d)](){const _0x3f6737=_0x4a8bbc;let _0xc22c76=this[_0x3f6737(0x32d)]();return _0xc22c76['viewOrder'][_0x3f6737(0x2e6)](_0xaad894=>_0xc22c76[_0x3f6737(0x2b7)][_0xaad894])[_0x3f6737(0x2de)](_0x10cbbe=>!!(_0x10cbbe&&!_0x10cbbe[_0x3f6737(0x20f)]))[_0x3f6737(0x2e6)](_0x1d609e=>this[_0x3f6737(0x2e0)](_0x1d609e['id']));}[_0x4a8bbc(0x1ad)](){const _0x743963=_0x4a8bbc;return this[_0x743963(0x30d)]();}[_0x4a8bbc(0x275)](_0x206870){const _0x5906e6=_0x4a8bbc;let _0x52f74b=this[_0x5906e6(0x32d)]()[_0x5906e6(0x2b7)][_0x206870];return _0x52f74b&&!_0x52f74b['deleted']?this[_0x5906e6(0x2e0)](_0x52f74b['id']):null;}[_0x4a8bbc(0x2fd)](_0x441d53){const _0x501eb7=_0x4a8bbc;return this[_0x501eb7(0x275)](_0x441d53);}[_0x4a8bbc(0x32e)](_0x26d634){const _0x1c6a40=_0x4a8bbc;let _0x5f3608=Object[_0x1c6a40(0x2fc)](this[_0x1c6a40(0x32d)]()[_0x1c6a40(0x2b7)])[_0x1c6a40(0x2fe)](_0x47c305=>!_0x47c305[_0x1c6a40(0x20f)]&&_0x47c305[_0x1c6a40(0x1b0)]===_0x26d634);return _0x5f3608?this[_0x1c6a40(0x2e0)](_0x5f3608['id']):null;}['createView'](_0x59089d){const _0x3c01c8=_0x4a8bbc;var _0x59fe1f,_0x1408c7;let _0x282f1e=this[_0x3c01c8(0x32d)](),_0x48e79c={'id':(_0x59fe1f=_0x59089d['id'])==null?B(_0x3c01c8(0x31c)):_0x59fe1f,'tableId':this['_tableId'],'name':_0x59089d['name'],'type':_0x59089d[_0x3c01c8(0x342)],'fieldOrder':[..._0x282f1e[_0x3c01c8(0x288)]],'fieldSettings':{},'config':(_0x1408c7=_0x59089d[_0x3c01c8(0x1e4)])==null?{}:_0x1408c7};return y(t[_0x3c01c8(0x281)]['id'],this['_commandService'][_0x3c01c8(0x28a)](t['CreateBaseViewCommand']['id'],{'unitId':this[_0x3c01c8(0x2bd)][_0x3c01c8(0x1d8)](),'tableId':this[_0x3c01c8(0x2f7)],'view':_0x48e79c,'index':_0x59089d[_0x3c01c8(0x1a5)]}),{'unitId':this[_0x3c01c8(0x2bd)][_0x3c01c8(0x1d8)](),'tableId':this[_0x3c01c8(0x2f7)],'viewId':_0x48e79c['id']}),this['_wrapView'](_0x48e79c['id']);}[_0x4a8bbc(0x277)](_0x5ee352){const _0x17edab=_0x4a8bbc;y(t[_0x17edab(0x227)]['id'],this[_0x17edab(0x1b9)][_0x17edab(0x28a)](t[_0x17edab(0x227)]['id'],{'unitId':this[_0x17edab(0x2bd)][_0x17edab(0x1d8)](),'tableId':this[_0x17edab(0x2f7)],'viewId':_0x5ee352}),{'unitId':this[_0x17edab(0x2bd)][_0x17edab(0x1d8)](),'tableId':this[_0x17edab(0x2f7)],'viewId':_0x5ee352});}[_0x4a8bbc(0x22e)](){const _0x597f0b=_0x4a8bbc;let _0x531c78=this[_0x597f0b(0x32d)](),_0x192a65=_0x531c78[_0x597f0b(0x288)][_0x597f0b(0x2de)](_0x2bee0a=>{const _0x2c4ee7=_0x597f0b;var _0x4bd614;return!((_0x4bd614=_0x531c78[_0x2c4ee7(0x2db)][_0x2bee0a])!=null&&_0x4bd614['deleted']);}),_0x56356c=_0x531c78[_0x597f0b(0x2c2)][_0x597f0b(0x2de)](_0x50ce82=>{const _0x562780=_0x597f0b;var _0x21b5d4;return!((_0x21b5d4=_0x531c78[_0x562780(0x2b7)][_0x50ce82])!=null&&_0x21b5d4[_0x562780(0x20f)]);});return{'id':_0x531c78['id'],'name':_0x531c78[_0x597f0b(0x1b0)],'primaryFieldId':_0x531c78[_0x597f0b(0x198)],'fieldIds':_0x192a65,'viewIds':_0x56356c,'recordCount':this[_0x597f0b(0x2d1)]({})['length'],'fields':_0x192a65[_0x597f0b(0x2e6)](_0x30b09b=>{const _0x4a26bd=_0x597f0b;let _0xe1ee51=_0x531c78[_0x4a26bd(0x2db)][_0x30b09b];return{'id':_0xe1ee51['id'],'name':_0xe1ee51[_0x4a26bd(0x1b0)],'type':_0xe1ee51[_0x4a26bd(0x342)],'config':_0xe1ee51[_0x4a26bd(0x1e4)],'readonly':_0xe1ee51[_0x4a26bd(0x264)],'description':_0xe1ee51['description']};}),'views':_0x56356c[_0x597f0b(0x2e6)](_0x418e68=>{const _0x8313be=_0x597f0b;let _0xc64a28=_0x531c78[_0x8313be(0x2b7)][_0x418e68];return{'id':_0xc64a28['id'],'name':_0xc64a28[_0x8313be(0x1b0)],'type':_0xc64a28[_0x8313be(0x342)]};})};}[_0x4a8bbc(0x1d3)](){const _0x48f774=_0x4a8bbc;return new C(this['_tableId'],this[_0x48f774(0x2af)]);}[_0x4a8bbc(0x32d)](){const _0x1fe2c3=_0x4a8bbc;let _0x2f7e63=this[_0x1fe2c3(0x2bd)][_0x1fe2c3(0x2d2)]()[_0x1fe2c3(0x297)][this['_tableId']];if(!_0x2f7e63||_0x2f7e63['deleted'])throw Error(_0x1fe2c3(0x253)+this['_tableId']+'\x22\x20does\x20not\x20exist.');return _0x2f7e63;}[_0x4a8bbc(0x249)](_0x354b42){const _0x3828cf=_0x4a8bbc;return new w(this[_0x3828cf(0x2bd)],this[_0x3828cf(0x2f7)],_0x354b42,this[_0x3828cf(0x1b9)]);}[_0x4a8bbc(0x2c4)](_0x23145e){const _0x2fc822=_0x4a8bbc;return new O(this[_0x2fc822(0x2bd)],this[_0x2fc822(0x2f7)],_0x23145e,this[_0x2fc822(0x1b9)]);}[_0x4a8bbc(0x2e0)](_0x5bf815){const _0xf62da3=_0x4a8bbc;return new A(this[_0xf62da3(0x2bd)],this[_0xf62da3(0x2f7)],_0x5bf815,this['_commandService'],this[_0xf62da3(0x294)]);}};function M(_0x1e618c,_0x45808b){const _0x2e67cd=_0x4a8bbc;var _0x1b122e;let _0x2df986=Math[_0x2e67cd(0x34a)](0x0,(_0x1b122e=_0x45808b['offset'])==null?0x0:_0x1b122e);return _0x45808b[_0x2e67cd(0x28b)]==null?_0x1e618c[_0x2e67cd(0x1cf)](_0x2df986):_0x1e618c[_0x2e67cd(0x1cf)](_0x2df986,_0x2df986+Math[_0x2e67cd(0x34a)](0x0,_0x45808b[_0x2e67cd(0x28b)]));}function N(_0x565375,_0x20c047,_0x369217=[]){const _0x2ee232=_0x4a8bbc;return _0x369217[_0x2ee232(0x2f2)]?[..._0x565375]['sort']((_0x702adc,_0x31987a)=>{const _0x31350b=_0x2ee232;var _0x3242ed,_0x582df4;for(let _0x4a649e of _0x369217){var _0x455ccb;let _0x5381f2=_0x4a649e[_0x31350b(0x246)]===_0x31350b(0x25e)?-0x1:0x1,_0x4c8e75=P(_0x702adc[_0x31350b(0x2fc)][_0x4a649e[_0x31350b(0x282)]],_0x31987a['values'][_0x4a649e[_0x31350b(0x282)]],(_0x455ccb=_0x20c047[_0x31350b(0x2db)][_0x4a649e['fieldId']])==null?void 0x0:_0x455ccb[_0x31350b(0x342)]);if(_0x4c8e75!==0x0)return _0x4c8e75*_0x5381f2;}return String((_0x3242ed=_0x702adc[_0x31350b(0x24c)])==null?_0x702adc['id']:_0x3242ed)[_0x31350b(0x221)](String((_0x582df4=_0x31987a[_0x31350b(0x24c)])==null?_0x31987a['id']:_0x582df4));}):_0x565375;}function P(_0x19b5bd,_0x2780f3,_0x2fd854){const _0x2cc9d2=_0x4a8bbc;return _0x19b5bd==null&&_0x2780f3==null?0x0:_0x19b5bd==null?-0x1:_0x2780f3==null?0x1:typeof _0x19b5bd==_0x2cc9d2(0x25a)&&typeof _0x2780f3==_0x2cc9d2(0x25a)?_0x19b5bd-_0x2780f3:_0x2fd854===_0x2cc9d2(0x20b)?Number(_0x19b5bd)-Number(_0x2780f3):String(_0x19b5bd)[_0x2cc9d2(0x221)](String(_0x2780f3));}function F(_0x31fbbc,_0x36f571){const _0x1e4cbf=_0x4a8bbc;var _0x3a0894;if(!_0x36f571)return!0x0;if((_0x3a0894=_0x36f571['conditions'])!=null&&_0x3a0894[_0x1e4cbf(0x2f2)])return _0x36f571[_0x1e4cbf(0x19f)]==='or'?_0x36f571[_0x1e4cbf(0x1e8)][_0x1e4cbf(0x287)](_0x588262=>F(_0x31fbbc,_0x588262)):_0x36f571[_0x1e4cbf(0x1e8)][_0x1e4cbf(0x213)](_0x5e9339=>F(_0x31fbbc,_0x5e9339));if(!_0x36f571[_0x1e4cbf(0x282)]||!_0x36f571['operator'])return!0x0;let _0x2be9f7=_0x31fbbc[_0x1e4cbf(0x2fc)][_0x36f571[_0x1e4cbf(0x282)]],_0x3767b2=_0x36f571[_0x1e4cbf(0x33d)],_0x535cb9=z(_0x2be9f7),_0x41e8bc=z(_0x3767b2),_0x2a7e02=Array[_0x1e4cbf(0x32c)](_0x2be9f7)||Array[_0x1e4cbf(0x32c)](_0x3767b2),_0x39ad21=_0x41e8bc[_0x1e4cbf(0x287)](_0x267744=>_0x535cb9[_0x1e4cbf(0x260)](_0x267744)),_0x157284=L(_0x2be9f7,_0x3767b2);switch(_0x36f571[_0x1e4cbf(0x2be)]){case'is':return _0x2a7e02?_0x39ad21:_0x157284;case _0x1e4cbf(0x315):return _0x2a7e02?!_0x39ad21:!_0x157284;case _0x1e4cbf(0x248):return _0x2a7e02?_0x39ad21:R(String(_0x2be9f7==null?'':_0x2be9f7))[_0x1e4cbf(0x260)](R(String(_0x3767b2==null?'':_0x3767b2)));case _0x1e4cbf(0x295):return _0x2a7e02?!_0x39ad21:!R(String(_0x2be9f7==null?'':_0x2be9f7))['includes'](R(String(_0x3767b2==null?'':_0x3767b2)));case'matches':return I(_0x36f571)[_0x1e4cbf(0x25b)](String(_0x2be9f7==null?'':_0x2be9f7));case _0x1e4cbf(0x251):return!I(_0x36f571)[_0x1e4cbf(0x25b)](String(_0x2be9f7==null?'':_0x2be9f7));case _0x1e4cbf(0x23b):return _0x2be9f7==null||_0x2be9f7===''||Array[_0x1e4cbf(0x32c)](_0x2be9f7)&&_0x2be9f7[_0x1e4cbf(0x2f2)]===0x0;case _0x1e4cbf(0x23e):return!(_0x2be9f7==null||_0x2be9f7===''||Array[_0x1e4cbf(0x32c)](_0x2be9f7)&&_0x2be9f7['length']===0x0);case'greaterThan':return Number(_0x2be9f7)>Number(_0x3767b2);case'greaterThanOrEqual':return Number(_0x2be9f7)>=Number(_0x3767b2);case'lessThan':return Number(_0x2be9f7)<Number(_0x3767b2);case'lessThanOrEqual':return Number(_0x2be9f7)<=Number(_0x3767b2);default:return!0x0;}}function I(_0x3fcf85){const _0xaf688e=_0x4a8bbc;var _0x5cbb3e;let _0x779396=String((_0x5cbb3e=_0x3fcf85[_0xaf688e(0x33d)])==null?'':_0x5cbb3e);if(_0x779396[_0xaf688e(0x2f2)]>0x200)throw new _(g[_0xaf688e(0x322)],'Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.',{'fieldId':_0x3fcf85['fieldId'],'operator':_0x3fcf85['operator'],'patternLength':_0x779396['length'],'maxLength':0x200});try{return new RegExp(_0x779396,_0x3fcf85['caseSensitive']?void 0x0:'i');}catch(_0x1067cf){throw new _(g['InvalidFilter'],'Invalid\x20Base\x20regex\x20filter:\x20'+_0x779396,{'fieldId':_0x3fcf85[_0xaf688e(0x282)],'operator':_0x3fcf85[_0xaf688e(0x2be)],'pattern':_0x779396,'cause':_0x1067cf});}}function L(_0x14689c,_0x41a858){const _0x423a04=_0x4a8bbc;return typeof _0x14689c=='string'&&typeof _0x41a858==_0x423a04(0x2b0)?R(_0x14689c)===R(_0x41a858):_0x14689c===_0x41a858;}function R(_0x33fd7e){return _0x33fd7e['toLowerCase']();}function z(_0x3b9bf8){const _0x5f43b2=_0x4a8bbc;return _0x3b9bf8==null||_0x3b9bf8===''?[]:Array[_0x5f43b2(0x32c)](_0x3b9bf8)?_0x3b9bf8[_0x5f43b2(0x254)](_0x2f87fb=>z(_0x2f87fb))[_0x5f43b2(0x2de)]((_0x121bc5,_0x3b3974,_0x52152d)=>_0x52152d[_0x5f43b2(0x1b1)](_0x121bc5)===_0x3b3974):[R(String(_0x3b9bf8))];}function B(_0x17c8fc){const _0x3f6d72=_0x4a8bbc;return _0x17c8fc+'-'+Math[_0x3f6d72(0x231)]()[_0x3f6d72(0x2ae)](0x24)['slice'](0x2,0xa);}function _0x20b3(){const _0x30b803=['deleted','UpdateBaseRecordOrderCommand','auto','rowId','every','beforeCommandExecuted','BaseError','progress','IUniverInstanceService','unitId','matches','Base\x20batch\x20requires\x20the\x20Base\x20command\x20service.','barcode','queryRecords','62LDLEGN','insertTable','patch','setFieldVisible','localeCompare','addField','getTableById','code','_resolveBeforeBaseFieldCreate','getDataRange','DeleteBaseViewCommand','setSort','createView','object','_factory','kanban','RenameBaseTableCommand','getSchema','checkbox','BatchAlreadyRunning','random','DeleteBaseTableCommand','getRange','recordOrder','_assertInBounds','setPermission','_undoRedoService','getActiveBase','clearPermission','SetBaseRecordValuesCommand','isEmpty','link','facade.batch','isNotEmpty','target','default','getRecords','input','getFieldByName','getTable','deleteField','direction','CanceledError','contains','_wrapField','toPrimitive','offset','orderKey','BaseFieldChanged','setFieldWidth','FUniverBaseMixin','getBaseId','notMatches','gantt','[FTable]:\x20table\x20\x22','flatMap','BaseFieldTypeEnum','_resolveBeforeBaseRecordCreate','isBaseError','[FRecord]:\x20record\x20\x22','setFieldPermission','number','test','tableOrder','duplicateRecord','desc','setValue','includes','record','FieldChanged','setRangeValues','readonly','\x20Copy','draftBase','ensureBaseTableCellLayout','4059232zUyOEo','getCurrentUnitOfType','setTablePermission','from','moved','BaseFieldKeyEnum','trim','created','listRecords','SetBaseViewGroupCommand','startRow','extend','_createOp','getView','setViewFieldOrder','deleteView','getTableByName','details','DuplicateBaseRecordCommand','phone','createdBy','iterator','BeforeBaseCellValueChange','getId','getCellValue','CreateBaseViewCommand','fieldId','toLowerCase','updateConfig','DuplicateFieldName','FBase','some','fieldOrder','setValues','syncExecuteCommand','limit','clearTablePermission','endRow','MoveBaseViewCommand','canDeleteTable','colId','fieldSettings','createBase','_getRecord','_projectionService','doesNotContain','setBasePermission','tables','createdAt','IBasePermissionService','ICommandService','currency','getFieldById','setOrderKey','canDeleteRecord','viewIndexes','MoveBaseFieldCommand','setSnapshot','getFields','SetBaseRangeValuesCommand','canCreateRecord','BaseErrorCode','BatchDeleteBaseRecordsCommand','lessThan','constructor','defineProperty','RecordChanged','addRecords','FieldNotFound','BaseRecordChanged','toString','_permissionService','string','FTable','defaultValue','BeforeBaseRecordCreate','_baseCommandService','_initialize','twoWayLink','views','getValue','Command\x20is\x20not\x20supported\x20in\x20Base\x20batch:\x20','FUniver','createUnit','getGroup','_base','operator','_transactionContext','registerEventHandler','_resolveBeforeBaseViewCreate','viewOrder','move','_wrapRecord','canEditCell','RecordNotFound','save','_wrapTable','updatedAt','getType','SetBaseViewFieldOrderCommand','DeleteBaseRecordCommand','FBasePermission','BatchCreateBaseRecordsCommand','_baseId','RenameBaseViewCommand','_resolveRecordIds','getSnapshot','\x20does\x20not\x20match\x20range\x20size\x20','BaseTransactionContext','_fieldId','batch','UpdateBaseFieldCommand','cancel','singleSelect','viewId','fields','getTableId','endColumn','filter','clear','_wrapView','copyBaseTableSnapshot','coalesce','getPrimaryFieldId','ApplyBaseJson1Mutation','calendar','map','getNumRows','_univerInstanceService','grid','updated','createUpdateCellOp','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','typeChanged','BaseBatchChanged','BaseCreated','_outerCommandService','commandService','length','BeforeBaseViewCreate','sourceRecordId','visibleCardFieldIds','setViewFieldVisible','_tableId','IBaseCommandService','CreateBaseTableCommand','group','fireEvent','values','getViewById','find','getTables','updateRecordOrder','BaseCreating','[FBase]:\x20table\x20\x22','searchBaseTable','FEventName','ViewChanged','getRecord','createCreateRecordOp','BeforeBaseFieldCreate','createCreateFieldOp','function','createRecord','copyTable','getViews','BaseTableChanged','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','BaseBatchUndoModeEnum','UniverInstanceType','BaseViewChanged','getRecordById','table','isNot','JSON1','_viewId','IUndoRedoService','setRecordValues','canDeleteField','_applier','view','TableNotFound','[FField]:\x20field\x20\x22','compose','rating','addRecord','InvalidFilter','_resolveBeforeBaseCellValueChange','renamed','updateRecord','Event','CellValueChanged','text','sort','UpdateBaseViewConfigCommand','recordIds','isArray','_getTable','getViewByName','1632817jNGNPM','6527448szIPif','IBaseProjectionService','[FView]:\x20view\x20\x22','records','resolveCommandEvent','setRecordPermission','updateField','startColumn','update','commit',',\x20max\x20columns:\x20','createBatchCreateRecordsOp','_resolveEvent','value','CreateBaseRecordCommand','_injector','get','BatchFailed','type',',\x20range:\x20','collect','_getField','canEditField','_initBaseBeforeEvents','clearBasePermission','FView','max','duplicated','3112230vwcCfT','_resolveBaseCommandEvent','fieldKey','primaryFieldId','getNumColumns','rows','104955ghIAZD','36xdLnIr','assertBaseCommandSucceeded','getValues','conjunction','createSetRecordValuesOp','getUnit','getName','fieldIds','changeFieldType','index','lookup','getSort','Module','getAllUnitsForType','getFilter','renameView','createTable','listViews','push','updatedBy','name','indexOf','SetBaseViewFieldWidthCommand','searchTable','email','_resolveBaseBatchChanged','asc','symbol','includeRecords','_commandService','BaseSortDirectionEnum','canManageView','getProjection','field','_initialSnapshot','query','moveField','onCommandExecuted','updateCell','patches','now','BeforeBaseTableCreate','SetBaseViewFieldVisibleCommand','getBaseCellValue','forEach','params','BaseReady','_wrap','createDefaultBaseTableSnapshot','clearRecordPermission','canCreateField','slice','UNIVER_BASE','applyOp','description','getPermission','4759224QcTrxH','_resolveBeforeBaseTableCreate','deleteTable','ChangeBaseFieldTypeCommand','getUnitId','immediate','BaseViewTypeEnum','deleteRecords','setName','focusUnit','CommandFailed','FEnum','_recordId','renameTable','disposeWithMe','9896306PaIBux','config','tableId','delete','InvalidOperation','conditions','call','getField','resolveBaseFieldValues','DeleteBaseFieldCommand','BaseJson1OpFactory','pushUndoRedo','hidden','Base\x20batch\x20callbacks\x20must\x20be\x20synchronous.','silent','BaseBatchEventModeEnum','formula','flow','BaseCellValueChanged','resolveBaseFieldKey','UpdateBaseCellCommand','_initBaseAfterEvents','SetBaseViewSortCommand','setCellValue','CreateBaseFieldCommand','[FBaseRange]:\x20values\x20size\x20','FTablePermission','clearFieldPermission','deleteRecord','greaterThan','setViewGroup','recordId','Base\x20command\x20failed:\x20','_range','getBase','BaseErrorCodeEnum','getPrimaryField','TableChanged','BaseFilterOperatorEnum','_op','date','\x22\x20does\x20not\x20exist.','SetBaseViewFilterCommand','_getView'];_0x20b3=function(){return _0x30b803;};return _0x20b3();}var V=class{constructor(_0x3d88fa,_0x99e4cb,_0x3531eb,_0x28b193,_0x37a691){const _0x1b71ed=_0x4a8bbc;this['_base']=_0x3d88fa,this['_outerCommandService']=_0x99e4cb,this[_0x1b71ed(0x2b4)]=_0x3531eb,this[_0x1b71ed(0x237)]=_0x28b193,this['_univerInstanceService']=_0x37a691,h(this,'draftBase',void 0x0),h(this,_0x1b71ed(0x2f1),void 0x0),h(this,'_factory',new t[(_0x1b71ed(0x1ed))]()),h(this,_0x1b71ed(0x31b),new t['BaseJson1OpApplier']()),h(this,_0x1b71ed(0x1be),void 0x0),h(this,'_op',null),this[_0x1b71ed(0x1be)]=_0x3d88fa[_0x1b71ed(0x2d2)](),this['draftBase']=new this['_base'][(_0x1b71ed(0x2a8))](),this[_0x1b71ed(0x266)][_0x1b71ed(0x2a1)](this[_0x1b71ed(0x1be)]),this[_0x1b71ed(0x2f1)]=new H(this);}[_0x4a8bbc(0x344)](_0x4fb7ca,_0x260d1d){const _0x17fc7a=_0x4a8bbc;let _0x3f1128=this[_0x17fc7a(0x274)](_0x4fb7ca,_0x260d1d);return this[_0x17fc7a(0x20a)]=this['_op']?n[_0x17fc7a(0x316)]['type'][_0x17fc7a(0x31f)](this[_0x17fc7a(0x20a)],_0x3f1128):_0x3f1128,this[_0x17fc7a(0x266)]['setSnapshot'](this[_0x17fc7a(0x31b)][_0x17fc7a(0x1d1)](this[_0x17fc7a(0x266)][_0x17fc7a(0x2d2)](),_0x3f1128)),!0x0;}[_0x4a8bbc(0x339)](){const _0x51ab5f=_0x4a8bbc;var _0x5dbe1e,_0x514f34;if(!this[_0x51ab5f(0x20a)])return;let _0x50582b=this[_0x51ab5f(0x31b)]['invertOp'](this[_0x51ab5f(0x1be)],this['_op']);y(t[_0x51ab5f(0x2e4)]['id'],this[_0x51ab5f(0x2f0)]['syncExecuteCommand'](t[_0x51ab5f(0x2e4)]['id'],{'unitId':this[_0x51ab5f(0x2bd)][_0x51ab5f(0x1d8)](),'op':this[_0x51ab5f(0x20a)],'trigger':_0x51ab5f(0x23d)}),{'unitId':this[_0x51ab5f(0x2bd)][_0x51ab5f(0x1d8)]()}),(_0x5dbe1e=this[_0x51ab5f(0x2e8)])==null||_0x5dbe1e[_0x51ab5f(0x1dd)](this[_0x51ab5f(0x2bd)]['getUnitId']()),(_0x514f34=this[_0x51ab5f(0x237)])==null||_0x514f34[_0x51ab5f(0x1ee)]({'unitID':this[_0x51ab5f(0x2bd)][_0x51ab5f(0x1d8)](),'undoMutations':[{'id':t['ApplyBaseJson1Mutation']['id'],'params':{'unitId':this[_0x51ab5f(0x2bd)]['getUnitId'](),'op':_0x50582b}}],'redoMutations':[{'id':t[_0x51ab5f(0x2e4)]['id'],'params':{'unitId':this['_base'][_0x51ab5f(0x1d8)](),'op':this['_op']}}]});}[_0x4a8bbc(0x274)](_0x21c0a8,_0x4fe7ab){const _0x553bd7=_0x4a8bbc;let _0x50e90e=this[_0x553bd7(0x266)][_0x553bd7(0x2d2)]();switch(_0x21c0a8){case t[_0x553bd7(0x2f9)]['id']:return this[_0x553bd7(0x22b)]['createTable'](_0x50e90e,_0x4fe7ab[_0x553bd7(0x314)],_0x4fe7ab[_0x553bd7(0x1a5)]);case t[_0x553bd7(0x22d)]['id']:return this[_0x553bd7(0x22b)]['renameTable'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x1b0)]));case t[_0x553bd7(0x232)]['id']:return this[_0x553bd7(0x22b)]['deleteTable'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]));case t[_0x553bd7(0x1f7)]['id']:return this[_0x553bd7(0x2b4)][_0x553bd7(0x2eb)](this[_0x553bd7(0x266)],String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x202)]),String(_0x4fe7ab['fieldId']),_0x4fe7ab['value']);case t[_0x553bd7(0x23a)]['id']:return this[_0x553bd7(0x2b4)][_0x553bd7(0x1a0)](this[_0x553bd7(0x266)],String(_0x4fe7ab[_0x553bd7(0x1e5)]),_0x4fe7ab[_0x553bd7(0x1c3)]);case t[_0x553bd7(0x2a3)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x263)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),_0x4fe7ab['patches']);case t[_0x553bd7(0x33e)]['id']:return this[_0x553bd7(0x2b4)][_0x553bd7(0x307)](this['draftBase'],String(_0x4fe7ab[_0x553bd7(0x1e5)]),_0x4fe7ab[_0x553bd7(0x261)]);case t[_0x553bd7(0x2ce)]['id']:return this[_0x553bd7(0x2b4)][_0x553bd7(0x33b)](this[_0x553bd7(0x266)],String(_0x4fe7ab[_0x553bd7(0x1e5)]),_0x4fe7ab[_0x553bd7(0x333)]);case t[_0x553bd7(0x2cc)]['id']:return this[_0x553bd7(0x22b)]['deleteRecord'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x202)]));case t[_0x553bd7(0x2a6)]['id']:return this[_0x553bd7(0x22b)]['deleteRecords'](_0x50e90e,String(_0x4fe7ab['tableId']),_0x4fe7ab[_0x553bd7(0x32b)]);case t[_0x553bd7(0x27a)]['id']:return this['_factory'][_0x553bd7(0x25d)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2f4)]),_0x4fe7ab[_0x553bd7(0x261)]);case t['UpdateBaseRecordOrderCommand']['id']:return this['_factory'][_0x553bd7(0x300)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab['recordId']),String(_0x4fe7ab[_0x553bd7(0x24c)]));case t[_0x553bd7(0x1fb)]['id']:return this[_0x553bd7(0x2b4)][_0x553bd7(0x309)](this[_0x553bd7(0x266)],String(_0x4fe7ab[_0x553bd7(0x1e5)]),_0x4fe7ab[_0x553bd7(0x1bd)],_0x4fe7ab[_0x553bd7(0x1a5)],_0x4fe7ab[_0x553bd7(0x29f)]);case t[_0x553bd7(0x2d7)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x336)](_0x50e90e,String(_0x4fe7ab['tableId']),String(_0x4fe7ab['fieldId']),_0x4fe7ab['patch']);case t[_0x553bd7(0x1d7)]['id']:return this['_factory'][_0x553bd7(0x1a4)](_0x50e90e,String(_0x4fe7ab['tableId']),String(_0x4fe7ab[_0x553bd7(0x282)]),_0x4fe7ab[_0x553bd7(0x242)]);case t[_0x553bd7(0x1ec)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x245)](_0x50e90e,String(_0x4fe7ab['tableId']),String(_0x4fe7ab['fieldId']));case t[_0x553bd7(0x2a0)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x1c0)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x282)]),_0x4fe7ab['target']);case t[_0x553bd7(0x281)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x229)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),_0x4fe7ab[_0x553bd7(0x31c)],_0x4fe7ab[_0x553bd7(0x1a5)]);case t[_0x553bd7(0x2d0)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x1ab)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),String(_0x4fe7ab[_0x553bd7(0x1b0)]));case t[_0x553bd7(0x227)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x277)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]));case t[_0x553bd7(0x28e)]['id']:return this['_factory']['moveView'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),_0x4fe7ab[_0x553bd7(0x23f)]);case t[_0x553bd7(0x32a)]['id']:return this['_factory']['updateViewConfig'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),_0x4fe7ab[_0x553bd7(0x21f)]);case t[_0x553bd7(0x20d)]['id']:return this[_0x553bd7(0x22b)]['setViewFilter'](_0x50e90e,String(_0x4fe7ab['tableId']),String(_0x4fe7ab[_0x553bd7(0x2da)]),_0x4fe7ab[_0x553bd7(0x2de)]);case t['SetBaseViewSortCommand']['id']:return this[_0x553bd7(0x22b)]['setViewSort'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),_0x4fe7ab[_0x553bd7(0x329)]);case t[_0x553bd7(0x271)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x201)](_0x50e90e,String(_0x4fe7ab['tableId']),String(_0x4fe7ab[_0x553bd7(0x2da)]),_0x4fe7ab[_0x553bd7(0x2fa)]);case t[_0x553bd7(0x1c6)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x2f6)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),String(_0x4fe7ab[_0x553bd7(0x282)]),!!_0x4fe7ab['visible']);case t[_0x553bd7(0x1b2)]['id']:return this[_0x553bd7(0x22b)]['setViewFieldWidth'](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),String(_0x4fe7ab[_0x553bd7(0x282)]),Number(_0x4fe7ab['width']));case t[_0x553bd7(0x2cb)]['id']:return this[_0x553bd7(0x22b)][_0x553bd7(0x276)](_0x50e90e,String(_0x4fe7ab[_0x553bd7(0x1e5)]),String(_0x4fe7ab[_0x553bd7(0x2da)]),String(_0x4fe7ab[_0x553bd7(0x282)]),_0x4fe7ab['target']);default:throw new _(g['InvalidOperation'],_0x553bd7(0x2b9)+_0x21c0a8,{'commandId':_0x21c0a8});}}},H=class{constructor(_0x35d8b0){this['_context']=_0x35d8b0;}[_0x4a8bbc(0x28a)](_0x29a8c7,_0x2b5b24){const _0x4aa4cc=_0x4a8bbc;return this['_context'][_0x4aa4cc(0x344)](_0x29a8c7,_0x2b5b24==null?{}:_0x2b5b24);}},U=class e{constructor(_0x315d1c,_0x170a39,_0x3be7ab,_0x5b131c,_0x57ad19,_0x38c53c,_0x29ba74,_0x47b542){const _0x353974=_0x4a8bbc;this[_0x353974(0x2bd)]=_0x315d1c,this['_commandService']=_0x170a39,this[_0x353974(0x294)]=_0x3be7ab,this[_0x353974(0x2af)]=_0x5b131c,this['_undoRedoService']=_0x57ad19,this[_0x353974(0x2b4)]=_0x38c53c,this[_0x353974(0x2e8)]=_0x29ba74,this[_0x353974(0x2bf)]=_0x47b542;}['getBase'](){const _0x5ca44e=_0x4a8bbc;return this[_0x5ca44e(0x2bd)];}[_0x4a8bbc(0x27f)](){const _0x9ce000=_0x4a8bbc;return this[_0x9ce000(0x2bd)][_0x9ce000(0x1d8)]();}[_0x4a8bbc(0x1a2)](){const _0x11cee6=_0x4a8bbc;return this[_0x11cee6(0x2bd)][_0x11cee6(0x2d2)]()[_0x11cee6(0x1b0)];}[_0x4a8bbc(0x2ff)](){const _0x2f0d46=_0x4a8bbc;let _0x129a6c=this[_0x2f0d46(0x2bd)][_0x2f0d46(0x2d2)]();return _0x129a6c[_0x2f0d46(0x25c)][_0x2f0d46(0x2e6)](_0x341817=>_0x129a6c[_0x2f0d46(0x297)][_0x341817])['filter'](_0x14c1fa=>!!(_0x14c1fa&&!_0x14c1fa[_0x2f0d46(0x20f)]))[_0x2f0d46(0x2e6)](_0xb8a8ad=>this[_0x2f0d46(0x2c8)](_0xb8a8ad['id']));}['getSnapshot'](){const _0x53bf34=_0x4a8bbc;return this[_0x53bf34(0x2bd)][_0x53bf34(0x2d2)]();}[_0x4a8bbc(0x2c7)](){const _0x3753b4=_0x4a8bbc;return this[_0x3753b4(0x2d2)]();}[_0x4a8bbc(0x1dc)](_0x1e26f6){const _0x2a61db=_0x4a8bbc;this[_0x2a61db(0x2bd)][_0x2a61db(0x1dc)](_0x1e26f6);}['getTable'](_0x4f27de){const _0x22a850=_0x4a8bbc;let _0x1b6643=this[_0x22a850(0x2bd)][_0x22a850(0x2d2)]()[_0x22a850(0x297)][_0x4f27de];return _0x1b6643&&!_0x1b6643[_0x22a850(0x20f)]?this['_wrapTable'](_0x1b6643['id']):null;}[_0x4a8bbc(0x223)](_0x29f6cd){const _0x590c72=_0x4a8bbc;return this[_0x590c72(0x244)](_0x29f6cd);}[_0x4a8bbc(0x278)](_0x1e74d4){const _0x89d5f9=_0x4a8bbc;let _0xad4c20=Object[_0x89d5f9(0x2fc)](this[_0x89d5f9(0x2bd)][_0x89d5f9(0x2d2)]()[_0x89d5f9(0x297)])[_0x89d5f9(0x2fe)](_0x57db7a=>!_0x57db7a['deleted']&&_0x57db7a[_0x89d5f9(0x1b0)]===_0x1e74d4);return _0xad4c20?this[_0x89d5f9(0x2c8)](_0xad4c20['id']):null;}[_0x4a8bbc(0x1ac)](_0x3dc195){const _0x4c3507=_0x4a8bbc;var _0x50aac4;let _0xf81806=(_0x50aac4=_0x3dc195['id'])==null?G(_0x4c3507(0x314)):_0x50aac4,_0x754c21=(0x0,n[_0x4c3507(0x1cc)])({'id':_0xf81806,'name':_0x3dc195[_0x4c3507(0x1b0)],'primaryFieldId':G(_0x4c3507(0x1bd)),'primaryFieldName':_0x3dc195['primaryFieldName'],'recordCount':0x0});return y(t[_0x4c3507(0x2f9)]['id'],this[_0x4c3507(0x1b9)][_0x4c3507(0x28a)](t['CreateBaseTableCommand']['id'],{'unitId':this[_0x4c3507(0x2bd)][_0x4c3507(0x1d8)](),'table':_0x754c21,'index':_0x3dc195[_0x4c3507(0x1a5)]}),{'unitId':this['_base'][_0x4c3507(0x1d8)](),'tableId':_0xf81806}),this[_0x4c3507(0x2c8)](_0x754c21['id']);}[_0x4a8bbc(0x21e)](_0x59633c){const _0x4cc659=_0x4a8bbc;return this[_0x4cc659(0x1ac)](_0x59633c);}[_0x4a8bbc(0x1e1)](_0x42448f,_0x30503a){const _0xfe6b0=_0x4a8bbc;y(t[_0xfe6b0(0x22d)]['id'],this[_0xfe6b0(0x1b9)][_0xfe6b0(0x28a)](t[_0xfe6b0(0x22d)]['id'],{'unitId':this[_0xfe6b0(0x2bd)][_0xfe6b0(0x1d8)](),'tableId':_0x42448f,'name':_0x30503a}),{'unitId':this[_0xfe6b0(0x2bd)][_0xfe6b0(0x1d8)](),'tableId':_0x42448f});}[_0x4a8bbc(0x1d6)](_0x181765){const _0x33a2a1=_0x4a8bbc;y(t[_0x33a2a1(0x232)]['id'],this[_0x33a2a1(0x1b9)][_0x33a2a1(0x28a)](t['DeleteBaseTableCommand']['id'],{'unitId':this[_0x33a2a1(0x2bd)]['getUnitId'](),'tableId':_0x181765}),{'unitId':this[_0x33a2a1(0x2bd)][_0x33a2a1(0x1d8)](),'tableId':_0x181765});}[_0x4a8bbc(0x30c)](_0x55a600,_0x2584e9={}){const _0x43f81f=_0x4a8bbc;var _0x346b78,_0x56c42b;let _0x36c002=this[_0x43f81f(0x2bd)][_0x43f81f(0x2d2)]()[_0x43f81f(0x297)][_0x55a600];if(!_0x36c002||_0x36c002['deleted'])throw Error(_0x43f81f(0x302)+_0x55a600+_0x43f81f(0x20c));let _0x3fac0f=(_0x346b78=_0x2584e9['id'])==null?G(_0x43f81f(0x314)):_0x346b78,_0xff0684=(0x0,t[_0x43f81f(0x2e1)])(_0x36c002,{'id':_0x3fac0f,'name':(_0x56c42b=_0x2584e9[_0x43f81f(0x1b0)])==null?_0x36c002['name']+_0x43f81f(0x265):_0x56c42b,'includeRecords':_0x2584e9[_0x43f81f(0x1b8)]===!0x0});return y(t[_0x43f81f(0x2f9)]['id'],this[_0x43f81f(0x1b9)]['syncExecuteCommand'](t[_0x43f81f(0x2f9)]['id'],{'unitId':this[_0x43f81f(0x2bd)]['getUnitId'](),'table':_0xff0684,'index':_0x2584e9[_0x43f81f(0x1a5)]}),{'unitId':this[_0x43f81f(0x2bd)][_0x43f81f(0x1d8)](),'tableId':_0x3fac0f,'sourceTableId':_0x55a600}),this[_0x43f81f(0x2c8)](_0xff0684['id']);}[_0x4a8bbc(0x2d6)](_0x582fa0){const _0x412a6f=_0x4a8bbc;if(this[_0x412a6f(0x2bf)])throw new _(g[_0x412a6f(0x230)],'Nested\x20Base\x20batch\x20calls\x20are\x20not\x20supported.',{'unitId':this[_0x412a6f(0x2bd)][_0x412a6f(0x1d8)]()});if(!this[_0x412a6f(0x2b4)])throw new _(g[_0x412a6f(0x1e7)],_0x412a6f(0x21a),{'unitId':this['_base'][_0x412a6f(0x1d8)]()});let _0x3fa30a=new V(this['_base'],this[_0x412a6f(0x1b9)],this[_0x412a6f(0x2b4)],this[_0x412a6f(0x237)],this[_0x412a6f(0x2e8)]),_0x1c1710=_0x582fa0(new e(_0x3fa30a[_0x412a6f(0x266)],_0x3fa30a[_0x412a6f(0x2f1)],this[_0x412a6f(0x294)],this[_0x412a6f(0x2af)],this[_0x412a6f(0x237)],this[_0x412a6f(0x2b4)],this['_univerInstanceService'],_0x3fa30a));if(_0x1c1710 instanceof Promise)throw new _(g[_0x412a6f(0x1e7)],_0x412a6f(0x1f0),{'unitId':this['_base'][_0x412a6f(0x1d8)]()});return _0x3fa30a['commit'](),_0x1c1710;}[_0x4a8bbc(0x1b3)](_0x306c74,_0x47dfde){const _0x2c0e13=_0x4a8bbc;var _0x266f13,_0x32330b;let _0x4f1122=this[_0x2c0e13(0x2bd)]['getSnapshot'](),_0x3d7a41=_0x4f1122[_0x2c0e13(0x297)][_0x306c74];if(!_0x3d7a41||_0x3d7a41['deleted'])return{'query':_0x47dfde['query'][_0x2c0e13(0x26e)]()[_0x2c0e13(0x283)](),'total':0x0,'matches':[]};if(_0x47dfde[_0x2c0e13(0x2da)]){var _0x2841ee;let _0xbeb7fe=this[_0x2c0e13(0x294)][_0x2c0e13(0x1bc)](_0x4f1122,_0x306c74,_0x47dfde[_0x2c0e13(0x2da)]),_0x3142ab=_0x3d7a41[_0x2c0e13(0x2b7)][_0x47dfde['viewId']],_0x210d09=(_0x2841ee=_0x47dfde[_0x2c0e13(0x1a3)])==null?W(_0x3d7a41,_0x3142ab,_0xbeb7fe):_0x2841ee;return(0x0,t[_0x2c0e13(0x303)])({'table':_0x3d7a41,'rows':_0x2c0e13(0x19a)in _0xbeb7fe&&Array[_0x2c0e13(0x32c)](_0xbeb7fe[_0x2c0e13(0x19a)])?_0xbeb7fe['rows']:[],'query':_0x47dfde[_0x2c0e13(0x1bf)],'fieldIds':_0x210d09,'limit':_0x47dfde[_0x2c0e13(0x28b)]});}return(0x0,t[_0x2c0e13(0x303)])({'table':_0x3d7a41,'rows':((_0x266f13=_0x3d7a41['recordOrder'])==null?Object[_0x2c0e13(0x2fc)](_0x3d7a41['records'])['sort']((_0x64e12f,_0x257159)=>_0x64e12f[_0x2c0e13(0x24c)][_0x2c0e13(0x221)](_0x257159['orderKey']))[_0x2c0e13(0x2e6)](_0x5edc63=>_0x5edc63['id']):_0x266f13)[_0x2c0e13(0x2e6)](_0x52dc9d=>_0x3d7a41[_0x2c0e13(0x333)][_0x52dc9d])[_0x2c0e13(0x2de)](_0xcdd955=>!!(_0xcdd955&&!_0xcdd955['deleted']))[_0x2c0e13(0x2e6)](_0x588e2a=>({'recordId':_0x588e2a['id'],'values':_0x588e2a[_0x2c0e13(0x2fc)]})),'query':_0x47dfde['query'],'fieldIds':(_0x32330b=_0x47dfde[_0x2c0e13(0x1a3)])==null?_0x3d7a41[_0x2c0e13(0x288)][_0x2c0e13(0x2de)](_0x1212d6=>{const _0x7c8f89=_0x2c0e13;let _0x24afc6=_0x3d7a41[_0x7c8f89(0x2db)][_0x1212d6];return!!(_0x24afc6&&!_0x24afc6[_0x7c8f89(0x20f)]);}):_0x32330b,'limit':_0x47dfde[_0x2c0e13(0x28b)]});}['getSchema'](){const _0x4628db=_0x4a8bbc;let _0x2e9c85=this[_0x4628db(0x2bd)][_0x4628db(0x2d2)]();return{'id':_0x2e9c85['id'],'name':_0x2e9c85[_0x4628db(0x1b0)],'tables':this[_0x4628db(0x2ff)]()[_0x4628db(0x2e6)](_0x4681ec=>_0x4681ec['getSchema']())};}[_0x4a8bbc(0x1d3)](){const _0x56b07b=_0x4a8bbc;return new S(this[_0x56b07b(0x2bd)][_0x56b07b(0x1d8)](),this['_permissionService']);}['addEvent'](_0x4577e2,_0x3ee9be){return this['_commandService']['onCommandExecuted'](_0x5ae8b8=>{const _0x5d776e=_0x43aa;let _0x2a6bae=this[_0x5d776e(0x334)](_0x4577e2,_0x5ae8b8);_0x2a6bae&&_0x3ee9be(_0x2a6bae);});}[_0x4a8bbc(0x334)](_0x394ffb,_0x235ffe){return this['_resolveEvent'](_0x394ffb,_0x235ffe);}[_0x4a8bbc(0x2c8)](_0x45e74a){const _0xe9296f=_0x4a8bbc;return new j(this[_0xe9296f(0x2bd)],_0x45e74a,this[_0xe9296f(0x1b9)],this[_0xe9296f(0x294)],this['_permissionService']);}[_0x4a8bbc(0x33c)](_0x38180c,_0xacf3d8){const _0x2f8049=_0x4a8bbc;if(_0x38180c===b['TableChanged']){if(_0xacf3d8['id']===t[_0x2f8049(0x2f9)]['id']){let {table:_0x494ece}=_0xacf3d8[_0x2f8049(0x1c9)];return{'type':'created','table':this[_0x2f8049(0x244)](_0x494ece['id']),'tableId':_0x494ece['id'],'payload':_0xacf3d8};}if(_0xacf3d8['id']===t[_0x2f8049(0x22d)]['id']){let {tableId:_0x4a743e}=_0xacf3d8[_0x2f8049(0x1c9)],_0x364434=this[_0x2f8049(0x244)](_0x4a743e);return _0x364434?{'type':_0x2f8049(0x324),'table':_0x364434,'tableId':_0x4a743e,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x232)]['id']){let {tableId:_0xea2887}=_0xacf3d8[_0x2f8049(0x1c9)];return{'type':_0x2f8049(0x20f),'table':this['getTable'](_0xea2887),'tableId':_0xea2887,'payload':_0xacf3d8};}}if(_0x38180c===b[_0x2f8049(0x2aa)]){if(_0xacf3d8['id']===t[_0x2f8049(0x33e)]['id']){let {tableId:_0xb17603,record:_0x2e6e47}=_0xacf3d8[_0x2f8049(0x1c9)],_0x15ef8c=this[_0x2f8049(0x244)](_0xb17603);return _0x15ef8c?{'type':_0x2f8049(0x26f),'table':_0x15ef8c,'records':[_0x15ef8c['getRecord'](_0x2e6e47['id'])][_0x2f8049(0x2de)](Boolean),'tableId':_0xb17603,'recordIds':[_0x2e6e47['id']],'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x2ce)]['id']){let {tableId:_0x14eef1,records:_0x366afd}=_0xacf3d8['params'],_0x3c13e7=this[_0x2f8049(0x244)](_0x14eef1);if(!_0x3c13e7)return null;let _0x26c0da=_0x366afd['map'](_0x1d77dc=>_0x1d77dc['id']);return{'type':_0x2f8049(0x26f),'table':_0x3c13e7,'records':_0x26c0da[_0x2f8049(0x2e6)](_0x1daaee=>_0x3c13e7['getRecord'](_0x1daaee))[_0x2f8049(0x2de)](Boolean),'tableId':_0x14eef1,'recordIds':_0x26c0da,'payload':_0xacf3d8};}if(_0xacf3d8['id']===t[_0x2f8049(0x2cc)]['id']){let {tableId:_0x4a14d9,recordId:_0x281e9d}=_0xacf3d8[_0x2f8049(0x1c9)],_0x96b8b6=this[_0x2f8049(0x244)](_0x4a14d9);return _0x96b8b6?{'type':_0x2f8049(0x20f),'table':_0x96b8b6,'records':[_0x96b8b6['getRecord'](_0x281e9d)][_0x2f8049(0x2de)](Boolean),'tableId':_0x4a14d9,'recordIds':[_0x281e9d],'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x2a6)]['id']){let {tableId:_0x49e834,recordIds:_0x4542a9}=_0xacf3d8[_0x2f8049(0x1c9)],_0x4681f3=this['getTable'](_0x49e834);return _0x4681f3?{'type':'deleted','table':_0x4681f3,'records':[],'tableId':_0x49e834,'recordIds':_0x4542a9,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x27a)]['id']){let {tableId:_0x1d53ce,record:_0x492261}=_0xacf3d8[_0x2f8049(0x1c9)],_0x509da3=this[_0x2f8049(0x244)](_0x1d53ce);return _0x509da3?{'type':_0x2f8049(0x34b),'table':_0x509da3,'records':[_0x509da3['getRecord'](_0x492261['id'])][_0x2f8049(0x2de)](Boolean),'tableId':_0x1d53ce,'recordIds':[_0x492261['id']],'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x23a)]['id']){let {tableId:_0x3d8db4,patches:_0x83a4a6}=_0xacf3d8[_0x2f8049(0x1c9)],_0x17f172=this[_0x2f8049(0x244)](_0x3d8db4);if(!_0x17f172)return null;let _0x25e064=_0x83a4a6[_0x2f8049(0x2e6)](_0x2a8bce=>_0x2a8bce['recordId']);return{'type':'updated','table':_0x17f172,'records':_0x25e064[_0x2f8049(0x2e6)](_0x31dfac=>_0x17f172[_0x2f8049(0x306)](_0x31dfac))['filter'](Boolean),'tableId':_0x3d8db4,'recordIds':_0x25e064,'payload':_0xacf3d8};}if(_0xacf3d8['id']===t[_0x2f8049(0x210)]['id']){let {tableId:_0x165ccd,recordId:_0x43bf1b}=_0xacf3d8[_0x2f8049(0x1c9)],_0x4c589e=this['getTable'](_0x165ccd);return _0x4c589e?{'type':_0x2f8049(0x26c),'table':_0x4c589e,'records':[_0x4c589e[_0x2f8049(0x306)](_0x43bf1b)]['filter'](Boolean),'tableId':_0x165ccd,'recordIds':[_0x43bf1b],'payload':_0xacf3d8}:null;}}if(_0x38180c===b[_0x2f8049(0x327)]&&_0xacf3d8['id']===t[_0x2f8049(0x1f7)]['id']){let {tableId:_0x1e8911,recordId:_0xbe57eb,fieldId:_0x3fc06b,value:_0x225d5a}=_0xacf3d8['params'],_0x4c391e=this[_0x2f8049(0x244)](_0x1e8911);return _0x4c391e?{'table':_0x4c391e,'tableId':_0x1e8911,'changes':[{'recordId':_0xbe57eb,'fieldId':_0x3fc06b,'value':_0x225d5a}],'payload':_0xacf3d8}:null;}if(_0x38180c===b[_0x2f8049(0x262)]){if(_0xacf3d8['id']===t['CreateBaseFieldCommand']['id']){let {tableId:_0x405642,field:_0x452ce2}=_0xacf3d8[_0x2f8049(0x1c9)],_0x59ccb1=this[_0x2f8049(0x244)](_0x405642);return _0x59ccb1?{'type':_0x2f8049(0x26f),'table':_0x59ccb1,'field':_0x59ccb1[_0x2f8049(0x1ea)](_0x452ce2['id']),'tableId':_0x405642,'fieldId':_0x452ce2['id'],'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x2d7)]['id']){let {tableId:_0x52b5ba,fieldId:_0xf06e2b}=_0xacf3d8[_0x2f8049(0x1c9)],_0x3187a1=this[_0x2f8049(0x244)](_0x52b5ba);return _0x3187a1?{'type':_0x2f8049(0x2ea),'table':_0x3187a1,'field':_0x3187a1[_0x2f8049(0x1ea)](_0xf06e2b),'tableId':_0x52b5ba,'fieldId':_0xf06e2b,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x1d7)]['id']){let {tableId:_0x35ddba,fieldId:_0x4d9468}=_0xacf3d8[_0x2f8049(0x1c9)],_0x51fef9=this[_0x2f8049(0x244)](_0x35ddba);return _0x51fef9?{'type':_0x2f8049(0x2ed),'table':_0x51fef9,'field':_0x51fef9[_0x2f8049(0x1ea)](_0x4d9468),'tableId':_0x35ddba,'fieldId':_0x4d9468,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x1ec)]['id']){let {tableId:_0x27069d,fieldId:_0x5dbb16}=_0xacf3d8['params'],_0x572481=this['getTable'](_0x27069d);return _0x572481?{'type':_0x2f8049(0x20f),'table':_0x572481,'field':_0x572481[_0x2f8049(0x1ea)](_0x5dbb16),'tableId':_0x27069d,'fieldId':_0x5dbb16,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x2a0)]['id']){let {tableId:_0x26d0f5,fieldId:_0x3ec621}=_0xacf3d8[_0x2f8049(0x1c9)],_0x483dfe=this[_0x2f8049(0x244)](_0x26d0f5);return _0x483dfe?{'type':_0x2f8049(0x26c),'table':_0x483dfe,'field':_0x483dfe['getField'](_0x3ec621),'tableId':_0x26d0f5,'fieldId':_0x3ec621,'payload':_0xacf3d8}:null;}}if(_0x38180c===b[_0x2f8049(0x305)]){if(_0xacf3d8['id']===t[_0x2f8049(0x281)]['id']){let {tableId:_0x63848,view:_0x57c62b}=_0xacf3d8[_0x2f8049(0x1c9)],_0x31e85c=this['getTable'](_0x63848);return _0x31e85c?{'type':'created','table':_0x31e85c,'view':_0x31e85c[_0x2f8049(0x275)](_0x57c62b['id']),'tableId':_0x63848,'viewId':_0x57c62b['id'],'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t['RenameBaseViewCommand']['id']){let {tableId:_0x4258d7,viewId:_0x594c76}=_0xacf3d8[_0x2f8049(0x1c9)],_0x72213b=this[_0x2f8049(0x244)](_0x4258d7);return _0x72213b?{'type':_0x2f8049(0x324),'table':_0x72213b,'view':_0x72213b[_0x2f8049(0x275)](_0x594c76),'tableId':_0x4258d7,'viewId':_0x594c76,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t[_0x2f8049(0x227)]['id']){let {tableId:_0xf77332,viewId:_0x364557}=_0xacf3d8['params'],_0xa7ffc3=this[_0x2f8049(0x244)](_0xf77332);return _0xa7ffc3?{'type':_0x2f8049(0x20f),'table':_0xa7ffc3,'view':_0xa7ffc3[_0x2f8049(0x275)](_0x364557),'tableId':_0xf77332,'viewId':_0x364557,'payload':_0xacf3d8}:null;}if(_0xacf3d8['id']===t['MoveBaseViewCommand']['id']){let {tableId:_0x1b8a0a,viewId:_0x5e1df1}=_0xacf3d8[_0x2f8049(0x1c9)],_0xfe3995=this[_0x2f8049(0x244)](_0x1b8a0a);return _0xfe3995?{'type':'moved','table':_0xfe3995,'view':_0xfe3995[_0x2f8049(0x275)](_0x5e1df1),'tableId':_0x1b8a0a,'viewId':_0x5e1df1,'payload':_0xacf3d8}:null;}if([t[_0x2f8049(0x32a)]['id'],t[_0x2f8049(0x20d)]['id'],t[_0x2f8049(0x1f9)]['id'],t[_0x2f8049(0x271)]['id'],t[_0x2f8049(0x1c6)]['id'],t[_0x2f8049(0x1b2)]['id'],t[_0x2f8049(0x2cb)]['id']][_0x2f8049(0x260)](_0xacf3d8['id'])){let {tableId:_0xb5a247,viewId:_0x429605}=_0xacf3d8[_0x2f8049(0x1c9)],_0x3ca759=this[_0x2f8049(0x244)](_0xb5a247);return _0x3ca759?{'type':_0x2f8049(0x2ea),'table':_0x3ca759,'view':_0x3ca759['getView'](_0x429605),'tableId':_0xb5a247,'viewId':_0x429605,'payload':_0xacf3d8}:null;}}return null;}};function W(_0x29581e,_0xa60c07,_0x1f783f){const _0x119d52=_0x4a8bbc;var _0xaf8bf3;if(_0x1f783f[_0x119d52(0x342)]===_0x119d52(0x22c)){var _0xb7ab5c,_0x48d939,_0x57d80d;let _0xecd5d5=[(_0xb7ab5c=(_0x48d939=_0x1f783f[_0x119d52(0x2db)])==null||(_0x48d939=_0x48d939[0x0])==null?void 0x0:_0x48d939['id'])==null?_0x29581e[_0x119d52(0x198)]:_0xb7ab5c,...(_0x57d80d=_0x1f783f[_0x119d52(0x2f5)])==null?[]:_0x57d80d];return Array[_0x119d52(0x26b)](new Set(_0xecd5d5['filter'](_0x1cdee5=>{const _0x30fbd5=_0x119d52;let _0x5b17c6=_0x29581e['fields'][_0x1cdee5];return!!(_0x5b17c6&&!_0x5b17c6[_0x30fbd5(0x20f)]);})));}return(_0xaf8bf3=_0x1f783f['fields'])!=null&&_0xaf8bf3[_0x119d52(0x2f2)]?_0x1f783f['fields'][_0x119d52(0x2e6)](_0x39848e=>_0x39848e['id'])[_0x119d52(0x2de)](_0x256294=>{const _0x1e4f99=_0x119d52;var _0x3379fb;let _0x5ee12b=_0x29581e['fields'][_0x256294];return!!(_0x5ee12b&&!_0x5ee12b[_0x1e4f99(0x20f)]&&!(!(_0xa60c07==null||(_0x3379fb=_0xa60c07[_0x1e4f99(0x291)])==null||(_0x3379fb=_0x3379fb[_0x256294])==null)&&_0x3379fb[_0x1e4f99(0x1ef)]));}):_0x29581e['fieldOrder'][_0x119d52(0x2de)](_0x2894b2=>{const _0xb45822=_0x119d52;var _0x5e2464;let _0x4f6f98=_0x29581e['fields'][_0x2894b2];return!!(_0x4f6f98&&!_0x4f6f98['deleted']&&!(!(_0xa60c07==null||(_0x5e2464=_0xa60c07[_0xb45822(0x291)])==null||(_0x5e2464=_0x5e2464[_0x2894b2])==null)&&_0x5e2464[_0xb45822(0x1ef)]));});}function G(_0x3dba45){const _0xdf016e=_0x4a8bbc;return _0x3dba45+'-'+Math[_0xdf016e(0x231)]()[_0xdf016e(0x2ae)](0x24)[_0xdf016e(0x1cf)](0x2,0xa);}var K=class extends e[_0x4a8bbc(0x2ba)]{[_0x4a8bbc(0x2b5)](_0x4e48e3){this['_initBaseBeforeEvents'](_0x4e48e3),this['_initBaseAfterEvents'](_0x4e48e3);}[_0x4a8bbc(0x292)](_0x5b8bb1,_0x1aba81){const _0x5c2b49=_0x4a8bbc;var _0x5c7f71;let _0x14380f={'base':null,'baseId':(_0x5c7f71=_0x5b8bb1['id'])==null?'':_0x5c7f71,'snapshot':_0x5b8bb1};if(this[_0x5c2b49(0x2fb)](this['Event'][_0x5c2b49(0x301)],_0x14380f),_0x14380f[_0x5c2b49(0x2d8)])throw new n['CanceledError']();let _0x1c2ee9=this[_0x5c2b49(0x33f)][_0x5c2b49(0x340)](n[_0x5c2b49(0x217)])[_0x5c2b49(0x2bb)](n['UniverInstanceType'][_0x5c2b49(0x1d0)],_0x5b8bb1,_0x1aba81),_0xa7b7dd=this['_wrap'](_0x1c2ee9),_0x4d8474={'base':_0xa7b7dd,'baseId':_0xa7b7dd[_0x5c2b49(0x27f)](),'snapshot':_0x5b8bb1};return this['fireEvent'](this[_0x5c2b49(0x326)]['BaseCreated'],_0x4d8474),this[_0x5c2b49(0x2fb)](this[_0x5c2b49(0x326)][_0x5c2b49(0x1ca)],_0x4d8474),_0xa7b7dd;}[_0x4a8bbc(0x238)](){const _0x5e050f=_0x4a8bbc;let _0x281410=this[_0x5e050f(0x33f)]['get'](n[_0x5e050f(0x217)])[_0x5e050f(0x269)](n[_0x5e050f(0x311)][_0x5e050f(0x1d0)]);return _0x281410?this[_0x5e050f(0x1cb)](_0x281410):null;}['getBase'](_0xf26290){const _0x4e0271=_0x4a8bbc;let _0x38ba2e=this[_0x4e0271(0x33f)][_0x4e0271(0x340)](n[_0x4e0271(0x217)])[_0x4e0271(0x1a1)](_0xf26290,n[_0x4e0271(0x311)]['UNIVER_BASE']);return _0x38ba2e?this['_wrap'](_0x38ba2e):null;}['getBases'](){const _0x33f10a=_0x4a8bbc;return this['_injector']['get'](n[_0x33f10a(0x217)])[_0x33f10a(0x1a9)](n['UniverInstanceType'][_0x33f10a(0x1d0)])[_0x33f10a(0x2e6)](_0x48817f=>this[_0x33f10a(0x1cb)](_0x48817f));}['_wrap'](_0x3c49a9){const _0x4e933c=_0x4a8bbc;return new U(_0x3c49a9,this['_injector'][_0x4e933c(0x340)](n['ICommandService']),this[_0x4e933c(0x33f)][_0x4e933c(0x340)](t[_0x4e933c(0x331)]),this[_0x4e933c(0x33f)][_0x4e933c(0x340)](t[_0x4e933c(0x299)]),this['_injector']['get'](n[_0x4e933c(0x318)]),this[_0x4e933c(0x33f)][_0x4e933c(0x340)](t[_0x4e933c(0x2f8)]),this['_injector'][_0x4e933c(0x340)](n[_0x4e933c(0x217)]));}[_0x4a8bbc(0x1f8)](_0x41e6fc){const _0x1679cb=_0x4a8bbc;let _0x53a036=_0x41e6fc[_0x1679cb(0x340)](n[_0x1679cb(0x29a)]);[[_0x1679cb(0x30e),b[_0x1679cb(0x208)]],[_0x1679cb(0x24d),b[_0x1679cb(0x262)]],[_0x1679cb(0x2ad),b[_0x1679cb(0x2aa)]],[_0x1679cb(0x1f5),b[_0x1679cb(0x327)]],['BaseViewChanged',b[_0x1679cb(0x305)]],[_0x1679cb(0x208),b[_0x1679cb(0x208)]],[_0x1679cb(0x262),b[_0x1679cb(0x262)]],[_0x1679cb(0x2aa),b[_0x1679cb(0x2aa)]],['CellValueChanged',b[_0x1679cb(0x327)]],[_0x1679cb(0x305),b[_0x1679cb(0x305)]]][_0x1679cb(0x1c8)](([_0x15d8b3,_0x5bdb52])=>{const _0x2d7c72=_0x1679cb;this[_0x2d7c72(0x1e2)](this['registerEventHandler'](this[_0x2d7c72(0x326)][_0x15d8b3],()=>_0x53a036[_0x2d7c72(0x1c1)](_0x41146c=>{const _0x3665f6=_0x2d7c72;let _0x565cf0=this[_0x3665f6(0x34d)](_0x5bdb52,_0x41146c);_0x565cf0&&this[_0x3665f6(0x2fb)](this[_0x3665f6(0x326)][_0x15d8b3],_0x565cf0);})));}),this['disposeWithMe'](this[_0x1679cb(0x2c0)](this['Event'][_0x1679cb(0x2ee)],()=>_0x53a036['onCommandExecuted'](_0x59426e=>{const _0x127d9d=_0x1679cb;let _0x1bb407=this[_0x127d9d(0x1b5)](_0x59426e);_0x1bb407&&this[_0x127d9d(0x2fb)](this[_0x127d9d(0x326)][_0x127d9d(0x2ee)],_0x1bb407);})));}[_0x4a8bbc(0x347)](_0x2c6e53){const _0x144abb=_0x4a8bbc;let _0x35c63d=_0x2c6e53['get'](n[_0x144abb(0x29a)]);[['BeforeBaseTableCreate',_0xa7b37=>this[_0x144abb(0x1d5)](_0xa7b37)],[_0x144abb(0x308),_0x3cda85=>this[_0x144abb(0x225)](_0x3cda85)],[_0x144abb(0x2b3),_0x55809e=>this[_0x144abb(0x256)](_0x55809e)],[_0x144abb(0x27e),_0x29c3d6=>this[_0x144abb(0x323)](_0x29c3d6)],[_0x144abb(0x2f3),_0x37bbf8=>this['_resolveBeforeBaseViewCreate'](_0x37bbf8)]][_0x144abb(0x1c8)](([_0x2ef6e3,_0x19942e])=>{const _0x38a35e=_0x144abb;this[_0x38a35e(0x1e2)](this[_0x38a35e(0x2c0)](this['Event'][_0x2ef6e3],()=>_0x35c63d[_0x38a35e(0x214)](_0x2d9d81=>{const _0x3d7d38=_0x38a35e;let _0x1ffed1=_0x19942e(_0x2d9d81);if(_0x1ffed1&&(this[_0x3d7d38(0x2fb)](this[_0x3d7d38(0x326)][_0x2ef6e3],_0x1ffed1),_0x1ffed1[_0x3d7d38(0x2d8)]))throw new n[(_0x3d7d38(0x247))]();})));});}[_0x4a8bbc(0x34d)](_0x46cbbf,_0x26185f){const _0x3a2a88=_0x4a8bbc;if(!_0x26185f[_0x3a2a88(0x1c9)]||!('unitId'in _0x26185f['params']))return null;let _0x1d9893=this[_0x3a2a88(0x205)](_0x26185f[_0x3a2a88(0x1c9)][_0x3a2a88(0x218)]);return _0x1d9893?_0x1d9893[_0x3a2a88(0x334)](_0x46cbbf,_0x26185f):null;}[_0x4a8bbc(0x1b5)](_0x26b613){const _0x2f61dd=_0x4a8bbc;if(_0x26b613['id']!==t[_0x2f61dd(0x2e4)]['id'])return null;let {unitId:_0x2b41b1,trigger:_0x1478ed}=_0x26b613[_0x2f61dd(0x1c9)];return!_0x2b41b1||_0x1478ed!=='facade.batch'?null:{'base':this[_0x2f61dd(0x205)](_0x2b41b1),'baseId':_0x2b41b1,'payload':_0x26b613};}[_0x4a8bbc(0x1d5)](_0x54f75f){const _0x29eacd=_0x4a8bbc;if(_0x54f75f['id']!==t[_0x29eacd(0x2f9)]['id'])return null;let {unitId:_0x3a19e6,table:_0x8916ca}=_0x54f75f[_0x29eacd(0x1c9)];return!this[_0x29eacd(0x205)](_0x3a19e6)||!_0x8916ca?null:{'type':_0x29eacd(0x26f),'table':null,'tableId':_0x8916ca['id'],'payload':_0x54f75f};}[_0x4a8bbc(0x225)](_0x4c3166){const _0x235c8d=_0x4a8bbc;if(_0x4c3166['id']!==t[_0x235c8d(0x1fb)]['id'])return null;let {unitId:_0x485c7f,tableId:_0x714417,field:_0x42bfbe}=_0x4c3166[_0x235c8d(0x1c9)],_0x41c29f=this[_0x235c8d(0x205)](_0x485c7f);if(!_0x41c29f)return null;let _0x283158=_0x41c29f['getTable'](_0x714417);return _0x283158?{'type':_0x235c8d(0x26f),'table':_0x283158,'field':null,'tableId':_0x283158[_0x235c8d(0x27f)](),'fieldId':_0x42bfbe['id'],'payload':_0x4c3166}:null;}[_0x4a8bbc(0x256)](_0xc9de91){const _0x4c7a45=_0x4a8bbc;if(_0xc9de91['id']===t[_0x4c7a45(0x33e)]['id']){let {unitId:_0x3b37f2,tableId:_0xae8edd,record:_0x565a62}=_0xc9de91[_0x4c7a45(0x1c9)],_0x2479ef=this[_0x4c7a45(0x205)](_0x3b37f2);if(!_0x2479ef)return null;let _0x3e5bc6=_0x2479ef[_0x4c7a45(0x244)](_0xae8edd);return _0x3e5bc6?{'type':_0x4c7a45(0x26f),'table':_0x3e5bc6,'records':[],'tableId':_0x3e5bc6['getId'](),'recordIds':[_0x565a62['id']],'payload':_0xc9de91}:null;}else{if(_0xc9de91['id']===t['BatchCreateBaseRecordsCommand']['id']){let {unitId:_0x9f7ebf,tableId:_0x1c2ac7,records:_0x3ab572}=_0xc9de91[_0x4c7a45(0x1c9)],_0x2d943a=this['getBase'](_0x9f7ebf);if(!_0x2d943a)return null;let _0x595d9f=_0x2d943a['getTable'](_0x1c2ac7);return _0x595d9f?{'type':'created','table':_0x595d9f,'records':[],'tableId':_0x595d9f[_0x4c7a45(0x27f)](),'recordIds':_0x3ab572[_0x4c7a45(0x2e6)](_0x3bef15=>_0x3bef15['id']),'payload':_0xc9de91}:null;}}return null;}[_0x4a8bbc(0x323)](_0xc00873){const _0x302831=_0x4a8bbc;if(_0xc00873['id']!==t[_0x302831(0x1f7)]['id'])return null;let {unitId:_0x3b9b17,tableId:_0x51dacb,recordId:_0x189d44,fieldId:_0x3315f0,value:_0x1de6c5}=_0xc00873[_0x302831(0x1c9)],_0x1d517b=this[_0x302831(0x205)](_0x3b9b17);if(!_0x1d517b)return null;let _0x267316=_0x1d517b['getTable'](_0x51dacb);return _0x267316?{'table':_0x267316,'tableId':_0x267316['getId'](),'changes':[{'recordId':_0x189d44,'fieldId':_0x3315f0,'value':_0x1de6c5}],'payload':_0xc00873}:null;}[_0x4a8bbc(0x2c1)](_0x59e0d2){const _0x3d5a43=_0x4a8bbc;if(_0x59e0d2['id']!==t['CreateBaseViewCommand']['id'])return null;let {unitId:_0xbe8c56,tableId:_0xca4af2,view:_0x3e3c13}=_0x59e0d2[_0x3d5a43(0x1c9)],_0x142add=this['getBase'](_0xbe8c56);if(!_0x142add)return null;let _0x14ccc3=_0x142add[_0x3d5a43(0x244)](_0xca4af2);return _0x14ccc3?{'type':_0x3d5a43(0x26f),'table':_0x14ccc3,'view':null,'tableId':_0x14ccc3[_0x3d5a43(0x27f)](),'viewId':_0x3e3c13['id'],'payload':_0x59e0d2}:null;}};e[_0x4a8bbc(0x2ba)]['extend'](K),exports[_0x4a8bbc(0x1f2)]=c,exports[_0x4a8bbc(0x310)]=l,exports[_0x4a8bbc(0x215)]=_,exports[_0x4a8bbc(0x2a5)]=g,exports[_0x4a8bbc(0x206)]=u,exports['BaseEventName']=b,exports[_0x4a8bbc(0x26d)]=s,exports[_0x4a8bbc(0x255)]=r,exports['BaseFilterOperatorEnum']=a,exports[_0x4a8bbc(0x1ba)]=o,exports[_0x4a8bbc(0x2d4)]=V,exports[_0x4a8bbc(0x1da)]=i,exports[_0x4a8bbc(0x286)]=U,exports[_0x4a8bbc(0x2cd)]=S,exports['FBaseRange']=T,exports['FField']=w,exports['FRecord']=O,exports[_0x4a8bbc(0x2b1)]=j,exports[_0x4a8bbc(0x1fd)]=C,exports[_0x4a8bbc(0x24f)]=K,exports[_0x4a8bbc(0x349)]=A,exports[_0x4a8bbc(0x19d)]=y,exports[_0x4a8bbc(0x257)]=v,exports[_0x4a8bbc(0x1f6)]=D,exports[_0x4a8bbc(0x1eb)]=E;
|
|
1
|
+
const _0x1c8f3=_0x2ad4;(function(_0x55897b,_0x4fbecb){const _0x2db318=_0x2ad4,_0x14498d=_0x55897b();while(!![]){try{const _0x117dac=parseInt(_0x2db318(0x1a0))/0x1+parseInt(_0x2db318(0x190))/0x2*(-parseInt(_0x2db318(0x17a))/0x3)+parseInt(_0x2db318(0x22f))/0x4+-parseInt(_0x2db318(0x1d5))/0x5+-parseInt(_0x2db318(0x24b))/0x6+parseInt(_0x2db318(0x15d))/0x7*(parseInt(_0x2db318(0x1a4))/0x8)+-parseInt(_0x2db318(0x18d))/0x9*(-parseInt(_0x2db318(0x111))/0xa);if(_0x117dac===_0x4fbecb)break;else _0x14498d['push'](_0x14498d['shift']());}catch(_0x2c8872){_0x14498d['push'](_0x14498d['shift']());}}}(_0x2ff4,0x575e4),Object['defineProperty'](exports,Symbol[_0x1c8f3(0x1e7)],{'value':_0x1c8f3(0x1ab)}));let e=require('@univerjs/core/facade'),t=require('@univerjs-pro/bases'),n=require('@univerjs/core');const r={'Text':'text','SingleSelect':_0x1c8f3(0x28d),'MultiSelect':_0x1c8f3(0xf5),'Person':_0x1c8f3(0x1cc),'Group':_0x1c8f3(0x290),'Date':_0x1c8f3(0xfa),'Attachment':_0x1c8f3(0x1e5),'Number':_0x1c8f3(0x24e),'Checkbox':_0x1c8f3(0xf1),'Link':_0x1c8f3(0x12c),'Formula':_0x1c8f3(0x256),'Lookup':'lookup','Flow':_0x1c8f3(0x25a),'Button':'button','Numbering':_0x1c8f3(0x1b4),'Phone':'phone','Email':_0x1c8f3(0x212),'Location':_0x1c8f3(0x102),'Barcode':_0x1c8f3(0x101),'Progress':_0x1c8f3(0x1b6),'Currency':_0x1c8f3(0x265),'Rating':_0x1c8f3(0x1be),'TwoWayLink':_0x1c8f3(0x170),'RecordId':_0x1c8f3(0x199),'CreatedBy':_0x1c8f3(0xf8),'UpdatedBy':_0x1c8f3(0x1a6),'CreatedAt':_0x1c8f3(0x1b2),'UpdatedAt':_0x1c8f3(0x280),'Summary':_0x1c8f3(0x14d)},i={'Grid':_0x1c8f3(0x1fc),'Kanban':_0x1c8f3(0x227),'Calendar':'calendar','Gantt':_0x1c8f3(0x219),'Gallery':_0x1c8f3(0x233)},a={'Is':'is','IsNot':_0x1c8f3(0x26f),'Contains':'contains','DoesNotContain':'doesNotContain','IsEmpty':_0x1c8f3(0xe6),'IsNotEmpty':_0x1c8f3(0x220),'GreaterThan':_0x1c8f3(0xf0),'GreaterThanOrEqual':_0x1c8f3(0x23f),'LessThan':_0x1c8f3(0x24c),'LessThanOrEqual':_0x1c8f3(0xef),'Matches':_0x1c8f3(0x159),'NotMatches':_0x1c8f3(0x262)},o={'Asc':_0x1c8f3(0x283),'Desc':_0x1c8f3(0x222)},s={'Id':'id','Name':_0x1c8f3(0x10b),'Auto':'auto'},c={'Immediate':'immediate','Coalesce':'coalesce','Silent':_0x1c8f3(0x273)},l={'Single':'single','None':'none'},u={'CommandFailed':_0x1c8f3(0x291),'FieldNotFound':'FieldNotFound','DuplicateFieldName':_0x1c8f3(0x19c),'TableNotFound':_0x1c8f3(0x1db),'ViewNotFound':_0x1c8f3(0x207),'RecordNotFound':'RecordNotFound','InvalidFilter':_0x1c8f3(0x22c),'InvalidOperation':_0x1c8f3(0x284),'BatchAlreadyRunning':'BatchAlreadyRunning','BatchFailed':'BatchFailed'};var d=class extends e[_0x1c8f3(0x1d0)]{get['BaseFieldTypeEnum'](){return r;}get[_0x1c8f3(0x23a)](){return i;}get['BaseFilterOperatorEnum'](){return a;}get['BaseSortDirectionEnum'](){return o;}get[_0x1c8f3(0x1f9)](){return s;}get[_0x1c8f3(0xf7)](){return c;}get[_0x1c8f3(0x22b)](){return l;}get['BaseErrorCodeEnum'](){return u;}};e['FEnum'][_0x1c8f3(0x151)](d);function f(_0x53d240){'@babel/helpers - typeof';const _0x5ac0be=_0x1c8f3;return f=typeof Symbol==_0x5ac0be(0x1fe)&&typeof Symbol['iterator']==_0x5ac0be(0x1d2)?function(_0x42ec69){return typeof _0x42ec69;}:function(_0x420568){const _0x217ca4=_0x5ac0be;return _0x420568&&typeof Symbol==_0x217ca4(0x1fe)&&_0x420568[_0x217ca4(0x128)]===Symbol&&_0x420568!==Symbol[_0x217ca4(0x194)]?_0x217ca4(0x1d2):typeof _0x420568;},f(_0x53d240);}function p(_0x31048b,_0x3390fa){const _0x1d1573=_0x1c8f3;if(f(_0x31048b)!=_0x1d1573(0x1b0)||!_0x31048b)return _0x31048b;var _0x584f0d=_0x31048b[Symbol[_0x1d1573(0x288)]];if(_0x584f0d!==void 0x0){var _0x593200=_0x584f0d[_0x1d1573(0x17c)](_0x31048b,_0x3390fa||_0x1d1573(0x119));if(f(_0x593200)!=_0x1d1573(0x1b0))return _0x593200;throw TypeError(_0x1d1573(0x272));}return(_0x3390fa==='string'?String:Number)(_0x31048b);}function m(_0x2aa867){const _0x575d91=_0x1c8f3;var _0x589785=p(_0x2aa867,_0x575d91(0x23e));return f(_0x589785)=='symbol'?_0x589785:_0x589785+'';}function h(_0x282e51,_0xc2ffaf,_0x204197){const _0x56af16=_0x1c8f3;return(_0xc2ffaf=m(_0xc2ffaf))in _0x282e51?Object[_0x56af16(0x1aa)](_0x282e51,_0xc2ffaf,{'value':_0x204197,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x282e51[_0xc2ffaf]=_0x204197,_0x282e51;}function _0x2ff4(){const _0xcddef9=['getPrimaryField','canDeleteRecord','resolveBaseFieldKey','field','getNumRows','getUnitId','endColumn','name','setDefaultValue','renamed','cancel','_base','fireEvent','10DTlkPl','getType','_context','fieldKey','hidden','_univerInstanceService','renameTable','BaseError','default','caseSensitive','UpdateBaseFieldCommand','values','createCreateFieldOp','tableId','clearBasePermission','resolveCommandEvent','UpdateBaseRecordOrderCommand','rows','disposeWithMe','_initBaseBeforeEvents','_outerCommandService','conditions','applyOp','constructor','_initialSnapshot','addRecords','setConfig','link','createTable','listViews','getConfig','CreateBaseViewCommand','BeforeBaseTableCreate','ViewChanged','canEditCell','_resolveEvent','_tableId','getTableId','viewId','startRow','_viewId','SetBaseViewFilterCommand','query','flatMap','isArray','_wrapField','createUpdateCellOp','tableOrder','description','CreateBaseTableCommand','addRecord','createField','IUndoRedoService','BaseTransactionContext','delete','_wrapRecord','ApplyBaseJson1Mutation','endRow','FTable','getFieldSettings','summary','clearRecordPermission','getUnit','_permissionService','extend','deleted','FieldChanged','BeforeBaseRecordCreate','Base\x20batch\x20callbacks\x20must\x20be\x20synchronous.','FBase','onCommandExecuted','type','matches','MoveBaseViewCommand','deleteView','Command\x20is\x20not\x20supported\x20in\x20Base\x20batch:\x20','2486442efwRDg','[FBaseRange]:\x20table\x20\x22','setViewFieldWidth','assertBaseCommandSucceeded','_baseCommandService','some','insertTable','ICommandService','deleteTable','BaseViewChanged','DeleteBaseFieldCommand','_resolveBeforeBaseViewCreate','SetBaseRangeValuesCommand','forEach','[FView]:\x20view\x20\x22','BaseReady','startColumn','clear','_injector','twoWayLink','getBaseCellValue','createView','setValue','sort','BeforeBaseCellValueChange','_wrapView','_undoRedoService','getViewByName','params','851385ZQAQdX','getCellValue','call','createCreateRecordOp','pushUndoRedo','getPrimaryFieldId','SetBaseRecordValuesCommand','value','unitId','focusUnit','_transactionContext','registerEventHandler','test','RenameBaseViewCommand','createDefaultBaseTableSnapshot','getId','getDescription','clearFieldPermission','visible','643338hEWHeD','createBase','_recordId','4JXNscV','getViews','recordIds','CanceledError','prototype','BaseErrorCodeEnum','BeforeBaseFieldCreate','conjunction','canDeleteTable','recordId','FEventName','BeforeBaseViewCreate','DuplicateFieldName','[FField]:\x20field\x20\x22','canCreateRecord','indexOf','259296KDGzBR','_initialize','BaseJson1OpApplier','getGroup','16XzvVMj','moveView','updatedBy','getField','FBaseRange','SetBaseViewFieldWidthCommand','defineProperty','Module','setFieldPermission','CreateBaseFieldCommand','_resolveBaseCommandEvent','getBase','object','DeleteBaseRecordCommand','createdAt','orderKey','numbering','fields','progress','UpdateBaseCellCommand','RecordChanged','limit','setBasePermission','max','_factory','DeleteBaseTableCommand','rating','duplicateRecord','toString','view','fieldSettings','IUniverInstanceService','created','get','BatchDeleteBaseRecordsCommand','filter','IBaseProjectionService','save','ensureBaseTableCellLayout','BaseCreated','person','changeFieldType','update','_initBaseAfterEvents','FEnum','_op','symbol','BaseFilterOperatorEnum','getSnapshot','1890895WqqGiz','operator','TableChanged','_wrapTable','tables','copyBaseTableSnapshot','TableNotFound','[FTable]:\x20table\x20\x22','_resolveBeforeBaseCellValueChange','MoveBaseFieldCommand','setPermission','deleteRecords','SetBaseViewFieldVisibleCommand','from','setName','BatchCreateBaseRecordsCommand','attachment','viewIndexes','toStringTag','_getRecord','index','getPermission','setCellValue','getTableByName','beforeCommandExecuted','getProjection','getFieldByName','getRange','commit','BaseRecordChanged','canManageView','doesNotContain','searchBaseTable','length','toLowerCase','every','BaseFieldKeyEnum','_fieldId','setRangeValues','grid','RenameBaseTableCommand','function','IBaseCommandService','_applier','setValues','record','visibleCardFieldIds','_resolveBeforeBaseRecordCreate','typeChanged','records','ViewNotFound','getCurrentUnitOfType','readonly','random','FieldNotFound','target','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','recordOrder','includeRecords','FRecord','includes','email','updateRecordOrder','clearPermission','facade.batch','Event','BaseSortDirectionEnum','getColumn','gantt','clearTablePermission','UpdateBaseViewConfigCommand','trim','JSON1','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','createBatchCreateRecordsOp','isNotEmpty','fieldId','desc','resolveBaseFieldValues','BaseCreating','_resolveBeforeBaseFieldCreate','updated','kanban','DeleteBaseViewCommand','config','BaseErrorCode','BaseBatchUndoModeEnum','InvalidFilter','_getView',',\x20max\x20columns:\x20','2389052CtCKVS','setFieldWidth','[FRecord]:\x20record\x20\x22','setViewSort','gallery','setTablePermission','BaseCellValueChanged',',\x20range:\x20','getName','getDataRange','Invalid\x20Base\x20regex\x20filter:\x20','BaseViewTypeEnum','syncExecuteCommand','setSnapshot','fieldIds','string','greaterThanOrEqual','viewOrder','setRecordPermission','CellValueChanged','getValue','_baseId','_getTable','views','commandService','CreateBaseRecordCommand','getFields','ChangeBaseFieldTypeCommand','2008944xQoySL','lessThan','patches','number','canDeleteField','primaryFieldName','setViewGroup','fieldOrder','getView','map','setGroup','formula','\x22\x20does\x20not\x20exist.','Auto','moved','flow','patch','[FTable]:\x20record\x20\x22','_assertInBounds','primaryFieldId','BaseBatchChanged','copyTable','deleteRecord','notMatches','FField','getRecord','currency','offset','moveField','_createOp','FUniver','push','createUnit','_resolveBaseBatchChanged','canCreateTable','canEditField','isNot','\x20does\x20not\x20match\x20range\x20size\x20','getSchema','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','silent','move','getNumColumns','_wrap','DuplicateBaseRecordCommand','updateCell','_projectionService','Base\x20command\x20failed:\x20','createSetRecordValuesOp','_resolveRecordIds','UniverInstanceType','canCreateField','SetBaseViewGroupCommand','updatedAt','batch','SetBaseViewFieldOrderCommand','asc','InvalidOperation','_commandService','updateField','localeCompare','toPrimitive','_range','_getField','isBaseError','BaseFieldTypeEnum','singleSelect','isReadonly','slice','group','CommandFailed','BaseFieldChanged','BaseTableChanged','FView','isEmpty','rowId','invertOp','draftBase','getTable','SetBaseViewSortCommand','BatchAlreadyRunning','defaultValue','details','lessThanOrEqual','greaterThan','checkbox','getBases','_resolveBeforeBaseTableCreate','UNIVER_BASE','multiSelect','table','BaseBatchEventModeEnum','createdBy','setRecordValues','date','code','getValues','getRecords','find','duplicate','searchTable','barcode','location','now'];_0x2ff4=function(){return _0xcddef9;};return _0x2ff4();}const g=u;var _=class extends Error{constructor(_0x1d60d9,_0x74685,_0x16cbd5={}){const _0x591f89=_0x1c8f3;super(_0x74685),this[_0x591f89(0xfb)]=_0x1d60d9,this[_0x591f89(0xee)]=_0x16cbd5,h(this,_0x591f89(0x10b),_0x591f89(0x118));}};function v(_0x17aab4){return _0x17aab4 instanceof _;}function y(_0x145085,_0x11301f,_0x2d5875={}){const _0x2f1c30=_0x1c8f3;if(!_0x11301f)throw new _(g[_0x2f1c30(0x291)],_0x2f1c30(0x27a)+_0x145085,{..._0x2d5875,'commandId':_0x145085});}const b={'BaseCreating':_0x1c8f3(0x224),'BaseCreated':_0x1c8f3(0x1cb),'BaseReady':_0x1c8f3(0x16c),'BeforeBaseTableCreate':'BeforeBaseTableCreate','BeforeBaseFieldCreate':_0x1c8f3(0x196),'BeforeBaseRecordCreate':_0x1c8f3(0x154),'BeforeBaseCellValueChange':'BeforeBaseCellValueChange','BeforeBaseViewCreate':_0x1c8f3(0x19b),'BaseTableChanged':'BaseTableChanged','BaseFieldChanged':_0x1c8f3(0xe3),'BaseRecordChanged':'BaseRecordChanged','BaseCellValueChanged':_0x1c8f3(0x235),'BaseViewChanged':_0x1c8f3(0x166),'BaseBatchChanged':_0x1c8f3(0x25f),'TableChanged':_0x1c8f3(0x1d7),'FieldChanged':_0x1c8f3(0x153),'RecordChanged':_0x1c8f3(0x1b8),'CellValueChanged':'CellValueChanged','ViewChanged':_0x1c8f3(0x132)};var x=class extends e[_0x1c8f3(0x19a)]{get[_0x1c8f3(0x224)](){const _0x3b7b84=_0x1c8f3;return _0x3b7b84(0x224);}get[_0x1c8f3(0x1cb)](){const _0x2c34af=_0x1c8f3;return _0x2c34af(0x1cb);}get[_0x1c8f3(0x16c)](){const _0x2c5f5f=_0x1c8f3;return _0x2c5f5f(0x16c);}get[_0x1c8f3(0x131)](){return'BeforeBaseTableCreate';}get[_0x1c8f3(0x196)](){const _0x1806a1=_0x1c8f3;return _0x1806a1(0x196);}get[_0x1c8f3(0x154)](){const _0x26e963=_0x1c8f3;return _0x26e963(0x154);}get['BeforeBaseCellValueChange'](){return'BeforeBaseCellValueChange';}get['BeforeBaseViewCreate'](){return'BeforeBaseViewCreate';}get[_0x1c8f3(0xe4)](){const _0x3266f2=_0x1c8f3;return _0x3266f2(0xe4);}get[_0x1c8f3(0xe3)](){const _0x577380=_0x1c8f3;return _0x577380(0xe3);}get['BaseRecordChanged'](){const _0xe0db2e=_0x1c8f3;return _0xe0db2e(0x1f2);}get['BaseCellValueChanged'](){const _0x3c32c5=_0x1c8f3;return _0x3c32c5(0x235);}get[_0x1c8f3(0x166)](){const _0x1125d9=_0x1c8f3;return _0x1125d9(0x166);}get[_0x1c8f3(0x25f)](){return'BaseBatchChanged';}get[_0x1c8f3(0x1d7)](){const _0x432f81=_0x1c8f3;return _0x432f81(0x1d7);}get[_0x1c8f3(0x153)](){return'FieldChanged';}get[_0x1c8f3(0x1b8)](){const _0x1d1430=_0x1c8f3;return _0x1d1430(0x1b8);}get[_0x1c8f3(0x242)](){const _0x2dee72=_0x1c8f3;return _0x2dee72(0x242);}get[_0x1c8f3(0x132)](){const _0x1f854a=_0x1c8f3;return _0x1f854a(0x132);}};e[_0x1c8f3(0x19a)][_0x1c8f3(0x151)](x);var S=class{constructor(_0x486cc0,_0x293959){const _0x215e60=_0x1c8f3;this[_0x215e60(0x244)]=_0x486cc0,this[_0x215e60(0x150)]=_0x293959;}[_0x1c8f3(0x1ba)](_0xae1c7){const _0x51f9f3=_0x1c8f3;this[_0x51f9f3(0x150)][_0x51f9f3(0x1ba)](this[_0x51f9f3(0x244)],_0xae1c7);}[_0x1c8f3(0x234)](_0x371d61,_0x2ea879){const _0x5d4e0b=_0x1c8f3;this[_0x5d4e0b(0x150)][_0x5d4e0b(0x234)](_0x371d61,_0x2ea879);}[_0x1c8f3(0x1ac)](_0x1e7dae,_0x4872b4,_0x2b2c1c){const _0xa4a7d0=_0x1c8f3;this[_0xa4a7d0(0x150)][_0xa4a7d0(0x1ac)](_0x1e7dae,_0x4872b4,_0x2b2c1c);}[_0x1c8f3(0x241)](_0x461414,_0x50b59a,_0x5afce8){const _0x1ce259=_0x1c8f3;this[_0x1ce259(0x150)][_0x1ce259(0x241)](_0x461414,_0x50b59a,_0x5afce8);}[_0x1c8f3(0x11f)](){const _0x227f43=_0x1c8f3;this['_permissionService']['clearBasePermission'](this[_0x227f43(0x244)]);}[_0x1c8f3(0x21a)](_0x32946f){const _0x5000ea=_0x1c8f3;this['_permissionService'][_0x5000ea(0x21a)](_0x32946f);}[_0x1c8f3(0x18b)](_0x2b32fa,_0x5e00fe){const _0x11d9eb=_0x1c8f3;this[_0x11d9eb(0x150)]['clearFieldPermission'](_0x2b32fa,_0x5e00fe);}[_0x1c8f3(0x14e)](_0x178c28,_0x3b461e){const _0x90e7ee=_0x1c8f3;this[_0x90e7ee(0x150)][_0x90e7ee(0x14e)](_0x178c28,_0x3b461e);}['canCreateTable'](){const _0x154b5a=_0x1c8f3;return this[_0x154b5a(0x150)][_0x154b5a(0x26d)](this[_0x154b5a(0x244)]);}[_0x1c8f3(0x198)](_0x5f2339){const _0x3a2b1a=_0x1c8f3;return this[_0x3a2b1a(0x150)]['canDeleteTable'](_0x5f2339);}['canCreateField'](_0x28f460){const _0x231e65=_0x1c8f3;return this[_0x231e65(0x150)][_0x231e65(0x27e)](_0x28f460);}[_0x1c8f3(0x26e)](_0x14cebf,_0x12f0a4){return this['_permissionService']['canEditField'](_0x14cebf,_0x12f0a4);}[_0x1c8f3(0x24f)](_0x4a0772,_0x576b40){return this['_permissionService']['canDeleteField'](_0x4a0772,_0x576b40);}[_0x1c8f3(0x19e)](_0x14a3fd){const _0xc460e9=_0x1c8f3;return this[_0xc460e9(0x150)][_0xc460e9(0x19e)](_0x14a3fd);}[_0x1c8f3(0x105)](_0x2e323e,_0x215c83){const _0x52f349=_0x1c8f3;return this['_permissionService'][_0x52f349(0x105)](_0x2e323e,_0x215c83);}[_0x1c8f3(0x133)](_0x5aa669,_0x178a70,_0x191cf5){const _0x2879ab=_0x1c8f3;return this[_0x2879ab(0x150)][_0x2879ab(0x133)](_0x5aa669,_0x178a70,_0x191cf5);}['canManageView'](_0x2b9719,_0x365fe8){const _0x109374=_0x1c8f3;return this[_0x109374(0x150)][_0x109374(0x1f3)](_0x2b9719,_0x365fe8);}['getSnapshot'](){const _0x3d2497=_0x1c8f3;return this[_0x3d2497(0x150)][_0x3d2497(0x1d4)]();}},C=class{constructor(_0x38dbff,_0x3f9060){const _0x186dd6=_0x1c8f3;this[_0x186dd6(0x135)]=_0x38dbff,this[_0x186dd6(0x150)]=_0x3f9060;}[_0x1c8f3(0x1df)](_0x2048c5){const _0x217ff5=_0x1c8f3;this[_0x217ff5(0x150)][_0x217ff5(0x234)](this['_tableId'],_0x2048c5);}[_0x1c8f3(0x214)](){const _0x2468aa=_0x1c8f3;this[_0x2468aa(0x150)][_0x2468aa(0x21a)](this[_0x2468aa(0x135)]);}[_0x1c8f3(0x198)](){const _0x52dada=_0x1c8f3;return this[_0x52dada(0x150)]['canDeleteTable'](this[_0x52dada(0x135)]);}[_0x1c8f3(0x27e)](){const _0x176e49=_0x1c8f3;return this[_0x176e49(0x150)]['canCreateField'](this[_0x176e49(0x135)]);}[_0x1c8f3(0x19e)](){const _0x55f13b=_0x1c8f3;return this[_0x55f13b(0x150)][_0x55f13b(0x19e)](this[_0x55f13b(0x135)]);}['canManageView'](_0x20c2d7){const _0x3b6ada=_0x1c8f3;return this['_permissionService'][_0x3b6ada(0x1f3)](this['_tableId'],_0x20c2d7);}[_0x1c8f3(0x133)](_0x38326c,_0x239f4c){const _0x22f3c7=_0x1c8f3;return this[_0x22f3c7(0x150)]['canEditCell'](this['_tableId'],_0x38326c,_0x239f4c);}},w=class{constructor(_0x2ac6c2,_0x5acdb6,_0x26c418,_0x1c99bd){const _0x3b5e8c=_0x1c8f3;this['_base']=_0x2ac6c2,this[_0x3b5e8c(0x135)]=_0x5acdb6,this['_fieldId']=_0x26c418,this['_commandService']=_0x1c99bd;}[_0x1c8f3(0x189)](){const _0x8eb2e7=_0x1c8f3;return this[_0x8eb2e7(0x1fa)];}[_0x1c8f3(0x1a7)](){const _0x2a4266=_0x1c8f3;return this[_0x2a4266(0x28a)]();}[_0x1c8f3(0x1d4)](){return this['_getField']();}['getName'](){const _0x2bef20=_0x1c8f3;return this[_0x2bef20(0x28a)]()[_0x2bef20(0x10b)];}[_0x1c8f3(0x112)](){const _0x43033f=_0x1c8f3;return this[_0x43033f(0x28a)]()[_0x43033f(0x158)];}[_0x1c8f3(0x12f)](){const _0x191998=_0x1c8f3;return this[_0x191998(0x28a)]()[_0x191998(0x229)];}['getDefaultValue'](){const _0x8b1e56=_0x1c8f3;return this['_getField']()[_0x8b1e56(0xed)];}[_0x1c8f3(0x18a)](){const _0x3c6c95=_0x1c8f3;return this[_0x3c6c95(0x28a)]()[_0x3c6c95(0x141)];}[_0x1c8f3(0x28e)](){const _0x2a380e=_0x1c8f3;return!!this[_0x2a380e(0x28a)]()[_0x2a380e(0x209)];}['setName'](_0x27f4ad){const _0x2d9b9a=_0x1c8f3;this[_0x2d9b9a(0x1ce)]({'name':_0x27f4ad});}[_0x1c8f3(0x12b)](_0x1e3b4f){const _0x217e0e=_0x1c8f3;this[_0x217e0e(0x1ce)]({'config':_0x1e3b4f});}[_0x1c8f3(0x10c)](_0x581794){const _0x2c3503=_0x1c8f3;this[_0x2c3503(0x1ce)]({'defaultValue':_0x581794});}[_0x1c8f3(0x1ce)](_0x44d34e){const _0x3242f4=_0x1c8f3;y(t['UpdateBaseFieldCommand']['id'],this[_0x3242f4(0x285)][_0x3242f4(0x23b)](t[_0x3242f4(0x11b)]['id'],{'unitId':this[_0x3242f4(0x10f)][_0x3242f4(0x109)](),'tableId':this[_0x3242f4(0x135)],'fieldId':this[_0x3242f4(0x1fa)],'patch':_0x44d34e}),{'unitId':this[_0x3242f4(0x10f)][_0x3242f4(0x109)](),'tableId':this['_tableId'],'fieldId':this[_0x3242f4(0x1fa)]});}['changeType'](_0x38f76f){const _0x3a0272=_0x1c8f3;y(t[_0x3a0272(0x24a)]['id'],this['_commandService'][_0x3a0272(0x23b)](t[_0x3a0272(0x24a)]['id'],{'unitId':this[_0x3a0272(0x10f)][_0x3a0272(0x109)](),'tableId':this[_0x3a0272(0x135)],'fieldId':this['_fieldId'],'input':_0x38f76f}),{'unitId':this['_base'][_0x3a0272(0x109)](),'tableId':this[_0x3a0272(0x135)],'fieldId':this['_fieldId']});}['delete'](){const _0x14622a=_0x1c8f3;y(t['DeleteBaseFieldCommand']['id'],this[_0x14622a(0x285)][_0x14622a(0x23b)](t[_0x14622a(0x167)]['id'],{'unitId':this['_base'][_0x14622a(0x109)](),'tableId':this[_0x14622a(0x135)],'fieldId':this['_fieldId']}),{'unitId':this[_0x14622a(0x10f)][_0x14622a(0x109)](),'tableId':this[_0x14622a(0x135)],'fieldId':this[_0x14622a(0x1fa)]});}[_0x1c8f3(0x274)](_0x5c18b6){const _0x20013f=_0x1c8f3;y(t[_0x20013f(0x1de)]['id'],this['_commandService']['syncExecuteCommand'](t['MoveBaseFieldCommand']['id'],{'unitId':this[_0x20013f(0x10f)][_0x20013f(0x109)](),'tableId':this[_0x20013f(0x135)],'fieldId':this['_fieldId'],'target':_0x5c18b6}),{'unitId':this[_0x20013f(0x10f)][_0x20013f(0x109)](),'tableId':this['_tableId'],'fieldId':this[_0x20013f(0x1fa)]});}[_0x1c8f3(0x28a)](){const _0xcdbf80=_0x1c8f3;var _0x38f382;let _0x3601cc=(_0x38f382=this[_0xcdbf80(0x10f)][_0xcdbf80(0x1d4)]()[_0xcdbf80(0x1d9)][this[_0xcdbf80(0x135)]])==null?void 0x0:_0x38f382['fields'][this['_fieldId']];if(!_0x3601cc||_0x3601cc[_0xcdbf80(0x152)])throw Error(_0xcdbf80(0x19d)+this[_0xcdbf80(0x1fa)]+_0xcdbf80(0x257));return _0x3601cc;}},T=class e{constructor(_0x5c5bfa,_0x369a98,_0x74eaac,_0x479bd6){const _0x383739=_0x1c8f3;this[_0x383739(0x10f)]=_0x5c5bfa,this[_0x383739(0x135)]=_0x369a98,this[_0x383739(0x289)]=_0x74eaac,this[_0x383739(0x285)]=_0x479bd6,this[_0x383739(0x25d)]();}['getUnitId'](){const _0x107018=_0x1c8f3;return this[_0x107018(0x10f)][_0x107018(0x109)]();}['getBaseId'](){const _0xad2da7=_0x1c8f3;return this[_0xad2da7(0x10f)][_0xad2da7(0x109)]();}[_0x1c8f3(0x136)](){const _0x4d566a=_0x1c8f3;return this[_0x4d566a(0x135)];}[_0x1c8f3(0x1f0)](){const _0x132a95=_0x1c8f3;return{...this[_0x132a95(0x289)]};}['getRow'](){const _0x4e7175=_0x1c8f3;return this[_0x4e7175(0x289)]['startRow'];}[_0x1c8f3(0x218)](){const _0x5c13be=_0x1c8f3;return this[_0x5c13be(0x289)]['startColumn'];}[_0x1c8f3(0x108)](){const _0x5aad1e=_0x1c8f3;return this[_0x5aad1e(0x289)][_0x5aad1e(0x14a)]-this[_0x5aad1e(0x289)][_0x5aad1e(0x138)]+0x1;}[_0x1c8f3(0x275)](){const _0x1ace15=_0x1c8f3;return this[_0x1ace15(0x289)][_0x1ace15(0x10a)]-this[_0x1ace15(0x289)][_0x1ace15(0x16d)]+0x1;}[_0x1c8f3(0xfc)](){const _0x1f6505=_0x1c8f3;let _0xa86e5e=this[_0x1f6505(0x245)](),_0x17aff7=[];for(let _0x54f621=this['_range'][_0x1f6505(0x138)];_0x54f621<=this[_0x1f6505(0x289)][_0x1f6505(0x14a)];_0x54f621++){var _0x1c17d1;let _0x50eb91=(_0x1c17d1=_0xa86e5e[_0x1f6505(0xe7)])==null?void 0x0:_0x1c17d1[_0x54f621],_0x50161c=[];for(let _0x399e47=this[_0x1f6505(0x289)]['startColumn'];_0x399e47<=this[_0x1f6505(0x289)][_0x1f6505(0x10a)];_0x399e47++){var _0x3f1b34;let _0x56ecf0=(_0x3f1b34=_0xa86e5e['colId'])==null?void 0x0:_0x3f1b34[_0x399e47];_0x50161c[_0x1f6505(0x26a)](_0x50eb91&&_0x56ecf0?(0x0,t[_0x1f6505(0x171)])(_0xa86e5e,_0x50eb91,_0x56ecf0):null);}_0x17aff7['push'](_0x50161c);}return _0x17aff7;}[_0x1c8f3(0x243)](){const _0x174c76=_0x1c8f3;var _0x2f3143,_0x1244e4;return(_0x2f3143=(_0x1244e4=this[_0x174c76(0xfc)]()[0x0])==null?void 0x0:_0x1244e4[0x0])==null?null:_0x2f3143;}[_0x1c8f3(0x173)](_0x25667b){const _0x2c1ee5=_0x1c8f3;this[_0x2c1ee5(0x201)]([[_0x25667b]]);}[_0x1c8f3(0x201)](_0x59e2d7){const _0xc63409=_0x1c8f3;if(_0x59e2d7[_0xc63409(0x1f6)]!==this[_0xc63409(0x108)]()||_0x59e2d7['some'](_0x72f1b3=>_0x72f1b3[_0xc63409(0x1f6)]!==this[_0xc63409(0x275)]())){var _0xe69d90,_0x54469d;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x59e2d7[_0xc63409(0x1f6)]+'x'+((_0xe69d90=(_0x54469d=_0x59e2d7[0x0])==null?void 0x0:_0x54469d[_0xc63409(0x1f6)])==null?0x0:_0xe69d90)+_0xc63409(0x270)+this['getNumRows']()+'x'+this['getNumColumns']()+'.');}let _0x22a80c=_0x59e2d7[_0xc63409(0x13c)]((_0x3bd2e2,_0x3a4880)=>_0x3bd2e2[_0xc63409(0x254)]((_0x32af32,_0x157d51)=>({'row':this[_0xc63409(0x289)][_0xc63409(0x138)]+_0x3a4880,'col':this[_0xc63409(0x289)][_0xc63409(0x16d)]+_0x157d51,'value':_0x32af32})));y(t['SetBaseRangeValuesCommand']['id'],this['_commandService']['syncExecuteCommand'](t[_0xc63409(0x169)]['id'],{'unitId':this['_base'][_0xc63409(0x109)](),'tableId':this[_0xc63409(0x135)],'patches':_0x22a80c}),{'unitId':this[_0xc63409(0x10f)][_0xc63409(0x109)](),'tableId':this[_0xc63409(0x135)]});}[_0x1c8f3(0x16e)](){const _0x4eacb4=_0x1c8f3;this[_0x4eacb4(0x201)](Array['from']({'length':this[_0x4eacb4(0x108)]()},()=>Array[_0x4eacb4(0x1e2)]({'length':this['getNumColumns']()},()=>null)));}[_0x1c8f3(0x266)](_0x29697d,_0x4a44e2,_0x49a4ac=this[_0x1c8f3(0x108)](),_0x334800=this[_0x1c8f3(0x275)]()){const _0x103ae4=_0x1c8f3;return new e(this[_0x103ae4(0x10f)],this[_0x103ae4(0x135)],{'startRow':this[_0x103ae4(0x289)][_0x103ae4(0x138)]+_0x29697d,'startColumn':this[_0x103ae4(0x289)][_0x103ae4(0x16d)]+_0x4a44e2,'endRow':this[_0x103ae4(0x289)][_0x103ae4(0x138)]+_0x29697d+_0x49a4ac-0x1,'endColumn':this[_0x103ae4(0x289)][_0x103ae4(0x16d)]+_0x4a44e2+_0x334800-0x1},this['_commandService']);}[_0x1c8f3(0x245)](){const _0x29ae3b=_0x1c8f3;let _0x356c4c=this[_0x29ae3b(0x10f)]['getSnapshot']()[_0x29ae3b(0x1d9)][this[_0x29ae3b(0x135)]];if(!_0x356c4c||_0x356c4c[_0x29ae3b(0x152)])throw Error(_0x29ae3b(0x15e)+this[_0x29ae3b(0x135)]+_0x29ae3b(0x257));return(0x0,t['ensureBaseTableCellLayout'])(_0x356c4c);}[_0x1c8f3(0x25d)](){const _0x5d17b6=_0x1c8f3;var _0x28be5d,_0x2fc375;let _0x228484=this['_getTable'](),_0x1dec3a=(_0x28be5d=(_0x2fc375=_0x228484[_0x5d17b6(0x20e)])==null?void 0x0:_0x2fc375[_0x5d17b6(0x1f6)])==null?0x0:_0x28be5d,_0x522b8a=_0x228484['fieldOrder']['length'];if(this['_range']['startRow']<0x0||this[_0x5d17b6(0x289)][_0x5d17b6(0x16d)]<0x0||this[_0x5d17b6(0x289)][_0x5d17b6(0x14a)]<this[_0x5d17b6(0x289)]['startRow']||this['_range'][_0x5d17b6(0x10a)]<this[_0x5d17b6(0x289)]['startColumn']||this[_0x5d17b6(0x289)][_0x5d17b6(0x14a)]>=Math[_0x5d17b6(0x1bb)](_0x1dec3a,0x1)||this['_range'][_0x5d17b6(0x10a)]>=Math['max'](_0x522b8a,0x1))throw Error(_0x5d17b6(0x21e)+_0x1dec3a+_0x5d17b6(0x22e)+_0x522b8a+_0x5d17b6(0x236)+JSON['stringify'](this['_range'])+'.');}};function E(_0x20f60a,_0x2699cf,_0x4a8898=s['Id']){const _0x36e033=_0x1c8f3;if(!_0x2699cf)return{};let _0x1787a5={};return Object['entries'](_0x2699cf)[_0x36e033(0x16a)](([_0x180357,_0x1e099d])=>{_0x1787a5[D(_0x20f60a,_0x180357,_0x4a8898)]=_0x1e099d;}),_0x1787a5;}function D(_0x2da9c6,_0x55741f,_0x29d0de){const _0x480d0e=_0x1c8f3;if(_0x29d0de===s['Id'])return _0x55741f;if(_0x29d0de===s[_0x480d0e(0x258)]){let _0xfab6b2=_0x2da9c6['fields'][_0x55741f];if(_0xfab6b2&&!_0xfab6b2[_0x480d0e(0x152)])return _0x55741f;}let _0x1b7027=Object['values'](_0x2da9c6[_0x480d0e(0x1b5)])[_0x480d0e(0x1c7)](_0x44ebe8=>!_0x44ebe8['deleted']&&_0x44ebe8[_0x480d0e(0x10b)]===_0x55741f);if(_0x1b7027['length']===0x1)return _0x1b7027[0x0]['id'];throw _0x1b7027[_0x480d0e(0x1f6)]>0x1?new _(g[_0x480d0e(0x19c)],'Duplicate\x20Base\x20field\x20name:\x20'+_0x55741f,{'tableId':_0x2da9c6['id'],'fieldName':_0x55741f,'fieldIds':_0x1b7027[_0x480d0e(0x254)](_0x31eb50=>_0x31eb50['id'])}):new _(g[_0x480d0e(0x20b)],'Base\x20field\x20not\x20found:\x20'+_0x55741f,{'tableId':_0x2da9c6['id'],'fieldName':_0x55741f,'fieldKey':_0x29d0de});}var O=class e{constructor(_0xac4f08,_0x2f2781,_0x53a90a,_0x2a874f){const _0x160561=_0x1c8f3;this[_0x160561(0x10f)]=_0xac4f08,this['_tableId']=_0x2f2781,this['_recordId']=_0x53a90a,this['_commandService']=_0x2a874f;}[_0x1c8f3(0x189)](){const _0x3818b5=_0x1c8f3;return this[_0x3818b5(0x18f)];}[_0x1c8f3(0x264)](){const _0x2b7814=_0x1c8f3;return this[_0x2b7814(0x1e8)]();}[_0x1c8f3(0x1d4)](){const _0x2141b7=_0x1c8f3;return this[_0x2141b7(0x1e8)]();}[_0x1c8f3(0x243)](_0x10431a){const _0x291f5e=_0x1c8f3;var _0x558d11;return(_0x558d11=this[_0x291f5e(0x1e8)]()['values'][_0x10431a])==null?null:_0x558d11;}[_0x1c8f3(0xfc)](){return{...this['_getRecord']()['values']};}[_0x1c8f3(0x173)](_0x3c8cc9,_0x147c54){const _0x23df3a=_0x1c8f3;y(t['UpdateBaseCellCommand']['id'],this[_0x23df3a(0x285)]['syncExecuteCommand'](t['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x23df3a(0x109)](),'tableId':this[_0x23df3a(0x135)],'recordId':this['_recordId'],'fieldId':_0x3c8cc9,'value':_0x147c54}),{'unitId':this[_0x23df3a(0x10f)]['getUnitId'](),'tableId':this['_tableId'],'recordId':this['_recordId'],'fieldId':_0x3c8cc9});}[_0x1c8f3(0x201)](_0x1531ed,_0x4d6012={}){const _0x580722=_0x1c8f3;var _0x41e084;let _0x4bd666=this['_base']['getSnapshot']()[_0x580722(0x1d9)][this['_tableId']];y(t[_0x580722(0x180)]['id'],this[_0x580722(0x285)][_0x580722(0x23b)](t['SetBaseRecordValuesCommand']['id'],{'unitId':this['_base'][_0x580722(0x109)](),'tableId':this[_0x580722(0x135)],'patches':[{'recordId':this['_recordId'],'values':E(_0x4bd666,_0x1531ed,(_0x41e084=_0x4d6012[_0x580722(0x114)])==null?'id':_0x41e084)}]}),{'unitId':this[_0x580722(0x10f)][_0x580722(0x109)](),'tableId':this[_0x580722(0x135)],'recordId':this[_0x580722(0x18f)]});}[_0x1c8f3(0x147)](){const _0x380f1b=_0x1c8f3;y(t[_0x380f1b(0x1b1)]['id'],this[_0x380f1b(0x285)][_0x380f1b(0x23b)](t['DeleteBaseRecordCommand']['id'],{'unitId':this['_base']['getUnitId'](),'tableId':this[_0x380f1b(0x135)],'recordId':this[_0x380f1b(0x18f)]}),{'unitId':this[_0x380f1b(0x10f)][_0x380f1b(0x109)](),'tableId':this[_0x380f1b(0x135)],'recordId':this[_0x380f1b(0x18f)]});}[_0x1c8f3(0xff)](_0x1d78a8={}){const _0x2209f6=_0x1c8f3;var _0x21459e,_0xf6d321,_0x38d4ac;let _0x4bf55c=Date[_0x2209f6(0x103)](),_0x43beb6={'id':(_0x21459e=_0x1d78a8['id'])==null?k(_0x2209f6(0x202)):_0x21459e,'values':(_0xf6d321=_0x1d78a8[_0x2209f6(0x11c)])==null?{}:_0xf6d321,'orderKey':(_0x38d4ac=_0x1d78a8['orderKey'])==null?''+_0x4bf55c:_0x38d4ac,'createdAt':_0x4bf55c,'updatedAt':_0x4bf55c};return y(t[_0x2209f6(0x277)]['id'],this[_0x2209f6(0x285)][_0x2209f6(0x23b)](t[_0x2209f6(0x277)]['id'],{'unitId':this[_0x2209f6(0x10f)][_0x2209f6(0x109)](),'tableId':this[_0x2209f6(0x135)],'sourceRecordId':this['_recordId'],'record':_0x43beb6}),{'unitId':this[_0x2209f6(0x10f)][_0x2209f6(0x109)](),'tableId':this[_0x2209f6(0x135)],'recordId':_0x43beb6['id'],'sourceRecordId':this[_0x2209f6(0x18f)]}),new e(this['_base'],this[_0x2209f6(0x135)],_0x43beb6['id'],this[_0x2209f6(0x285)]);}['setOrderKey'](_0x10e87b){const _0x70b7b9=_0x1c8f3;y(t[_0x70b7b9(0x121)]['id'],this[_0x70b7b9(0x285)]['syncExecuteCommand'](t[_0x70b7b9(0x121)]['id'],{'unitId':this[_0x70b7b9(0x10f)][_0x70b7b9(0x109)](),'tableId':this[_0x70b7b9(0x135)],'recordId':this[_0x70b7b9(0x18f)],'orderKey':_0x10e87b}),{'unitId':this[_0x70b7b9(0x10f)][_0x70b7b9(0x109)](),'tableId':this[_0x70b7b9(0x135)],'recordId':this[_0x70b7b9(0x18f)]});}[_0x1c8f3(0x1e8)](){const _0x3a5802=_0x1c8f3;var _0x452a09;let _0xd962a9=(_0x452a09=this[_0x3a5802(0x10f)][_0x3a5802(0x1d4)]()[_0x3a5802(0x1d9)][this[_0x3a5802(0x135)]])==null?void 0x0:_0x452a09[_0x3a5802(0x206)][this['_recordId']];if(!_0xd962a9||_0xd962a9[_0x3a5802(0x152)])throw Error(_0x3a5802(0x231)+this[_0x3a5802(0x18f)]+_0x3a5802(0x257));return _0xd962a9;}};function k(_0x3c46ac){const _0x710daa=_0x1c8f3;return _0x3c46ac+'-'+Math[_0x710daa(0x20a)]()[_0x710daa(0x1c0)](0x24)[_0x710daa(0x28f)](0x2,0xa);}var A=class{constructor(_0x26b022,_0x578575,_0x10f998,_0x199e79,_0x23e766){const _0x2e56d7=_0x1c8f3;this['_base']=_0x26b022,this[_0x2e56d7(0x135)]=_0x578575,this['_viewId']=_0x10f998,this['_commandService']=_0x199e79,this['_projectionService']=_0x23e766;}[_0x1c8f3(0x189)](){const _0x354a3b=_0x1c8f3;return this[_0x354a3b(0x139)];}[_0x1c8f3(0x253)](){return this['_getView']();}[_0x1c8f3(0x1d4)](){const _0x3f5dfb=_0x1c8f3;return this[_0x3f5dfb(0x22d)]();}[_0x1c8f3(0x237)](){const _0x455b3e=_0x1c8f3;return this[_0x455b3e(0x22d)]()[_0x455b3e(0x10b)];}['getType'](){const _0x8d87ee=_0x1c8f3;return this['_getView']()[_0x8d87ee(0x158)];}[_0x1c8f3(0x1e3)](_0x22fad4){const _0x1ef214=_0x1c8f3;y(t[_0x1ef214(0x187)]['id'],this[_0x1ef214(0x285)]['syncExecuteCommand'](t[_0x1ef214(0x187)]['id'],{'unitId':this[_0x1ef214(0x10f)]['getUnitId'](),'tableId':this[_0x1ef214(0x135)],'viewId':this[_0x1ef214(0x139)],'name':_0x22fad4}),{'unitId':this[_0x1ef214(0x10f)]['getUnitId'](),'tableId':this[_0x1ef214(0x135)],'viewId':this[_0x1ef214(0x139)]});}[_0x1c8f3(0x12f)](){const _0x3747fa=_0x1c8f3;return this[_0x3747fa(0x22d)]()['config'];}['updateConfig'](_0x5b99d0){const _0x15b36a=_0x1c8f3;y(t[_0x15b36a(0x21b)]['id'],this[_0x15b36a(0x285)][_0x15b36a(0x23b)](t[_0x15b36a(0x21b)]['id'],{'unitId':this[_0x15b36a(0x10f)]['getUnitId'](),'tableId':this[_0x15b36a(0x135)],'viewId':this[_0x15b36a(0x139)],'patch':_0x5b99d0}),{'unitId':this[_0x15b36a(0x10f)][_0x15b36a(0x109)](),'tableId':this[_0x15b36a(0x135)],'viewId':this[_0x15b36a(0x139)]});}['getFilter'](){const _0x5eda88=_0x1c8f3;var _0x573187;return(_0x573187=this[_0x5eda88(0x22d)]()['filter'])==null?null:_0x573187;}['setFilter'](_0x157b17){const _0x3f7081=_0x1c8f3;y(t['SetBaseViewFilterCommand']['id'],this[_0x3f7081(0x285)][_0x3f7081(0x23b)](t[_0x3f7081(0x13a)]['id'],{'unitId':this[_0x3f7081(0x10f)][_0x3f7081(0x109)](),'tableId':this[_0x3f7081(0x135)],'viewId':this[_0x3f7081(0x139)],'filter':_0x157b17}),{'unitId':this[_0x3f7081(0x10f)][_0x3f7081(0x109)](),'tableId':this[_0x3f7081(0x135)],'viewId':this[_0x3f7081(0x139)]});}['getSort'](){const _0x54993f=_0x1c8f3;var _0x8cdd43;return(_0x8cdd43=this[_0x54993f(0x22d)]()['sort'])==null?[]:_0x8cdd43;}['setSort'](_0x5491cb){const _0x4d1ba2=_0x1c8f3;y(t[_0x4d1ba2(0xeb)]['id'],this[_0x4d1ba2(0x285)]['syncExecuteCommand'](t[_0x4d1ba2(0xeb)]['id'],{'unitId':this['_base'][_0x4d1ba2(0x109)](),'tableId':this[_0x4d1ba2(0x135)],'viewId':this['_viewId'],'sort':_0x5491cb}),{'unitId':this[_0x4d1ba2(0x10f)][_0x4d1ba2(0x109)](),'tableId':this['_tableId'],'viewId':this[_0x4d1ba2(0x139)]});}[_0x1c8f3(0x1a3)](){const _0xd5e5b0=_0x1c8f3;var _0x53e88e;return(_0x53e88e=this['_getView']()[_0xd5e5b0(0x290)])==null?[]:_0x53e88e;}[_0x1c8f3(0x255)](_0x2acc4a){const _0x1f5758=_0x1c8f3;y(t['SetBaseViewGroupCommand']['id'],this[_0x1f5758(0x285)][_0x1f5758(0x23b)](t[_0x1f5758(0x27f)]['id'],{'unitId':this[_0x1f5758(0x10f)][_0x1f5758(0x109)](),'tableId':this[_0x1f5758(0x135)],'viewId':this[_0x1f5758(0x139)],'group':_0x2acc4a}),{'unitId':this['_base']['getUnitId'](),'tableId':this['_tableId'],'viewId':this[_0x1f5758(0x139)]});}[_0x1c8f3(0x14c)](_0x3b29c1){const _0x2c2bca=_0x1c8f3;var _0x2fc4df,_0x1e6867;return(_0x2fc4df=(_0x1e6867=this[_0x2c2bca(0x22d)]()[_0x2c2bca(0x1c2)])==null?void 0x0:_0x1e6867[_0x3b29c1])==null?{}:_0x2fc4df;}['getVisibleFields'](){const _0xcc9938=_0x1c8f3;var _0x79b848;let _0x1005cf=this['_base']['getSnapshot']()['tables'][this[_0xcc9938(0x135)]],_0x45e18e=this['_getView']();return((_0x79b848=_0x45e18e[_0xcc9938(0x252)])==null?_0x1005cf[_0xcc9938(0x252)]:_0x79b848)[_0xcc9938(0x254)](_0x82c86c=>_0x1005cf[_0xcc9938(0x1b5)][_0x82c86c])[_0xcc9938(0x1c7)](_0x7e119d=>{const _0x31d006=_0xcc9938;var _0x1b1a5a;return!!(_0x7e119d&&!_0x7e119d[_0x31d006(0x152)]&&!(!((_0x1b1a5a=_0x45e18e[_0x31d006(0x1c2)])==null||(_0x1b1a5a=_0x1b1a5a[_0x7e119d['id']])==null)&&_0x1b1a5a[_0x31d006(0x115)]));})[_0xcc9938(0x254)](_0x584500=>new w(this[_0xcc9938(0x10f)],this[_0xcc9938(0x135)],_0x584500['id'],this[_0xcc9938(0x285)]));}['setFieldVisible'](_0x38b756,_0x52bf17){const _0x355860=_0x1c8f3;y(t[_0x355860(0x1e1)]['id'],this['_commandService'][_0x355860(0x23b)](t[_0x355860(0x1e1)]['id'],{'unitId':this['_base'][_0x355860(0x109)](),'tableId':this[_0x355860(0x135)],'viewId':this['_viewId'],'fieldId':_0x38b756,'visible':_0x52bf17}),{'unitId':this[_0x355860(0x10f)][_0x355860(0x109)](),'tableId':this[_0x355860(0x135)],'viewId':this[_0x355860(0x139)],'fieldId':_0x38b756});}[_0x1c8f3(0x230)](_0x413445,_0x4068d6){const _0x5589ac=_0x1c8f3;y(t[_0x5589ac(0x1a9)]['id'],this[_0x5589ac(0x285)]['syncExecuteCommand'](t[_0x5589ac(0x1a9)]['id'],{'unitId':this['_base'][_0x5589ac(0x109)](),'tableId':this[_0x5589ac(0x135)],'viewId':this['_viewId'],'fieldId':_0x413445,'width':_0x4068d6}),{'unitId':this[_0x5589ac(0x10f)]['getUnitId'](),'tableId':this[_0x5589ac(0x135)],'viewId':this[_0x5589ac(0x139)],'fieldId':_0x413445});}[_0x1c8f3(0x267)](_0x6f6d0b,_0x71b1f0){const _0x6c93d5=_0x1c8f3;y(t['SetBaseViewFieldOrderCommand']['id'],this[_0x6c93d5(0x285)]['syncExecuteCommand'](t[_0x6c93d5(0x282)]['id'],{'unitId':this[_0x6c93d5(0x10f)][_0x6c93d5(0x109)](),'tableId':this[_0x6c93d5(0x135)],'viewId':this[_0x6c93d5(0x139)],'fieldId':_0x6f6d0b,'target':_0x71b1f0}),{'unitId':this[_0x6c93d5(0x10f)][_0x6c93d5(0x109)](),'tableId':this[_0x6c93d5(0x135)],'viewId':this[_0x6c93d5(0x139)],'fieldId':_0x6f6d0b});}['move'](_0x37ef88){const _0x4cacbd=_0x1c8f3;y(t[_0x4cacbd(0x15a)]['id'],this[_0x4cacbd(0x285)][_0x4cacbd(0x23b)](t[_0x4cacbd(0x15a)]['id'],{'unitId':this['_base'][_0x4cacbd(0x109)](),'tableId':this[_0x4cacbd(0x135)],'viewId':this[_0x4cacbd(0x139)],'target':_0x37ef88}),{'unitId':this[_0x4cacbd(0x10f)][_0x4cacbd(0x109)](),'tableId':this[_0x4cacbd(0x135)],'viewId':this[_0x4cacbd(0x139)]});}[_0x1c8f3(0x147)](){const _0x225a09=_0x1c8f3;y(t['DeleteBaseViewCommand']['id'],this['_commandService'][_0x225a09(0x23b)](t[_0x225a09(0x228)]['id'],{'unitId':this[_0x225a09(0x10f)][_0x225a09(0x109)](),'tableId':this[_0x225a09(0x135)],'viewId':this[_0x225a09(0x139)]}),{'unitId':this['_base'][_0x225a09(0x109)](),'tableId':this[_0x225a09(0x135)],'viewId':this[_0x225a09(0x139)]});}[_0x1c8f3(0x1ee)](){const _0x1e2ed0=_0x1c8f3;return this['_projectionService']['getProjection'](this[_0x1e2ed0(0x10f)][_0x1e2ed0(0x1d4)](),this[_0x1e2ed0(0x135)],this['_viewId']);}[_0x1c8f3(0x22d)](){const _0x30b9e7=_0x1c8f3;var _0x2cd7b0;let _0x2da9ca=(_0x2cd7b0=this[_0x30b9e7(0x10f)][_0x30b9e7(0x1d4)]()[_0x30b9e7(0x1d9)][this[_0x30b9e7(0x135)]])==null?void 0x0:_0x2cd7b0[_0x30b9e7(0x246)][this[_0x30b9e7(0x139)]];if(!_0x2da9ca||_0x2da9ca[_0x30b9e7(0x152)])throw Error(_0x30b9e7(0x16b)+this[_0x30b9e7(0x139)]+'\x22\x20does\x20not\x20exist.');return _0x2da9ca;}},j=class{constructor(_0x1194e8,_0x4b67c5,_0x1a66b5,_0x473662,_0x191702){const _0x1f5595=_0x1c8f3;this['_base']=_0x1194e8,this[_0x1f5595(0x135)]=_0x4b67c5,this['_commandService']=_0x1a66b5,this[_0x1f5595(0x279)]=_0x473662,this['_permissionService']=_0x191702;}[_0x1c8f3(0x1af)](){const _0xbb0bc5=_0x1c8f3;return this[_0xbb0bc5(0x10f)];}[_0x1c8f3(0xea)](){const _0x1ee962=_0x1c8f3;return this[_0x1ee962(0x245)]();}[_0x1c8f3(0x1d4)](){const _0x412f1e=_0x1c8f3;return this[_0x412f1e(0x245)]();}[_0x1c8f3(0x189)](){const _0x3340c8=_0x1c8f3;return this[_0x3340c8(0x135)];}[_0x1c8f3(0x237)](){const _0x1c7dbc=_0x1c8f3;return this['_getTable']()[_0x1c7dbc(0x10b)];}[_0x1c8f3(0x17f)](){const _0x15a7da=_0x1c8f3;return this['_getTable']()[_0x15a7da(0x25e)];}[_0x1c8f3(0x1e3)](_0x46ff35){const _0x54b08e=_0x1c8f3;y(t[_0x54b08e(0x1fd)]['id'],this[_0x54b08e(0x285)]['syncExecuteCommand'](t[_0x54b08e(0x1fd)]['id'],{'unitId':this[_0x54b08e(0x10f)]['getUnitId'](),'tableId':this[_0x54b08e(0x135)],'name':_0x46ff35}),{'unitId':this[_0x54b08e(0x10f)][_0x54b08e(0x109)](),'tableId':this[_0x54b08e(0x135)]});}[_0x1c8f3(0x249)](){const _0x59a094=_0x1c8f3;let _0x4cd5bb=this[_0x59a094(0x245)]();return _0x4cd5bb[_0x59a094(0x252)][_0x59a094(0x254)](_0x5917af=>_0x4cd5bb[_0x59a094(0x1b5)][_0x5917af])[_0x59a094(0x1c7)](_0x154087=>!!(_0x154087&&!_0x154087[_0x59a094(0x152)]))[_0x59a094(0x254)](_0x181407=>this[_0x59a094(0x13e)](_0x181407['id']));}['listFields'](){return this['getFields']();}[_0x1c8f3(0x1a7)](_0x442e14){const _0x13cf93=_0x1c8f3;let _0x39a3de=this[_0x13cf93(0x245)]()[_0x13cf93(0x1b5)][_0x442e14];return _0x39a3de&&!_0x39a3de[_0x13cf93(0x152)]?this[_0x13cf93(0x13e)](_0x39a3de['id']):null;}['getFieldById'](_0x46ee01){return this['getField'](_0x46ee01);}[_0x1c8f3(0x1ef)](_0xfc94ab){const _0x43c56f=_0x1c8f3;let _0x23f0bf=Object['values'](this[_0x43c56f(0x245)]()[_0x43c56f(0x1b5)])[_0x43c56f(0xfe)](_0x31a4e0=>!_0x31a4e0[_0x43c56f(0x152)]&&_0x31a4e0[_0x43c56f(0x10b)]===_0xfc94ab);return _0x23f0bf?this['_wrapField'](_0x23f0bf['id']):null;}[_0x1c8f3(0x104)](){const _0x4a917d=_0x1c8f3;return this[_0x4a917d(0x13e)](this[_0x4a917d(0x245)]()['primaryFieldId']);}['addField'](_0x4480c7){const _0x4de7b9=_0x1c8f3;var _0x2d97a3,_0x15d972;let _0x42dcfe={'id':(_0x2d97a3=_0x4480c7['id'])==null?B(_0x4de7b9(0x107)):_0x2d97a3,'name':_0x4480c7[_0x4de7b9(0x10b)],'type':_0x4480c7[_0x4de7b9(0x158)],'config':(_0x15d972=_0x4480c7[_0x4de7b9(0x229)])==null?{}:_0x15d972,'defaultValue':_0x4480c7[_0x4de7b9(0xed)],'description':_0x4480c7[_0x4de7b9(0x141)],'readonly':_0x4480c7[_0x4de7b9(0x209)]};return y(t[_0x4de7b9(0x1ad)]['id'],this['_commandService'][_0x4de7b9(0x23b)](t[_0x4de7b9(0x1ad)]['id'],{'unitId':this[_0x4de7b9(0x10f)][_0x4de7b9(0x109)](),'tableId':this['_tableId'],'field':_0x42dcfe,'index':_0x4480c7[_0x4de7b9(0x1e9)]}),{'unitId':this[_0x4de7b9(0x10f)][_0x4de7b9(0x109)](),'tableId':this[_0x4de7b9(0x135)],'fieldId':_0x42dcfe['id']}),this[_0x4de7b9(0x13e)](_0x42dcfe['id']);}[_0x1c8f3(0x144)](_0x34f208){return this['addField'](_0x34f208);}[_0x1c8f3(0x286)](_0x256f45,_0x5ca8ae){const _0x386f45=_0x1c8f3;y(t[_0x386f45(0x11b)]['id'],this[_0x386f45(0x285)]['syncExecuteCommand'](t[_0x386f45(0x11b)]['id'],{'unitId':this['_base'][_0x386f45(0x109)](),'tableId':this[_0x386f45(0x135)],'fieldId':_0x256f45,'patch':_0x5ca8ae}),{'unitId':this[_0x386f45(0x10f)][_0x386f45(0x109)](),'tableId':this[_0x386f45(0x135)],'fieldId':_0x256f45});}[_0x1c8f3(0x1cd)](_0x25f7bd,_0x52edf1){const _0x539b50=_0x1c8f3;y(t[_0x539b50(0x24a)]['id'],this[_0x539b50(0x285)][_0x539b50(0x23b)](t[_0x539b50(0x24a)]['id'],{'unitId':this[_0x539b50(0x10f)]['getUnitId'](),'tableId':this[_0x539b50(0x135)],'fieldId':_0x25f7bd,'input':_0x52edf1}),{'unitId':this[_0x539b50(0x10f)][_0x539b50(0x109)](),'tableId':this[_0x539b50(0x135)],'fieldId':_0x25f7bd});}['deleteField'](_0x57d2c1){const _0x2ad88a=_0x1c8f3;y(t[_0x2ad88a(0x167)]['id'],this[_0x2ad88a(0x285)][_0x2ad88a(0x23b)](t['DeleteBaseFieldCommand']['id'],{'unitId':this[_0x2ad88a(0x10f)][_0x2ad88a(0x109)](),'tableId':this['_tableId'],'fieldId':_0x57d2c1}),{'unitId':this[_0x2ad88a(0x10f)][_0x2ad88a(0x109)](),'tableId':this[_0x2ad88a(0x135)],'fieldId':_0x57d2c1});}[_0x1c8f3(0x267)](_0x320f6a,_0x1e9fc4){const _0x35244c=_0x1c8f3;y(t['MoveBaseFieldCommand']['id'],this[_0x35244c(0x285)][_0x35244c(0x23b)](t[_0x35244c(0x1de)]['id'],{'unitId':this[_0x35244c(0x10f)][_0x35244c(0x109)](),'tableId':this[_0x35244c(0x135)],'fieldId':_0x320f6a,'target':_0x1e9fc4}),{'unitId':this['_base']['getUnitId'](),'tableId':this[_0x35244c(0x135)],'fieldId':_0x320f6a});}[_0x1c8f3(0x264)](_0x2e8a47){const _0x56bef5=_0x1c8f3;let _0x4c9bd1=this[_0x56bef5(0x245)]()[_0x56bef5(0x206)][_0x2e8a47];return _0x4c9bd1&&!_0x4c9bd1[_0x56bef5(0x152)]?this[_0x56bef5(0x148)](_0x4c9bd1['id']):null;}['getRecordById'](_0x34c6f7){return this['getRecord'](_0x34c6f7);}[_0x1c8f3(0xfd)](_0x1ace03={}){const _0x45de15=_0x1c8f3;return M(N(this[_0x45de15(0x27c)](_0x1ace03)[_0x45de15(0x254)](_0x1db53c=>this[_0x45de15(0x245)]()[_0x45de15(0x206)][_0x1db53c])[_0x45de15(0x1c7)](_0x272fa8=>!!(_0x272fa8&&!_0x272fa8[_0x45de15(0x152)]))[_0x45de15(0x1c7)](_0x1e57e3=>F(_0x1e57e3,_0x1ace03[_0x45de15(0x1c7)])),this[_0x45de15(0x245)](),_0x1ace03[_0x45de15(0x174)]),_0x1ace03)[_0x45de15(0x254)](_0x38948f=>this[_0x45de15(0x148)](_0x38948f['id']));}['queryRecords'](_0x5ce8da={}){const _0x36f785=_0x1c8f3;var _0x486e71;let _0x317f8f=N(this[_0x36f785(0x27c)](_0x5ce8da)[_0x36f785(0x254)](_0x169467=>this['_getTable']()[_0x36f785(0x206)][_0x169467])['filter'](_0x3669c1=>!!(_0x3669c1&&!_0x3669c1[_0x36f785(0x152)]))[_0x36f785(0x1c7)](_0x378904=>F(_0x378904,_0x5ce8da['filter'])),this[_0x36f785(0x245)](),_0x5ce8da[_0x36f785(0x174)]),_0x410452=Math['max'](0x0,(_0x486e71=_0x5ce8da[_0x36f785(0x266)])==null?0x0:_0x486e71),_0x44e9d4=_0x5ce8da[_0x36f785(0x1b9)]==null?null:Math['max'](0x0,_0x5ce8da[_0x36f785(0x1b9)]);return{'records':M(_0x317f8f,_0x5ce8da)[_0x36f785(0x254)](_0x552a27=>this['_wrapRecord'](_0x552a27['id'])),'total':_0x317f8f[_0x36f785(0x1f6)],'offset':_0x410452,'limit':_0x44e9d4,'hasMore':_0x44e9d4!=null&&_0x410452+_0x44e9d4<_0x317f8f[_0x36f785(0x1f6)]};}['_resolveRecordIds'](_0xda1760){const _0x2e58b7=_0x1c8f3;var _0x27e50a;let _0x1f6886=this[_0x2e58b7(0x245)]();if(_0xda1760[_0x2e58b7(0x137)]){let _0x272f6d=this[_0x2e58b7(0x279)][_0x2e58b7(0x1ee)](this['_base']['getSnapshot'](),this[_0x2e58b7(0x135)],_0xda1760[_0x2e58b7(0x137)]);if('rows'in _0x272f6d&&Array[_0x2e58b7(0x13d)](_0x272f6d[_0x2e58b7(0x122)]))return _0x272f6d[_0x2e58b7(0x122)][_0x2e58b7(0x254)](_0x236b2f=>_0x236b2f[_0x2e58b7(0x199)]);}return((_0x27e50a=_0x1f6886[_0x2e58b7(0x20e)])==null?Object['values'](_0x1f6886[_0x2e58b7(0x206)])[_0x2e58b7(0x174)]((_0x111fca,_0x49e1de)=>_0x111fca[_0x2e58b7(0x1b3)][_0x2e58b7(0x287)](_0x49e1de[_0x2e58b7(0x1b3)]))['map'](_0x28f080=>_0x28f080['id']):_0x27e50a)[_0x2e58b7(0x254)](_0x265eb5=>_0x1f6886[_0x2e58b7(0x206)][_0x265eb5])['filter'](_0x3d1ad5=>!!(_0x3d1ad5&&!_0x3d1ad5[_0x2e58b7(0x152)]))[_0x2e58b7(0x254)](_0x243904=>_0x243904['id']);}['listRecords'](_0x2d3476={}){const _0x16cd6d=_0x1c8f3;return this[_0x16cd6d(0xfd)](_0x2d3476);}['addRecord'](_0xce961c={}){const _0x2e43a5=_0x1c8f3;var _0xaf905,_0xd09b8a,_0x5596ff,_0x22f6a9,_0x11d649,_0x3bc984;let _0x25b0cf=Date[_0x2e43a5(0x103)](),_0xc62ff4=this[_0x2e43a5(0x245)](),_0x459d2a={'id':(_0xaf905=_0xce961c['id'])==null?B(_0x2e43a5(0x202)):_0xaf905,'values':{...E(_0xc62ff4,_0xce961c[_0x2e43a5(0x11c)],(_0xd09b8a=_0xce961c[_0x2e43a5(0x114)])==null?'id':_0xd09b8a),...E(_0xc62ff4,_0xce961c[_0x2e43a5(0x1b5)],(_0x5596ff=_0xce961c[_0x2e43a5(0x114)])==null?'name':_0x5596ff)},'orderKey':(_0x22f6a9=_0xce961c[_0x2e43a5(0x1b3)])==null?''+_0x25b0cf:_0x22f6a9,'createdAt':(_0x11d649=_0xce961c['createdAt'])==null?_0x25b0cf:_0x11d649,'updatedAt':(_0x3bc984=_0xce961c[_0x2e43a5(0x280)])==null?_0x25b0cf:_0x3bc984,'createdBy':_0xce961c['createdBy'],'updatedBy':_0xce961c[_0x2e43a5(0x1a6)]};return y(t['CreateBaseRecordCommand']['id'],this['_commandService'][_0x2e43a5(0x23b)](t[_0x2e43a5(0x248)]['id'],{'unitId':this[_0x2e43a5(0x10f)][_0x2e43a5(0x109)](),'tableId':this[_0x2e43a5(0x135)],'record':_0x459d2a}),{'unitId':this['_base'][_0x2e43a5(0x109)](),'tableId':this['_tableId'],'recordId':_0x459d2a['id']}),this[_0x2e43a5(0x148)](_0x459d2a['id']);}['createRecord'](_0x59e4ad={}){const _0x443841=_0x1c8f3;return this[_0x443841(0x143)](_0x59e4ad);}[_0x1c8f3(0x12a)](_0x1397fe){const _0x10b962=_0x1c8f3;if(!_0x1397fe[_0x10b962(0x1f6)])return[];let _0x2b709c=Date[_0x10b962(0x103)](),_0x51c6e3=this[_0x10b962(0x245)](),_0x5e8117=_0x1397fe['map']((_0x3cb681,_0x520905)=>{const _0x12f165=_0x10b962;var _0x58459e,_0x3029f2,_0x44b219,_0x2f2c9d,_0x1e212b,_0x57a4b7;return{'id':(_0x58459e=_0x3cb681['id'])==null?B(_0x12f165(0x202)):_0x58459e,'values':{...E(_0x51c6e3,_0x3cb681[_0x12f165(0x11c)],(_0x3029f2=_0x3cb681[_0x12f165(0x114)])==null?'id':_0x3029f2),...E(_0x51c6e3,_0x3cb681[_0x12f165(0x1b5)],(_0x44b219=_0x3cb681[_0x12f165(0x114)])==null?_0x12f165(0x10b):_0x44b219)},'orderKey':(_0x2f2c9d=_0x3cb681[_0x12f165(0x1b3)])==null?''+(_0x2b709c+_0x520905):_0x2f2c9d,'createdAt':(_0x1e212b=_0x3cb681['createdAt'])==null?_0x2b709c:_0x1e212b,'updatedAt':(_0x57a4b7=_0x3cb681['updatedAt'])==null?_0x2b709c:_0x57a4b7,'createdBy':_0x3cb681['createdBy'],'updatedBy':_0x3cb681[_0x12f165(0x1a6)]};});return y(t[_0x10b962(0x1e4)]['id'],this['_commandService'][_0x10b962(0x23b)](t[_0x10b962(0x1e4)]['id'],{'unitId':this[_0x10b962(0x10f)]['getUnitId'](),'tableId':this['_tableId'],'records':_0x5e8117}),{'unitId':this[_0x10b962(0x10f)][_0x10b962(0x109)](),'tableId':this['_tableId'],'recordIds':_0x5e8117[_0x10b962(0x254)](_0x194002=>_0x194002['id'])}),_0x5e8117['map'](_0x17edf5=>this['_wrapRecord'](_0x17edf5['id']));}[_0x1c8f3(0xf9)](_0x135296,_0x4ac07d={}){const _0xe4a5e2=_0x1c8f3;let _0xb862b3=this['_getTable'](),_0x512abe=_0x135296[_0xe4a5e2(0x254)](_0x13626f=>{const _0x3fa545=_0xe4a5e2;var _0x3a4e22,_0x230875,_0xfe375a,_0x217fc4;return{'recordId':_0x13626f[_0x3fa545(0x199)],'values':{...E(_0xb862b3,_0x13626f[_0x3fa545(0x11c)],(_0x3a4e22=(_0x230875=_0x13626f['fieldKey'])==null?_0x4ac07d[_0x3fa545(0x114)]:_0x230875)==null?'id':_0x3a4e22),...E(_0xb862b3,_0x13626f[_0x3fa545(0x1b5)],(_0xfe375a=(_0x217fc4=_0x13626f[_0x3fa545(0x114)])==null?_0x4ac07d[_0x3fa545(0x114)]:_0x217fc4)==null?'name':_0xfe375a)}};});y(t['SetBaseRecordValuesCommand']['id'],this['_commandService'][_0xe4a5e2(0x23b)](t[_0xe4a5e2(0x180)]['id'],{'unitId':this[_0xe4a5e2(0x10f)][_0xe4a5e2(0x109)](),'tableId':this[_0xe4a5e2(0x135)],'patches':_0x512abe}),{'unitId':this[_0xe4a5e2(0x10f)][_0xe4a5e2(0x109)](),'tableId':this[_0xe4a5e2(0x135)],'recordIds':_0x512abe['map'](_0x1868af=>_0x1868af[_0xe4a5e2(0x199)])});}['updateRecord'](_0x33c446,_0x157a59,_0x204f9f={}){const _0x3f4ec3=_0x1c8f3;this[_0x3f4ec3(0xf9)]([{'recordId':_0x33c446,'values':_0x157a59}],_0x204f9f);}[_0x1c8f3(0x261)](_0x4b4be1){const _0x50ad53=_0x1c8f3;y(t[_0x50ad53(0x1b1)]['id'],this[_0x50ad53(0x285)][_0x50ad53(0x23b)](t[_0x50ad53(0x1b1)]['id'],{'unitId':this['_base']['getUnitId'](),'tableId':this[_0x50ad53(0x135)],'recordId':_0x4b4be1}),{'unitId':this[_0x50ad53(0x10f)][_0x50ad53(0x109)](),'tableId':this[_0x50ad53(0x135)],'recordId':_0x4b4be1});}[_0x1c8f3(0x1e0)](_0x1e3fb0){const _0x150211=_0x1c8f3;_0x1e3fb0[_0x150211(0x1f6)]&&y(t[_0x150211(0x1c6)]['id'],this[_0x150211(0x285)]['syncExecuteCommand'](t[_0x150211(0x1c6)]['id'],{'unitId':this['_base']['getUnitId'](),'tableId':this[_0x150211(0x135)],'recordIds':_0x1e3fb0}),{'unitId':this['_base'][_0x150211(0x109)](),'tableId':this[_0x150211(0x135)],'recordIds':_0x1e3fb0});}['duplicateRecord'](_0xb67787,_0x2cb3d7={}){const _0x14add2=_0x1c8f3;var _0x37e539,_0xb70b05,_0x24ad8f,_0x2bb2e3,_0x40f9b1,_0x22eb8d;let _0x5524d6=this['_getTable']()[_0x14add2(0x206)][_0xb67787];if(!_0x5524d6||_0x5524d6[_0x14add2(0x152)])throw Error(_0x14add2(0x25c)+_0xb67787+_0x14add2(0x257));let _0x17d37f=Date[_0x14add2(0x103)](),_0x2507eb={'id':(_0x37e539=_0x2cb3d7['id'])==null?B(_0x14add2(0x202)):_0x37e539,'values':{...E(this['_getTable'](),_0x2cb3d7[_0x14add2(0x11c)],(_0xb70b05=_0x2cb3d7[_0x14add2(0x114)])==null?'id':_0xb70b05),...E(this[_0x14add2(0x245)](),_0x2cb3d7['fields'],(_0x24ad8f=_0x2cb3d7[_0x14add2(0x114)])==null?'name':_0x24ad8f)},'orderKey':(_0x2bb2e3=_0x2cb3d7[_0x14add2(0x1b3)])==null?''+_0x17d37f:_0x2bb2e3,'createdAt':(_0x40f9b1=_0x2cb3d7['createdAt'])==null?_0x17d37f:_0x40f9b1,'updatedAt':(_0x22eb8d=_0x2cb3d7[_0x14add2(0x280)])==null?_0x17d37f:_0x22eb8d,'createdBy':_0x2cb3d7[_0x14add2(0xf8)],'updatedBy':_0x2cb3d7[_0x14add2(0x1a6)]};return y(t[_0x14add2(0x277)]['id'],this[_0x14add2(0x285)]['syncExecuteCommand'](t['DuplicateBaseRecordCommand']['id'],{'unitId':this[_0x14add2(0x10f)][_0x14add2(0x109)](),'tableId':this[_0x14add2(0x135)],'sourceRecordId':_0xb67787,'record':_0x2507eb}),{'unitId':this['_base']['getUnitId'](),'tableId':this['_tableId'],'recordId':_0x2507eb['id'],'sourceRecordId':_0xb67787}),this['_wrapRecord'](_0x2507eb['id']);}[_0x1c8f3(0x278)](_0x2d64c9,_0x28e1a6,_0x20c3f2){const _0x182ffc=_0x1c8f3;y(t[_0x182ffc(0x1b7)]['id'],this[_0x182ffc(0x285)][_0x182ffc(0x23b)](t[_0x182ffc(0x1b7)]['id'],{'unitId':this[_0x182ffc(0x10f)][_0x182ffc(0x109)](),'tableId':this[_0x182ffc(0x135)],'recordId':_0x2d64c9,'fieldId':_0x28e1a6,'value':_0x20c3f2}),{'unitId':this[_0x182ffc(0x10f)][_0x182ffc(0x109)](),'tableId':this[_0x182ffc(0x135)],'recordId':_0x2d64c9,'fieldId':_0x28e1a6});}[_0x1c8f3(0x1eb)](_0x5193a6,_0xe9370c,_0x12f95e){this['updateCell'](_0x5193a6,_0xe9370c,_0x12f95e);}[_0x1c8f3(0x17b)](_0x518ea4,_0x2e61a3){const _0x36c220=_0x1c8f3;var _0x2c3732,_0x2b4320;return(_0x2c3732=(_0x2b4320=this['_getTable']()[_0x36c220(0x206)][_0x518ea4])==null||(_0x2b4320=_0x2b4320[_0x36c220(0x11c)])==null?void 0x0:_0x2b4320[_0x2e61a3])==null?null:_0x2c3732;}[_0x1c8f3(0x213)](_0x3635ff,_0x4db0f0){const _0x5531ad=_0x1c8f3;var _0x497ac9;y(t[_0x5531ad(0x121)]['id'],this['_commandService'][_0x5531ad(0x23b)](t[_0x5531ad(0x121)]['id'],{'unitId':this['_base'][_0x5531ad(0x109)](),'tableId':this[_0x5531ad(0x135)],'recordId':_0x3635ff,'orderKey':(_0x497ac9=_0x4db0f0[_0x5531ad(0x1b3)])==null?this[_0x5531ad(0x245)]()[_0x5531ad(0x206)][_0x3635ff][_0x5531ad(0x1b3)]:_0x497ac9}),{'unitId':this['_base'][_0x5531ad(0x109)](),'tableId':this[_0x5531ad(0x135)],'recordId':_0x3635ff});}[_0x1c8f3(0x1f0)](_0x31d9f6,_0xc6980b,_0x55c68d=0x1,_0x1c8321=0x1){const _0x446271=_0x1c8f3;return new T(this[_0x446271(0x10f)],this[_0x446271(0x135)],{'startRow':_0x31d9f6,'endRow':_0x31d9f6+_0x55c68d-0x1,'startColumn':_0xc6980b,'endColumn':_0xc6980b+_0x1c8321-0x1},this[_0x446271(0x285)]);}[_0x1c8f3(0x238)](){const _0x1a03cc=_0x1c8f3;var _0x2be055,_0x51c5a5;let _0x5cbfa9=(0x0,t[_0x1a03cc(0x1ca)])(this[_0x1a03cc(0x245)]()),_0x51dcae=(_0x2be055=(_0x51c5a5=_0x5cbfa9[_0x1a03cc(0x20e)])==null?void 0x0:_0x51c5a5[_0x1a03cc(0x1c7)](_0x4ad837=>{const _0x2def2b=_0x1a03cc;var _0x1bea00;return!((_0x1bea00=_0x5cbfa9[_0x2def2b(0x206)][_0x4ad837])!=null&&_0x1bea00[_0x2def2b(0x152)]);})['length'])==null?0x0:_0x2be055,_0x2bce44=_0x5cbfa9['fieldOrder']['filter'](_0x51f817=>{const _0x493058=_0x1a03cc;var _0x257c30;return!((_0x257c30=_0x5cbfa9[_0x493058(0x1b5)][_0x51f817])!=null&&_0x257c30[_0x493058(0x152)]);})[_0x1a03cc(0x1f6)];return this[_0x1a03cc(0x1f0)](0x0,0x0,Math[_0x1a03cc(0x1bb)](_0x51dcae,0x1),Math[_0x1a03cc(0x1bb)](_0x2bce44,0x1));}[_0x1c8f3(0x191)](){const _0x25f340=_0x1c8f3;let _0x3d92c8=this[_0x25f340(0x245)]();return _0x3d92c8[_0x25f340(0x240)][_0x25f340(0x254)](_0x192586=>_0x3d92c8['views'][_0x192586])[_0x25f340(0x1c7)](_0x3801b0=>!!(_0x3801b0&&!_0x3801b0['deleted']))[_0x25f340(0x254)](_0x1768a7=>this['_wrapView'](_0x1768a7['id']));}[_0x1c8f3(0x12e)](){return this['getViews']();}['getView'](_0x65461d){const _0x326472=_0x1c8f3;let _0x4f90b7=this[_0x326472(0x245)]()[_0x326472(0x246)][_0x65461d];return _0x4f90b7&&!_0x4f90b7['deleted']?this['_wrapView'](_0x4f90b7['id']):null;}['getViewById'](_0x450d2c){const _0x11bd2d=_0x1c8f3;return this[_0x11bd2d(0x253)](_0x450d2c);}[_0x1c8f3(0x178)](_0x18b34d){const _0x21bd99=_0x1c8f3;let _0x4dc9d8=Object[_0x21bd99(0x11c)](this[_0x21bd99(0x245)]()['views'])['find'](_0x433650=>!_0x433650[_0x21bd99(0x152)]&&_0x433650[_0x21bd99(0x10b)]===_0x18b34d);return _0x4dc9d8?this[_0x21bd99(0x176)](_0x4dc9d8['id']):null;}[_0x1c8f3(0x172)](_0x5d4634){const _0x132e68=_0x1c8f3;var _0x7c5f57,_0x261b14;let _0x47e702=this[_0x132e68(0x245)](),_0x4f7837={'id':(_0x7c5f57=_0x5d4634['id'])==null?B(_0x132e68(0x1c1)):_0x7c5f57,'tableId':this[_0x132e68(0x135)],'name':_0x5d4634[_0x132e68(0x10b)],'type':_0x5d4634[_0x132e68(0x158)],'fieldOrder':[..._0x47e702[_0x132e68(0x252)]],'fieldSettings':{},'config':(_0x261b14=_0x5d4634['config'])==null?{}:_0x261b14};return y(t[_0x132e68(0x130)]['id'],this[_0x132e68(0x285)][_0x132e68(0x23b)](t[_0x132e68(0x130)]['id'],{'unitId':this[_0x132e68(0x10f)][_0x132e68(0x109)](),'tableId':this[_0x132e68(0x135)],'view':_0x4f7837,'index':_0x5d4634[_0x132e68(0x1e9)]}),{'unitId':this[_0x132e68(0x10f)][_0x132e68(0x109)](),'tableId':this[_0x132e68(0x135)],'viewId':_0x4f7837['id']}),this['_wrapView'](_0x4f7837['id']);}[_0x1c8f3(0x15b)](_0x288bd6){const _0x2efae5=_0x1c8f3;y(t[_0x2efae5(0x228)]['id'],this[_0x2efae5(0x285)][_0x2efae5(0x23b)](t[_0x2efae5(0x228)]['id'],{'unitId':this['_base'][_0x2efae5(0x109)](),'tableId':this['_tableId'],'viewId':_0x288bd6}),{'unitId':this[_0x2efae5(0x10f)][_0x2efae5(0x109)](),'tableId':this['_tableId'],'viewId':_0x288bd6});}['getSchema'](){const _0x413391=_0x1c8f3;let _0x1abbe8=this[_0x413391(0x245)](),_0x30911e=_0x1abbe8['fieldOrder'][_0x413391(0x1c7)](_0x53795c=>{const _0x3ef496=_0x413391;var _0xde048c;return!((_0xde048c=_0x1abbe8[_0x3ef496(0x1b5)][_0x53795c])!=null&&_0xde048c['deleted']);}),_0x5e9a61=_0x1abbe8[_0x413391(0x240)][_0x413391(0x1c7)](_0x2b88c7=>{const _0x2386a4=_0x413391;var _0x530ae4;return!((_0x530ae4=_0x1abbe8[_0x2386a4(0x246)][_0x2b88c7])!=null&&_0x530ae4[_0x2386a4(0x152)]);});return{'id':_0x1abbe8['id'],'name':_0x1abbe8['name'],'primaryFieldId':_0x1abbe8[_0x413391(0x25e)],'fieldIds':_0x30911e,'viewIds':_0x5e9a61,'recordCount':this['_resolveRecordIds']({})[_0x413391(0x1f6)],'fields':_0x30911e['map'](_0x56a3fe=>{const _0x4dc2a1=_0x413391;let _0x433b43=_0x1abbe8[_0x4dc2a1(0x1b5)][_0x56a3fe];return{'id':_0x433b43['id'],'name':_0x433b43[_0x4dc2a1(0x10b)],'type':_0x433b43['type'],'config':_0x433b43['config'],'readonly':_0x433b43['readonly'],'description':_0x433b43[_0x4dc2a1(0x141)]};}),'views':_0x5e9a61['map'](_0x5a8ae0=>{const _0xe598eb=_0x413391;let _0xbf033=_0x1abbe8[_0xe598eb(0x246)][_0x5a8ae0];return{'id':_0xbf033['id'],'name':_0xbf033[_0xe598eb(0x10b)],'type':_0xbf033['type']};})};}['getPermission'](){const _0x10f5f2=_0x1c8f3;return new C(this['_tableId'],this[_0x10f5f2(0x150)]);}[_0x1c8f3(0x245)](){const _0x531f65=_0x1c8f3;let _0x345021=this[_0x531f65(0x10f)]['getSnapshot']()['tables'][this[_0x531f65(0x135)]];if(!_0x345021||_0x345021['deleted'])throw Error(_0x531f65(0x1dc)+this[_0x531f65(0x135)]+_0x531f65(0x257));return _0x345021;}[_0x1c8f3(0x13e)](_0x7b6532){const _0x482b26=_0x1c8f3;return new w(this[_0x482b26(0x10f)],this['_tableId'],_0x7b6532,this[_0x482b26(0x285)]);}[_0x1c8f3(0x148)](_0x3d6bb0){const _0x559934=_0x1c8f3;return new O(this[_0x559934(0x10f)],this[_0x559934(0x135)],_0x3d6bb0,this[_0x559934(0x285)]);}['_wrapView'](_0x4ff86e){const _0x3d59d5=_0x1c8f3;return new A(this[_0x3d59d5(0x10f)],this[_0x3d59d5(0x135)],_0x4ff86e,this[_0x3d59d5(0x285)],this[_0x3d59d5(0x279)]);}};function M(_0x5e245f,_0x563d6d){const _0x1498cd=_0x1c8f3;var _0x456605;let _0x4ad956=Math['max'](0x0,(_0x456605=_0x563d6d['offset'])==null?0x0:_0x456605);return _0x563d6d[_0x1498cd(0x1b9)]==null?_0x5e245f[_0x1498cd(0x28f)](_0x4ad956):_0x5e245f[_0x1498cd(0x28f)](_0x4ad956,_0x4ad956+Math[_0x1498cd(0x1bb)](0x0,_0x563d6d[_0x1498cd(0x1b9)]));}function N(_0x1b1620,_0x27866b,_0x13d02b=[]){const _0x247bb4=_0x1c8f3;return _0x13d02b['length']?[..._0x1b1620][_0x247bb4(0x174)]((_0x6e0368,_0x33cda7)=>{const _0x175677=_0x247bb4;var _0x51c0a1,_0x152800;for(let _0x1c47bc of _0x13d02b){var _0x261cce;let _0x4298f6=_0x1c47bc['direction']===_0x175677(0x222)?-0x1:0x1,_0x1a4592=P(_0x6e0368['values'][_0x1c47bc[_0x175677(0x221)]],_0x33cda7['values'][_0x1c47bc[_0x175677(0x221)]],(_0x261cce=_0x27866b[_0x175677(0x1b5)][_0x1c47bc[_0x175677(0x221)]])==null?void 0x0:_0x261cce[_0x175677(0x158)]);if(_0x1a4592!==0x0)return _0x1a4592*_0x4298f6;}return String((_0x51c0a1=_0x6e0368[_0x175677(0x1b3)])==null?_0x6e0368['id']:_0x51c0a1)[_0x175677(0x287)](String((_0x152800=_0x33cda7[_0x175677(0x1b3)])==null?_0x33cda7['id']:_0x152800));}):_0x1b1620;}function _0x2ad4(_0x4a09c8,_0x56338a){_0x4a09c8=_0x4a09c8-0xe3;const _0x2ff466=_0x2ff4();let _0x2ad41f=_0x2ff466[_0x4a09c8];return _0x2ad41f;}function P(_0x592f2e,_0x11cc0f,_0xbe64b4){const _0x5d946e=_0x1c8f3;return _0x592f2e==null&&_0x11cc0f==null?0x0:_0x592f2e==null?-0x1:_0x11cc0f==null?0x1:typeof _0x592f2e==_0x5d946e(0x24e)&&typeof _0x11cc0f==_0x5d946e(0x24e)?_0x592f2e-_0x11cc0f:_0xbe64b4===_0x5d946e(0xfa)?Number(_0x592f2e)-Number(_0x11cc0f):String(_0x592f2e)['localeCompare'](String(_0x11cc0f));}function F(_0x1a557b,_0x1232aa){const _0x42f9ab=_0x1c8f3;var _0x3261d8;if(!_0x1232aa)return!0x0;if((_0x3261d8=_0x1232aa[_0x42f9ab(0x126)])!=null&&_0x3261d8[_0x42f9ab(0x1f6)])return _0x1232aa[_0x42f9ab(0x197)]==='or'?_0x1232aa[_0x42f9ab(0x126)][_0x42f9ab(0x162)](_0x418418=>F(_0x1a557b,_0x418418)):_0x1232aa[_0x42f9ab(0x126)][_0x42f9ab(0x1f8)](_0x3db2b7=>F(_0x1a557b,_0x3db2b7));if(!_0x1232aa[_0x42f9ab(0x221)]||!_0x1232aa[_0x42f9ab(0x1d6)])return!0x0;let _0x7916a0=_0x1a557b[_0x42f9ab(0x11c)][_0x1232aa[_0x42f9ab(0x221)]],_0x102f16=_0x1232aa[_0x42f9ab(0x181)],_0x51954f=z(_0x7916a0),_0x4d6795=z(_0x102f16),_0x6757e4=Array[_0x42f9ab(0x13d)](_0x7916a0)||Array[_0x42f9ab(0x13d)](_0x102f16),_0x4746cb=_0x4d6795[_0x42f9ab(0x162)](_0x2b9531=>_0x51954f[_0x42f9ab(0x211)](_0x2b9531)),_0x594b13=L(_0x7916a0,_0x102f16);switch(_0x1232aa[_0x42f9ab(0x1d6)]){case'is':return _0x6757e4?_0x4746cb:_0x594b13;case _0x42f9ab(0x26f):return _0x6757e4?!_0x4746cb:!_0x594b13;case'contains':return _0x6757e4?_0x4746cb:R(String(_0x7916a0==null?'':_0x7916a0))['includes'](R(String(_0x102f16==null?'':_0x102f16)));case _0x42f9ab(0x1f4):return _0x6757e4?!_0x4746cb:!R(String(_0x7916a0==null?'':_0x7916a0))[_0x42f9ab(0x211)](R(String(_0x102f16==null?'':_0x102f16)));case _0x42f9ab(0x159):return I(_0x1232aa)[_0x42f9ab(0x186)](String(_0x7916a0==null?'':_0x7916a0));case _0x42f9ab(0x262):return!I(_0x1232aa)[_0x42f9ab(0x186)](String(_0x7916a0==null?'':_0x7916a0));case'isEmpty':return _0x7916a0==null||_0x7916a0===''||Array[_0x42f9ab(0x13d)](_0x7916a0)&&_0x7916a0['length']===0x0;case _0x42f9ab(0x220):return!(_0x7916a0==null||_0x7916a0===''||Array[_0x42f9ab(0x13d)](_0x7916a0)&&_0x7916a0['length']===0x0);case'greaterThan':return Number(_0x7916a0)>Number(_0x102f16);case _0x42f9ab(0x23f):return Number(_0x7916a0)>=Number(_0x102f16);case _0x42f9ab(0x24c):return Number(_0x7916a0)<Number(_0x102f16);case _0x42f9ab(0xef):return Number(_0x7916a0)<=Number(_0x102f16);default:return!0x0;}}function I(_0x452432){const _0x3f7e20=_0x1c8f3;var _0x264a7d;let _0x338491=String((_0x264a7d=_0x452432['value'])==null?'':_0x264a7d);if(_0x338491['length']>0x200)throw new _(g[_0x3f7e20(0x22c)],_0x3f7e20(0x20d),{'fieldId':_0x452432[_0x3f7e20(0x221)],'operator':_0x452432[_0x3f7e20(0x1d6)],'patternLength':_0x338491[_0x3f7e20(0x1f6)],'maxLength':0x200});try{return new RegExp(_0x338491,_0x452432[_0x3f7e20(0x11a)]?void 0x0:'i');}catch(_0xf2f927){throw new _(g[_0x3f7e20(0x22c)],_0x3f7e20(0x239)+_0x338491,{'fieldId':_0x452432[_0x3f7e20(0x221)],'operator':_0x452432[_0x3f7e20(0x1d6)],'pattern':_0x338491,'cause':_0xf2f927});}}function L(_0x21582a,_0x58305e){const _0x96736d=_0x1c8f3;return typeof _0x21582a==_0x96736d(0x23e)&&typeof _0x58305e==_0x96736d(0x23e)?R(_0x21582a)===R(_0x58305e):_0x21582a===_0x58305e;}function R(_0x161e61){const _0x375481=_0x1c8f3;return _0x161e61[_0x375481(0x1f7)]();}function z(_0x3c70a3){const _0x84acb3=_0x1c8f3;return _0x3c70a3==null||_0x3c70a3===''?[]:Array[_0x84acb3(0x13d)](_0x3c70a3)?_0x3c70a3[_0x84acb3(0x13c)](_0x485359=>z(_0x485359))[_0x84acb3(0x1c7)]((_0x11f54e,_0x471290,_0x29f2a8)=>_0x29f2a8[_0x84acb3(0x19f)](_0x11f54e)===_0x471290):[R(String(_0x3c70a3))];}function B(_0x292004){const _0x33ef0a=_0x1c8f3;return _0x292004+'-'+Math[_0x33ef0a(0x20a)]()[_0x33ef0a(0x1c0)](0x24)[_0x33ef0a(0x28f)](0x2,0xa);}var V=class{constructor(_0x56029f,_0xe92cb6,_0x20d8d5,_0x4e91f4,_0x1dc8a9){const _0x3b1eaa=_0x1c8f3;this['_base']=_0x56029f,this[_0x3b1eaa(0x125)]=_0xe92cb6,this[_0x3b1eaa(0x161)]=_0x20d8d5,this[_0x3b1eaa(0x177)]=_0x4e91f4,this[_0x3b1eaa(0x116)]=_0x1dc8a9,h(this,_0x3b1eaa(0xe9),void 0x0),h(this,_0x3b1eaa(0x247),void 0x0),h(this,_0x3b1eaa(0x1bc),new t['BaseJson1OpFactory']()),h(this,_0x3b1eaa(0x200),new t[(_0x3b1eaa(0x1a2))]()),h(this,_0x3b1eaa(0x129),void 0x0),h(this,_0x3b1eaa(0x1d1),null),this[_0x3b1eaa(0x129)]=_0x56029f[_0x3b1eaa(0x1d4)](),this[_0x3b1eaa(0xe9)]=new this[(_0x3b1eaa(0x10f))][(_0x3b1eaa(0x128))](),this[_0x3b1eaa(0xe9)][_0x3b1eaa(0x23c)](this[_0x3b1eaa(0x129)]),this[_0x3b1eaa(0x247)]=new H(this);}['collect'](_0x254edd,_0x35e5fc){const _0x286fed=_0x1c8f3;let _0x20327d=this['_createOp'](_0x254edd,_0x35e5fc);return this[_0x286fed(0x1d1)]=this['_op']?n[_0x286fed(0x21d)]['type']['compose'](this['_op'],_0x20327d):_0x20327d,this[_0x286fed(0xe9)]['setSnapshot'](this[_0x286fed(0x200)][_0x286fed(0x127)](this[_0x286fed(0xe9)][_0x286fed(0x1d4)](),_0x20327d)),!0x0;}[_0x1c8f3(0x1f1)](){const _0x4f1cb0=_0x1c8f3;var _0x30468e,_0x3966d8;if(!this[_0x4f1cb0(0x1d1)])return;let _0x3a8597=this[_0x4f1cb0(0x200)][_0x4f1cb0(0xe8)](this[_0x4f1cb0(0x129)],this[_0x4f1cb0(0x1d1)]);y(t[_0x4f1cb0(0x149)]['id'],this[_0x4f1cb0(0x125)][_0x4f1cb0(0x23b)](t[_0x4f1cb0(0x149)]['id'],{'unitId':this[_0x4f1cb0(0x10f)][_0x4f1cb0(0x109)](),'op':this[_0x4f1cb0(0x1d1)],'trigger':'facade.batch'}),{'unitId':this['_base'][_0x4f1cb0(0x109)]()}),(_0x30468e=this[_0x4f1cb0(0x116)])==null||_0x30468e[_0x4f1cb0(0x183)](this[_0x4f1cb0(0x10f)][_0x4f1cb0(0x109)]()),(_0x3966d8=this['_undoRedoService'])==null||_0x3966d8[_0x4f1cb0(0x17e)]({'unitID':this['_base']['getUnitId'](),'undoMutations':[{'id':t[_0x4f1cb0(0x149)]['id'],'params':{'unitId':this[_0x4f1cb0(0x10f)][_0x4f1cb0(0x109)](),'op':_0x3a8597}}],'redoMutations':[{'id':t[_0x4f1cb0(0x149)]['id'],'params':{'unitId':this[_0x4f1cb0(0x10f)][_0x4f1cb0(0x109)](),'op':this[_0x4f1cb0(0x1d1)]}}]});}[_0x1c8f3(0x268)](_0x33708a,_0x570ff5){const _0x2ade00=_0x1c8f3;let _0x42851b=this[_0x2ade00(0xe9)]['getSnapshot']();switch(_0x33708a){case t[_0x2ade00(0x142)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x12d)](_0x42851b,_0x570ff5[_0x2ade00(0xf6)],_0x570ff5[_0x2ade00(0x1e9)]);case t['RenameBaseTableCommand']['id']:return this['_factory'][_0x2ade00(0x117)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5['name']));case t[_0x2ade00(0x1bd)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x165)](_0x42851b,String(_0x570ff5['tableId']));case t[_0x2ade00(0x1b7)]['id']:return this[_0x2ade00(0x161)][_0x2ade00(0x13f)](this['draftBase'],String(_0x570ff5['tableId']),String(_0x570ff5['recordId']),String(_0x570ff5[_0x2ade00(0x221)]),_0x570ff5[_0x2ade00(0x181)]);case t[_0x2ade00(0x180)]['id']:return this['_baseCommandService'][_0x2ade00(0x27b)](this[_0x2ade00(0xe9)],String(_0x570ff5[_0x2ade00(0x11e)]),_0x570ff5['patches']);case t[_0x2ade00(0x169)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x1fb)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),_0x570ff5[_0x2ade00(0x24d)]);case t['CreateBaseRecordCommand']['id']:return this[_0x2ade00(0x161)][_0x2ade00(0x17d)](this[_0x2ade00(0xe9)],String(_0x570ff5[_0x2ade00(0x11e)]),_0x570ff5[_0x2ade00(0x202)]);case t['BatchCreateBaseRecordsCommand']['id']:return this[_0x2ade00(0x161)][_0x2ade00(0x21f)](this['draftBase'],String(_0x570ff5[_0x2ade00(0x11e)]),_0x570ff5[_0x2ade00(0x206)]);case t[_0x2ade00(0x1b1)]['id']:return this['_factory'][_0x2ade00(0x261)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x199)]));case t[_0x2ade00(0x1c6)]['id']:return this[_0x2ade00(0x1bc)]['deleteRecords'](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),_0x570ff5[_0x2ade00(0x192)]);case t[_0x2ade00(0x277)]['id']:return this['_factory'][_0x2ade00(0x1bf)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5['sourceRecordId']),_0x570ff5['record']);case t[_0x2ade00(0x121)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x213)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5['recordId']),String(_0x570ff5[_0x2ade00(0x1b3)]));case t[_0x2ade00(0x1ad)]['id']:return this[_0x2ade00(0x161)][_0x2ade00(0x11d)](this[_0x2ade00(0xe9)],String(_0x570ff5[_0x2ade00(0x11e)]),_0x570ff5['field'],_0x570ff5['index'],_0x570ff5[_0x2ade00(0x1e6)]);case t[_0x2ade00(0x11b)]['id']:return this['_factory'][_0x2ade00(0x286)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x221)]),_0x570ff5[_0x2ade00(0x25b)]);case t['ChangeBaseFieldTypeCommand']['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x1cd)](_0x42851b,String(_0x570ff5['tableId']),String(_0x570ff5['fieldId']),_0x570ff5['input']);case t[_0x2ade00(0x167)]['id']:return this[_0x2ade00(0x1bc)]['deleteField'](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x221)]));case t['MoveBaseFieldCommand']['id']:return this[_0x2ade00(0x1bc)]['moveField'](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x221)]),_0x570ff5[_0x2ade00(0x20c)]);case t[_0x2ade00(0x130)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x172)](_0x42851b,String(_0x570ff5['tableId']),_0x570ff5[_0x2ade00(0x1c1)],_0x570ff5['index']);case t[_0x2ade00(0x187)]['id']:return this[_0x2ade00(0x1bc)]['renameView'](_0x42851b,String(_0x570ff5['tableId']),String(_0x570ff5[_0x2ade00(0x137)]),String(_0x570ff5[_0x2ade00(0x10b)]));case t[_0x2ade00(0x228)]['id']:return this['_factory'][_0x2ade00(0x15b)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x137)]));case t[_0x2ade00(0x15a)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x1a5)](_0x42851b,String(_0x570ff5['tableId']),String(_0x570ff5[_0x2ade00(0x137)]),_0x570ff5[_0x2ade00(0x20c)]);case t[_0x2ade00(0x21b)]['id']:return this[_0x2ade00(0x1bc)]['updateViewConfig'](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x137)]),_0x570ff5[_0x2ade00(0x25b)]);case t['SetBaseViewFilterCommand']['id']:return this[_0x2ade00(0x1bc)]['setViewFilter'](_0x42851b,String(_0x570ff5['tableId']),String(_0x570ff5[_0x2ade00(0x137)]),_0x570ff5['filter']);case t[_0x2ade00(0xeb)]['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x232)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x137)]),_0x570ff5['sort']);case t['SetBaseViewGroupCommand']['id']:return this[_0x2ade00(0x1bc)][_0x2ade00(0x251)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5['viewId']),_0x570ff5[_0x2ade00(0x290)]);case t[_0x2ade00(0x1e1)]['id']:return this[_0x2ade00(0x1bc)]['setViewFieldVisible'](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x137)]),String(_0x570ff5['fieldId']),!!_0x570ff5[_0x2ade00(0x18c)]);case t['SetBaseViewFieldWidthCommand']['id']:return this['_factory'][_0x2ade00(0x15f)](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x137)]),String(_0x570ff5[_0x2ade00(0x221)]),Number(_0x570ff5['width']));case t['SetBaseViewFieldOrderCommand']['id']:return this[_0x2ade00(0x1bc)]['setViewFieldOrder'](_0x42851b,String(_0x570ff5[_0x2ade00(0x11e)]),String(_0x570ff5[_0x2ade00(0x137)]),String(_0x570ff5[_0x2ade00(0x221)]),_0x570ff5[_0x2ade00(0x20c)]);default:throw new _(g[_0x2ade00(0x284)],_0x2ade00(0x15c)+_0x33708a,{'commandId':_0x33708a});}}},H=class{constructor(_0x1afd67){const _0x28288b=_0x1c8f3;this[_0x28288b(0x113)]=_0x1afd67;}[_0x1c8f3(0x23b)](_0x4f9c63,_0x6ca3fc){const _0x246404=_0x1c8f3;return this[_0x246404(0x113)]['collect'](_0x4f9c63,_0x6ca3fc==null?{}:_0x6ca3fc);}},U=class e{constructor(_0x5e81f5,_0x3ba76c,_0x30a07b,_0x3d9615,_0x5c59b1,_0x24d852,_0x10886d,_0x2797bd){const _0x17cbf4=_0x1c8f3;this[_0x17cbf4(0x10f)]=_0x5e81f5,this[_0x17cbf4(0x285)]=_0x3ba76c,this[_0x17cbf4(0x279)]=_0x30a07b,this['_permissionService']=_0x3d9615,this[_0x17cbf4(0x177)]=_0x5c59b1,this[_0x17cbf4(0x161)]=_0x24d852,this['_univerInstanceService']=_0x10886d,this[_0x17cbf4(0x184)]=_0x2797bd;}[_0x1c8f3(0x1af)](){return this['_base'];}[_0x1c8f3(0x189)](){const _0x4dfa5b=_0x1c8f3;return this['_base'][_0x4dfa5b(0x109)]();}[_0x1c8f3(0x237)](){const _0xfc262d=_0x1c8f3;return this[_0xfc262d(0x10f)][_0xfc262d(0x1d4)]()[_0xfc262d(0x10b)];}['getTables'](){const _0x3df836=_0x1c8f3;let _0x5d895b=this[_0x3df836(0x10f)][_0x3df836(0x1d4)]();return _0x5d895b[_0x3df836(0x140)][_0x3df836(0x254)](_0x5a6dd7=>_0x5d895b['tables'][_0x5a6dd7])[_0x3df836(0x1c7)](_0x3e364f=>!!(_0x3e364f&&!_0x3e364f['deleted']))['map'](_0x206c8c=>this[_0x3df836(0x1d8)](_0x206c8c['id']));}[_0x1c8f3(0x1d4)](){const _0x2da3f3=_0x1c8f3;return this[_0x2da3f3(0x10f)]['getSnapshot']();}[_0x1c8f3(0x1c9)](){const _0xc218b0=_0x1c8f3;return this[_0xc218b0(0x1d4)]();}['setName'](_0x3dec54){const _0x359cec=_0x1c8f3;this[_0x359cec(0x10f)]['setName'](_0x3dec54);}[_0x1c8f3(0xea)](_0x1e1262){const _0x103122=_0x1c8f3;let _0x258e2d=this[_0x103122(0x10f)][_0x103122(0x1d4)]()['tables'][_0x1e1262];return _0x258e2d&&!_0x258e2d[_0x103122(0x152)]?this[_0x103122(0x1d8)](_0x258e2d['id']):null;}['getTableById'](_0x27c29a){const _0x44795c=_0x1c8f3;return this[_0x44795c(0xea)](_0x27c29a);}[_0x1c8f3(0x1ec)](_0x220f21){const _0x1bd8ae=_0x1c8f3;let _0x3aaf9f=Object[_0x1bd8ae(0x11c)](this[_0x1bd8ae(0x10f)]['getSnapshot']()[_0x1bd8ae(0x1d9)])[_0x1bd8ae(0xfe)](_0x3c402d=>!_0x3c402d[_0x1bd8ae(0x152)]&&_0x3c402d[_0x1bd8ae(0x10b)]===_0x220f21);return _0x3aaf9f?this[_0x1bd8ae(0x1d8)](_0x3aaf9f['id']):null;}[_0x1c8f3(0x12d)](_0x321e45){const _0x5909a8=_0x1c8f3;var _0x28d5c5;let _0x17632f=(_0x28d5c5=_0x321e45['id'])==null?G(_0x5909a8(0xf6)):_0x28d5c5,_0x2470db=(0x0,n[_0x5909a8(0x188)])({'id':_0x17632f,'name':_0x321e45[_0x5909a8(0x10b)],'primaryFieldId':G('field'),'primaryFieldName':_0x321e45[_0x5909a8(0x250)],'recordCount':0x0});return y(t[_0x5909a8(0x142)]['id'],this[_0x5909a8(0x285)][_0x5909a8(0x23b)](t['CreateBaseTableCommand']['id'],{'unitId':this[_0x5909a8(0x10f)][_0x5909a8(0x109)](),'table':_0x2470db,'index':_0x321e45[_0x5909a8(0x1e9)]}),{'unitId':this[_0x5909a8(0x10f)][_0x5909a8(0x109)](),'tableId':_0x17632f}),this[_0x5909a8(0x1d8)](_0x2470db['id']);}[_0x1c8f3(0x163)](_0x3638b3){const _0x3c93d1=_0x1c8f3;return this[_0x3c93d1(0x12d)](_0x3638b3);}[_0x1c8f3(0x117)](_0x3f12a9,_0x1b6ebd){const _0x19ff19=_0x1c8f3;y(t[_0x19ff19(0x1fd)]['id'],this[_0x19ff19(0x285)][_0x19ff19(0x23b)](t[_0x19ff19(0x1fd)]['id'],{'unitId':this[_0x19ff19(0x10f)]['getUnitId'](),'tableId':_0x3f12a9,'name':_0x1b6ebd}),{'unitId':this[_0x19ff19(0x10f)]['getUnitId'](),'tableId':_0x3f12a9});}[_0x1c8f3(0x165)](_0x29b117){const _0x1f7329=_0x1c8f3;y(t['DeleteBaseTableCommand']['id'],this[_0x1f7329(0x285)]['syncExecuteCommand'](t['DeleteBaseTableCommand']['id'],{'unitId':this[_0x1f7329(0x10f)][_0x1f7329(0x109)](),'tableId':_0x29b117}),{'unitId':this[_0x1f7329(0x10f)][_0x1f7329(0x109)](),'tableId':_0x29b117});}[_0x1c8f3(0x260)](_0x1fdd22,_0x1dd061={}){const _0x32a410=_0x1c8f3;var _0x139b57,_0x5674b5;let _0x2d56be=this[_0x32a410(0x10f)][_0x32a410(0x1d4)]()[_0x32a410(0x1d9)][_0x1fdd22];if(!_0x2d56be||_0x2d56be[_0x32a410(0x152)])throw Error('[FBase]:\x20table\x20\x22'+_0x1fdd22+_0x32a410(0x257));let _0x58d22a=(_0x139b57=_0x1dd061['id'])==null?G('table'):_0x139b57,_0x22c8c2=(0x0,t[_0x32a410(0x1da)])(_0x2d56be,{'id':_0x58d22a,'name':(_0x5674b5=_0x1dd061[_0x32a410(0x10b)])==null?_0x2d56be[_0x32a410(0x10b)]+'\x20Copy':_0x5674b5,'includeRecords':_0x1dd061[_0x32a410(0x20f)]===!0x0});return y(t[_0x32a410(0x142)]['id'],this['_commandService'][_0x32a410(0x23b)](t[_0x32a410(0x142)]['id'],{'unitId':this['_base'][_0x32a410(0x109)](),'table':_0x22c8c2,'index':_0x1dd061[_0x32a410(0x1e9)]}),{'unitId':this[_0x32a410(0x10f)][_0x32a410(0x109)](),'tableId':_0x58d22a,'sourceTableId':_0x1fdd22}),this['_wrapTable'](_0x22c8c2['id']);}[_0x1c8f3(0x281)](_0x277a03){const _0x38db47=_0x1c8f3;if(this[_0x38db47(0x184)])throw new _(g[_0x38db47(0xec)],'Nested\x20Base\x20batch\x20calls\x20are\x20not\x20supported.',{'unitId':this[_0x38db47(0x10f)][_0x38db47(0x109)]()});if(!this['_baseCommandService'])throw new _(g['InvalidOperation'],'Base\x20batch\x20requires\x20the\x20Base\x20command\x20service.',{'unitId':this[_0x38db47(0x10f)][_0x38db47(0x109)]()});let _0x5cf328=new V(this[_0x38db47(0x10f)],this[_0x38db47(0x285)],this['_baseCommandService'],this[_0x38db47(0x177)],this[_0x38db47(0x116)]),_0x4c261f=_0x277a03(new e(_0x5cf328[_0x38db47(0xe9)],_0x5cf328[_0x38db47(0x247)],this[_0x38db47(0x279)],this['_permissionService'],this[_0x38db47(0x177)],this[_0x38db47(0x161)],this[_0x38db47(0x116)],_0x5cf328));if(_0x4c261f instanceof Promise)throw new _(g['InvalidOperation'],_0x38db47(0x155),{'unitId':this[_0x38db47(0x10f)]['getUnitId']()});return _0x5cf328[_0x38db47(0x1f1)](),_0x4c261f;}[_0x1c8f3(0x100)](_0x537a42,_0x2d84a1){const _0x5ad580=_0x1c8f3;var _0x3040e7,_0x54938f;let _0x3b58c3=this['_base'][_0x5ad580(0x1d4)](),_0x1f6a3b=_0x3b58c3[_0x5ad580(0x1d9)][_0x537a42];if(!_0x1f6a3b||_0x1f6a3b['deleted'])return{'query':_0x2d84a1['query'][_0x5ad580(0x21c)]()[_0x5ad580(0x1f7)](),'total':0x0,'matches':[]};if(_0x2d84a1[_0x5ad580(0x137)]){var _0x1630bc;let _0x290c11=this[_0x5ad580(0x279)]['getProjection'](_0x3b58c3,_0x537a42,_0x2d84a1[_0x5ad580(0x137)]),_0x1036b7=_0x1f6a3b[_0x5ad580(0x246)][_0x2d84a1[_0x5ad580(0x137)]],_0x159c0e=(_0x1630bc=_0x2d84a1['fieldIds'])==null?W(_0x1f6a3b,_0x1036b7,_0x290c11):_0x1630bc;return(0x0,t[_0x5ad580(0x1f5)])({'table':_0x1f6a3b,'rows':_0x5ad580(0x122)in _0x290c11&&Array['isArray'](_0x290c11['rows'])?_0x290c11['rows']:[],'query':_0x2d84a1[_0x5ad580(0x13b)],'fieldIds':_0x159c0e,'limit':_0x2d84a1[_0x5ad580(0x1b9)]});}return(0x0,t['searchBaseTable'])({'table':_0x1f6a3b,'rows':((_0x3040e7=_0x1f6a3b[_0x5ad580(0x20e)])==null?Object[_0x5ad580(0x11c)](_0x1f6a3b[_0x5ad580(0x206)])[_0x5ad580(0x174)]((_0x5c5928,_0x44c765)=>_0x5c5928['orderKey'][_0x5ad580(0x287)](_0x44c765[_0x5ad580(0x1b3)]))[_0x5ad580(0x254)](_0x5f1e88=>_0x5f1e88['id']):_0x3040e7)[_0x5ad580(0x254)](_0x210ca7=>_0x1f6a3b[_0x5ad580(0x206)][_0x210ca7])[_0x5ad580(0x1c7)](_0x4f0c10=>!!(_0x4f0c10&&!_0x4f0c10[_0x5ad580(0x152)]))[_0x5ad580(0x254)](_0x1d55c6=>({'recordId':_0x1d55c6['id'],'values':_0x1d55c6[_0x5ad580(0x11c)]})),'query':_0x2d84a1[_0x5ad580(0x13b)],'fieldIds':(_0x54938f=_0x2d84a1[_0x5ad580(0x23d)])==null?_0x1f6a3b[_0x5ad580(0x252)][_0x5ad580(0x1c7)](_0x51ed3b=>{const _0x893de=_0x5ad580;let _0xc70c2=_0x1f6a3b[_0x893de(0x1b5)][_0x51ed3b];return!!(_0xc70c2&&!_0xc70c2[_0x893de(0x152)]);}):_0x54938f,'limit':_0x2d84a1[_0x5ad580(0x1b9)]});}['getSchema'](){const _0x468a8d=_0x1c8f3;let _0x4aa305=this[_0x468a8d(0x10f)][_0x468a8d(0x1d4)]();return{'id':_0x4aa305['id'],'name':_0x4aa305[_0x468a8d(0x10b)],'tables':this['getTables']()[_0x468a8d(0x254)](_0x37170f=>_0x37170f[_0x468a8d(0x271)]())};}[_0x1c8f3(0x1ea)](){const _0x35f929=_0x1c8f3;return new S(this[_0x35f929(0x10f)][_0x35f929(0x109)](),this[_0x35f929(0x150)]);}['addEvent'](_0x4773e8,_0x2a0ea5){const _0x69ebfb=_0x1c8f3;return this[_0x69ebfb(0x285)][_0x69ebfb(0x157)](_0x32cfcf=>{const _0x30e251=_0x69ebfb;let _0x5bab1c=this[_0x30e251(0x120)](_0x4773e8,_0x32cfcf);_0x5bab1c&&_0x2a0ea5(_0x5bab1c);});}['resolveCommandEvent'](_0xc1cdae,_0x469ec2){const _0x31a68e=_0x1c8f3;return this[_0x31a68e(0x134)](_0xc1cdae,_0x469ec2);}[_0x1c8f3(0x1d8)](_0xe1ca3c){const _0x3808a0=_0x1c8f3;return new j(this[_0x3808a0(0x10f)],_0xe1ca3c,this[_0x3808a0(0x285)],this[_0x3808a0(0x279)],this[_0x3808a0(0x150)]);}[_0x1c8f3(0x134)](_0x288d64,_0x25e232){const _0x40ce9c=_0x1c8f3;if(_0x288d64===b['TableChanged']){if(_0x25e232['id']===t['CreateBaseTableCommand']['id']){let {table:_0x3b9c55}=_0x25e232[_0x40ce9c(0x179)];return{'type':'created','table':this[_0x40ce9c(0xea)](_0x3b9c55['id']),'tableId':_0x3b9c55['id'],'payload':_0x25e232};}if(_0x25e232['id']===t[_0x40ce9c(0x1fd)]['id']){let {tableId:_0x468be4}=_0x25e232[_0x40ce9c(0x179)],_0x5a6fb6=this[_0x40ce9c(0xea)](_0x468be4);return _0x5a6fb6?{'type':_0x40ce9c(0x10d),'table':_0x5a6fb6,'tableId':_0x468be4,'payload':_0x25e232}:null;}if(_0x25e232['id']===t['DeleteBaseTableCommand']['id']){let {tableId:_0x5b012f}=_0x25e232[_0x40ce9c(0x179)];return{'type':'deleted','table':this[_0x40ce9c(0xea)](_0x5b012f),'tableId':_0x5b012f,'payload':_0x25e232};}}if(_0x288d64===b[_0x40ce9c(0x1b8)]){if(_0x25e232['id']===t[_0x40ce9c(0x248)]['id']){let {tableId:_0x118600,record:_0xd88af7}=_0x25e232[_0x40ce9c(0x179)],_0x31c17b=this[_0x40ce9c(0xea)](_0x118600);return _0x31c17b?{'type':'created','table':_0x31c17b,'records':[_0x31c17b[_0x40ce9c(0x264)](_0xd88af7['id'])][_0x40ce9c(0x1c7)](Boolean),'tableId':_0x118600,'recordIds':[_0xd88af7['id']],'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x1e4)]['id']){let {tableId:_0x1fff6f,records:_0x3b68fd}=_0x25e232[_0x40ce9c(0x179)],_0x483d11=this[_0x40ce9c(0xea)](_0x1fff6f);if(!_0x483d11)return null;let _0x29a081=_0x3b68fd[_0x40ce9c(0x254)](_0x5c290e=>_0x5c290e['id']);return{'type':'created','table':_0x483d11,'records':_0x29a081[_0x40ce9c(0x254)](_0x82965c=>_0x483d11[_0x40ce9c(0x264)](_0x82965c))[_0x40ce9c(0x1c7)](Boolean),'tableId':_0x1fff6f,'recordIds':_0x29a081,'payload':_0x25e232};}if(_0x25e232['id']===t[_0x40ce9c(0x1b1)]['id']){let {tableId:_0x5edc4c,recordId:_0x18fc8d}=_0x25e232[_0x40ce9c(0x179)],_0x261b04=this['getTable'](_0x5edc4c);return _0x261b04?{'type':_0x40ce9c(0x152),'table':_0x261b04,'records':[_0x261b04['getRecord'](_0x18fc8d)][_0x40ce9c(0x1c7)](Boolean),'tableId':_0x5edc4c,'recordIds':[_0x18fc8d],'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x1c6)]['id']){let {tableId:_0x2d2f93,recordIds:_0x2c658e}=_0x25e232[_0x40ce9c(0x179)],_0x318779=this[_0x40ce9c(0xea)](_0x2d2f93);return _0x318779?{'type':_0x40ce9c(0x152),'table':_0x318779,'records':[],'tableId':_0x2d2f93,'recordIds':_0x2c658e,'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x277)]['id']){let {tableId:_0x3ae4a5,record:_0x2c53e6}=_0x25e232['params'],_0x3233f3=this[_0x40ce9c(0xea)](_0x3ae4a5);return _0x3233f3?{'type':'duplicated','table':_0x3233f3,'records':[_0x3233f3['getRecord'](_0x2c53e6['id'])][_0x40ce9c(0x1c7)](Boolean),'tableId':_0x3ae4a5,'recordIds':[_0x2c53e6['id']],'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x180)]['id']){let {tableId:_0x3a98b5,patches:_0x1377f9}=_0x25e232[_0x40ce9c(0x179)],_0xded873=this[_0x40ce9c(0xea)](_0x3a98b5);if(!_0xded873)return null;let _0x54b9b1=_0x1377f9[_0x40ce9c(0x254)](_0x286f4a=>_0x286f4a[_0x40ce9c(0x199)]);return{'type':'updated','table':_0xded873,'records':_0x54b9b1['map'](_0x2a6160=>_0xded873[_0x40ce9c(0x264)](_0x2a6160))[_0x40ce9c(0x1c7)](Boolean),'tableId':_0x3a98b5,'recordIds':_0x54b9b1,'payload':_0x25e232};}if(_0x25e232['id']===t['UpdateBaseRecordOrderCommand']['id']){let {tableId:_0x3258ed,recordId:_0x23ac87}=_0x25e232['params'],_0x3445ac=this[_0x40ce9c(0xea)](_0x3258ed);return _0x3445ac?{'type':'moved','table':_0x3445ac,'records':[_0x3445ac[_0x40ce9c(0x264)](_0x23ac87)]['filter'](Boolean),'tableId':_0x3258ed,'recordIds':[_0x23ac87],'payload':_0x25e232}:null;}}if(_0x288d64===b[_0x40ce9c(0x242)]&&_0x25e232['id']===t[_0x40ce9c(0x1b7)]['id']){let {tableId:_0x4bb5d7,recordId:_0x385a5f,fieldId:_0x490856,value:_0x41f779}=_0x25e232['params'],_0x1ed18a=this[_0x40ce9c(0xea)](_0x4bb5d7);return _0x1ed18a?{'table':_0x1ed18a,'tableId':_0x4bb5d7,'changes':[{'recordId':_0x385a5f,'fieldId':_0x490856,'value':_0x41f779}],'payload':_0x25e232}:null;}if(_0x288d64===b[_0x40ce9c(0x153)]){if(_0x25e232['id']===t[_0x40ce9c(0x1ad)]['id']){let {tableId:_0x19df3f,field:_0x180cfa}=_0x25e232['params'],_0x163627=this[_0x40ce9c(0xea)](_0x19df3f);return _0x163627?{'type':_0x40ce9c(0x1c4),'table':_0x163627,'field':_0x163627['getField'](_0x180cfa['id']),'tableId':_0x19df3f,'fieldId':_0x180cfa['id'],'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x11b)]['id']){let {tableId:_0x5da8ae,fieldId:_0x503508}=_0x25e232[_0x40ce9c(0x179)],_0x406667=this['getTable'](_0x5da8ae);return _0x406667?{'type':_0x40ce9c(0x226),'table':_0x406667,'field':_0x406667[_0x40ce9c(0x1a7)](_0x503508),'tableId':_0x5da8ae,'fieldId':_0x503508,'payload':_0x25e232}:null;}if(_0x25e232['id']===t['ChangeBaseFieldTypeCommand']['id']){let {tableId:_0x47ed8b,fieldId:_0x4e5ef0}=_0x25e232[_0x40ce9c(0x179)],_0xe41254=this[_0x40ce9c(0xea)](_0x47ed8b);return _0xe41254?{'type':_0x40ce9c(0x205),'table':_0xe41254,'field':_0xe41254[_0x40ce9c(0x1a7)](_0x4e5ef0),'tableId':_0x47ed8b,'fieldId':_0x4e5ef0,'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x167)]['id']){let {tableId:_0x5aee4c,fieldId:_0x8a960e}=_0x25e232['params'],_0x181d18=this[_0x40ce9c(0xea)](_0x5aee4c);return _0x181d18?{'type':_0x40ce9c(0x152),'table':_0x181d18,'field':_0x181d18['getField'](_0x8a960e),'tableId':_0x5aee4c,'fieldId':_0x8a960e,'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x1de)]['id']){let {tableId:_0x2a2b2e,fieldId:_0x3fc8f1}=_0x25e232['params'],_0x585005=this['getTable'](_0x2a2b2e);return _0x585005?{'type':_0x40ce9c(0x259),'table':_0x585005,'field':_0x585005[_0x40ce9c(0x1a7)](_0x3fc8f1),'tableId':_0x2a2b2e,'fieldId':_0x3fc8f1,'payload':_0x25e232}:null;}}if(_0x288d64===b[_0x40ce9c(0x132)]){if(_0x25e232['id']===t[_0x40ce9c(0x130)]['id']){let {tableId:_0x26925c,view:_0x2c7b98}=_0x25e232[_0x40ce9c(0x179)],_0x8e407f=this[_0x40ce9c(0xea)](_0x26925c);return _0x8e407f?{'type':_0x40ce9c(0x1c4),'table':_0x8e407f,'view':_0x8e407f[_0x40ce9c(0x253)](_0x2c7b98['id']),'tableId':_0x26925c,'viewId':_0x2c7b98['id'],'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x187)]['id']){let {tableId:_0x562d50,viewId:_0x5dae06}=_0x25e232[_0x40ce9c(0x179)],_0x481209=this[_0x40ce9c(0xea)](_0x562d50);return _0x481209?{'type':_0x40ce9c(0x10d),'table':_0x481209,'view':_0x481209['getView'](_0x5dae06),'tableId':_0x562d50,'viewId':_0x5dae06,'payload':_0x25e232}:null;}if(_0x25e232['id']===t['DeleteBaseViewCommand']['id']){let {tableId:_0x2513c5,viewId:_0x50c61f}=_0x25e232['params'],_0x594d01=this[_0x40ce9c(0xea)](_0x2513c5);return _0x594d01?{'type':'deleted','table':_0x594d01,'view':_0x594d01[_0x40ce9c(0x253)](_0x50c61f),'tableId':_0x2513c5,'viewId':_0x50c61f,'payload':_0x25e232}:null;}if(_0x25e232['id']===t[_0x40ce9c(0x15a)]['id']){let {tableId:_0x42de8d,viewId:_0x2fae98}=_0x25e232[_0x40ce9c(0x179)],_0x2a6c9e=this['getTable'](_0x42de8d);return _0x2a6c9e?{'type':'moved','table':_0x2a6c9e,'view':_0x2a6c9e[_0x40ce9c(0x253)](_0x2fae98),'tableId':_0x42de8d,'viewId':_0x2fae98,'payload':_0x25e232}:null;}if([t[_0x40ce9c(0x21b)]['id'],t[_0x40ce9c(0x13a)]['id'],t[_0x40ce9c(0xeb)]['id'],t[_0x40ce9c(0x27f)]['id'],t[_0x40ce9c(0x1e1)]['id'],t['SetBaseViewFieldWidthCommand']['id'],t[_0x40ce9c(0x282)]['id']]['includes'](_0x25e232['id'])){let {tableId:_0x41a960,viewId:_0x3955db}=_0x25e232[_0x40ce9c(0x179)],_0xbe928b=this[_0x40ce9c(0xea)](_0x41a960);return _0xbe928b?{'type':_0x40ce9c(0x226),'table':_0xbe928b,'view':_0xbe928b[_0x40ce9c(0x253)](_0x3955db),'tableId':_0x41a960,'viewId':_0x3955db,'payload':_0x25e232}:null;}}return null;}};function W(_0x105c2e,_0x1fac7c,_0x11f9a4){const _0x259440=_0x1c8f3;var _0x16eb61;if(_0x11f9a4[_0x259440(0x158)]===_0x259440(0x227)){var _0x3a4585,_0x35aaba,_0x42729;let _0x47d0fe=[(_0x3a4585=(_0x35aaba=_0x11f9a4[_0x259440(0x1b5)])==null||(_0x35aaba=_0x35aaba[0x0])==null?void 0x0:_0x35aaba['id'])==null?_0x105c2e[_0x259440(0x25e)]:_0x3a4585,...(_0x42729=_0x11f9a4[_0x259440(0x203)])==null?[]:_0x42729];return Array[_0x259440(0x1e2)](new Set(_0x47d0fe['filter'](_0x1c5a20=>{let _0x1a4fd0=_0x105c2e['fields'][_0x1c5a20];return!!(_0x1a4fd0&&!_0x1a4fd0['deleted']);})));}return(_0x16eb61=_0x11f9a4['fields'])!=null&&_0x16eb61[_0x259440(0x1f6)]?_0x11f9a4[_0x259440(0x1b5)][_0x259440(0x254)](_0x2a40db=>_0x2a40db['id'])[_0x259440(0x1c7)](_0x43be9b=>{const _0x354ed3=_0x259440;var _0xb8e0be;let _0x39c687=_0x105c2e[_0x354ed3(0x1b5)][_0x43be9b];return!!(_0x39c687&&!_0x39c687[_0x354ed3(0x152)]&&!(!(_0x1fac7c==null||(_0xb8e0be=_0x1fac7c['fieldSettings'])==null||(_0xb8e0be=_0xb8e0be[_0x43be9b])==null)&&_0xb8e0be[_0x354ed3(0x115)]));}):_0x105c2e[_0x259440(0x252)][_0x259440(0x1c7)](_0x5d0d5b=>{const _0x38290a=_0x259440;var _0x24d12b;let _0x2620ba=_0x105c2e[_0x38290a(0x1b5)][_0x5d0d5b];return!!(_0x2620ba&&!_0x2620ba['deleted']&&!(!(_0x1fac7c==null||(_0x24d12b=_0x1fac7c[_0x38290a(0x1c2)])==null||(_0x24d12b=_0x24d12b[_0x5d0d5b])==null)&&_0x24d12b[_0x38290a(0x115)]));});}function G(_0x133e98){const _0xa7388b=_0x1c8f3;return _0x133e98+'-'+Math['random']()[_0xa7388b(0x1c0)](0x24)[_0xa7388b(0x28f)](0x2,0xa);}var K=class extends e[_0x1c8f3(0x269)]{[_0x1c8f3(0x1a1)](_0x550129){const _0x16c346=_0x1c8f3;this[_0x16c346(0x124)](_0x550129),this['_initBaseAfterEvents'](_0x550129);}[_0x1c8f3(0x18e)](_0xd4f00a,_0x2ed342){const _0x463f88=_0x1c8f3;var _0x1d85d2;let _0x5859d1={'base':null,'baseId':(_0x1d85d2=_0xd4f00a['id'])==null?'':_0x1d85d2,'snapshot':_0xd4f00a};if(this[_0x463f88(0x110)](this[_0x463f88(0x216)][_0x463f88(0x224)],_0x5859d1),_0x5859d1[_0x463f88(0x10e)])throw new n[(_0x463f88(0x193))]();let _0xcabc61=this[_0x463f88(0x16f)][_0x463f88(0x1c5)](n[_0x463f88(0x1c3)])[_0x463f88(0x26b)](n[_0x463f88(0x27d)][_0x463f88(0xf4)],_0xd4f00a,_0x2ed342),_0x5c3511=this[_0x463f88(0x276)](_0xcabc61),_0x1c2bb6={'base':_0x5c3511,'baseId':_0x5c3511['getId'](),'snapshot':_0xd4f00a};return this['fireEvent'](this[_0x463f88(0x216)][_0x463f88(0x1cb)],_0x1c2bb6),this['fireEvent'](this[_0x463f88(0x216)]['BaseReady'],_0x1c2bb6),_0x5c3511;}['getActiveBase'](){const _0x5af3e2=_0x1c8f3;let _0x17d171=this[_0x5af3e2(0x16f)][_0x5af3e2(0x1c5)](n['IUniverInstanceService'])[_0x5af3e2(0x208)](n[_0x5af3e2(0x27d)][_0x5af3e2(0xf4)]);return _0x17d171?this[_0x5af3e2(0x276)](_0x17d171):null;}[_0x1c8f3(0x1af)](_0x5ceb24){const _0x3994ca=_0x1c8f3;let _0x474306=this['_injector'][_0x3994ca(0x1c5)](n[_0x3994ca(0x1c3)])[_0x3994ca(0x14f)](_0x5ceb24,n[_0x3994ca(0x27d)][_0x3994ca(0xf4)]);return _0x474306?this[_0x3994ca(0x276)](_0x474306):null;}[_0x1c8f3(0xf2)](){const _0x490b4a=_0x1c8f3;return this[_0x490b4a(0x16f)]['get'](n['IUniverInstanceService'])['getAllUnitsForType'](n[_0x490b4a(0x27d)]['UNIVER_BASE'])['map'](_0x341350=>this[_0x490b4a(0x276)](_0x341350));}[_0x1c8f3(0x276)](_0x1fe285){const _0x27b8a9=_0x1c8f3;return new U(_0x1fe285,this[_0x27b8a9(0x16f)][_0x27b8a9(0x1c5)](n['ICommandService']),this[_0x27b8a9(0x16f)][_0x27b8a9(0x1c5)](t[_0x27b8a9(0x1c8)]),this[_0x27b8a9(0x16f)]['get'](t['IBasePermissionService']),this[_0x27b8a9(0x16f)][_0x27b8a9(0x1c5)](n[_0x27b8a9(0x145)]),this['_injector'][_0x27b8a9(0x1c5)](t[_0x27b8a9(0x1ff)]),this[_0x27b8a9(0x16f)][_0x27b8a9(0x1c5)](n['IUniverInstanceService']));}[_0x1c8f3(0x1cf)](_0x26fa51){const _0x27cb8f=_0x1c8f3;let _0x4a0f84=_0x26fa51['get'](n[_0x27cb8f(0x164)]);[[_0x27cb8f(0xe4),b[_0x27cb8f(0x1d7)]],[_0x27cb8f(0xe3),b[_0x27cb8f(0x153)]],[_0x27cb8f(0x1f2),b[_0x27cb8f(0x1b8)]],['BaseCellValueChanged',b[_0x27cb8f(0x242)]],['BaseViewChanged',b[_0x27cb8f(0x132)]],['TableChanged',b['TableChanged']],['FieldChanged',b[_0x27cb8f(0x153)]],[_0x27cb8f(0x1b8),b['RecordChanged']],[_0x27cb8f(0x242),b['CellValueChanged']],[_0x27cb8f(0x132),b[_0x27cb8f(0x132)]]][_0x27cb8f(0x16a)](([_0x4524e3,_0x292be4])=>{const _0xe49973=_0x27cb8f;this[_0xe49973(0x123)](this['registerEventHandler'](this[_0xe49973(0x216)][_0x4524e3],()=>_0x4a0f84[_0xe49973(0x157)](_0x5c20a3=>{const _0xc34fcc=_0xe49973;let _0x320cbb=this['_resolveBaseCommandEvent'](_0x292be4,_0x5c20a3);_0x320cbb&&this[_0xc34fcc(0x110)](this['Event'][_0x4524e3],_0x320cbb);})));}),this[_0x27cb8f(0x123)](this[_0x27cb8f(0x185)](this['Event'][_0x27cb8f(0x25f)],()=>_0x4a0f84[_0x27cb8f(0x157)](_0x325548=>{const _0x1e34db=_0x27cb8f;let _0x50d600=this[_0x1e34db(0x26c)](_0x325548);_0x50d600&&this[_0x1e34db(0x110)](this[_0x1e34db(0x216)][_0x1e34db(0x25f)],_0x50d600);})));}[_0x1c8f3(0x124)](_0x4906b2){const _0x5f537b=_0x1c8f3;let _0xc8df0a=_0x4906b2[_0x5f537b(0x1c5)](n['ICommandService']);[['BeforeBaseTableCreate',_0x128683=>this[_0x5f537b(0xf3)](_0x128683)],[_0x5f537b(0x196),_0x550007=>this[_0x5f537b(0x225)](_0x550007)],[_0x5f537b(0x154),_0x1ed1b3=>this['_resolveBeforeBaseRecordCreate'](_0x1ed1b3)],[_0x5f537b(0x175),_0x3a282c=>this[_0x5f537b(0x1dd)](_0x3a282c)],['BeforeBaseViewCreate',_0x44ba82=>this['_resolveBeforeBaseViewCreate'](_0x44ba82)]][_0x5f537b(0x16a)](([_0x3121f4,_0x359414])=>{const _0x2a6296=_0x5f537b;this[_0x2a6296(0x123)](this['registerEventHandler'](this['Event'][_0x3121f4],()=>_0xc8df0a[_0x2a6296(0x1ed)](_0x56e7dc=>{const _0x344480=_0x2a6296;let _0x3b0563=_0x359414(_0x56e7dc);if(_0x3b0563&&(this['fireEvent'](this[_0x344480(0x216)][_0x3121f4],_0x3b0563),_0x3b0563[_0x344480(0x10e)]))throw new n[(_0x344480(0x193))]();})));});}[_0x1c8f3(0x1ae)](_0x95e48c,_0x28372f){const _0x5a18f5=_0x1c8f3;if(!_0x28372f[_0x5a18f5(0x179)]||!('unitId'in _0x28372f[_0x5a18f5(0x179)]))return null;let _0x8e810b=this['getBase'](_0x28372f[_0x5a18f5(0x179)][_0x5a18f5(0x182)]);return _0x8e810b?_0x8e810b[_0x5a18f5(0x120)](_0x95e48c,_0x28372f):null;}['_resolveBaseBatchChanged'](_0x314061){const _0x3555cd=_0x1c8f3;if(_0x314061['id']!==t[_0x3555cd(0x149)]['id'])return null;let {unitId:_0x350e33,trigger:_0x46224c}=_0x314061['params'];return!_0x350e33||_0x46224c!==_0x3555cd(0x215)?null:{'base':this[_0x3555cd(0x1af)](_0x350e33),'baseId':_0x350e33,'payload':_0x314061};}['_resolveBeforeBaseTableCreate'](_0x537aba){const _0x1e498f=_0x1c8f3;if(_0x537aba['id']!==t['CreateBaseTableCommand']['id'])return null;let {unitId:_0x4a54ae,table:_0x28f51a}=_0x537aba['params'];return!this[_0x1e498f(0x1af)](_0x4a54ae)||!_0x28f51a?null:{'type':_0x1e498f(0x1c4),'table':null,'tableId':_0x28f51a['id'],'payload':_0x537aba};}['_resolveBeforeBaseFieldCreate'](_0x2d747e){const _0x888fd2=_0x1c8f3;if(_0x2d747e['id']!==t[_0x888fd2(0x1ad)]['id'])return null;let {unitId:_0x351901,tableId:_0x5598b7,field:_0x39100a}=_0x2d747e['params'],_0x5b250a=this['getBase'](_0x351901);if(!_0x5b250a)return null;let _0x5ca313=_0x5b250a[_0x888fd2(0xea)](_0x5598b7);return _0x5ca313?{'type':_0x888fd2(0x1c4),'table':_0x5ca313,'field':null,'tableId':_0x5ca313[_0x888fd2(0x189)](),'fieldId':_0x39100a['id'],'payload':_0x2d747e}:null;}[_0x1c8f3(0x204)](_0x62f89c){const _0x3746f8=_0x1c8f3;if(_0x62f89c['id']===t[_0x3746f8(0x248)]['id']){let {unitId:_0x25de38,tableId:_0x4bb4a3,record:_0x19d4dc}=_0x62f89c['params'],_0x56526f=this['getBase'](_0x25de38);if(!_0x56526f)return null;let _0x36d4bb=_0x56526f[_0x3746f8(0xea)](_0x4bb4a3);return _0x36d4bb?{'type':_0x3746f8(0x1c4),'table':_0x36d4bb,'records':[],'tableId':_0x36d4bb['getId'](),'recordIds':[_0x19d4dc['id']],'payload':_0x62f89c}:null;}else{if(_0x62f89c['id']===t[_0x3746f8(0x1e4)]['id']){let {unitId:_0x46ef34,tableId:_0x250384,records:_0x31cf05}=_0x62f89c[_0x3746f8(0x179)],_0x5f0660=this[_0x3746f8(0x1af)](_0x46ef34);if(!_0x5f0660)return null;let _0x1ee248=_0x5f0660[_0x3746f8(0xea)](_0x250384);return _0x1ee248?{'type':'created','table':_0x1ee248,'records':[],'tableId':_0x1ee248[_0x3746f8(0x189)](),'recordIds':_0x31cf05[_0x3746f8(0x254)](_0x102027=>_0x102027['id']),'payload':_0x62f89c}:null;}}return null;}['_resolveBeforeBaseCellValueChange'](_0x10015b){const _0x1eb280=_0x1c8f3;if(_0x10015b['id']!==t['UpdateBaseCellCommand']['id'])return null;let {unitId:_0x566cc3,tableId:_0x422741,recordId:_0x27eba1,fieldId:_0x4a9859,value:_0x58d901}=_0x10015b[_0x1eb280(0x179)],_0x505d59=this[_0x1eb280(0x1af)](_0x566cc3);if(!_0x505d59)return null;let _0x132136=_0x505d59['getTable'](_0x422741);return _0x132136?{'table':_0x132136,'tableId':_0x132136[_0x1eb280(0x189)](),'changes':[{'recordId':_0x27eba1,'fieldId':_0x4a9859,'value':_0x58d901}],'payload':_0x10015b}:null;}[_0x1c8f3(0x168)](_0xf41db){const _0x393d4d=_0x1c8f3;if(_0xf41db['id']!==t[_0x393d4d(0x130)]['id'])return null;let {unitId:_0x4b5be2,tableId:_0x2bca9e,view:_0x59b133}=_0xf41db['params'],_0x342bfc=this['getBase'](_0x4b5be2);if(!_0x342bfc)return null;let _0x2a22a3=_0x342bfc[_0x393d4d(0xea)](_0x2bca9e);return _0x2a22a3?{'type':'created','table':_0x2a22a3,'view':null,'tableId':_0x2a22a3['getId'](),'viewId':_0x59b133['id'],'payload':_0xf41db}:null;}};e['FUniver'][_0x1c8f3(0x151)](K),exports[_0x1c8f3(0xf7)]=c,exports[_0x1c8f3(0x22b)]=l,exports[_0x1c8f3(0x118)]=_,exports[_0x1c8f3(0x22a)]=g,exports[_0x1c8f3(0x195)]=u,exports['BaseEventName']=b,exports[_0x1c8f3(0x1f9)]=s,exports[_0x1c8f3(0x28c)]=r,exports[_0x1c8f3(0x1d3)]=a,exports[_0x1c8f3(0x217)]=o,exports[_0x1c8f3(0x146)]=V,exports[_0x1c8f3(0x23a)]=i,exports[_0x1c8f3(0x156)]=U,exports['FBasePermission']=S,exports[_0x1c8f3(0x1a8)]=T,exports[_0x1c8f3(0x263)]=w,exports[_0x1c8f3(0x210)]=O,exports[_0x1c8f3(0x14b)]=j,exports['FTablePermission']=C,exports['FUniverBaseMixin']=K,exports[_0x1c8f3(0xe5)]=A,exports[_0x1c8f3(0x160)]=y,exports[_0x1c8f3(0x28b)]=v,exports[_0x1c8f3(0x106)]=D,exports[_0x1c8f3(0x223)]=E;
|