@univerjs-pro/bases 1.0.0 → 1.0.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/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +8 -8
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x45bca4=_0x53ac;(function(_0x58328d,_0x1a745c){const _0xb87cfc=_0x53ac,_0x18df13=_0x58328d();while(!![]){try{const _0x1f6852=parseInt(_0xb87cfc(0x2fa))/0x1+-parseInt(_0xb87cfc(0x315))/0x2*(parseInt(_0xb87cfc(0x34d))/0x3)+-parseInt(_0xb87cfc(0x2ad))/0x4*(parseInt(_0xb87cfc(0x260))/0x5)+parseInt(_0xb87cfc(0x34e))/0x6*(parseInt(_0xb87cfc(0x31f))/0x7)+-parseInt(_0xb87cfc(0x21c))/0x8*(parseInt(_0xb87cfc(0x392))/0x9)+parseInt(_0xb87cfc(0x387))/0xa*(-parseInt(_0xb87cfc(0x38e))/0xb)+-parseInt(_0xb87cfc(0x2a6))/0xc*(-parseInt(_0xb87cfc(0x22a))/0xd);if(_0x1f6852===_0x1a745c)break;else _0x18df13['push'](_0x18df13['shift']());}catch(_0x279a7a){_0x18df13['push'](_0x18df13['shift']());}}}(_0x4e24,0x5ccd3),Object[_0x45bca4(0x2c5)](exports,Symbol[_0x45bca4(0x351)],{'value':_0x45bca4(0x247)}));var e=Object[_0x45bca4(0x1e1)],t=Object[_0x45bca4(0x2c5)],n=Object[_0x45bca4(0x1f2)],r=Object['getOwnPropertyNames'],i=Object[_0x45bca4(0x362)],a=Object[_0x45bca4(0x287)][_0x45bca4(0x311)],o=(_0x367afc,_0x31f0b7,_0x42bc5d,_0x5f2950)=>{const _0x364463=_0x45bca4;if(_0x31f0b7&&typeof _0x31f0b7=='object'||typeof _0x31f0b7==_0x364463(0x2fc)){for(var _0xa17747=r(_0x31f0b7),_0x5ada75=0x0,_0x3bf3bb=_0xa17747['length'],_0x455038;_0x5ada75<_0x3bf3bb;_0x5ada75++)_0x455038=_0xa17747[_0x5ada75],!a[_0x364463(0x316)](_0x367afc,_0x455038)&&_0x455038!==_0x42bc5d&&t(_0x367afc,_0x455038,{'get':(_0x2afda7=>_0x31f0b7[_0x2afda7])['bind'](null,_0x455038),'enumerable':!(_0x5f2950=n(_0x31f0b7,_0x455038))||_0x5f2950[_0x364463(0x209)]});}return _0x367afc;},s=(_0x1a7631,_0x5d89c8,_0x2f209f)=>(_0x2f209f=_0x1a7631==null?{}:e(i(_0x1a7631)),o(_0x5d89c8||!_0x1a7631||!_0x1a7631[_0x45bca4(0x37b)]||!a[_0x45bca4(0x316)](_0x1a7631,_0x45bca4(0x295))?t(_0x2f209f,_0x45bca4(0x295),{'value':_0x1a7631,'enumerable':!0x0}):_0x2f209f,_0x1a7631));let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x21e98c,_0x29b7a2,_0x41a75c){const _0x1709cb=_0x45bca4;this['_unitId']=_0x21e98c,this[_0x1709cb(0x33a)]=_0x29b7a2,this[_0x1709cb(0x2ae)]=_0x41a75c;}async[_0x45bca4(0x2c4)](_0x55a79f){const _0x261468=_0x45bca4;return this[_0x261468(0x33a)]['executeCommand'](c[_0x261468(0x300)]['id'],{'unitId':this[_0x261468(0x266)],'changes':_0x55a79f});}async[_0x45bca4(0x2d2)](_0x5398ff,_0x15e7a3){const _0x318287=_0x45bca4;await this['_commandService'][_0x318287(0x308)](c[_0x318287(0x277)]['id'],{'unitId':this[_0x318287(0x266)],'objectId':this[_0x318287(0x266)],'action':_0x5398ff,'value':_0x15e7a3});}[_0x45bca4(0x26a)](_0x27eb3c){const _0x4d3113=_0x45bca4;return(0x0,c[_0x4d3113(0x342)])(this[_0x4d3113(0x2ae)],this[_0x4d3113(0x266)],this[_0x4d3113(0x266)],_0x27eb3c);}async['setEditable'](_0x3e9417=!0x0){const _0x192dcc=_0x45bca4;await this[_0x192dcc(0x33a)]['executeCommand'](c[_0x192dcc(0x277)]['id'],{'unitId':this[_0x192dcc(0x266)],'objectId':this[_0x192dcc(0x266)],'action':d['UnitAction']['Edit'],'value':_0x3e9417});}async[_0x45bca4(0x38c)](){const _0x34b120=_0x45bca4;await this[_0x34b120(0x33a)][_0x34b120(0x308)](c[_0x34b120(0x277)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x34b120(0x266)],'action':d['UnitAction'][_0x34b120(0x352)],'value':!0x1});}[_0x45bca4(0x2de)](){const _0x219f7d=_0x45bca4;return(0x0,c['getBasePermissionValue'])(this[_0x219f7d(0x2ae)],this[_0x219f7d(0x266)],this[_0x219f7d(0x266)],d[_0x219f7d(0x245)][_0x219f7d(0x352)]);}},m=class{constructor(_0x34a0ed,_0x1ccce2,_0x4457dd,_0x3a00d7,_0xf6fb33){const _0x9a4dea=_0x45bca4;this[_0x9a4dea(0x266)]=_0x34a0ed,this[_0x9a4dea(0x2fb)]=_0x1ccce2,this['_parentObjectIds']=_0x4457dd,this[_0x9a4dea(0x33a)]=_0x3a00d7,this[_0x9a4dea(0x2ae)]=_0xf6fb33;}async['setEditable'](_0x5d6a81=!0x0){const _0x2154d3=_0x45bca4;await this['_commandService'][_0x2154d3(0x308)](c[_0x2154d3(0x277)]['id'],{'unitId':this[_0x2154d3(0x266)],'objectId':this[_0x2154d3(0x2fb)],'action':d['UnitAction'][_0x2154d3(0x352)],'value':_0x5d6a81});}async[_0x45bca4(0x38c)](){const _0x20cacd=_0x45bca4;await this[_0x20cacd(0x33a)][_0x20cacd(0x308)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x20cacd(0x266)],'objectId':this['_objectId'],'action':d['UnitAction'][_0x20cacd(0x352)],'value':!0x1});}['canEdit'](){const _0x34999e=_0x45bca4;return(0x0,c[_0x34999e(0x241)])(this[_0x34999e(0x2ae)],this[_0x34999e(0x266)],[...this[_0x34999e(0x265)],this[_0x34999e(0x2fb)]]);}};function h(_0x2d5d3c,_0x309c){return function(_0x1027b1,_0x28ed12){_0x309c(_0x1027b1,_0x28ed12,_0x2d5d3c);};}function g(_0x3c14db,_0x1b418c,_0x19eea2,_0x5af04f){const _0x4f7e62=_0x45bca4;var _0x4b0c0f=arguments[_0x4f7e62(0x319)],_0x4fc5e0=_0x4b0c0f<0x3?_0x1b418c:_0x5af04f===null?_0x5af04f=Object[_0x4f7e62(0x1f2)](_0x1b418c,_0x19eea2):_0x5af04f,_0x209185;if(typeof Reflect==_0x4f7e62(0x329)&&typeof Reflect['decorate']==_0x4f7e62(0x2fc))_0x4fc5e0=Reflect['decorate'](_0x3c14db,_0x1b418c,_0x19eea2,_0x5af04f);else{for(var _0x5387cd=_0x3c14db['length']-0x1;_0x5387cd>=0x0;_0x5387cd--)(_0x209185=_0x3c14db[_0x5387cd])&&(_0x4fc5e0=(_0x4b0c0f<0x3?_0x209185(_0x4fc5e0):_0x4b0c0f>0x3?_0x209185(_0x1b418c,_0x19eea2,_0x4fc5e0):_0x209185(_0x1b418c,_0x19eea2))||_0x4fc5e0);}return _0x4b0c0f>0x3&&_0x4fc5e0&&Object['defineProperty'](_0x1b418c,_0x19eea2,_0x4fc5e0),_0x4fc5e0;}let _=class{constructor(_0x23723f,_0x54e5e6,_0xfbbef1,_0x241603,_0x297751){const _0x20d1ab=_0x45bca4;this[_0x20d1ab(0x1f5)]=_0x23723f,this['_table']=_0x54e5e6,this[_0x20d1ab(0x310)]=_0xfbbef1,this['_commandService']=_0x241603,this[_0x20d1ab(0x2ae)]=_0x297751;}[_0x45bca4(0x2b7)](){const _0x3fc20f=_0x45bca4;return this[_0x3fc20f(0x310)];}[_0x45bca4(0x349)](){const _0x3e9b7a=_0x45bca4;let _0x5496ef=this['_table'][_0x3e9b7a(0x2b7)]();return new m(this[_0x3e9b7a(0x1f5)][_0x3e9b7a(0x2b7)](),(0x0,c['getBaseFieldPermissionObjectId'])(_0x5496ef,this[_0x3e9b7a(0x310)]),[(0x0,c['getBaseTablePermissionObjectId'])(_0x5496ef)],this[_0x3e9b7a(0x33a)],this[_0x3e9b7a(0x2ae)]);}['getField'](){return this['_getField']();}[_0x45bca4(0x379)](){const _0x4b5395=_0x45bca4;return this[_0x4b5395(0x36e)]()['name'];}[_0x45bca4(0x244)](){const _0x70f2ff=_0x45bca4;return this['_getField']()[_0x70f2ff(0x375)];}[_0x45bca4(0x1e8)](){const _0x1ad20b=_0x45bca4;return this[_0x1ad20b(0x36e)]()['config'];}[_0x45bca4(0x309)](){return this['_getField']()['defaultValue'];}[_0x45bca4(0x30e)](){const _0x4c8156=_0x45bca4;return this[_0x4c8156(0x36e)]()['description'];}['isReadonly'](){const _0x1e35ea=_0x45bca4;return!!this['_getField']()[_0x1e35ea(0x28c)];}['setName'](_0x5cdca9){const _0x506bdc=_0x45bca4;return this[_0x506bdc(0x35d)]({'name':_0x5cdca9});}[_0x45bca4(0x318)](_0x10c199,_0x5187c4){const _0x445c51=_0x45bca4;return this[_0x445c51(0x35d)]({'config':_0x10c199},_0x5187c4);}['setDefaultValue'](_0x288b71){const _0x1b451d=_0x45bca4;return this[_0x1b451d(0x35d)]({'defaultValue':_0x288b71});}['update'](_0x43b8d9,_0x47c9e1){const _0x56e071=_0x45bca4;let _0x999abe=this[_0x56e071(0x36e)]()[_0x56e071(0x375)];return(_0x43b8d9['type']??_0x999abe)===l['BaseFieldType'][_0x56e071(0x356)]&&(Object[_0x56e071(0x287)]['hasOwnProperty'][_0x56e071(0x316)](_0x43b8d9,'config')||_0x43b8d9[_0x56e071(0x375)]===l[_0x56e071(0x321)][_0x56e071(0x356)])&&!this[_0x56e071(0x341)](_0x47c9e1)?!0x1:this[_0x56e071(0x33a)]['syncExecuteCommand'](c[_0x56e071(0x20f)]['id'],{'unitId':this[_0x56e071(0x1f5)]['getId'](),'tableId':this[_0x56e071(0x232)]['getId'](),'fieldId':this[_0x56e071(0x310)],'patch':_0x43b8d9});}['changeType'](_0x28bb44,_0x3e4b37={},_0x3110c4){const _0x5db7ea=_0x45bca4;return _0x28bb44===l[_0x5db7ea(0x321)]['Formula']&&!this[_0x5db7ea(0x341)](_0x3110c4)?!0x1:this[_0x5db7ea(0x33a)][_0x5db7ea(0x354)](c['ChangeBaseFieldTypeCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5db7ea(0x232)][_0x5db7ea(0x2b7)](),'fieldId':this[_0x5db7ea(0x310)],'input':{'type':_0x28bb44,'config':_0x3e4b37}});}[_0x45bca4(0x36c)](){const _0x279972=_0x45bca4;return this['_commandService']['syncExecuteCommand'](c[_0x279972(0x204)]['id'],{'unitId':this[_0x279972(0x1f5)][_0x279972(0x2b7)](),'tableId':this[_0x279972(0x232)]['getId'](),'fieldId':this[_0x279972(0x310)]});}[_0x45bca4(0x32f)](_0x1b638a){const _0x4f700d=_0x45bca4;return this[_0x4f700d(0x33a)][_0x4f700d(0x354)](c[_0x4f700d(0x23a)]['id'],{'unitId':this[_0x4f700d(0x1f5)][_0x4f700d(0x2b7)](),'tableId':this[_0x4f700d(0x232)]['getId'](),'fieldId':this['_fieldId'],'target':_0x1b638a});}[_0x45bca4(0x36e)](){const _0x469b4f=_0x45bca4;let _0x5748b0=this[_0x469b4f(0x232)][_0x469b4f(0x238)]()['fields'][this[_0x469b4f(0x310)]];if(!_0x5748b0)throw Error('[FField]:\x20field\x20\x22'+this[_0x469b4f(0x310)]+'\x22\x20does\x20not\x20exist.');return _0x5748b0;}[_0x45bca4(0x341)](_0x2ee66b){const _0x36ea89=_0x45bca4;if(!_0x2ee66b||!Array[_0x36ea89(0x2a2)](_0x2ee66b['externalReferences']))return console[_0x36ea89(0x32b)](_0x36ea89(0x302)),!0x1;if(_0x2ee66b[_0x36ea89(0x253)][_0x36ea89(0x319)]===0x0)return!0x0;let _0x3103b2=this[_0x36ea89(0x33a)]['syncExecuteCommand'](f[_0x36ea89(0x37c)]['id'],{'unitId':this[_0x36ea89(0x1f5)][_0x36ea89(0x2b7)](),'references':_0x2ee66b[_0x36ea89(0x253)]});return _0x3103b2||console[_0x36ea89(0x32b)](_0x36ea89(0x317)),_0x3103b2;}};_=g([h(0x3,l[_0x45bca4(0x203)]),h(0x4,l[_0x45bca4(0x2c8)])],_);function _0x53ac(_0x2abd16,_0x10c73c){_0x2abd16=_0x2abd16-0x1e0;const _0x4e24d1=_0x4e24();let _0x53ac29=_0x4e24d1[_0x2abd16];return _0x53ac29;}let v=function(_0x4383a9){const _0x250c06=_0x45bca4;return _0x4383a9['Id']='id',_0x4383a9[_0x250c06(0x32e)]=_0x250c06(0x33c),_0x4383a9[_0x250c06(0x374)]=_0x250c06(0x2f2),_0x4383a9;}({});function y(_0x1e29c4){const _0x20dfcc=_0x45bca4;return!!(_0x1e29c4&&_0x1e29c4['system']!==!0x0&&_0x1e29c4[_0x20dfcc(0x375)]!==l[_0x20dfcc(0x321)]['RecordId']);}function b(_0x16fe86,_0x40d02f,_0x1ebbda='id'){const _0x5f407f=_0x45bca4;if(!_0x40d02f)return{};let _0x3d5399={};return Object[_0x5f407f(0x2d3)](_0x40d02f)[_0x5f407f(0x2e1)](([_0x1c351,_0x170d6d])=>{const _0x5ccd7e=_0x5f407f;let _0x15f5ce=S(_0x16fe86,_0x1c351,_0x1ebbda);_0x3d5399[_0x15f5ce]=x(_0x16fe86[_0x5ccd7e(0x29a)][_0x15f5ce],_0x170d6d);}),_0x3d5399;}function x(_0x3a8bca,_0x8c6710){const _0x2112fd=_0x45bca4;if((_0x3a8bca==null?void 0x0:_0x3a8bca[_0x2112fd(0x375)])!==l[_0x2112fd(0x321)][_0x2112fd(0x256)]||_0x8c6710==null)return _0x8c6710;if(!Array[_0x2112fd(0x2a2)](_0x8c6710))throw TypeError(_0x2112fd(0x1fd)+_0x3a8bca[_0x2112fd(0x33c)]+_0x2112fd(0x2ac));return _0x8c6710[_0x2112fd(0x372)]((_0x13f24a,_0x9924de)=>C(_0x3a8bca,_0x13f24a,_0x9924de));}function S(_0x317ef4,_0x1e9f4d,_0x409af3){const _0x2c829e=_0x45bca4;if(_0x409af3==='id'||_0x409af3==='auto'&&_0x317ef4[_0x2c829e(0x29a)][_0x1e9f4d])return _0x1e9f4d;let _0x3a0980=Object['values'](_0x317ef4[_0x2c829e(0x29a)])['filter'](_0x5e654c=>_0x5e654c[_0x2c829e(0x33c)]===_0x1e9f4d);if(_0x3a0980[_0x2c829e(0x319)]===0x1)return _0x3a0980[0x0]['id'];throw _0x3a0980['length']>0x1?Error(_0x2c829e(0x218)+_0x1e9f4d):Error(_0x2c829e(0x339)+_0x1e9f4d);}function C(_0x28ee6f,_0xcb5bd1,_0x40f7ce){const _0x5a2dd8=_0x45bca4;let _0x2c8b68=_0x5a2dd8(0x33f)+_0x40f7ce+_0x5a2dd8(0x2a9)+_0x28ee6f['name']+'\x22';if(!O(_0xcb5bd1))throw TypeError(_0x2c8b68+_0x5a2dd8(0x364));if(_0x5a2dd8(0x283)in _0xcb5bd1)throw TypeError(_0x2c8b68+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x5a2dd8(0x375)in _0xcb5bd1)throw TypeError(_0x2c8b68+_0x5a2dd8(0x21f));let _0x50b103=T(_0xcb5bd1['id'],_0x2c8b68,'id'),_0x4c864a=T(_0xcb5bd1[_0x5a2dd8(0x33c)],_0x2c8b68,_0x5a2dd8(0x33c)),_0x2a8e24=T(_0xcb5bd1[_0x5a2dd8(0x2bf)],_0x2c8b68,_0x5a2dd8(0x2bf));return{'id':_0x50b103,'name':_0x4c864a,'source':_0x2a8e24,'sourceType':w(_0xcb5bd1['sourceType'],_0x2a8e24,_0x2c8b68),...E(_0xcb5bd1,_0x5a2dd8(0x377),_0x2c8b68),...D(_0xcb5bd1,_0x5a2dd8(0x2a8),_0x2c8b68),...D(_0xcb5bd1,'width',_0x2c8b68),...D(_0xcb5bd1,_0x5a2dd8(0x25e),_0x2c8b68),...E(_0xcb5bd1,_0x5a2dd8(0x289),_0x2c8b68)};}function w(_0x423000,_0x5f341e,_0xbf4dfe){const _0x9fa702=_0x45bca4;if(_0x423000==null)return _0x5f341e[_0x9fa702(0x296)](_0x9fa702(0x292))?l[_0x9fa702(0x219)][_0x9fa702(0x202)]:l['ImageSourceType']['URL'];if(_0x423000===l[_0x9fa702(0x219)][_0x9fa702(0x278)]||_0x423000===l['ImageSourceType'][_0x9fa702(0x1ee)]||_0x423000===l['ImageSourceType'][_0x9fa702(0x202)])return _0x423000;throw TypeError(_0xbf4dfe+_0x9fa702(0x386));}function T(_0x1b1e4d,_0x5a8f8f,_0x35ea0d){const _0x26f44d=_0x45bca4;if(typeof _0x1b1e4d!=_0x26f44d(0x226)||!_0x1b1e4d[_0x26f44d(0x2a7)]())throw TypeError(_0x5a8f8f+_0x26f44d(0x294)+_0x35ea0d+_0x26f44d(0x37f));return _0x1b1e4d;}function E(_0x4d8ee7,_0x25016e,_0x419220){const _0xe7df0c=_0x45bca4;let _0x2f67c8=_0x4d8ee7[_0x25016e];if(_0x2f67c8==null)return{};if(typeof _0x2f67c8!='string'||!_0x2f67c8['trim']())throw TypeError(_0x419220+_0xe7df0c(0x294)+_0x25016e+_0xe7df0c(0x2ba));return{[_0x25016e]:_0x2f67c8};}function D(_0x343210,_0x5714f7,_0x4659d0){const _0x425132=_0x45bca4;let _0xa8db98=_0x343210[_0x5714f7];if(_0xa8db98==null)return{};if(typeof _0xa8db98!=_0x425132(0x369)||!Number[_0x425132(0x276)](_0xa8db98)||_0xa8db98<0x0)throw TypeError(_0x4659d0+_0x425132(0x294)+_0x5714f7+_0x425132(0x30a));return{[_0x5714f7]:_0xa8db98};}function O(_0x3f9ffb){const _0x180247=_0x45bca4;return typeof _0x3f9ffb==_0x180247(0x329)&&!!_0x3f9ffb&&!Array['isArray'](_0x3f9ffb);}var k;let A=k=class{constructor(_0x5bdee7,_0x514a81,_0x5d4da9,_0x413d90,_0x8daf37){const _0x4deadf=_0x45bca4;this['_base']=_0x5bdee7,this[_0x4deadf(0x232)]=_0x514a81,this[_0x4deadf(0x258)]=_0x5d4da9,this[_0x4deadf(0x2d1)]=_0x413d90,this[_0x4deadf(0x33a)]=_0x8daf37,this['_assertInBounds']();}['getBaseId'](){const _0x51ab2b=_0x45bca4;return this[_0x51ab2b(0x1f5)]['getId']();}[_0x45bca4(0x205)](){const _0x4a47c0=_0x45bca4;return this[_0x4a47c0(0x232)][_0x4a47c0(0x2b7)]();}[_0x45bca4(0x305)](){const _0x22a524=_0x45bca4;return{...this[_0x22a524(0x258)]};}[_0x45bca4(0x1f3)](){const _0x2e8bc6=_0x45bca4;return this['_range'][_0x2e8bc6(0x2b1)];}['getColumn'](){const _0x587653=_0x45bca4;return this['_range'][_0x587653(0x325)];}['getNumRows'](){const _0x36a5df=_0x45bca4;return this[_0x36a5df(0x258)][_0x36a5df(0x358)]-this[_0x36a5df(0x258)][_0x36a5df(0x2b1)]+0x1;}[_0x45bca4(0x2e9)](){const _0x1896eb=_0x45bca4;return this['_range'][_0x1896eb(0x22d)]-this[_0x1896eb(0x258)][_0x1896eb(0x325)]+0x1;}['getValues'](){const _0x3c5aa4=_0x45bca4;let _0x2002c8=this[_0x3c5aa4(0x273)](),_0x23e56f=this[_0x3c5aa4(0x360)](_0x2002c8),_0x4aabf1=[];for(let _0x3f73a6=this[_0x3c5aa4(0x258)]['startRow'];_0x3f73a6<=this[_0x3c5aa4(0x258)][_0x3c5aa4(0x358)];_0x3f73a6++){var _0xdd9093;let _0x135039=(_0xdd9093=_0x2002c8['rowId'])==null?void 0x0:_0xdd9093[_0x3f73a6],_0x257343=[];for(let _0x4f2e1f=this[_0x3c5aa4(0x258)]['startColumn'];_0x4f2e1f<=this[_0x3c5aa4(0x258)][_0x3c5aa4(0x22d)];_0x4f2e1f++){let _0x3eb050=_0x23e56f[_0x4f2e1f];_0x257343[_0x3c5aa4(0x26d)](_0x135039&&_0x3eb050?(0x0,c[_0x3c5aa4(0x2ed)])(_0x2002c8,_0x135039,_0x3eb050):null);}_0x4aabf1[_0x3c5aa4(0x26d)](_0x257343);}return _0x4aabf1;}['getValue'](){const _0xc6a907=_0x45bca4;var _0x28fbb6;return((_0x28fbb6=this[_0xc6a907(0x267)]()[0x0])==null?void 0x0:_0x28fbb6[0x0])??null;}[_0x45bca4(0x371)](_0x3f0d17){const _0x40bca1=_0x45bca4;return this[_0x40bca1(0x1fc)]([[_0x3f0d17]]);}[_0x45bca4(0x1fc)](_0xb7db8){const _0x5270b7=_0x45bca4;let _0x25030c=this[_0x5270b7(0x27d)](),_0x34185a=this['getNumColumns']();if(_0xb7db8[_0x5270b7(0x319)]>_0x25030c||_0xb7db8[_0x5270b7(0x33d)](_0xed456d=>_0xed456d[_0x5270b7(0x319)]>_0x34185a)){var _0x45511b;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0xb7db8[_0x5270b7(0x319)]+'x'+(((_0x45511b=_0xb7db8[0x0])==null?void 0x0:_0x45511b[_0x5270b7(0x319)])??0x0)+_0x5270b7(0x2be)+_0x25030c+'x'+_0x34185a+'.');}let _0x38f65b=this[_0x5270b7(0x273)](),_0x28ac97=this['_getFieldIds'](_0x38f65b),_0x47166d=_0xb7db8[_0x5270b7(0x367)]((_0x20e0f5,_0x205034)=>_0x20e0f5[_0x5270b7(0x372)]((_0x2bc3cd,_0x9c16e6)=>{const _0x1c3c78=_0x5270b7;var _0x5d3a18;let _0x3f1874=this[_0x1c3c78(0x258)][_0x1c3c78(0x2b1)]+_0x205034,_0x1df821=_0x28ac97[this[_0x1c3c78(0x258)]['startColumn']+_0x9c16e6],_0x3b2ae8=(_0x5d3a18=_0x38f65b['rowId'])==null?void 0x0:_0x5d3a18[_0x3f1874];if(!_0x1df821||!_0x3b2ae8)throw Error(_0x1c3c78(0x2f1));return{'recordId':_0x3b2ae8,'fieldId':_0x1df821,'value':_0x2bc3cd};}));return this['_commandService'][_0x5270b7(0x354)](c[_0x5270b7(0x26f)]['id'],{'unitId':this[_0x5270b7(0x1f5)][_0x5270b7(0x2b7)](),'tableId':this['_table'][_0x5270b7(0x2b7)](),'patches':_0x47166d,'source':c[_0x5270b7(0x33e)][_0x5270b7(0x361)]});}[_0x45bca4(0x301)](){const _0x11e83d=_0x45bca4;return this[_0x11e83d(0x1fc)](Array[_0x11e83d(0x32d)]({'length':this[_0x11e83d(0x27d)]()},()=>Array['from']({'length':this[_0x11e83d(0x2e9)]()},()=>null)));}['offset'](_0x5da044,_0x789472,_0x34731e=this[_0x45bca4(0x27d)](),_0x138adb=this[_0x45bca4(0x2e9)]()){const _0x38cde6=_0x45bca4;return this[_0x38cde6(0x2d1)]['createInstance'](k,this['_base'],this[_0x38cde6(0x232)],{'startRow':this[_0x38cde6(0x258)]['startRow']+_0x5da044,'startColumn':this[_0x38cde6(0x258)]['startColumn']+_0x789472,'endRow':this[_0x38cde6(0x258)][_0x38cde6(0x2b1)]+_0x5da044+_0x34731e-0x1,'endColumn':this[_0x38cde6(0x258)][_0x38cde6(0x325)]+_0x789472+_0x138adb-0x1},this[_0x38cde6(0x2d1)]);}[_0x45bca4(0x273)](){const _0x33b9d2=_0x45bca4;let _0x98e459=this[_0x33b9d2(0x232)]['getTable']();if(!_0x98e459)throw Error(_0x33b9d2(0x1e7));return(0x0,c[_0x33b9d2(0x20d)])(_0x98e459);}[_0x45bca4(0x36d)](){const _0x112014=_0x45bca4;var _0x576305;let _0xf48557=this[_0x112014(0x273)](),_0x197430=((_0x576305=_0xf48557[_0x112014(0x269)])==null?void 0x0:_0x576305[_0x112014(0x319)])??0x0,_0x25af2c=this[_0x112014(0x360)](_0xf48557)[_0x112014(0x319)];if(this[_0x112014(0x258)]['startRow']<0x0||this[_0x112014(0x258)][_0x112014(0x325)]<0x0||this[_0x112014(0x258)]['endRow']<this[_0x112014(0x258)]['startRow']||this[_0x112014(0x258)]['endColumn']<this[_0x112014(0x258)]['startColumn']||this[_0x112014(0x258)][_0x112014(0x358)]>=Math[_0x112014(0x35e)](_0x197430,0x1)||this[_0x112014(0x258)][_0x112014(0x22d)]>=Math[_0x112014(0x35e)](_0x25af2c,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x197430+_0x112014(0x2d4)+_0x25af2c+_0x112014(0x30b)+JSON['stringify'](this['_range'])+'.');}[_0x45bca4(0x360)](_0x30af1d){return _0x30af1d['fieldOrder']['filter'](_0x8868f0=>y(_0x30af1d['fields'][_0x8868f0]));}};A=k=g([h(0x4,l[_0x45bca4(0x203)])],A);function j(_0x4e01ba){'@babel/helpers - typeof';const _0x4060cf=_0x45bca4;return j=typeof Symbol==_0x4060cf(0x2fc)&&typeof Symbol[_0x4060cf(0x259)]=='symbol'?function(_0x5de433){return typeof _0x5de433;}:function(_0x351813){const _0xf0141a=_0x4060cf;return _0x351813&&typeof Symbol==_0xf0141a(0x2fc)&&_0x351813[_0xf0141a(0x22e)]===Symbol&&_0x351813!==Symbol[_0xf0141a(0x287)]?'symbol':typeof _0x351813;},j(_0x4e01ba);}function M(_0x5ee0af,_0x2a2de3){const _0x196299=_0x45bca4;if(j(_0x5ee0af)!=_0x196299(0x329)||!_0x5ee0af)return _0x5ee0af;var _0x4f80d8=_0x5ee0af[Symbol[_0x196299(0x2d5)]];if(_0x4f80d8!==void 0x0){var _0x35282a=_0x4f80d8['call'](_0x5ee0af,_0x2a2de3||_0x196299(0x295));if(j(_0x35282a)!=_0x196299(0x329))return _0x35282a;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x2a2de3===_0x196299(0x226)?String:Number)(_0x5ee0af);}function N(_0x3c1a62){const _0x12a79c=_0x45bca4;var _0x55479b=M(_0x3c1a62,_0x12a79c(0x226));return j(_0x55479b)==_0x12a79c(0x312)?_0x55479b:_0x55479b+'';}function P(_0x10701d,_0xe215c8,_0x56785e){const _0x2a73da=_0x45bca4;return(_0xe215c8=N(_0xe215c8))in _0x10701d?Object[_0x2a73da(0x2c5)](_0x10701d,_0xe215c8,{'value':_0x56785e,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x10701d[_0xe215c8]=_0x56785e,_0x10701d;}var F;let I=F=class extends u['FBaseInitialable']{constructor(_0xa5fdb3,_0x103c4d,_0x4464cd,_0x524753,_0x48771e,_0x33f504){const _0x45975f=_0x45bca4;super(_0x524753),this[_0x45975f(0x1f5)]=_0xa5fdb3,this[_0x45975f(0x232)]=_0x103c4d,this[_0x45975f(0x34a)]=_0x4464cd,this['_injector']=_0x524753,this['_commandService']=_0x48771e,this[_0x45975f(0x2ae)]=_0x33f504,P(this,'_baseUnitId',void 0x0),P(this,_0x45975f(0x2a5),void 0x0),this[_0x45975f(0x28d)]=_0xa5fdb3[_0x45975f(0x2b7)](),this[_0x45975f(0x2a5)]=_0x103c4d[_0x45975f(0x2b7)]();}['getBaseFacade'](){return this['_base'];}['getTableFacade'](){return this['_table'];}[_0x45bca4(0x2b7)](){const _0x519040=_0x45bca4;return this[_0x519040(0x34a)];}['getPermission'](){const _0x559066=_0x45bca4;let _0x30eb51=this[_0x559066(0x232)]['getId']();return new m(this['_base'][_0x559066(0x2b7)](),(0x0,c[_0x559066(0x33b)])(_0x30eb51,this[_0x559066(0x34a)]),[(0x0,c[_0x559066(0x2b9)])(_0x30eb51)],this[_0x559066(0x33a)],this[_0x559066(0x2ae)]);}[_0x45bca4(0x35b)](){const _0xd5746f=_0x45bca4;return{...this[_0xd5746f(0x22b)](),'values':this[_0xd5746f(0x267)]()};}['getValue'](_0x4c729d){const _0x407980=_0x45bca4;return y(this['_table'][_0x407980(0x238)]()[_0x407980(0x29a)][_0x4c729d])?this[_0x407980(0x22b)]()[_0x407980(0x368)][_0x4c729d]??null:null;}[_0x45bca4(0x267)](){const _0x43e538=_0x45bca4;let _0x42d2b6=this[_0x43e538(0x232)]['getTable']();return Object[_0x43e538(0x290)](Object[_0x43e538(0x2d3)](this['_getRecord']()[_0x43e538(0x368)])[_0x43e538(0x243)](([_0x4ce2f9])=>y(_0x42d2b6[_0x43e538(0x29a)][_0x4ce2f9])));}['setValue'](_0x4d092a,_0x55f3a6){const _0x10457c=_0x45bca4;let _0x5da530=this[_0x10457c(0x232)]['getTable']()['fields'][_0x4d092a];return this['_commandService'][_0x10457c(0x354)](c[_0x10457c(0x378)]['id'],{'unitId':this[_0x10457c(0x1f5)][_0x10457c(0x2b7)](),'tableId':this[_0x10457c(0x232)][_0x10457c(0x2b7)](),'recordId':this['_recordId'],'fieldId':_0x4d092a,'value':x(_0x5da530,_0x55f3a6),'source':c[_0x10457c(0x33e)][_0x10457c(0x361)]});}['setAttachments'](_0x3f7016,_0x272880){const _0x5de68a=_0x45bca4;return this['setValue'](_0x3f7016,_0x272880[_0x5de68a(0x372)](_0x37a325=>({..._0x37a325})));}['getAttachments'](_0xd414b){const _0x5c8f12=_0x45bca4;this[_0x5c8f12(0x30f)](_0xd414b);let _0x3e0151=this['getValue'](_0xd414b);return Array[_0x5c8f12(0x2a2)](_0x3e0151)?_0x3e0151['map']((_0x3a93a8,_0x564288)=>R(_0x3a93a8,_0xd414b,_0x564288)):[];}[_0x45bca4(0x298)](_0x16ca73,_0x10fffe){const _0x21b960=_0x45bca4;this['_getAttachmentField'](_0x16ca73);let _0x106b42=new Set(_0x10fffe[_0x21b960(0x372)](_0x13b48d=>_0x13b48d['id']));if(!_0x106b42['size'])return!0x0;let _0x52b6ea=this[_0x21b960(0x224)](_0x16ca73),_0x527df3=_0x52b6ea['filter'](_0x94ea4c=>!_0x106b42[_0x21b960(0x390)](_0x94ea4c['id']));return _0x527df3[_0x21b960(0x319)]===_0x52b6ea[_0x21b960(0x319)]||this[_0x21b960(0x307)](_0x16ca73,_0x527df3);}[_0x45bca4(0x1fc)](_0x5169ac,_0x122a0d='id'){const _0x3d00ab=_0x45bca4;let _0x5b0cef=this[_0x3d00ab(0x232)][_0x3d00ab(0x238)](),_0x474998=[{'recordId':this[_0x3d00ab(0x34a)],'values':b(_0x5b0cef,_0x5169ac,_0x122a0d)}];return this[_0x3d00ab(0x33a)]['syncExecuteCommand'](c[_0x3d00ab(0x2d9)]['id'],{'unitId':this[_0x3d00ab(0x1f5)][_0x3d00ab(0x2b7)](),'tableId':this[_0x3d00ab(0x232)][_0x3d00ab(0x2b7)](),'patches':_0x474998,'source':c[_0x3d00ab(0x33e)]['Facade']});}['delete'](){const _0xb3180b=_0x45bca4;return this[_0xb3180b(0x33a)][_0xb3180b(0x354)](c[_0xb3180b(0x254)]['id'],{'unitId':this[_0xb3180b(0x1f5)][_0xb3180b(0x2b7)](),'tableId':this[_0xb3180b(0x232)]['getId'](),'recordId':this[_0xb3180b(0x34a)],'source':c[_0xb3180b(0x33e)][_0xb3180b(0x361)]});}[_0x45bca4(0x350)](_0x10796c){const _0x11a27b=_0x45bca4;let _0x31d01a={...this[_0x11a27b(0x22b)](),..._0x10796c,'id':(0x0,l[_0x11a27b(0x1ff)])(0x6)};_0x31d01a[_0x11a27b(0x368)]={..._0x31d01a[_0x11a27b(0x368)],..._0x10796c==null?void 0x0:_0x10796c[_0x11a27b(0x368)]},Reflect[_0x11a27b(0x2fd)](_0x31d01a[_0x11a27b(0x368)],l[_0x11a27b(0x281)]);let _0x140702=Date[_0x11a27b(0x2c6)]();if(_0x31d01a['orderKey']||=''+_0x140702,_0x31d01a[_0x11a27b(0x221)]||=_0x140702,_0x31d01a[_0x11a27b(0x383)]||=_0x140702,!this[_0x11a27b(0x33a)][_0x11a27b(0x354)](c['DuplicateBaseRecordCommand']['id'],{'unitId':this[_0x11a27b(0x1f5)][_0x11a27b(0x2b7)](),'tableId':this[_0x11a27b(0x232)][_0x11a27b(0x2b7)](),'sourceRecordId':this['_recordId'],'record':_0x31d01a,'source':c[_0x11a27b(0x33e)][_0x11a27b(0x361)]}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this['_recordId']+'\x22.');return this[_0x11a27b(0x27c)][_0x11a27b(0x293)](F,this[_0x11a27b(0x1f5)],this[_0x11a27b(0x232)],_0x31d01a['id'],this[_0x11a27b(0x27c)]);}[_0x45bca4(0x2a0)](_0x520792){const _0x469810=_0x45bca4;return this[_0x469810(0x33a)][_0x469810(0x354)](c['UpdateBaseRecordOrderCommand']['id'],{'unitId':this[_0x469810(0x1f5)][_0x469810(0x2b7)](),'tableId':this['_table'][_0x469810(0x2b7)](),'recordId':this['_recordId'],'orderKey':_0x520792});}[_0x45bca4(0x24a)](_0x252831){const _0x51af9c=_0x45bca4;let _0xbd5615=this[_0x51af9c(0x370)](_0x252831),_0x7d1b47=this['getValue'](_0xbd5615['id']);return(0x0,c[_0x51af9c(0x213)])(_0x7d1b47);}[_0x45bca4(0x393)](_0x281375,_0x327312){const _0x1c60f5=_0x45bca4;let _0x228c6d=this['_getRecordLinkField'](_0x281375),_0x11c6d7=(0x0,c[_0x1c60f5(0x38d)])(_0x327312),_0x49782e=(0x0,c[_0x1c60f5(0x2ee)])(this[_0x1c60f5(0x1f5)][_0x1c60f5(0x31b)]()[_0x1c60f5(0x384)](),_0x228c6d,_0x11c6d7);if(!_0x49782e[_0x1c60f5(0x22f)])throw Error(_0x49782e[_0x1c60f5(0x1ea)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x1c60f5(0x33a)][_0x1c60f5(0x354)](c['UpdateBaseCellCommand']['id'],{'unitId':this['_base'][_0x1c60f5(0x2b7)](),'tableId':this[_0x1c60f5(0x232)]['getId'](),'recordId':this['_recordId'],'fieldId':_0x281375,'value':_0x11c6d7,'source':c[_0x1c60f5(0x33e)][_0x1c60f5(0x361)]});}[_0x45bca4(0x373)](_0xadb7a4,_0x26b8e2){const _0x3b83e4=_0x45bca4;let _0x4c0ec9=this[_0x3b83e4(0x370)](_0xadb7a4),_0x31c91d=(0x0,c[_0x3b83e4(0x210)])(_0x4c0ec9);if(!_0x31c91d)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0xadb7a4+_0x3b83e4(0x2f3));let _0x34a272=this['getLinkedRecordIds'](_0xadb7a4);return _0x31c91d[_0x3b83e4(0x359)]&&_0x34a272[_0x3b83e4(0x389)](_0x26b8e2)?!0x0:this[_0x3b83e4(0x393)](_0xadb7a4,_0x31c91d[_0x3b83e4(0x359)]?[..._0x34a272,_0x26b8e2]:[_0x26b8e2]);}['removeLinkedRecord'](_0x366b82,_0x317358){const _0x5b5c78=_0x45bca4;let _0x1b8b66=this[_0x5b5c78(0x24a)](_0x366b82);return!_0x1b8b66[_0x5b5c78(0x389)](_0x317358)||this[_0x5b5c78(0x393)](_0x366b82,_0x1b8b66[_0x5b5c78(0x243)](_0x1bd94e=>_0x1bd94e!==_0x317358));}['getParent'](_0xedc8c4){const _0x25f550=_0x45bca4;let _0xbe4f9b=this[_0x25f550(0x31d)](_0xedc8c4)[_0x25f550(0x2f8)]['get'](this['_recordId'])??null;return _0xbe4f9b?this['_table']['getRecordById'](_0xbe4f9b):null;}[_0x45bca4(0x22c)](_0x4eff66){const _0x46f5ca=_0x45bca4;return(this[_0x46f5ca(0x31d)](_0x4eff66)[_0x46f5ca(0x31a)][_0x46f5ca(0x211)](this['_recordId'])??[])[_0x46f5ca(0x367)](_0xca5f18=>{const _0x1ea511=_0x46f5ca;let _0x44a5a9=this[_0x1ea511(0x232)][_0x1ea511(0x1e9)](_0xca5f18);return _0x44a5a9?[_0x44a5a9]:[];});}['getAncestors'](_0x5b902d){const _0xcb172e=_0x45bca4;let _0x569952=this['_getHierarchyIndex'](_0x5b902d),_0x141299=[],_0x504d47=_0x569952[_0xcb172e(0x2f8)][_0xcb172e(0x211)](this['_recordId'])??null;for(;_0x504d47;){let _0x59d36a=this[_0xcb172e(0x232)][_0xcb172e(0x1e9)](_0x504d47);_0x59d36a&&_0x141299[_0xcb172e(0x26d)](_0x59d36a),_0x504d47=_0x569952[_0xcb172e(0x2f8)][_0xcb172e(0x211)](_0x504d47)??null;}return _0x141299;}[_0x45bca4(0x21b)](_0x44b911){const _0x56fa1a=_0x45bca4;let _0x1629e0=this['_getHierarchyIndex'](_0x44b911),_0x2a2fdb=_0x1629e0['orderedRecordIds'][_0x56fa1a(0x27f)](this[_0x56fa1a(0x34a)]),_0x3e6b6d=_0x1629e0[_0x56fa1a(0x214)]['has'](this[_0x56fa1a(0x34a)])?this[_0x56fa1a(0x2af)](_0x1629e0[_0x56fa1a(0x31a)],this[_0x56fa1a(0x34a)]):[];return _0x2a2fdb<0x0?[]:_0x3e6b6d['flatMap'](_0x48c551=>{const _0x203385=_0x56fa1a;let _0x337fea=this['_table'][_0x203385(0x1e9)](_0x48c551);return _0x337fea?[_0x337fea]:[];});}[_0x45bca4(0x272)](_0x3e4682,_0x4666b9,_0x476c0d){const _0x58f280=_0x45bca4;return this[_0x58f280(0x33a)][_0x58f280(0x354)](c['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this['_base'][_0x58f280(0x2b7)](),'tableId':this['_table'][_0x58f280(0x2b7)](),'fieldId':_0x3e4682,'recordId':this['_recordId'],'parentRecordId':_0x4666b9,'orderKey':_0x476c0d,'source':c[_0x58f280(0x33e)]['Facade']});}[_0x45bca4(0x2c2)](_0xb5f6bf,_0x2cea22,_0x52d7e8='id',_0x1d599f){const _0x5edba2=_0x45bca4;let _0x5329e5=this[_0x5edba2(0x232)][_0x5edba2(0x238)](),_0xe3ab15=Date['now'](),_0x56b601={..._0x1d599f,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x5329e5,_0x2cea22,_0x52d7e8),'orderKey':(_0x1d599f==null?void 0x0:_0x1d599f[_0x5edba2(0x27e)])||''+_0xe3ab15,'createdAt':(_0x1d599f==null?void 0x0:_0x1d599f[_0x5edba2(0x221)])||_0xe3ab15,'updatedAt':(_0x1d599f==null?void 0x0:_0x1d599f['updatedAt'])||_0xe3ab15};if(!this[_0x5edba2(0x33a)]['syncExecuteCommand'](c[_0x5edba2(0x2df)]['id'],{'unitId':this[_0x5edba2(0x1f5)]['getId'](),'tableId':this[_0x5edba2(0x232)]['getId'](),'fieldId':_0xb5f6bf,'parentRecordId':this['_recordId'],'record':_0x56b601,'source':c[_0x5edba2(0x33e)]['Facade']}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x5edba2(0x34a)]+'\x22.');return this[_0x5edba2(0x27c)][_0x5edba2(0x293)](F,this['_base'],this[_0x5edba2(0x232)],_0x56b601['id'],this[_0x5edba2(0x27c)]);}[_0x45bca4(0x31d)](_0x5dc401){const _0x2ba956=_0x45bca4;return(0x0,c['buildBaseHierarchyIndex'])(this[_0x2ba956(0x232)][_0x2ba956(0x238)](),_0x5dc401);}[_0x45bca4(0x2af)](_0x35125a,_0x2e0c1e){let _0x2cabed=[],_0x25deef=_0x4c38d3=>{const _0x53b689=_0x53ac;for(let _0x843212 of _0x35125a[_0x53b689(0x211)](_0x4c38d3)??[])_0x2cabed[_0x53b689(0x26d)](_0x843212),_0x25deef(_0x843212);};return _0x25deef(_0x2e0c1e),_0x2cabed;}[_0x45bca4(0x22b)](){const _0x51ddcf=_0x45bca4;let _0x4cac9a=this[_0x51ddcf(0x232)][_0x51ddcf(0x238)]()['records'][this[_0x51ddcf(0x34a)]];if(!_0x4cac9a)throw Error('[FRecord]:\x20record\x20\x22'+this[_0x51ddcf(0x34a)]+_0x51ddcf(0x249));return _0x4cac9a;}[_0x45bca4(0x370)](_0x342fbf){const _0x415e22=_0x45bca4;let _0x1419d8=this[_0x415e22(0x232)]['getTable']()[_0x415e22(0x29a)][_0x342fbf];if(!_0x1419d8||_0x1419d8[_0x415e22(0x375)]!==l['BaseFieldType'][_0x415e22(0x2e5)])throw Error('[FRecord]:\x20field\x20\x22'+_0x342fbf+_0x415e22(0x34c));return _0x1419d8;}['_getAttachmentField'](_0x438360){const _0x4376ff=_0x45bca4;let _0x44868f=this['_table'][_0x4376ff(0x238)]()[_0x4376ff(0x29a)][_0x438360];if(!_0x44868f||_0x44868f['type']!==l[_0x4376ff(0x321)][_0x4376ff(0x256)])throw Error('[FRecord]:\x20field\x20\x22'+_0x438360+_0x4376ff(0x246));return _0x44868f;}};I=F=g([h(0x4,l['ICommandService']),h(0x5,l['IPermissionService'])],I);function L(_0x4866fe){const _0xd044b=_0x45bca4;return!!(_0x4866fe&&typeof _0x4866fe==_0xd044b(0x329)&&'id'in _0x4866fe&&typeof _0x4866fe['id']==_0xd044b(0x226)&&_0xd044b(0x33c)in _0x4866fe&&typeof _0x4866fe[_0xd044b(0x33c)]==_0xd044b(0x226));}function R(_0x3650cc,_0x4198cf,_0x6bc532){const _0x202ca9=_0x45bca4;if(!L(_0x3650cc))throw Error(_0x202ca9(0x275)+_0x6bc532+_0x202ca9(0x2e6)+_0x4198cf+_0x202ca9(0x2ea));return{..._0x3650cc};}let z=class{constructor(_0x438d15,_0xbb766e,_0x1ae2b1,_0x3932a6,_0x55111c,_0x23112a,_0x338c5f){const _0x2471bc=_0x45bca4;this[_0x2471bc(0x1f5)]=_0x438d15,this[_0x2471bc(0x232)]=_0xbb766e,this[_0x2471bc(0x215)]=_0x1ae2b1,this[_0x2471bc(0x27c)]=_0x3932a6,this['_commandService']=_0x55111c,this[_0x2471bc(0x2ae)]=_0x23112a,this[_0x2471bc(0x262)]=_0x338c5f;}[_0x45bca4(0x2b7)](){const _0x3a21b3=_0x45bca4;return this[_0x3a21b3(0x215)];}[_0x45bca4(0x349)](){const _0x1f8aba=_0x45bca4;let _0x855d1e=this['_table'][_0x1f8aba(0x2b7)]();return new m(this[_0x1f8aba(0x1f5)][_0x1f8aba(0x2b7)](),(0x0,c['getBaseViewPermissionObjectId'])(_0x855d1e,this[_0x1f8aba(0x215)]),[(0x0,c[_0x1f8aba(0x2b9)])(_0x855d1e)],this[_0x1f8aba(0x33a)],this[_0x1f8aba(0x2ae)]);}[_0x45bca4(0x217)](){return this['_getView']();}['getName'](){const _0x22ccf7=_0x45bca4;return this['_getView']()[_0x22ccf7(0x33c)];}['getType'](){const _0x250a3d=_0x45bca4;return this[_0x250a3d(0x346)]()[_0x250a3d(0x375)];}[_0x45bca4(0x355)](_0x2a7cbb){const _0x46fd7a=_0x45bca4;return this['_commandService']['syncExecuteCommand'](c[_0x46fd7a(0x288)]['id'],{'unitId':this[_0x46fd7a(0x1f5)][_0x46fd7a(0x2b7)](),'tableId':this[_0x46fd7a(0x232)][_0x46fd7a(0x2b7)](),'viewId':this[_0x46fd7a(0x215)],'name':_0x2a7cbb});}['getConfig'](){const _0x15a555=_0x45bca4;let _0x389b80=this['getType'](),_0x6b5528=this['_getView']()[_0x15a555(0x35a)];switch(_0x389b80){case l[_0x15a555(0x2ff)][_0x15a555(0x2a1)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x337)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x324)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x35c)]:return _0x6b5528;case l[_0x15a555(0x2ff)][_0x15a555(0x2cc)]:return _0x6b5528;default:return _0x6b5528;}}[_0x45bca4(0x2b6)](_0x25fe48){const _0x2793d4=_0x45bca4;return this[_0x2793d4(0x33a)][_0x2793d4(0x354)](c['UpdateBaseViewConfigCommand']['id'],{'unitId':this['_base'][_0x2793d4(0x2b7)](),'tableId':this['_table'][_0x2793d4(0x2b7)](),'viewId':this[_0x2793d4(0x215)],'patch':_0x25fe48});}['getConditionalColorRules'](){const _0xb8abda=_0x45bca4;var _0x21bac5;return l[_0xb8abda(0x24b)][_0xb8abda(0x326)](((_0x21bac5=this['_getView']()[_0xb8abda(0x35a)][_0xb8abda(0x313)])==null?void 0x0:_0x21bac5['rules'])??[]);}['setConditionalColorRules'](_0x1c975c){const _0x41cc54=_0x45bca4;return this[_0x41cc54(0x33a)][_0x41cc54(0x354)](c[_0x41cc54(0x2dc)]['id'],{'unitId':this[_0x41cc54(0x1f5)][_0x41cc54(0x2b7)](),'tableId':this[_0x41cc54(0x232)][_0x41cc54(0x2b7)](),'viewId':this[_0x41cc54(0x215)],'type':c[_0x41cc54(0x1ec)][_0x41cc54(0x21e)],'rules':_0x1c975c});}[_0x45bca4(0x286)](_0x17f0d0){const _0x1814c2=_0x45bca4;return this[_0x1814c2(0x33a)][_0x1814c2(0x354)](c[_0x1814c2(0x2dc)]['id'],{'unitId':this[_0x1814c2(0x1f5)][_0x1814c2(0x2b7)](),'tableId':this[_0x1814c2(0x232)][_0x1814c2(0x2b7)](),'viewId':this[_0x1814c2(0x215)],'type':c['BaseConditionalColorRuleUpdateType'][_0x1814c2(0x299)],'rule':_0x17f0d0});}[_0x45bca4(0x32a)](_0x4b776d){const _0x124766=_0x45bca4;return this[_0x124766(0x33a)][_0x124766(0x354)](c[_0x124766(0x2dc)]['id'],{'unitId':this[_0x124766(0x1f5)][_0x124766(0x2b7)](),'tableId':this['_table'][_0x124766(0x2b7)](),'viewId':this[_0x124766(0x215)],'type':c[_0x124766(0x1ec)][_0x124766(0x1eb)],'ruleId':_0x4b776d});}[_0x45bca4(0x2e7)](){const _0x58a418=_0x45bca4;return this[_0x58a418(0x33a)][_0x58a418(0x354)](c[_0x58a418(0x2dc)]['id'],{'unitId':this[_0x58a418(0x1f5)][_0x58a418(0x2b7)](),'tableId':this[_0x58a418(0x232)][_0x58a418(0x2b7)](),'viewId':this[_0x58a418(0x215)],'type':c[_0x58a418(0x1ec)]['Clear']});}[_0x45bca4(0x2a3)](){const _0x40561c=_0x45bca4;return this['_getView']()[_0x40561c(0x243)]??null;}[_0x45bca4(0x231)](_0x1a6949){const _0x4153d1=_0x45bca4;return this[_0x4153d1(0x33a)][_0x4153d1(0x354)](c['SetBaseViewFilterCommand']['id'],{'unitId':this[_0x4153d1(0x1f5)][_0x4153d1(0x2b7)](),'tableId':this['_table'][_0x4153d1(0x2b7)](),'viewId':this[_0x4153d1(0x215)],'filter':_0x1a6949});}[_0x45bca4(0x2fe)](){const _0x48ce6b=_0x45bca4;return this[_0x48ce6b(0x346)]()[_0x48ce6b(0x20b)]??[];}['setSort'](_0x49bb84){const _0x197bae=_0x45bca4;return this[_0x197bae(0x33a)][_0x197bae(0x354)](c['SetBaseViewSortCommand']['id'],{'unitId':this['_base'][_0x197bae(0x2b7)](),'tableId':this[_0x197bae(0x232)][_0x197bae(0x2b7)](),'viewId':this[_0x197bae(0x215)],'sort':_0x49bb84});}['getGroup'](){const _0x10b3e6=_0x45bca4;return this[_0x10b3e6(0x346)]()[_0x10b3e6(0x332)]??[];}[_0x45bca4(0x257)](_0x13bf79){const _0x548187=_0x45bca4;return this[_0x548187(0x33a)][_0x548187(0x354)](c[_0x548187(0x304)]['id'],{'unitId':this['_base'][_0x548187(0x2b7)](),'tableId':this[_0x548187(0x232)]['getId'](),'viewId':this[_0x548187(0x215)],'group':_0x13bf79});}['getFieldSettings'](_0x4a0e9b){const _0x1b5ada=_0x45bca4;var _0x29feea;return y(this[_0x1b5ada(0x232)][_0x1b5ada(0x238)]()[_0x1b5ada(0x29a)][_0x4a0e9b])?((_0x29feea=this['_getView']()[_0x1b5ada(0x1fa)])==null?void 0x0:_0x29feea[_0x4a0e9b])??{}:{};}['getVisibleFields'](){const _0x4d8f7f=_0x45bca4;let _0x425e67=this[_0x4d8f7f(0x232)][_0x4d8f7f(0x238)](),_0x4ef4d1=this['_getView']();return(_0x4ef4d1[_0x4d8f7f(0x271)]??_0x425e67[_0x4d8f7f(0x271)])['filter'](_0x1f5fb8=>{const _0x5ae29c=_0x4d8f7f;var _0x2b90fe;let _0x5d3fb9=_0x425e67['fields'][_0x1f5fb8];return y(_0x5d3fb9)&&!((_0x2b90fe=_0x4ef4d1[_0x5ae29c(0x1fa)])!=null&&(_0x2b90fe=_0x2b90fe[_0x1f5fb8])!=null&&_0x2b90fe['hidden']);})[_0x4d8f7f(0x372)](_0x7fb880=>this[_0x4d8f7f(0x27c)]['createInstance'](_,this[_0x4d8f7f(0x1f5)],this[_0x4d8f7f(0x232)],_0x7fb880));}[_0x45bca4(0x282)](_0x27d4b8,_0x34defc){const _0x49560d=_0x45bca4;return y(this[_0x49560d(0x232)][_0x49560d(0x238)]()[_0x49560d(0x29a)][_0x27d4b8])?this['_commandService'][_0x49560d(0x354)](c['SetBaseViewFieldVisibleCommand']['id'],{'unitId':this[_0x49560d(0x1f5)]['getId'](),'tableId':this[_0x49560d(0x232)][_0x49560d(0x2b7)](),'viewId':this['_viewId'],'fieldId':_0x27d4b8,'visible':_0x34defc}):!0x1;}[_0x45bca4(0x216)](_0xf33c5e,_0x44c25e){const _0x583f24=_0x45bca4;return y(this['_table']['getTable']()['fields'][_0xf33c5e])?this[_0x583f24(0x33a)]['syncExecuteCommand'](c[_0x583f24(0x23c)]['id'],{'unitId':this[_0x583f24(0x1f5)][_0x583f24(0x2b7)](),'tableId':this[_0x583f24(0x232)][_0x583f24(0x2b7)](),'viewId':this[_0x583f24(0x215)],'fieldId':_0xf33c5e,'width':_0x44c25e}):!0x1;}[_0x45bca4(0x1f1)](_0x2d83c5,_0x19c93a){const _0x7eaa83=_0x45bca4;let _0x2e8dc8=this[_0x7eaa83(0x232)][_0x7eaa83(0x238)](),_0x26e779=_0x19c93a[_0x7eaa83(0x353)]??_0x19c93a[_0x7eaa83(0x381)];return!y(_0x2e8dc8['fields'][_0x2d83c5])||!_0x26e779||!y(_0x2e8dc8[_0x7eaa83(0x29a)][_0x26e779])?!0x1:this[_0x7eaa83(0x33a)]['syncExecuteCommand'](c[_0x7eaa83(0x225)]['id'],{'unitId':this[_0x7eaa83(0x1f5)][_0x7eaa83(0x2b7)](),'tableId':this[_0x7eaa83(0x232)][_0x7eaa83(0x2b7)](),'viewId':this[_0x7eaa83(0x215)],'fieldId':_0x2d83c5,'target':_0x19c93a});}[_0x45bca4(0x32f)](_0x4f6b36){const _0x1a1e2c=_0x45bca4;return this[_0x1a1e2c(0x33a)][_0x1a1e2c(0x354)](c['MoveBaseViewCommand']['id'],{'unitId':this[_0x1a1e2c(0x1f5)][_0x1a1e2c(0x2b7)](),'tableId':this[_0x1a1e2c(0x232)][_0x1a1e2c(0x2b7)](),'viewId':this[_0x1a1e2c(0x215)],'target':_0x4f6b36});}[_0x45bca4(0x36c)](){const _0x3b45df=_0x45bca4;return this['_commandService']['syncExecuteCommand'](c['DeleteBaseViewCommand']['id'],{'unitId':this[_0x3b45df(0x1f5)][_0x3b45df(0x2b7)](),'tableId':this[_0x3b45df(0x232)][_0x3b45df(0x2b7)](),'viewId':this[_0x3b45df(0x215)]});}[_0x45bca4(0x2d8)](){const _0x162ed4=_0x45bca4;return this['_projectionService']['getProjection'](this[_0x162ed4(0x1f5)]['getBase']()['getSnapshot'](),this[_0x162ed4(0x232)]['getId'](),this[_0x162ed4(0x215)]);}[_0x45bca4(0x346)](){const _0x4f2dca=_0x45bca4;let _0x3de931=this[_0x4f2dca(0x232)][_0x4f2dca(0x238)]()['views'][this[_0x4f2dca(0x215)]];if(!_0x3de931)throw Error('[FView]:\x20view\x20\x22'+this['_viewId']+_0x4f2dca(0x249));return _0x3de931;}};z=g([h(0x4,l[_0x45bca4(0x203)]),h(0x5,l[_0x45bca4(0x2c8)]),h(0x6,c[_0x45bca4(0x200)])],z);let B=class{constructor(_0x20f365,_0xf4edb5,_0x2e309b,_0x132a4d,_0x50f8ab,_0x446bcb){const _0x472baa=_0x45bca4;this[_0x472baa(0x1f5)]=_0x20f365,this[_0x472baa(0x268)]=_0xf4edb5,this[_0x472baa(0x27c)]=_0x2e309b,this[_0x472baa(0x33a)]=_0x132a4d,this['_permissionService']=_0x50f8ab,this[_0x472baa(0x262)]=_0x446bcb;}[_0x45bca4(0x31b)](){const _0x3b9479=_0x45bca4;return this[_0x3b9479(0x1f5)]['getBase']();}[_0x45bca4(0x238)](){return this['_getTable']();}[_0x45bca4(0x2b7)](){return this['_tableId'];}[_0x45bca4(0x349)](){const _0x3958ef=_0x45bca4;return new m(this[_0x3958ef(0x31b)]()[_0x3958ef(0x35f)](),(0x0,c['getBaseTablePermissionObjectId'])(this['_tableId']),[],this[_0x3958ef(0x33a)],this[_0x3958ef(0x2ae)]);}[_0x45bca4(0x335)](){const _0x51ea21=_0x45bca4;return(0x0,c['resolveBaseHierarchyFieldId'])(this[_0x51ea21(0x273)]());}[_0x45bca4(0x2d6)](_0x343272){const _0x2e0257=_0x45bca4;return this[_0x2e0257(0x33a)][_0x2e0257(0x354)](c[_0x2e0257(0x2e2)]['id'],{'unitId':this[_0x2e0257(0x1f5)]['getId'](),'tableId':this[_0x2e0257(0x268)],'fieldId':_0x343272});}[_0x45bca4(0x379)](){const _0xda0d0c=_0x45bca4;return this[_0xda0d0c(0x273)]()[_0xda0d0c(0x33c)];}[_0x45bca4(0x236)](){const _0x30b5bf=_0x45bca4;let _0x15f1a2=this[_0x30b5bf(0x1f5)][_0x30b5bf(0x31b)]()[_0x30b5bf(0x384)]();return(0x0,c[_0x30b5bf(0x334)])(this[_0x30b5bf(0x273)](),_0x15f1a2);}[_0x45bca4(0x355)](_0x789b9b){const _0x31195d=_0x45bca4;let _0x4014ab=(0x0,c[_0x31195d(0x2ec)])(this[_0x31195d(0x1f5)][_0x31195d(0x31b)]()['getSnapshot'](),_0x789b9b,this[_0x31195d(0x268)]);if(!_0x4014ab[_0x31195d(0x22f)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x789b9b+_0x31195d(0x391)+c[_0x31195d(0x264)]+'\x20'+_0x4014ab[_0x31195d(0x1ea)]);return this[_0x31195d(0x33a)][_0x31195d(0x354)](c['RenameBaseTableCommand']['id'],{'unitId':this[_0x31195d(0x1f5)][_0x31195d(0x2b7)](),'tableId':this[_0x31195d(0x268)],'name':_0x789b9b});}[_0x45bca4(0x31c)](_0x3e8558,_0x15b33c){const _0x4b2278=_0x45bca4;let _0x12f7b3=this['_base'][_0x4b2278(0x31b)]()[_0x4b2278(0x384)](),_0x550f38=this[_0x4b2278(0x273)]();if(_0x15b33c){let _0xa86720=this[_0x4b2278(0x262)][_0x4b2278(0x2d8)](_0x12f7b3,this['_tableId'],_0x15b33c),_0x3cff5c=_0x550f38[_0x4b2278(0x24e)][_0x15b33c],_0x340596=_0x3e8558[_0x4b2278(0x338)]??J(_0x550f38,_0x3cff5c,_0xa86720),_0x4f00e7=_0x4b2278(0x2e8)in _0xa86720&&Array[_0x4b2278(0x2a2)](_0xa86720['rows'])?_0xa86720[_0x4b2278(0x2e8)]:[];return(0x0,c[_0x4b2278(0x37a)])({..._0x3e8558,'table':_0x550f38,'fieldIds':_0x340596,'rows':_0x4f00e7});}let _0x3bebb7=(_0x550f38[_0x4b2278(0x269)]?_0x550f38[_0x4b2278(0x269)][_0x4b2278(0x372)](_0x183290=>_0x550f38[_0x4b2278(0x363)][_0x183290]):Object[_0x4b2278(0x368)](_0x550f38['records'])['sort']((_0x47f889,_0x23775d)=>_0x47f889['orderKey']['localeCompare'](_0x23775d['orderKey'])))[_0x4b2278(0x243)](_0x4e0cae=>_0x4e0cae)[_0x4b2278(0x372)](_0x26930e=>({'recordId':_0x26930e['id'],'values':_0x26930e[_0x4b2278(0x368)]})),_0x20d50d=_0x3e8558['fieldIds']??_0x550f38[_0x4b2278(0x271)][_0x4b2278(0x243)](_0xf56632=>y(_0x550f38['fields'][_0xf56632]));return(0x0,c[_0x4b2278(0x37a)])({..._0x3e8558,'table':_0x550f38,'fieldIds':_0x20d50d,'rows':_0x3bebb7});}[_0x45bca4(0x234)](){const _0x22ff17=_0x45bca4;return this['_getTable']()[_0x22ff17(0x23d)];}[_0x45bca4(0x1f6)](){const _0x20eb93=_0x45bca4;let _0x367a3d=this['_getTable']();return _0x367a3d['fieldOrder'][_0x20eb93(0x372)](_0xec1fa9=>_0x367a3d['fields'][_0xec1fa9])[_0x20eb93(0x243)](y)[_0x20eb93(0x372)](_0x7e2433=>this[_0x20eb93(0x27c)][_0x20eb93(0x293)](_,this[_0x20eb93(0x1f5)],this,_0x7e2433['id']));}[_0x45bca4(0x2ce)](_0x86444c){const _0x5aa371=_0x45bca4;let _0x9c0b7a=this['_getTable']()['fields'][_0x86444c];return y(_0x9c0b7a)?this['_injector'][_0x5aa371(0x293)](_,this[_0x5aa371(0x1f5)],this,_0x9c0b7a['id']):null;}[_0x45bca4(0x250)](_0x41a054){const _0x557f33=_0x45bca4;let _0x5ecaff=this[_0x557f33(0x273)]()[_0x557f33(0x29a)],_0x5bfeff=Object[_0x557f33(0x368)](_0x5ecaff)[_0x557f33(0x345)](_0x4a15c4=>y(_0x4a15c4)&&_0x4a15c4[_0x557f33(0x33c)]===_0x41a054);return _0x5bfeff?this[_0x557f33(0x27c)][_0x557f33(0x293)](_,this['_base'],this,_0x5bfeff['id']):null;}[_0x45bca4(0x2f5)](){const _0x3a8b51=_0x45bca4;let _0x40894e=this[_0x3a8b51(0x273)]()['primaryFieldId'];return this[_0x3a8b51(0x27c)][_0x3a8b51(0x293)](_,this[_0x3a8b51(0x1f5)],this,_0x40894e);}['addField'](_0x15acf1,_0x5d84a3,_0x1d5aef){const _0x4fee56=_0x45bca4;var _0x354bb2,_0x4d77dc;if(!Object['values'](l[_0x4fee56(0x321)])['some'](_0xb04341=>_0xb04341===_0x5d84a3))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x5d84a3)+'\x22.');if(_0x5d84a3===l[_0x4fee56(0x321)]['Formula']&&this[_0x4fee56(0x28e)](_0x15acf1,_0x1d5aef),_0x5d84a3===l[_0x4fee56(0x321)][_0x4fee56(0x2e5)]&&(typeof(_0x1d5aef==null||(_0x354bb2=_0x1d5aef[_0x4fee56(0x228)])==null||(_0x354bb2=_0x354bb2[_0x4fee56(0x35a)])==null?void 0x0:_0x354bb2['targetTableId'])!=_0x4fee56(0x226)||typeof _0x1d5aef[_0x4fee56(0x228)][_0x4fee56(0x35a)]['multiple']!=_0x4fee56(0x347)))throw Error(_0x4fee56(0x2cb));let _0x2516d3={..._0x1d5aef==null?void 0x0:_0x1d5aef[_0x4fee56(0x228)],'id':(0x0,l[_0x4fee56(0x1ff)])(0x6),'name':_0x15acf1,'type':_0x5d84a3,'config':(_0x1d5aef==null||(_0x4d77dc=_0x1d5aef[_0x4fee56(0x228)])==null?void 0x0:_0x4d77dc['config'])??{}};if(!this['_commandService'][_0x4fee56(0x354)](c[_0x4fee56(0x2c1)]['id'],{'unitId':this['_base'][_0x4fee56(0x2b7)](),'tableId':this[_0x4fee56(0x268)],'field':_0x2516d3,'index':_0x1d5aef==null?void 0x0:_0x1d5aef[_0x4fee56(0x252)]}))throw Error(_0x4fee56(0x261)+_0x15acf1+'\x22');return this['_injector'][_0x4fee56(0x293)](_,this['_base'],this,_0x2516d3['id']);}[_0x45bca4(0x28e)](_0x23bad5,_0x23c77c){const _0x1890de=_0x45bca4;var _0xf2d7b6;if(!_0x23c77c||!(_0x1890de(0x253)in _0x23c77c)||!Array[_0x1890de(0x2a2)](_0x23c77c[_0x1890de(0x253)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x1fd8aa=this[_0x1890de(0x33a)][_0x1890de(0x354)](c[_0x1890de(0x284)]['id'],{'unitId':this[_0x1890de(0x1f5)][_0x1890de(0x2b7)](),'tableId':this['_tableId'],'formula':String(((_0xf2d7b6=_0x23c77c[_0x1890de(0x228)])==null||(_0xf2d7b6=_0xf2d7b6[_0x1890de(0x35a)])==null?void 0x0:_0xf2d7b6['formula'])??'')});if(!_0x1fd8aa[_0x1890de(0x22f)])throw Error(_0x1fd8aa[_0x1890de(0x1ea)]??_0x1890de(0x2db));if(_0x23c77c[_0x1890de(0x253)][_0x1890de(0x319)]>0x0&&!this[_0x1890de(0x33a)][_0x1890de(0x354)](f[_0x1890de(0x37c)]['id'],{'unitId':this['_base'][_0x1890de(0x2b7)](),'references':_0x23c77c[_0x1890de(0x253)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x23bad5+'\x22');}[_0x45bca4(0x29c)](){const _0x3311f9=_0x45bca4;return this[_0x3311f9(0x1f9)]()[_0x3311f9(0x372)](_0x105b0e=>this[_0x3311f9(0x27c)][_0x3311f9(0x293)](I,this['_base'],this,_0x105b0e,this['_injector']));}[_0x45bca4(0x1e9)](_0x3d059c){const _0x2264a8=_0x45bca4;return this[_0x2264a8(0x273)]()['records'][_0x3d059c]?this['_injector']['createInstance'](I,this[_0x2264a8(0x1f5)],this,_0x3d059c,this[_0x2264a8(0x27c)]):null;}[_0x45bca4(0x274)](_0x1c7e9d={}){const _0x2efa04=_0x45bca4;let _0x1091eb=this['_getTable'](),_0x3fe995=this['_resolveRecordIds'](_0x1c7e9d),_0xeb1a7b=Math[_0x2efa04(0x35e)](0x0,_0x1c7e9d[_0x2efa04(0x320)]??0x0),_0x407060=_0x1c7e9d[_0x2efa04(0x291)]==null?null:Math[_0x2efa04(0x35e)](0x0,_0x1c7e9d['limit']),_0x31887c=H(_0x3fe995['map'](_0x3f2244=>_0x1091eb[_0x2efa04(0x363)][_0x3f2244])[_0x2efa04(0x243)](_0x4636be=>W(_0x4636be,_0x1091eb,_0x1c7e9d['filter'])),_0x1091eb,_0x1c7e9d[_0x2efa04(0x20b)]);return{'records':V(_0x31887c,_0x1c7e9d)[_0x2efa04(0x372)](_0x4e6cb6=>this['_injector']['createInstance'](I,this['_base'],this,_0x4e6cb6['id'],this[_0x2efa04(0x27c)])),'total':_0x31887c[_0x2efa04(0x319)],'offset':_0xeb1a7b,'limit':_0x407060,'hasMore':_0x407060!=null&&_0xeb1a7b+_0x407060<_0x31887c[_0x2efa04(0x319)]};}[_0x45bca4(0x380)](_0x2267af,_0x5e494c='id',_0x2243e6){const _0x2682b1=_0x45bca4;let _0x4e6be4=this[_0x2682b1(0x273)](),_0x1045fd=Date[_0x2682b1(0x2c6)](),_0x1ef5b7={..._0x2243e6,'id':(0x0,l[_0x2682b1(0x1ff)])(0x6),'values':b(_0x4e6be4,_0x2267af,_0x5e494c),'orderKey':(_0x2243e6==null?void 0x0:_0x2243e6[_0x2682b1(0x27e)])||''+_0x1045fd,'createdAt':(_0x2243e6==null?void 0x0:_0x2243e6[_0x2682b1(0x221)])||_0x1045fd,'updatedAt':(_0x2243e6==null?void 0x0:_0x2243e6[_0x2682b1(0x383)])||_0x1045fd};if(!this[_0x2682b1(0x33a)][_0x2682b1(0x354)](c[_0x2682b1(0x382)]['id'],{'unitId':this[_0x2682b1(0x1f5)][_0x2682b1(0x2b7)](),'tableId':this[_0x2682b1(0x268)],'record':_0x1ef5b7,'source':c[_0x2682b1(0x33e)][_0x2682b1(0x361)]}))throw Error(_0x2682b1(0x2d0)+_0x1ef5b7['id']+'\x22');return this[_0x2682b1(0x27c)][_0x2682b1(0x293)](I,this['_base'],this,_0x1ef5b7['id'],this[_0x2682b1(0x27c)]);}[_0x45bca4(0x34b)](_0x104a20){const _0x29a121=_0x45bca4;if(!_0x104a20['length'])return[];let _0x3e5785=this[_0x29a121(0x273)](),_0x258f94=Date[_0x29a121(0x2c6)](),_0x9158c1=_0x104a20['map']((_0x481e46,_0x1c6eba)=>{const _0x4759ec=_0x29a121;var _0x2cbb00,_0xdd155e,_0x45cc1c;return{..._0x481e46[_0x4759ec(0x263)],'id':(0x0,l[_0x4759ec(0x1ff)])(0x6),'values':b(_0x3e5785,_0x481e46['values'],_0x481e46[_0x4759ec(0x230)]??'id'),'orderKey':((_0x2cbb00=_0x481e46['record'])==null?void 0x0:_0x2cbb00['orderKey'])||''+(_0x258f94+_0x1c6eba),'createdAt':((_0xdd155e=_0x481e46[_0x4759ec(0x263)])==null?void 0x0:_0xdd155e['createdAt'])||_0x258f94,'updatedAt':((_0x45cc1c=_0x481e46[_0x4759ec(0x263)])==null?void 0x0:_0x45cc1c[_0x4759ec(0x383)])||_0x258f94};});if(!this[_0x29a121(0x33a)][_0x29a121(0x354)](c['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x29a121(0x1f5)][_0x29a121(0x2b7)](),'tableId':this[_0x29a121(0x268)],'records':_0x9158c1,'source':c[_0x29a121(0x33e)][_0x29a121(0x361)]}))throw Error(_0x29a121(0x1fe));return _0x9158c1['map'](_0x444487=>this[_0x29a121(0x27c)]['createInstance'](I,this[_0x29a121(0x1f5)],this,_0x444487['id'],this['_injector']));}[_0x45bca4(0x242)](_0x1c0ecd){const _0x54e512=_0x45bca4;return!_0x1c0ecd[_0x54e512(0x319)]||this['_commandService'][_0x54e512(0x354)](c['BatchDeleteBaseRecordsCommand']['id'],{'unitId':this[_0x54e512(0x1f5)][_0x54e512(0x2b7)](),'tableId':this[_0x54e512(0x268)],'recordIds':_0x1c0ecd,'source':c[_0x54e512(0x33e)]['Facade']});}['getRange'](_0x1922a7,_0x4f943b,_0x4aea4f=0x1,_0x1ecff6=0x1){const _0x17f6c4=_0x45bca4;return this[_0x17f6c4(0x27c)][_0x17f6c4(0x293)](A,this[_0x17f6c4(0x1f5)],this,{'startRow':_0x1922a7,'endRow':_0x1922a7+_0x4aea4f-0x1,'startColumn':_0x4f943b,'endColumn':_0x4f943b+_0x1ecff6-0x1},this[_0x17f6c4(0x27c)]);}[_0x45bca4(0x365)](){const _0x195bb8=_0x45bca4;var _0x3df4da;let _0x1a3f2f=(0x0,c[_0x195bb8(0x20d)])(this['_getTable']()),_0x3ad2be=((_0x3df4da=_0x1a3f2f[_0x195bb8(0x269)])==null?void 0x0:_0x3df4da['length'])??0x0,_0x34a0c2=_0x1a3f2f[_0x195bb8(0x271)][_0x195bb8(0x243)](_0x327d6c=>y(_0x1a3f2f[_0x195bb8(0x29a)][_0x327d6c]))[_0x195bb8(0x319)];return this[_0x195bb8(0x305)](0x0,0x0,Math[_0x195bb8(0x35e)](_0x3ad2be,0x1),Math[_0x195bb8(0x35e)](_0x34a0c2,0x1));}[_0x45bca4(0x25b)](){const _0x927a9e=_0x45bca4;let _0x5b48c8=this['_getTable']();return _0x5b48c8[_0x927a9e(0x331)]['filter'](_0x325c72=>_0x5b48c8['views'][_0x325c72])['map'](_0x2e3ea3=>this[_0x927a9e(0x27c)][_0x927a9e(0x293)](z,this['_base'],this,_0x2e3ea3,this[_0x927a9e(0x27c)]));}[_0x45bca4(0x28f)](_0x53a29e){const _0x1c618b=_0x45bca4;return this[_0x1c618b(0x273)]()[_0x1c618b(0x24e)][_0x53a29e]?this[_0x1c618b(0x27c)]['createInstance'](z,this['_base'],this,_0x53a29e,this[_0x1c618b(0x27c)]):null;}[_0x45bca4(0x2da)](_0xa1599a){const _0x30840b=_0x45bca4;let _0xbcb25f=this[_0x30840b(0x273)](),_0x370caf=Object[_0x30840b(0x368)](_0xbcb25f[_0x30840b(0x24e)])[_0x30840b(0x345)](_0x5865f=>_0x5865f[_0x30840b(0x33c)]===_0xa1599a);return _0x370caf?this['_injector'][_0x30840b(0x293)](z,this[_0x30840b(0x1f5)],this,_0x370caf['id'],this[_0x30840b(0x27c)]):null;}[_0x45bca4(0x1f7)](_0x9db786,_0x3ea485,_0x23d889){const _0x12d33b=_0x45bca4;var _0x16abc6,_0x4796eb,_0x29162b,_0x49ef5d;let _0x58aad5=this[_0x12d33b(0x273)](),_0x59750c=(_0x23d889==null||(_0x16abc6=_0x23d889[_0x12d33b(0x38b)])==null?void 0x0:_0x16abc6[_0x12d33b(0x271)])??_0x58aad5['fieldOrder'],_0x1f208e=[l['BASE_RECORD_ID_FIELD_ID'],..._0x59750c[_0x12d33b(0x243)](_0x25ab64=>y(_0x58aad5[_0x12d33b(0x29a)][_0x25ab64]))],_0x39dac6={..._0x23d889==null?void 0x0:_0x23d889[_0x12d33b(0x38b)],'id':(0x0,l[_0x12d33b(0x1ff)])(0x6),'name':_0x9db786,'type':_0x3ea485,'tableId':this[_0x12d33b(0x268)],'config':(_0x23d889==null||(_0x4796eb=_0x23d889[_0x12d33b(0x38b)])==null?void 0x0:_0x4796eb[_0x12d33b(0x35a)])??{},'fieldOrder':_0x1f208e,'fieldSettings':{..._0x23d889==null||(_0x29162b=_0x23d889[_0x12d33b(0x38b)])==null?void 0x0:_0x29162b['fieldSettings'],[l[_0x12d33b(0x281)]]:{..._0x23d889==null||(_0x49ef5d=_0x23d889[_0x12d33b(0x38b)])==null||(_0x49ef5d=_0x49ef5d[_0x12d33b(0x1fa)])==null?void 0x0:_0x49ef5d[l['BASE_RECORD_ID_FIELD_ID']],'hidden':!0x0}}};if(!this[_0x12d33b(0x33a)][_0x12d33b(0x354)](c[_0x12d33b(0x2bb)]['id'],{'unitId':this[_0x12d33b(0x1f5)][_0x12d33b(0x2b7)](),'tableId':this[_0x12d33b(0x268)],'view':_0x39dac6,'index':_0x23d889==null?void 0x0:_0x23d889['index']}))throw Error(_0x12d33b(0x336)+_0x9db786+'\x22');return this[_0x12d33b(0x27c)][_0x12d33b(0x293)](z,this[_0x12d33b(0x1f5)],this,_0x39dac6['id'],this['_injector']);}[_0x45bca4(0x28a)](){const _0x50363e=_0x45bca4;let _0x4daa37=this[_0x50363e(0x273)](),_0x1f253c=_0x4daa37['fieldOrder']['filter'](_0x19de7d=>y(_0x4daa37[_0x50363e(0x29a)][_0x19de7d])),_0x425a40=_0x4daa37['viewOrder'][_0x50363e(0x243)](_0x45da41=>_0x4daa37['views'][_0x45da41]);return{'id':_0x4daa37['id'],'name':_0x4daa37[_0x50363e(0x33c)],'formulaName':this[_0x50363e(0x236)](),'primaryFieldId':_0x4daa37[_0x50363e(0x23d)],'fieldIds':_0x1f253c,'viewIds':_0x425a40,'recordCount':this[_0x50363e(0x1f9)]()[_0x50363e(0x319)],'fields':_0x1f253c[_0x50363e(0x372)](_0x3087be=>{const _0x36a89a=_0x50363e;let _0x1ac55a=_0x4daa37[_0x36a89a(0x29a)][_0x3087be];return{'id':_0x1ac55a['id'],'name':_0x1ac55a[_0x36a89a(0x33c)],'type':_0x1ac55a['type'],'config':_0x1ac55a[_0x36a89a(0x35a)],'readonly':_0x1ac55a['readonly'],'description':_0x1ac55a['description']};}),'views':_0x425a40[_0x50363e(0x372)](_0x47e510=>{const _0x298b10=_0x50363e;let _0x3eb850=_0x4daa37['views'][_0x47e510];return{'id':_0x3eb850['id'],'name':_0x3eb850[_0x298b10(0x33c)],'type':_0x3eb850[_0x298b10(0x375)]};})};}[_0x45bca4(0x273)](){const _0x51bef5=_0x45bca4;let _0x3ac222=this[_0x51bef5(0x1f5)][_0x51bef5(0x31b)]()[_0x51bef5(0x384)]()[_0x51bef5(0x239)][this[_0x51bef5(0x268)]];if(!_0x3ac222)throw Error(_0x51bef5(0x27b)+this[_0x51bef5(0x268)]+_0x51bef5(0x249));return _0x3ac222;}[_0x45bca4(0x1f9)](_0x315f31={}){const _0x5e16ad=_0x45bca4;let _0xb11585=this[_0x5e16ad(0x1f5)][_0x5e16ad(0x31b)]()[_0x5e16ad(0x384)](),_0x1556e6=this[_0x5e16ad(0x273)]();if(_0x315f31[_0x5e16ad(0x29f)]){let _0x252732=this['_projectionService'][_0x5e16ad(0x2d8)](_0xb11585,this['_tableId'],_0x315f31[_0x5e16ad(0x29f)]);if('rows'in _0x252732&&Array[_0x5e16ad(0x2a2)](_0x252732['rows']))return _0x252732[_0x5e16ad(0x2e8)][_0x5e16ad(0x372)](_0x2b537f=>_0x2b537f[_0x5e16ad(0x2c9)]);}return(_0x1556e6[_0x5e16ad(0x269)]?_0x1556e6[_0x5e16ad(0x269)][_0x5e16ad(0x372)](_0x45b0cd=>_0x1556e6[_0x5e16ad(0x363)][_0x45b0cd]):Object[_0x5e16ad(0x368)](_0x1556e6[_0x5e16ad(0x363)])[_0x5e16ad(0x20b)]((_0x2d53ef,_0x257bb8)=>_0x2d53ef[_0x5e16ad(0x27e)][_0x5e16ad(0x21d)](_0x257bb8[_0x5e16ad(0x27e)])))[_0x5e16ad(0x243)](_0x66aa72=>_0x66aa72)[_0x5e16ad(0x372)](_0x339bea=>_0x339bea['id']);}};B=g([h(0x3,l[_0x45bca4(0x203)]),h(0x4,l[_0x45bca4(0x2c8)]),h(0x5,c['IBaseProjectionService'])],B);function V(_0x102c87,_0xbb38ae){const _0x51e79c=_0x45bca4;let _0x2293af=Math[_0x51e79c(0x35e)](0x0,_0xbb38ae[_0x51e79c(0x320)]??0x0);return _0xbb38ae[_0x51e79c(0x291)]==null?_0x102c87['slice'](_0x2293af):_0x102c87[_0x51e79c(0x24f)](_0x2293af,_0x2293af+Math[_0x51e79c(0x35e)](0x0,_0xbb38ae[_0x51e79c(0x291)]));}function H(_0x5341c8,_0x3a6112,_0x3cc235=[]){const _0x238d68=_0x45bca4;return _0x3cc235[_0x238d68(0x319)]?[..._0x5341c8][_0x238d68(0x20b)]((_0x364887,_0x4cdcb7)=>{const _0xd5b6=_0x238d68;for(let _0xc932e7 of _0x3cc235){var _0x5b8bc6;let _0x3e0ef7=_0xc932e7[_0xd5b6(0x30d)]===l['BaseSortDirection'][_0xd5b6(0x1f4)]?-0x1:0x1,_0x2021f8=U(_0x364887[_0xd5b6(0x368)][_0xc932e7[_0xd5b6(0x2ab)]],_0x4cdcb7[_0xd5b6(0x368)][_0xc932e7[_0xd5b6(0x2ab)]],(_0x5b8bc6=_0x3a6112['fields'][_0xc932e7[_0xd5b6(0x2ab)]])==null?void 0x0:_0x5b8bc6[_0xd5b6(0x375)]);if(_0x2021f8!==0x0)return _0x2021f8*_0x3e0ef7;}return String(_0x364887['orderKey']??_0x364887['id'])[_0xd5b6(0x21d)](String(_0x4cdcb7[_0xd5b6(0x27e)]??_0x4cdcb7['id']));}):_0x5341c8;}function U(_0x35f20b,_0x1f3f9b,_0x214f7e){const _0x3a10a5=_0x45bca4;return _0x35f20b==null&&_0x1f3f9b==null?0x0:_0x35f20b==null?-0x1:_0x1f3f9b==null?0x1:typeof _0x35f20b==_0x3a10a5(0x369)&&typeof _0x1f3f9b==_0x3a10a5(0x369)?_0x35f20b-_0x1f3f9b:_0x214f7e===l[_0x3a10a5(0x321)][_0x3a10a5(0x34f)]?Number(_0x35f20b)-Number(_0x1f3f9b):String(_0x35f20b)[_0x3a10a5(0x21d)](String(_0x1f3f9b));}function W(_0x9c9967,_0x384a96,_0x1d7b98){const _0x1aa7aa=_0x45bca4;var _0x40a2b6;if(!_0x1d7b98||!((_0x40a2b6=_0x1d7b98['conditions'])!=null&&_0x40a2b6['length']))return!0x0;let {conjunction:_0x186087=l[_0x1aa7aa(0x222)]['OR'],conditions:_0x395d31}=_0x1d7b98;return _0x186087===l[_0x1aa7aa(0x222)][_0x1aa7aa(0x1f8)]&&_0x395d31['length']>0x1?_0x395d31[_0x1aa7aa(0x2f4)](_0x55b9bc=>G(_0x9c9967,_0x384a96,_0x55b9bc)):_0x395d31[_0x1aa7aa(0x33d)](_0x508742=>G(_0x9c9967,_0x384a96,_0x508742));}function G(_0x4ad621,_0x3a4904,_0x201ef9){const _0x30d7af=_0x45bca4;let _0x5c1978=_0x4ad621['values'][_0x201ef9['fieldId']],_0x3ee5e1=_0x3a4904['fields'][_0x201ef9[_0x30d7af(0x2ab)]];if(K(_0x201ef9)){let _0x5badbd=q(_0x201ef9)[_0x30d7af(0x270)](String(_0x5c1978??''));return _0x201ef9['operator']===_0x30d7af(0x29b)?_0x5badbd:!_0x5badbd;}return!_0x3ee5e1||(0x0,c[_0x30d7af(0x24c)])(_0x5c1978,_0x201ef9[_0x30d7af(0x248)],_0x201ef9[_0x30d7af(0x348)],_0x3ee5e1);}function K(_0x1fa2d9){const _0x58116f=_0x45bca4;return _0x1fa2d9['operator']==='matches'||_0x1fa2d9[_0x58116f(0x248)]==='notMatches';}function q(_0x12b882){const _0x16455e=_0x45bca4;let _0xf5d54b=String(_0x12b882[_0x16455e(0x348)]??'');if(_0xf5d54b[_0x16455e(0x319)]>0x200)throw Error(_0x16455e(0x2a4));try{return new RegExp(_0xf5d54b,_0x12b882['caseSensitive']?void 0x0:'i');}catch(_0x2f2739){throw Error(_0x16455e(0x2eb)+_0xf5d54b+'.\x20'+(_0x2f2739 instanceof Error?_0x2f2739[_0x16455e(0x2c7)]:String(_0x2f2739)));}}function J(_0x3c2d41,_0x51d1df,_0xb790b0){const _0x526618=_0x45bca4;if(_0xb790b0[_0x526618(0x375)]!==_0x526618(0x28b)&&_0xb790b0[_0x526618(0x375)]!==_0x526618(0x330)){var _0x4a4fd1;if(_0xb790b0['type']===l[_0x526618(0x2ff)][_0x526618(0x337)]){var _0x143602;let _0x4b696e=[((_0x143602=_0xb790b0[_0x526618(0x29a)])==null||(_0x143602=_0x143602[0x0])==null?void 0x0:_0x143602['id'])??_0x3c2d41[_0x526618(0x23d)],..._0xb790b0[_0x526618(0x2c3)]??[]];return Array[_0x526618(0x32d)](new Set(_0x4b696e['filter'](_0x338e34=>!!_0x3c2d41[_0x526618(0x29a)][_0x338e34])));}if((_0x4a4fd1=_0xb790b0[_0x526618(0x29a)])!=null&&_0x4a4fd1[_0x526618(0x319)])return _0xb790b0[_0x526618(0x29a)][_0x526618(0x372)](_0x2aadb3=>_0x2aadb3['id'])[_0x526618(0x243)](_0x1626cc=>{const _0x42def8=_0x526618;var _0x412ceb;return!(!_0x3c2d41[_0x42def8(0x29a)][_0x1626cc]||_0x51d1df!=null&&(_0x412ceb=_0x51d1df['fieldSettings'])!=null&&(_0x412ceb=_0x412ceb[_0x1626cc])!=null&&_0x412ceb['hidden']);});}return _0x3c2d41[_0x526618(0x271)][_0x526618(0x243)](_0x134d36=>{const _0x64b16=_0x526618;var _0x744e83;return!(!_0x3c2d41[_0x64b16(0x29a)][_0x134d36]||_0x51d1df!=null&&(_0x744e83=_0x51d1df[_0x64b16(0x1fa)])!=null&&(_0x744e83=_0x744e83[_0x134d36])!=null&&_0x744e83[_0x64b16(0x29e)]);});}let Y=class extends u[_0x45bca4(0x20a)]{constructor(_0x3e25d1,_0x553157,_0x853de1,_0xfc90a6,_0x5e31fe){const _0x1afed0=_0x45bca4;super(),this[_0x1afed0(0x1f5)]=_0x3e25d1,this[_0x1afed0(0x27c)]=_0x553157,this[_0x1afed0(0x26e)]=_0x853de1,this[_0x1afed0(0x33a)]=_0xfc90a6,this[_0x1afed0(0x2ae)]=_0x5e31fe;}[_0x45bca4(0x31b)](){const _0x3837a6=_0x45bca4;return this[_0x3837a6(0x1f5)];}[_0x45bca4(0x2b7)](){const _0x429357=_0x45bca4;return this[_0x429357(0x1f5)][_0x429357(0x35f)]();}[_0x45bca4(0x349)](){const _0x2e74a7=_0x45bca4;return new p(this[_0x2e74a7(0x2b7)](),this['_commandService'],this[_0x2e74a7(0x2ae)]);}[_0x45bca4(0x36a)](){const _0x526a0d=_0x45bca4;return this[_0x526a0d(0x26e)][_0x526a0d(0x1e5)](this[_0x526a0d(0x2b7)]())??l['Tools'][_0x526a0d(0x326)](this[_0x526a0d(0x1f5)][_0x526a0d(0x384)]());}[_0x45bca4(0x379)](){const _0x137072=_0x45bca4;return this['_base'][_0x137072(0x384)]()[_0x137072(0x33c)];}[_0x45bca4(0x355)](_0x4c0839){const _0x399cfc=_0x45bca4;this[_0x399cfc(0x33a)]['syncExecuteCommand'](c['SetBaseNameCommand']['id'],{'unitId':this[_0x399cfc(0x2b7)](),'name':_0x4c0839});}[_0x45bca4(0x357)](){const _0x500730=_0x45bca4;let _0xd70d66=this[_0x500730(0x1f5)]['getSnapshot']();return _0xd70d66[_0x500730(0x388)][_0x500730(0x372)](_0x4fbb6c=>_0xd70d66['tables'][_0x4fbb6c])[_0x500730(0x243)](_0x3d93f3=>_0x3d93f3)[_0x500730(0x372)](_0x492878=>this[_0x500730(0x27c)][_0x500730(0x293)](B,this,_0x492878['id'],this['_injector']));}['getTableById'](_0x24e335){const _0x42e9a1=_0x45bca4;let _0x3e1d40=this['_base']['getSnapshot']()[_0x42e9a1(0x239)][_0x24e335];return _0x3e1d40?this[_0x42e9a1(0x27c)][_0x42e9a1(0x293)](B,this,_0x3e1d40['id'],this[_0x42e9a1(0x27c)]):null;}[_0x45bca4(0x208)](_0x49c482){const _0x35c7cd=_0x45bca4;let _0x1a508b=this[_0x35c7cd(0x1f5)][_0x35c7cd(0x384)](),_0x5708b6=Object[_0x35c7cd(0x368)](_0x1a508b[_0x35c7cd(0x239)])[_0x35c7cd(0x345)](_0x235f6e=>_0x235f6e[_0x35c7cd(0x33c)]===_0x49c482);return _0x5708b6?this['_injector'][_0x35c7cd(0x293)](B,this,_0x5708b6['id'],this[_0x35c7cd(0x27c)]):null;}[_0x45bca4(0x23f)](_0x4e045d,_0x49b15c){const _0x27dc57=_0x45bca4;let _0x43fc09=(0x0,l[_0x27dc57(0x21a)])({'id':(0x0,l[_0x27dc57(0x1ff)])(),'name':_0x4e045d,..._0x49b15c==null?void 0x0:_0x49b15c['table'],'primaryFieldName':_0x49b15c==null?void 0x0:_0x49b15c['primaryFieldName']}),_0x356ea4=l[_0x27dc57(0x24b)][_0x27dc57(0x1e3)](_0x43fc09,(_0x49b15c==null?void 0x0:_0x49b15c[_0x27dc57(0x2c0)])??{}),_0x2e4dcc=(0x0,c[_0x27dc57(0x2ec)])(this['_base'][_0x27dc57(0x384)](),_0x356ea4[_0x27dc57(0x33c)]);if(!_0x2e4dcc['valid'])throw Error(_0x27dc57(0x23b)+_0x356ea4[_0x27dc57(0x33c)]+'\x22.\x20'+c['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0x2e4dcc[_0x27dc57(0x1ea)]);if(!this[_0x27dc57(0x33a)][_0x27dc57(0x354)](c['CreateBaseTableCommand']['id'],{'unitId':this[_0x27dc57(0x1f5)]['getUnitId'](),'table':_0x356ea4,'index':_0x49b15c==null?void 0x0:_0x49b15c[_0x27dc57(0x252)]}))throw Error(_0x27dc57(0x343)+_0x4e045d+'\x22.');return this[_0x27dc57(0x27c)]['createInstance'](B,this,_0x356ea4['id'],this[_0x27dc57(0x27c)]);}['deleteTable'](_0x48ed11){const _0x1f0090=_0x45bca4;let _0x6e9903=typeof _0x48ed11==_0x1f0090(0x226)?_0x48ed11:_0x48ed11[_0x1f0090(0x2b7)]();if(!this[_0x1f0090(0x33a)][_0x1f0090(0x354)](c['DeleteBaseTableCommand']['id'],{'unitId':this[_0x1f0090(0x1f5)]['getUnitId'](),'tableId':_0x6e9903}))throw Error(_0x1f0090(0x2b2)+_0x6e9903+'\x22.');return!0x0;}['duplicateTable'](_0x2b1011,_0x32c1b3){const _0x2302f9=_0x45bca4;let _0x4fe9f1=this['_base']['getSnapshot'](),_0x1e4db1=typeof _0x2b1011==_0x2302f9(0x226)?_0x2b1011:_0x2b1011[_0x2302f9(0x2b7)](),_0x3c0856=_0x4fe9f1[_0x2302f9(0x239)][_0x1e4db1];if(!_0x3c0856)throw Error(_0x2302f9(0x251)+_0x1e4db1+_0x2302f9(0x249));let _0x15995a=_0x4fe9f1[_0x2302f9(0x388)][_0x2302f9(0x27f)](_0x1e4db1)+0x1,_0x2ba507=(0x0,l[_0x2302f9(0x1ff)])(),_0x19c238=(0x0,c[_0x2302f9(0x31e)])(_0x3c0856,{'id':_0x2ba507,'name':(0x0,c[_0x2302f9(0x233)])(_0x4fe9f1,_0x3c0856[_0x2302f9(0x33c)]+_0x2302f9(0x38a)),'includeRecords':(_0x32c1b3==null?void 0x0:_0x32c1b3[_0x2302f9(0x366)])??!0x1,'regenerateViewIds':(_0x32c1b3==null?void 0x0:_0x32c1b3[_0x2302f9(0x2e3)])??!0x1});if(!this['_commandService'][_0x2302f9(0x354)](c[_0x2302f9(0x280)]['id'],{'unitId':this[_0x2302f9(0x1f5)][_0x2302f9(0x35f)](),'table':_0x19c238,'index':_0x15995a}))throw Error(_0x2302f9(0x344)+_0x1e4db1+'\x22.');return this[_0x2302f9(0x27c)]['createInstance'](B,this,_0x19c238['id'],this[_0x2302f9(0x27c)]);}[_0x45bca4(0x28a)](){const _0x429fa0=_0x45bca4;let _0x3015be=this['_base']['getSnapshot']();return{'id':_0x3015be['id'],'name':_0x3015be[_0x429fa0(0x33c)],'tables':this[_0x429fa0(0x357)]()[_0x429fa0(0x372)](_0x4933c1=>_0x4933c1[_0x429fa0(0x28a)]())};}};Y=g([h(0x1,(0x0,l[_0x45bca4(0x2f7)])(l['Injector'])),h(0x2,l[_0x45bca4(0x2b5)]),h(0x3,l[_0x45bca4(0x203)]),h(0x4,l[_0x45bca4(0x2c8)])],Y);var X=class extends u[_0x45bca4(0x322)]{[_0x45bca4(0x255)](){const _0x459bbb=_0x45bca4;this[_0x459bbb(0x25c)](),this['_initBaseAfterEvents']();}['createBase'](_0x5443a1={},_0xb588d4){const _0x20f22e=_0x45bca4;let _0x515fe9=this[_0x20f22e(0x297)]['createUnit'](l[_0x20f22e(0x1e6)][_0x20f22e(0x207)],_0x5443a1,_0xb588d4);return this[_0x20f22e(0x27c)][_0x20f22e(0x293)](Y,_0x515fe9);}[_0x45bca4(0x23e)](){const _0x23a50d=_0x45bca4;let _0x4b7f81=this[_0x23a50d(0x297)][_0x23a50d(0x36f)](l[_0x23a50d(0x1e6)][_0x23a50d(0x207)]);return _0x4b7f81?this[_0x23a50d(0x27c)]['createInstance'](Y,_0x4b7f81):null;}[_0x45bca4(0x31b)](_0x1c37b7){const _0x455747=_0x45bca4;let _0x4d2645=this['_univerInstanceService'][_0x455747(0x36b)](_0x1c37b7,l[_0x455747(0x1e6)][_0x455747(0x207)]);return _0x4d2645?this[_0x455747(0x27c)][_0x455747(0x293)](Y,_0x4d2645):null;}[_0x45bca4(0x206)](){const _0x4b6400=_0x45bca4;return this['_univerInstanceService'][_0x4b6400(0x1e2)](l[_0x4b6400(0x1e6)][_0x4b6400(0x207)])[_0x4b6400(0x372)](_0x5cd442=>this[_0x4b6400(0x27c)][_0x4b6400(0x293)](Y,_0x5cd442));}['_initBaseAfterEvents'](){const _0x3f07c0=_0x45bca4;this[_0x3f07c0(0x1f0)](this['registerEventHandler'](this[_0x3f07c0(0x2b0)]['BaseHierarchyChanged'],()=>this[_0x3f07c0(0x33a)][_0x3f07c0(0x2cf)]((_0x1d36bc,_0x55ca7e)=>{const _0x30af46=_0x3f07c0;var _0x2f94ce;if(!Z(_0x1d36bc,c[_0x30af46(0x2aa)]))return;let _0x8e6dff=_0x1d36bc[_0x30af46(0x25d)];if(!((_0x2f94ce=_0x8e6dff[_0x30af46(0x240)])!=null&&_0x2f94ce['length']))return;let _0x1818e8=this['getBase'](_0x8e6dff['unitId']),_0xb46bbd=_0x1818e8==null?void 0x0:_0x1818e8[_0x30af46(0x2bc)](_0x8e6dff['hierarchyChanges'][0x0][_0x30af46(0x385)]);if(!_0x1818e8||!_0xb46bbd)return;let _0x2a880b={'base':_0x1818e8,'table':_0xb46bbd,'changes':_0x8e6dff[_0x30af46(0x240)],'source':_0x55ca7e!=null&&_0x55ca7e['fromCollab']?c[_0x30af46(0x33e)][_0x30af46(0x2b4)]:_0x8e6dff[_0x30af46(0x2bf)]??c[_0x30af46(0x33e)]['UI']};this['fireEvent'](this[_0x30af46(0x2b0)][_0x30af46(0x27a)],_0x2a880b);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x3f07c0(0x229)],()=>this['_commandService'][_0x3f07c0(0x2cf)](_0x5f2bab=>{const _0x34a1f3=_0x3f07c0;if(_0x5f2bab['id']!==c[_0x34a1f3(0x280)]['id'])return;let {unitId:_0x433a6e,table:_0x1ad123,index:_0x5dd0a8}=_0x5f2bab[_0x34a1f3(0x25d)],_0x207d22=this['getBase'](_0x433a6e);if(!_0x207d22)return;let _0x476cad={'base':_0x207d22,'table':_0x1ad123,'index':_0x5dd0a8};this[_0x34a1f3(0x1ed)](this[_0x34a1f3(0x2b0)][_0x34a1f3(0x229)],_0x476cad);}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x3f07c0(0x26b)],()=>this[_0x3f07c0(0x33a)][_0x3f07c0(0x2cf)](_0x48efbf=>{const _0x409cc6=_0x3f07c0;if(_0x48efbf['id']!==c[_0x409cc6(0x2c1)]['id'])return;let {unitId:_0x23bcb8,tableId:_0x452cca,field:_0x1bf7b9,index:_0x2f9587,viewIndexes:_0x1a28a8}=_0x48efbf[_0x409cc6(0x25d)],_0x53923a=this[_0x409cc6(0x31b)](_0x23bcb8);if(!_0x53923a)return;let _0xebf7a0=_0x53923a['getTableById'](_0x452cca);if(!_0xebf7a0)return;let _0xf6cf13={'base':_0x53923a,'table':_0xebf7a0,'field':_0x1bf7b9,'index':_0x2f9587,'viewIndexes':_0x1a28a8};this['fireEvent'](this['Event'][_0x409cc6(0x26b)],_0xf6cf13);}))),this[_0x3f07c0(0x1f0)](this['registerEventHandler'](this[_0x3f07c0(0x2b0)]['BaseTableRecordCreated'],()=>this[_0x3f07c0(0x33a)]['onCommandExecuted'](_0x1e66b1=>{const _0x139393=_0x3f07c0;if(_0x1e66b1['id']!==c['CreateBaseRecordCommand']['id']&&_0x1e66b1['id']!==c[_0x139393(0x20e)]['id'])return;let _0x2eb9c9=_0x1e66b1[_0x139393(0x25d)],{unitId:_0x2bcfa8,tableId:_0x1ae3c9}=_0x2eb9c9,_0x2cd67b=_0x2eb9c9['records']??[_0x2eb9c9[_0x139393(0x263)]],_0x308da4=this[_0x139393(0x31b)](_0x2bcfa8);if(!_0x308da4)return;let _0x425bef=_0x308da4[_0x139393(0x2bc)](_0x1ae3c9);if(!_0x425bef)return;let _0x317394={'base':_0x308da4,'table':_0x425bef,'records':_0x2cd67b};this[_0x139393(0x1ed)](this[_0x139393(0x2b0)][_0x139393(0x2e4)],_0x317394);}))),this[_0x3f07c0(0x1f0)](this[_0x3f07c0(0x323)](this[_0x3f07c0(0x2b0)][_0x3f07c0(0x37d)],()=>this['_commandService'][_0x3f07c0(0x2cf)](_0xf4dece=>{const _0x4a4ad0=_0x3f07c0;if(_0xf4dece['id']!==c[_0x4a4ad0(0x2bb)]['id'])return;let {unitId:_0x26a88b,tableId:_0x5416d4,view:_0xabcadb,index:_0x5899e0}=_0xf4dece[_0x4a4ad0(0x25d)],_0x568f19=this['getBase'](_0x26a88b);if(!_0x568f19)return;let _0x10a610=_0x568f19['getTableById'](_0x5416d4);if(!_0x10a610)return;let _0x20d91f={'base':_0x568f19,'table':_0x10a610,'view':_0xabcadb,'index':_0x5899e0};this[_0x4a4ad0(0x1ed)](this[_0x4a4ad0(0x2b0)][_0x4a4ad0(0x37d)],_0x20d91f);}))),this[_0x3f07c0(0x1f0)](this[_0x3f07c0(0x323)](this['Event'][_0x3f07c0(0x2cd)],()=>this[_0x3f07c0(0x33a)]['onCommandExecuted'](_0x425db2=>{const _0x47073e=_0x3f07c0;if(_0x425db2['id']!==c[_0x47073e(0x378)]['id'])return;let {unitId:_0x5b5011,tableId:_0x4a3ce5,recordId:_0x2d829e,fieldId:_0x3fb8d5,value:_0x5b8dbd}=_0x425db2[_0x47073e(0x25d)],_0x4a5942=this[_0x47073e(0x31b)](_0x5b5011);if(!_0x4a5942)return;let _0x46224c=_0x4a5942['getTableById'](_0x4a3ce5);if(!_0x46224c)return;let _0x52b6dc=_0x46224c[_0x47073e(0x2ce)](_0x3fb8d5);if(!_0x52b6dc)return;let _0x58d7b4=_0x46224c[_0x47073e(0x1e9)](_0x2d829e);if(!_0x58d7b4)return;let _0x3e69e0={'base':_0x4a5942,'table':_0x46224c,'field':_0x52b6dc,'record':_0x58d7b4,'value':_0x5b8dbd};this[_0x47073e(0x1ed)](this[_0x47073e(0x2b0)][_0x47073e(0x2cd)],_0x3e69e0);})));}[_0x45bca4(0x25c)](){const _0x320df8=_0x45bca4;this[_0x320df8(0x1f0)](this[_0x320df8(0x323)](this[_0x320df8(0x2b0)][_0x320df8(0x1e4)],()=>this[_0x320df8(0x33a)][_0x320df8(0x1e0)](_0x40d444=>{const _0x1a1d09=_0x320df8;if(Z(_0x40d444,c['SetBaseRecordValuesCommand'])){let {unitId:_0x330e8c,tableId:_0x4b7bdd,patches:_0xb4e526,source:_0x5f44d3=c[_0x1a1d09(0x33e)]['UI']}=_0x40d444[_0x1a1d09(0x25d)],_0x17c9e2=this[_0x1a1d09(0x279)](_0x330e8c,_0x4b7bdd);if(!_0x17c9e2)return;this[_0x1a1d09(0x1ef)](_0x17c9e2[_0x1a1d09(0x327)],_0x17c9e2[_0x1a1d09(0x2c0)],(0x0,c['validateBaseHierarchyRecordPatches'])(_0x17c9e2[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),_0xb4e526),_0x5f44d3);return;}if(Z(_0x40d444,c[_0x1a1d09(0x26f)])){let {unitId:_0x3a0c73,tableId:_0x39d44a,patches:_0x4b2382,source:_0x5b26df=c[_0x1a1d09(0x33e)]['UI']}=_0x40d444[_0x1a1d09(0x25d)],_0x36f392=this[_0x1a1d09(0x279)](_0x3a0c73,_0x39d44a);if(!_0x36f392)return;let _0x59c008=_0x36f392[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)]();this[_0x1a1d09(0x1ef)](_0x36f392[_0x1a1d09(0x327)],_0x36f392[_0x1a1d09(0x2c0)],(0x0,c[_0x1a1d09(0x227)])(_0x59c008,(0x0,c[_0x1a1d09(0x237)])(_0x59c008,_0x4b2382)),_0x5b26df);return;}if(Z(_0x40d444,c['CreateBaseRecordCommand'])){let _0x5300b6=_0x40d444[_0x1a1d09(0x25d)],_0x162a4c=this['_getHierarchyEventContext'](_0x5300b6[_0x1a1d09(0x2ef)],_0x5300b6[_0x1a1d09(0x385)]);if(!_0x162a4c)return;this['_fireBeforeHierarchyChange'](_0x162a4c[_0x1a1d09(0x327)],_0x162a4c[_0x1a1d09(0x2c0)],(0x0,c[_0x1a1d09(0x333)])(_0x162a4c['table']['getTable'](),[_0x5300b6[_0x1a1d09(0x263)]]),_0x5300b6[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x20e)])){let _0x31d92f=_0x40d444[_0x1a1d09(0x25d)],_0x4ea60d=this['_getHierarchyEventContext'](_0x31d92f['unitId'],_0x31d92f[_0x1a1d09(0x385)]);if(!_0x4ea60d)return;this[_0x1a1d09(0x1ef)](_0x4ea60d['base'],_0x4ea60d[_0x1a1d09(0x2c0)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x4ea60d[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),_0x31d92f[_0x1a1d09(0x363)]),_0x31d92f['source']??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x26c)])){let _0x4d3bf9=_0x40d444[_0x1a1d09(0x25d)],_0x38e86c=this[_0x1a1d09(0x279)](_0x4d3bf9['unitId'],_0x4d3bf9[_0x1a1d09(0x385)]);if(!_0x38e86c)return;this[_0x1a1d09(0x1ef)](_0x38e86c['base'],_0x38e86c['table'],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x38e86c[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),[_0x4d3bf9['record']]),_0x4d3bf9[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c['MoveBaseHierarchyRecordCommand'])){let _0x44d4b0=_0x40d444[_0x1a1d09(0x25d)],_0x80437f=this['_getHierarchyEventContext'](_0x44d4b0[_0x1a1d09(0x2ef)],_0x44d4b0['tableId']);if(!_0x80437f)return;let _0x448b8c=_0x80437f[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),_0x4ebc63=_0x44d4b0['fieldId']??(0x0,c[_0x1a1d09(0x235)])(_0x448b8c),_0x17f7a9=(0x0,c[_0x1a1d09(0x285)])(_0x448b8c,_0x4ebc63)[_0x1a1d09(0x2f8)][_0x1a1d09(0x211)](_0x44d4b0['recordId'])??null;this[_0x1a1d09(0x1ef)](_0x80437f[_0x1a1d09(0x327)],_0x80437f[_0x1a1d09(0x2c0)],[{'tableId':_0x44d4b0['tableId'],'fieldId':_0x4ebc63,'recordId':_0x44d4b0[_0x1a1d09(0x2c9)],'oldParentRecordId':_0x17f7a9,'parentRecordId':_0x44d4b0[_0x1a1d09(0x1fb)]}],_0x44d4b0[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x2df)])){let _0x41c944=_0x40d444[_0x1a1d09(0x25d)],_0x2bf9a3=this['_getHierarchyEventContext'](_0x41c944['unitId'],_0x41c944[_0x1a1d09(0x385)]);if(!_0x2bf9a3)return;let _0x24eacf=_0x41c944[_0x1a1d09(0x2ab)]??(0x0,c[_0x1a1d09(0x235)])(_0x2bf9a3['table'][_0x1a1d09(0x238)]());this[_0x1a1d09(0x1ef)](_0x2bf9a3[_0x1a1d09(0x327)],_0x2bf9a3[_0x1a1d09(0x2c0)],[{'tableId':_0x41c944[_0x1a1d09(0x385)],'fieldId':_0x24eacf,'recordId':_0x41c944[_0x1a1d09(0x263)]['id'],'oldParentRecordId':null,'parentRecordId':_0x41c944[_0x1a1d09(0x1fb)]}],_0x41c944['source']??c[_0x1a1d09(0x33e)]['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x254)])){let _0x4b970f=_0x40d444[_0x1a1d09(0x25d)],_0x49751f=this[_0x1a1d09(0x279)](_0x4b970f[_0x1a1d09(0x2ef)],_0x4b970f['tableId']);if(!_0x49751f)return;this[_0x1a1d09(0x1ef)](_0x49751f[_0x1a1d09(0x327)],_0x49751f[_0x1a1d09(0x2c0)],(0x0,c[_0x1a1d09(0x328)])(_0x49751f[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)](),[_0x4b970f[_0x1a1d09(0x2c9)]]),_0x4b970f['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x40d444,c[_0x1a1d09(0x314)])){let _0x4d274c=_0x40d444['params'],_0x40f8f3=this[_0x1a1d09(0x279)](_0x4d274c[_0x1a1d09(0x2ef)],_0x4d274c[_0x1a1d09(0x385)]);if(!_0x40f8f3)return;this[_0x1a1d09(0x1ef)](_0x40f8f3[_0x1a1d09(0x327)],_0x40f8f3['table'],(0x0,c[_0x1a1d09(0x328)])(_0x40f8f3['table']['getTable'](),_0x4d274c[_0x1a1d09(0x220)]),_0x4d274c[_0x1a1d09(0x2bf)]??c[_0x1a1d09(0x33e)]['UI']);return;}if(!Z(_0x40d444,c['UpdateBaseCellCommand']))return;let _0x4aa57b=_0x40d444['params'],_0x442b01=this[_0x1a1d09(0x279)](_0x4aa57b['unitId'],_0x4aa57b[_0x1a1d09(0x385)]);if(!_0x442b01)return;let _0x7c6bd9=_0x442b01[_0x1a1d09(0x2c0)][_0x1a1d09(0x238)]();if(!(0x0,c[_0x1a1d09(0x2f0)])(_0x7c6bd9)['includes'](_0x4aa57b[_0x1a1d09(0x2ab)]))return;let _0x6a8f3e=(0x0,c[_0x1a1d09(0x285)])(_0x7c6bd9,_0x4aa57b[_0x1a1d09(0x2ab)])['parentByRecordId'][_0x1a1d09(0x211)](_0x4aa57b[_0x1a1d09(0x2c9)])??null,_0x530eb3=(0x0,c[_0x1a1d09(0x213)])(_0x4aa57b[_0x1a1d09(0x348)])[0x0]??null;_0x6a8f3e!==_0x530eb3&&this[_0x1a1d09(0x1ef)](_0x442b01[_0x1a1d09(0x327)],_0x442b01['table'],[{'tableId':_0x4aa57b['tableId'],'fieldId':_0x4aa57b[_0x1a1d09(0x2ab)],'recordId':_0x4aa57b[_0x1a1d09(0x2c9)],'oldParentRecordId':_0x6a8f3e,'parentRecordId':_0x530eb3}],_0x4aa57b['source']??c[_0x1a1d09(0x33e)]['UI']);}))),this[_0x320df8(0x1f0)](this['registerEventHandler'](this['Event'][_0x320df8(0x29d)],()=>this[_0x320df8(0x33a)]['beforeCommandExecuted'](_0x3cb4ca=>{const _0x41e1ed=_0x320df8;if(_0x3cb4ca['id']!==c[_0x41e1ed(0x280)]['id'])return;let {unitId:_0x315935,table:_0x10e094,index:_0x4bb6fb}=_0x3cb4ca[_0x41e1ed(0x25d)],_0x312d71=this[_0x41e1ed(0x31b)](_0x315935);if(!_0x312d71)return;let _0x3783ab={'base':_0x312d71,'table':_0x10e094,'index':_0x4bb6fb};if(this['fireEvent'](this['Event'][_0x41e1ed(0x29d)],_0x3783ab),_0x3783ab[_0x41e1ed(0x2dd)])throw new l[(_0x41e1ed(0x37e))]();}))),this[_0x320df8(0x1f0)](this[_0x320df8(0x323)](this['Event'][_0x320df8(0x38f)],()=>this[_0x320df8(0x33a)][_0x320df8(0x1e0)](_0x3d2462=>{const _0xf2b4ed=_0x320df8;if(_0x3d2462['id']!==c[_0xf2b4ed(0x2c1)]['id'])return;let {unitId:_0x56b570,tableId:_0x5929db,field:_0x4a94ac,index:_0x32d299,viewIndexes:_0x9e17e9}=_0x3d2462['params'],_0x3d0aa7=this['getBase'](_0x56b570);if(!_0x3d0aa7)return;let _0x739564=_0x3d0aa7['getTableById'](_0x5929db);if(!_0x739564)return;let _0xb11c6d={'base':_0x3d0aa7,'table':_0x739564,'field':_0x4a94ac,'index':_0x32d299,'viewIndexes':_0x9e17e9};if(this[_0xf2b4ed(0x1ed)](this[_0xf2b4ed(0x2b0)]['BeforeBaseTableFieldCreate'],_0xb11c6d),_0xb11c6d[_0xf2b4ed(0x2dd)])throw new l['CanceledError']();}))),this[_0x320df8(0x1f0)](this[_0x320df8(0x323)](this[_0x320df8(0x2b0)][_0x320df8(0x223)],()=>this['_commandService'][_0x320df8(0x1e0)](_0x376d60=>{const _0x2f2a3f=_0x320df8;if(_0x376d60['id']!==c[_0x2f2a3f(0x382)]['id']&&_0x376d60['id']!==c[_0x2f2a3f(0x20e)]['id'])return;let _0x21028e=_0x376d60[_0x2f2a3f(0x25d)],{unitId:_0x509746,tableId:_0x1329d0}=_0x21028e,_0x2e7349=_0x21028e['records']??[_0x21028e[_0x2f2a3f(0x263)]],_0x518812=this['getBase'](_0x509746);if(!_0x518812)return;let _0x42aea9=_0x518812[_0x2f2a3f(0x2bc)](_0x1329d0);if(!_0x42aea9)return;let _0x3127f7={'base':_0x518812,'table':_0x42aea9,'records':_0x2e7349};if(this[_0x2f2a3f(0x1ed)](this[_0x2f2a3f(0x2b0)][_0x2f2a3f(0x223)],_0x3127f7),_0x3127f7[_0x2f2a3f(0x2dd)])throw new l['CanceledError']();}))),this[_0x320df8(0x1f0)](this['registerEventHandler'](this['Event']['BeforeBaseTableViewCreate'],()=>this['_commandService'][_0x320df8(0x1e0)](_0x19e622=>{const _0x2793dd=_0x320df8;if(_0x19e622['id']!==c[_0x2793dd(0x2bb)]['id'])return;let {unitId:_0xc7e131,tableId:_0x3d019,view:_0x24fde6,index:_0x8d96fe}=_0x19e622[_0x2793dd(0x25d)],_0x185d92=this['getBase'](_0xc7e131);if(!_0x185d92)return;let _0x272219=_0x185d92[_0x2793dd(0x2bc)](_0x3d019);if(!_0x272219)return;let _0x229087={'base':_0x185d92,'table':_0x272219,'view':_0x24fde6,'index':_0x8d96fe};if(this[_0x2793dd(0x1ed)](this[_0x2793dd(0x2b0)][_0x2793dd(0x212)],_0x229087),_0x229087[_0x2793dd(0x2dd)])throw new l[(_0x2793dd(0x37e))]();}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x320df8(0x2b0)][_0x320df8(0x25f)],()=>this[_0x320df8(0x33a)]['beforeCommandExecuted'](_0x361506=>{const _0x368c8b=_0x320df8;if(_0x361506['id']!==c[_0x368c8b(0x378)]['id'])return;let {unitId:_0x29010e,tableId:_0x4df122,recordId:_0xf367b2,fieldId:_0x1edd9a,value:_0x124f89}=_0x361506[_0x368c8b(0x25d)],_0xb4f90c=this['getBase'](_0x29010e);if(!_0xb4f90c)return;let _0x1e863f=_0xb4f90c[_0x368c8b(0x2bc)](_0x4df122);if(!_0x1e863f)return;let _0x3d64e9=_0x1e863f[_0x368c8b(0x2ce)](_0x1edd9a);if(!_0x3d64e9)return;let _0x2e4652=_0x1e863f[_0x368c8b(0x1e9)](_0xf367b2);if(!_0x2e4652)return;let _0x55c442={'base':_0xb4f90c,'table':_0x1e863f,'field':_0x3d64e9,'record':_0x2e4652,'value':_0x124f89};if(this[_0x368c8b(0x1ed)](this['Event'][_0x368c8b(0x25f)],_0x55c442),_0x55c442[_0x368c8b(0x2dd)])throw new l[(_0x368c8b(0x37e))]();})));}['_getHierarchyEventContext'](_0x25592f,_0x539d1b){let _0x3221b1=this['getBase'](_0x25592f),_0x568c16=_0x3221b1==null?void 0x0:_0x3221b1['getTableById'](_0x539d1b);return _0x3221b1&&_0x568c16?{'base':_0x3221b1,'table':_0x568c16}:null;}[_0x45bca4(0x1ef)](_0x2732fc,_0x600644,_0x16fc69,_0xdc382e){const _0x271879=_0x45bca4;if(!_0x16fc69[_0x271879(0x319)])return;let _0x3c41c2={'base':_0x2732fc,'table':_0x600644,'changes':_0x16fc69,'source':_0xdc382e};if(this[_0x271879(0x1ed)](this[_0x271879(0x2b0)][_0x271879(0x1e4)],_0x3c41c2),_0x3c41c2[_0x271879(0x2dd)])throw new l[(_0x271879(0x37e))]();}};function Z(_0x4ccc23,_0x4e8152){const _0xb747a0=_0x45bca4;return _0x4ccc23['id']===_0x4e8152['id']&&_0x4ccc23[_0xb747a0(0x25d)]!==void 0x0;}u[_0x45bca4(0x322)][_0x45bca4(0x2f6)](X);function _0x4e24(){const _0x16ca40=['getOwnPropertyDescriptor','getRow','DESC','_base','getFields','createView','AND','_resolveRecordIds','fieldSettings','parentRecordId','setValues','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','Failed\x20to\x20add\x20records','generateRandomId','IBaseProjectionService','BaseConditionalColorTarget','BASE64','ICommandService','DeleteBaseFieldCommand','getTableId','getBases','UNIVER_BASE','getTableByName','enumerable','FBase','sort','BaseFieldKeyEnum','ensureBaseTableCellLayout','BatchCreateBaseRecordsCommand','UpdateBaseFieldCommand','getRecordLinkFieldConfig','get','BeforeBaseTableViewCreate','parseRecordLinkIds','subtreeHeightByRecordId','_viewId','setFieldWidth','getView','Duplicate\x20Base\x20field\x20name:\x20','ImageSourceType','createDefaultBaseTableSnapshot','getDescendants','384GuRgfO','localeCompare','Set',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','recordIds','createdAt','BaseFilterConjunction','BeforeBaseTableRecordCreate','getAttachments','SetBaseViewFieldOrderCommand','string','validateBaseHierarchyRecordPatches','field','BaseTableCreated','286muqUUX','_getRecord','getChildren','endColumn','constructor','valid','fieldKey','setFilter','_table','createUniqueBaseTableName','getPrimaryFieldId','resolveBaseHierarchyFieldId','getFormulaName','resolveBaseRangeHierarchyPatches','getTable','tables','MoveBaseFieldCommand','[FBase]:\x20invalid\x20table\x20name\x20\x22','SetBaseViewFieldWidthCommand','primaryFieldId','getActiveBase','insertTable','hierarchyChanges','canEditBaseTargets','deleteRecords','filter','getType','UnitAction','\x22\x20is\x20not\x20an\x20Attachment\x20field.','Module','operator','\x22\x20does\x20not\x20exist.','getLinkedRecordIds','Tools','matchesBaseCondition','FBaseTableRange','views','slice','getFieldByName','[FBase]:\x20table\x20\x22','index','externalReferences','DeleteBaseRecordCommand','_initialize','Attachment','setGroup','_range','iterator','FBaseObjectPermission','getViews','_initBaseBeforeEvents','params','height','BeforeBaseTableCellValueChange','85390TJpOUp','Failed\x20to\x20add\x20field\x20\x22','_projectionService','record','BASE_TABLE_NAME_REQUIREMENTS','_parentObjectIds','_unitId','getValues','_tableId','recordOrder','getPoint','BaseTableFieldCreated','DuplicateBaseRecordCommand','push','_resourceLoaderService','SetBaseRangeValuesCommand','test','fieldOrder','setParent','_getTable','queryRecords','[FRecord]:\x20attachment\x20at\x20index\x20','isFinite','SetBasePermissionCommand','URL','_getHierarchyEventContext','BaseHierarchyChanged','[FTable]:\x20table\x20\x22','_injector','getNumRows','orderKey','indexOf','CreateBaseTableCommand','BASE_RECORD_ID_FIELD_ID','setFieldVisible','url','ValidateBaseFormulaCommand','buildBaseHierarchyIndex','addConditionalColorRule','prototype','RenameBaseViewCommand','thumbnail','getSchema','invalid','readonly','_baseUnitId','_prepareFormulaFieldReferences','getViewById','fromEntries','limit','data:','createInstance',':\x20\x22','default','startsWith','_univerInstanceService','deleteAttachments','Add','fields','matches','getRecords','BeforeBaseTableCreate','hidden','viewId','setOrderKey','Grid','isArray','getFilter','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','_baseTableId','1073616pJWtOT','trim','size','\x20for\x20field\x20\x22','ApplyBaseJson1Mutation','fieldId','\x22:\x20expected\x20an\x20array.','124dxkUAs','_permissionService','_collectDescendantIds','Event','startRow','Failed\x20to\x20delete\x20table\x20\x22','FEnum','Remote','IResourceLoaderService','updateConfig','getId','FBasesEventNameMixin','getBaseTablePermissionObjectId','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','CreateBaseViewCommand','getTableById','FBasePermission','\x20exceeds\x20range\x20size\x20','source','table','CreateBaseFieldCommand','addChild','visibleCardFieldIds','setObjectPermissions','defineProperty','now','message','IPermissionService','recordId','BaseSortDirection','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','Gallery','BaseTableCellValueChanged','getFieldById','onCommandExecuted','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','_inject','setPoint','entries',',\x20max\x20columns:\x20','toPrimitive','setHierarchyField','BaseRecordLinkRole','getProjection','SetBaseRecordValuesCommand','getViewByName','Invalid\x20Base\x20formula.','UpdateBaseViewConditionalColorRulesCommand','cancel','canEdit','CreateBaseChildRecordCommand','BaseConditionalDateMode','forEach','SetBaseTableHierarchyFieldCommand','regenerateViewIds','BaseTableRecordCreated','RecordLink','\x20in\x20field\x20\x22','clearConditionalColorRules','rows','getNumColumns','\x22\x20is\x20invalid.','Invalid\x20Base\x20regex\x20filter:\x20','validateBaseTableName','getBaseCellValue','validateRecordLinkValue','unitId','getActiveBaseHierarchyFieldIds','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','auto','\x22\x20has\x20invalid\x20config.','every','getPrimaryField','extend','Inject','parentByRecordId','resolveBaseFieldValues','278318fGhgJa','_objectId','function','deleteProperty','getSort','BaseViewType','SetBasePermissionsCommand','clear','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','BaseConditionalColorOperator','SetBaseViewGroupCommand','getRange','FBaseTableRecord','setAttachments','executeCommand','getDefaultValue','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.',',\x20range:\x20','BaseHierarchyInvalidReason','direction','getDescription','_getAttachmentField','_fieldId','hasOwnProperty','symbol','conditionalColoring','BatchDeleteBaseRecordsCommand','425974QpiXCP','call','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','setConfig','length','childrenByParentId','getBase','search','_getHierarchyIndex','copyBaseTableSnapshot','8855QOEPUI','offset','BaseFieldType','FUniver','registerEventHandler','Calendar','startColumn','deepClone','base','getBaseHierarchyDeletePromotions','object','deleteConditionalColorRule','warn','FEventName','from','Name','move','custom','viewOrder','group','validateBaseHierarchyRecordCreations','getBaseFormulaTableName','getHierarchyFieldId','Failed\x20to\x20create\x20view\x20\x22','Kanban','fieldIds','Base\x20field\x20not\x20found:\x20','_commandService','getBaseRecordPermissionObjectId','name','some','BaseEventSource','Invalid\x20attachment\x20at\x20index\x20','BaseFilterOperator','_writeFormulaExternalReferences','getBasePermissionValue','Failed\x20to\x20create\x20table\x20\x22','Failed\x20to\x20duplicate\x20table\x20\x22','find','_getView','boolean','value','getPermission','_recordId','addRecords','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','9VrVEgV','1788wOcgoS','Date','duplicate','toStringTag','Edit','beforeFieldId','syncExecuteCommand','setName','Formula','getTables','endRow','multiple','config','getRecord','Gantt','update','max','getUnitId','_getFieldIds','Facade','getPrototypeOf','records',':\x20expected\x20an\x20object.','getDataRange','includeRecords','flatMap','values','number','save','getUnit','delete','_assertInBounds','_getField','getCurrentUnitOfType','_getRecordLinkField','setValue','map','addLinkedRecord','Auto','type','resolveBaseFieldKey','mimeType','UpdateBaseCellCommand','getName','searchBaseTable','__esModule','UpsertHostExternalReferencesCommand','BaseTableViewCreated','CanceledError','\x22\x20must\x20be\x20a\x20non-empty\x20string.','addRecord','afterFieldId','CreateBaseRecordCommand','updatedAt','getSnapshot','tableId',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','1843130RlyQkp','tableOrder','includes','\x20Copy','view','setReadOnly','serializeRecordLinkIds','22ibclff','BeforeBaseTableFieldCreate','has','\x22.\x20','132462QdnJGc','setLinkedRecordIds','beforeCommandExecuted','create','getAllUnitsForType','commonExtend','BeforeBaseHierarchyChange','saveUnit','UniverInstanceType','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getConfig','getRecordById','reason','Delete','BaseConditionalColorRuleUpdateType','fireEvent','UUID','_fireBeforeHierarchyChange','disposeWithMe','moveField'];_0x4e24=function(){return _0x16ca40;};return _0x4e24();}var Q=class extends u[_0x45bca4(0x2b3)]{get['BaseFieldType'](){const _0x5330cb=_0x45bca4;return l[_0x5330cb(0x321)];}get[_0x45bca4(0x222)](){const _0x2dce4a=_0x45bca4;return l[_0x2dce4a(0x222)];}get[_0x45bca4(0x340)](){return l['BaseFilterOperator'];}get[_0x45bca4(0x20c)](){return v;}get[_0x45bca4(0x2ff)](){const _0x1ff733=_0x45bca4;return l[_0x1ff733(0x2ff)];}get[_0x45bca4(0x201)](){const _0x49c83a=_0x45bca4;return l[_0x49c83a(0x201)];}get[_0x45bca4(0x303)](){const _0x11a2b7=_0x45bca4;return l[_0x11a2b7(0x303)];}get[_0x45bca4(0x2e0)](){const _0x5c9f8d=_0x45bca4;return l[_0x5c9f8d(0x2e0)];}get[_0x45bca4(0x2ca)](){return l['BaseSortDirection'];}get[_0x45bca4(0x33e)](){const _0x35f8bf=_0x45bca4;return c[_0x35f8bf(0x33e)];}get['BaseHierarchyErrorCode'](){return c['BaseHierarchyErrorCode'];}get[_0x45bca4(0x30c)](){const _0x109daf=_0x45bca4;return l[_0x109daf(0x30c)];}get['BaseRecordLinkRole'](){const _0x301558=_0x45bca4;return l[_0x301558(0x2d7)];}};u[_0x45bca4(0x2b3)][_0x45bca4(0x2f6)](Q);var $=class extends u[_0x45bca4(0x32c)]{get[_0x45bca4(0x229)](){const _0x4d014b=_0x45bca4;return _0x4d014b(0x229);}get[_0x45bca4(0x29d)](){const _0xefba79=_0x45bca4;return _0xefba79(0x29d);}get[_0x45bca4(0x26b)](){const _0x38d447=_0x45bca4;return _0x38d447(0x26b);}get[_0x45bca4(0x38f)](){const _0xfb9ec=_0x45bca4;return _0xfb9ec(0x38f);}get[_0x45bca4(0x2e4)](){const _0x420030=_0x45bca4;return _0x420030(0x2e4);}get[_0x45bca4(0x223)](){const _0x491f34=_0x45bca4;return _0x491f34(0x223);}get[_0x45bca4(0x37d)](){const _0x4ec5f5=_0x45bca4;return _0x4ec5f5(0x37d);}get[_0x45bca4(0x212)](){const _0xdfdb35=_0x45bca4;return _0xdfdb35(0x212);}get[_0x45bca4(0x2cd)](){const _0x3d7ab7=_0x45bca4;return _0x3d7ab7(0x2cd);}get[_0x45bca4(0x25f)](){const _0x23a5c4=_0x45bca4;return _0x23a5c4(0x25f);}get['BaseHierarchyChanged'](){const _0x45ee98=_0x45bca4;return _0x45ee98(0x27a);}get[_0x45bca4(0x1e4)](){const _0x1334c6=_0x45bca4;return _0x1334c6(0x1e4);}};u[_0x45bca4(0x32c)][_0x45bca4(0x2f6)]($),exports[_0x45bca4(0x20c)]=v,Object[_0x45bca4(0x2c5)](exports,_0x45bca4(0x20a),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x45bca4(0x25a)]=m,exports[_0x45bca4(0x2bd)]=p,Object[_0x45bca4(0x2c5)](exports,'FBaseTable',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x45bca4(0x2c5)](exports,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x45bca4(0x2c5)](exports,_0x45bca4(0x24d),{'enumerable':!0x0,'get':function(){return A;}}),Object['defineProperty'](exports,_0x45bca4(0x306),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,'FBaseTableView',{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x45bca4(0x2b8)]=$,exports[_0x45bca4(0x376)]=S,exports[_0x45bca4(0x2f9)]=b;
|
|
1
|
+
const _0x19990d=_0x3b36;(function(_0x57b226,_0x347a63){const _0x372b9d=_0x3b36,_0x2e8d96=_0x57b226();while(!![]){try{const _0x2afe5b=parseInt(_0x372b9d(0x243))/0x1+parseInt(_0x372b9d(0x330))/0x2+parseInt(_0x372b9d(0x218))/0x3*(parseInt(_0x372b9d(0x28f))/0x4)+parseInt(_0x372b9d(0x283))/0x5*(parseInt(_0x372b9d(0x1ac))/0x6)+-parseInt(_0x372b9d(0x268))/0x7+parseInt(_0x372b9d(0x242))/0x8+-parseInt(_0x372b9d(0x257))/0x9;if(_0x2afe5b===_0x347a63)break;else _0x2e8d96['push'](_0x2e8d96['shift']());}catch(_0x34f5ee){_0x2e8d96['push'](_0x2e8d96['shift']());}}}(_0xbe4f,0x1f9e1),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x19990d(0x1dc)}));var e=Object[_0x19990d(0x334)],t=Object['defineProperty'],n=Object[_0x19990d(0x265)],r=Object[_0x19990d(0x312)],i=Object['getPrototypeOf'],a=Object[_0x19990d(0x255)][_0x19990d(0x27a)],o=(_0xf2c649,_0x499f0f,_0xdda0a3,_0x59c76b)=>{const _0x331f6a=_0x19990d;if(_0x499f0f&&typeof _0x499f0f==_0x331f6a(0x2d2)||typeof _0x499f0f==_0x331f6a(0x23a)){for(var _0x4f5373=r(_0x499f0f),_0x4493ed=0x0,_0x28407e=_0x4f5373[_0x331f6a(0x32b)],_0xd92980;_0x4493ed<_0x28407e;_0x4493ed++)_0xd92980=_0x4f5373[_0x4493ed],!a[_0x331f6a(0x227)](_0xf2c649,_0xd92980)&&_0xd92980!==_0xdda0a3&&t(_0xf2c649,_0xd92980,{'get':(_0x243037=>_0x499f0f[_0x243037])[_0x331f6a(0x201)](null,_0xd92980),'enumerable':!(_0x59c76b=n(_0x499f0f,_0xd92980))||_0x59c76b[_0x331f6a(0x250)]});}return _0xf2c649;},s=(_0x2d1247,_0x144999,_0x55a00d)=>(_0x55a00d=_0x2d1247==null?{}:e(i(_0x2d1247)),o(_0x144999||!_0x2d1247||!_0x2d1247[_0x19990d(0x2f8)]||!a[_0x19990d(0x227)](_0x2d1247,_0x19990d(0x318))?t(_0x55a00d,_0x19990d(0x318),{'value':_0x2d1247,'enumerable':!0x0}):_0x55a00d,_0x2d1247));function _0xbe4f(){const _0x2861bc=['hierarchyChanges','UnitAction','getBaseTablePermissionObjectId','bind','clearConditionalColorRules','regenerateViewIds','recordOrder',',\x20range:\x20','config','getFieldSettings','getPoint','values','UpsertHostExternalReferencesCommand','registerEventHandler','Base\x20field\x20not\x20found:\x20','getAllUnitsForType','clear','FUniver','setLinkedRecordIds','Edit','localeCompare','DeleteBaseRecordCommand','getDescendants','DuplicateBaseRecordCommand','executeCommand','getSort','630XGhaKs','includes','Invalid\x20Base\x20regex\x20filter:\x20','Auto','fireEvent','isReadonly','cancel','UpdateBaseCellCommand','SetBasePermissionCommand','getTableById','deleteTable','caseSensitive','params','Failed\x20to\x20create\x20table\x20\x22','getView','call','Grid','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','DeleteBaseViewCommand','BeforeBaseTableViewCreate','Delete','ApplyBaseJson1Mutation','getType','addField','tableId','SetBaseRangeValuesCommand','rows','getBaseRecordPermissionObjectId','_initBaseBeforeEvents','getRecordById','forEach','flatMap','getPrimaryFieldId','_resolveRecordIds','function','targetTableId','matchesBaseCondition','UNIVER_BASE','valid','update','_base','[FRecord]:\x20record\x20\x22','1647768SVzSqM','16971ZpuGBz','getFilter','trim','Date','validateBaseTableName','FBaseObjectPermission','boolean','fields','parentByRecordId','validateBaseHierarchyRecordCreations','map','fromEntries','getPermission','enumerable','records','setReadOnly','from','\x20exceeds\x20range\x20size\x20','prototype','BaseTableViewCreated','3461958DlaXKi','type','includeRecords','FBaseTableField','now','getActiveBaseHierarchyFieldIds','saveUnit','DeleteBaseTableCommand','Invalid\x20Base\x20formula.','commonExtend','setFieldVisible','_recordId','orderKey','SetBaseViewFilterCommand','getOwnPropertyDescriptor','thumbnail','sourceType','265125vlwdrw','CreateBaseRecordCommand','reason','getDataRange','getName','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','getActiveBase','_getRecord','BaseTableRecordCreated','Failed\x20to\x20add\x20records','BaseEventSource','endColumn','Failed\x20to\x20add\x20field\x20\x22','BeforeBaseTableCellValueChange','duplicateTable','fieldOrder','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','externalReferences','hasOwnProperty','getTableId','SetBaseNameCommand','getLinkedRecordIds','BatchCreateBaseRecordsCommand','field','_getRecordLinkField','_baseTableId','_initBaseAfterEvents','4665zAYGaJ','getFields','_range','getFormulaName','Attachment','getAncestors','get','setValues','move','getDescription','[FRecord]:\x20RecordLink\x20field\x20\x22','getSnapshot','1604FtAkBW','BaseConditionalColorTarget','description','getRange','find','BatchDeleteBaseRecordsCommand','getBases','[FView]:\x20view\x20\x22','resolveBaseFieldValues','BaseHierarchyErrorCode','queryRecords','toPrimitive','fieldSettings','deleteRecords','getDefaultValue','Failed\x20to\x20create\x20view\x20\x22','syncExecuteCommand','Calendar','FBaseTableRecord','getId','getGroup','_getField','entries','setObjectPermissions','getTable','getRow','_initialize','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','BaseSortDirection','IBaseProjectionService','deepClone','BeforeBaseTableRecordCreate','getChildren','addChild','isArray','_commandService','createInstance','ICommandService','number','size','[FRecord]:\x20attachment\x20at\x20index\x20','setOrderKey','BeforeBaseTableCreate','FBase','URL','Event','setParent','resolveBaseHierarchyFieldId','endRow','createView','RenameBaseTableCommand','BaseFilterOperator','conditionalColoring','_fieldId','[FBaseRange]:\x20values\x20size\x20','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','_resourceLoaderService','setHierarchyField','searchBaseTable','some','parseRecordLinkIds','UpdateBaseViewConditionalColorRulesCommand','[FField]:\x20field\x20\x22','createUnit','Gantt','slice','FBaseInitialable','object','\x22.\x20','_univerInstanceService','BaseHierarchyChanged','moveField','\x20in\x20field\x20\x22','index','BaseRecordLinkRole','matches','multiple','\x22\x20has\x20invalid\x20config.','Set','system','setFilter','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','CreateBaseTableCommand','subtreeHeightByRecordId','views','FBaseTableRange','_getFieldIds','sort','Facade','Clear','fieldId','BASE64','getTables','height','fromCollab','getFieldById','setName','filter','Inject',':\x20\x22','tables','getValues','FBaseTable','BaseFieldKeyEnum','tableOrder','__esModule','string','addRecord','_prepareFormulaFieldReferences','ChangeBaseFieldTypeCommand','getViews','_permissionService','beforeFieldId','getBaseId','viewId','createdAt','_objectId','extend','group','FEventName','setValue','MoveBaseViewCommand','getConditionalColorRules','setSort','getBase','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','message','CreateBaseViewCommand','_getTable','changeType','Add','getOwnPropertyNames','CreateBaseFieldCommand','decorate','has','BaseConditionalDateMode','DeleteBaseFieldCommand','default','startRow','BaseFilterConjunction','orderedRecordIds','CanceledError','parentRecordId','fieldIds','FBasesEventNameMixin','url','unitId','Gallery','recordIds','custom','SetBaseViewFieldOrderCommand','getViewById','ImageSourceType','beforeCommandExecuted','every','BaseTableCellValueChanged','length','getRecords','getBaseHierarchyDeletePromotions','Injector','iterator','30744MtAcJF','_parentObjectIds','BASE_TABLE_NAME_REQUIREMENTS','auto','create','_inject','BaseTableFieldCreated','value','indexOf','DESC','\x20Copy','BASE_RECORD_ID_FIELD_ID','canEdit','SetBaseViewFieldVisibleCommand','BeforeBaseHierarchyChange','direction','source','setGroup','SetBaseRecordValuesCommand','Duplicate\x20Base\x20field\x20name:\x20','base','getSchema','RecordLink','_getView','IPermissionService','Kanban','_table','\x22\x20does\x20not\x20exist.','_projectionService','_viewId','setEditable','primaryFieldName','getParent','getViewByName','_tableId','setDefaultValue','getProjection','name','CreateBaseChildRecordCommand','symbol','search','buildBaseHierarchyIndex','BaseTableCreated','MoveBaseHierarchyRecordCommand','_baseUnitId','Invalid\x20attachment\x20at\x20index\x20','addConditionalColorRule','startColumn','record','BaseFieldType','_writeFormulaExternalReferences','view','Formula','1476dcyPNg','SetBasePermissionsCommand','getPrimaryField','canEditBaseTargets','BeforeBaseTableFieldCreate','width','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','onCommandExecuted','push','getNumColumns','Name','UniverInstanceType','_getHierarchyEventContext','offset','getColumn','getConfig','defineProperty','getBaseCellValue','ValidateBaseFormulaCommand','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','SetBaseTableHierarchyFieldCommand','[FRecord]:\x20field\x20\x22','getBaseViewPermissionObjectId','validateBaseHierarchyRecordPatches','hidden','getValue','data:','RenameBaseViewCommand',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','\x20for\x20field\x20\x22','getBaseFormulaTableName','FBasePermission','BaseConditionalColorRuleUpdateType','[FBaseRange]:\x20table\x20does\x20not\x20exist.','notMatches','getTableFacade','generateRandomId','_getHierarchyIndex','resolveBaseRangeHierarchyPatches','UpdateBaseViewConfigCommand','fieldKey','readonly','getUnitId','BaseHierarchyInvalidReason','getNumRows','_getAttachmentField','FEnum','getBasePermissionValue','Module','SetBaseViewGroupCommand','recordId','_fireBeforeHierarchyChange','Tools','deleteProperty','getFieldByName','max','BaseViewType','_assertInBounds','viewOrder','IResourceLoaderService','setAttachments','disposeWithMe','ensureBaseTableCellLayout','limit','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','UpdateBaseRecordOrderCommand','table','delete','childrenByParentId','validateRecordLinkValue','getField','operator','getAttachments','rowId','updatedAt','primaryFieldId','_injector','startsWith','MoveBaseFieldCommand','FBaseTableView','_unitId','warn'];_0xbe4f=function(){return _0x2861bc;};return _0xbe4f();}let c=require('@univerjs-pro/bases'),l=require('@univerjs/core'),u=require('@univerjs/core/facade');u=s(u);let d=require('@univerjs/protocol'),f=require('@univerjs-pro/engine-formula');var p=class{constructor(_0x40a711,_0x5348ac,_0x5b4bfc){const _0x27ead6=_0x19990d;this[_0x27ead6(0x1fc)]=_0x40a711,this['_commandService']=_0x5348ac,this[_0x27ead6(0x2fe)]=_0x5b4bfc;}async[_0x19990d(0x2a6)](_0x59ca28){const _0x547d65=_0x19990d;return this['_commandService']['executeCommand'](c[_0x547d65(0x1ad)]['id'],{'unitId':this[_0x547d65(0x1fc)],'changes':_0x59ca28});}async['setPoint'](_0x18453c,_0x2e19f6){const _0x38d38c=_0x19990d;await this[_0x38d38c(0x2b2)][_0x38d38c(0x216)](c[_0x38d38c(0x220)]['id'],{'unitId':this[_0x38d38c(0x1fc)],'objectId':this[_0x38d38c(0x1fc)],'action':_0x18453c,'value':_0x2e19f6});}[_0x19990d(0x208)](_0x4bb02f){const _0x1589cb=_0x19990d;return(0x0,c['getBasePermissionValue'])(this[_0x1589cb(0x2fe)],this['_unitId'],this[_0x1589cb(0x1fc)],_0x4bb02f);}async[_0x19990d(0x195)](_0x4b2cec=!0x0){const _0x3a67cc=_0x19990d;await this[_0x3a67cc(0x2b2)][_0x3a67cc(0x216)](c[_0x3a67cc(0x220)]['id'],{'unitId':this[_0x3a67cc(0x1fc)],'objectId':this[_0x3a67cc(0x1fc)],'action':d[_0x3a67cc(0x1ff)][_0x3a67cc(0x211)],'value':_0x4b2cec});}async[_0x19990d(0x252)](){const _0x349cd=_0x19990d;await this[_0x349cd(0x2b2)]['executeCommand'](c[_0x349cd(0x220)]['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':d[_0x349cd(0x1ff)][_0x349cd(0x211)],'value':!0x1});}[_0x19990d(0x33c)](){const _0x2f92e4=_0x19990d;return(0x0,c[_0x2f92e4(0x1db)])(this[_0x2f92e4(0x2fe)],this['_unitId'],this[_0x2f92e4(0x1fc)],d[_0x2f92e4(0x1ff)][_0x2f92e4(0x211)]);}},m=class{constructor(_0x15b120,_0x9480db,_0x4994d2,_0x540d19,_0x4df3d4){const _0x284374=_0x19990d;this[_0x284374(0x1fc)]=_0x15b120,this['_objectId']=_0x9480db,this[_0x284374(0x331)]=_0x4994d2,this[_0x284374(0x2b2)]=_0x540d19,this[_0x284374(0x2fe)]=_0x4df3d4;}async[_0x19990d(0x195)](_0x354860=!0x0){const _0x156d6b=_0x19990d;await this[_0x156d6b(0x2b2)][_0x156d6b(0x216)](c[_0x156d6b(0x220)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x156d6b(0x303)],'action':d[_0x156d6b(0x1ff)][_0x156d6b(0x211)],'value':_0x354860});}async['setReadOnly'](){const _0x7d96f5=_0x19990d;await this[_0x7d96f5(0x2b2)][_0x7d96f5(0x216)](c['SetBasePermissionCommand']['id'],{'unitId':this[_0x7d96f5(0x1fc)],'objectId':this[_0x7d96f5(0x303)],'action':d[_0x7d96f5(0x1ff)][_0x7d96f5(0x211)],'value':!0x1});}[_0x19990d(0x33c)](){const _0x51a2f3=_0x19990d;return(0x0,c[_0x51a2f3(0x1af)])(this[_0x51a2f3(0x2fe)],this['_unitId'],[...this[_0x51a2f3(0x331)],this[_0x51a2f3(0x303)]]);}};function h(_0x1ea718,_0xc62e2f){return function(_0x3ec094,_0x556e78){_0xc62e2f(_0x3ec094,_0x556e78,_0x1ea718);};}function g(_0x52ac27,_0x274594,_0x532af3,_0x5d1885){const _0x57dccb=_0x19990d;var _0x2e0810=arguments[_0x57dccb(0x32b)],_0x76b1d6=_0x2e0810<0x3?_0x274594:_0x5d1885===null?_0x5d1885=Object[_0x57dccb(0x265)](_0x274594,_0x532af3):_0x5d1885,_0x2887eb;if(typeof Reflect=='object'&&typeof Reflect[_0x57dccb(0x314)]==_0x57dccb(0x23a))_0x76b1d6=Reflect['decorate'](_0x52ac27,_0x274594,_0x532af3,_0x5d1885);else{for(var _0x157505=_0x52ac27[_0x57dccb(0x32b)]-0x1;_0x157505>=0x0;_0x157505--)(_0x2887eb=_0x52ac27[_0x157505])&&(_0x76b1d6=(_0x2e0810<0x3?_0x2887eb(_0x76b1d6):_0x2e0810>0x3?_0x2887eb(_0x274594,_0x532af3,_0x76b1d6):_0x2887eb(_0x274594,_0x532af3))||_0x76b1d6);}return _0x2e0810>0x3&&_0x76b1d6&&Object[_0x57dccb(0x1bc)](_0x274594,_0x532af3,_0x76b1d6),_0x76b1d6;}let _=class{constructor(_0x5d9704,_0x4242f2,_0x10e46d,_0x42d7ad,_0xe1d729){const _0x302385=_0x19990d;this[_0x302385(0x240)]=_0x5d9704,this[_0x302385(0x191)]=_0x4242f2,this[_0x302385(0x2c4)]=_0x10e46d,this[_0x302385(0x2b2)]=_0x42d7ad,this[_0x302385(0x2fe)]=_0xe1d729;}[_0x19990d(0x2a2)](){const _0x4b28b1=_0x19990d;return this[_0x4b28b1(0x2c4)];}[_0x19990d(0x24f)](){const _0x51d2ce=_0x19990d;let _0x2910f9=this[_0x51d2ce(0x191)][_0x51d2ce(0x2a2)]();return new m(this[_0x51d2ce(0x240)][_0x51d2ce(0x2a2)](),(0x0,c['getBaseFieldPermissionObjectId'])(_0x2910f9,this['_fieldId']),[(0x0,c[_0x51d2ce(0x200)])(_0x2910f9)],this['_commandService'],this['_permissionService']);}[_0x19990d(0x1f2)](){return this['_getField']();}[_0x19990d(0x26c)](){const _0x1a6892=_0x19990d;return this[_0x1a6892(0x2a4)]()['name'];}[_0x19990d(0x22e)](){const _0x1fb721=_0x19990d;return this['_getField']()[_0x1fb721(0x258)];}[_0x19990d(0x1bb)](){const _0x55271c=_0x19990d;return this[_0x55271c(0x2a4)]()[_0x55271c(0x206)];}[_0x19990d(0x29d)](){const _0x4ad4a0=_0x19990d;return this[_0x4ad4a0(0x2a4)]()['defaultValue'];}[_0x19990d(0x28c)](){const _0x47d248=_0x19990d;return this['_getField']()[_0x47d248(0x291)];}[_0x19990d(0x21d)](){const _0x28172d=_0x19990d;return!!this[_0x28172d(0x2a4)]()[_0x28172d(0x1d5)];}[_0x19990d(0x2ef)](_0x90c040){const _0xf49469=_0x19990d;return this[_0xf49469(0x23f)]({'name':_0x90c040});}['setConfig'](_0x2ed29e,_0x1094c5){const _0x1e7f26=_0x19990d;return this[_0x1e7f26(0x23f)]({'config':_0x2ed29e},_0x1094c5);}[_0x19990d(0x19a)](_0x1f9b6b){const _0x521b71=_0x19990d;return this[_0x521b71(0x23f)]({'defaultValue':_0x1f9b6b});}[_0x19990d(0x23f)](_0x366a10,_0x511a28){const _0x32166c=_0x19990d;let _0x14513d=this[_0x32166c(0x2a4)]()[_0x32166c(0x258)];return(_0x366a10[_0x32166c(0x258)]??_0x14513d)===l[_0x32166c(0x1a8)][_0x32166c(0x1ab)]&&(Object[_0x32166c(0x255)][_0x32166c(0x27a)]['call'](_0x366a10,_0x32166c(0x206))||_0x366a10[_0x32166c(0x258)]===l[_0x32166c(0x1a8)][_0x32166c(0x1ab)])&&!this[_0x32166c(0x1a9)](_0x511a28)?!0x1:this[_0x32166c(0x2b2)]['syncExecuteCommand'](c['UpdateBaseFieldCommand']['id'],{'unitId':this[_0x32166c(0x240)][_0x32166c(0x2a2)](),'tableId':this[_0x32166c(0x191)][_0x32166c(0x2a2)](),'fieldId':this[_0x32166c(0x2c4)],'patch':_0x366a10});}[_0x19990d(0x310)](_0x222579,_0x5a08c7={},_0x2b00fa){const _0x5b7bc2=_0x19990d;return _0x222579===l[_0x5b7bc2(0x1a8)][_0x5b7bc2(0x1ab)]&&!this['_writeFormulaExternalReferences'](_0x2b00fa)?!0x1:this[_0x5b7bc2(0x2b2)][_0x5b7bc2(0x29f)](c[_0x5b7bc2(0x2fc)]['id'],{'unitId':this['_base'][_0x5b7bc2(0x2a2)](),'tableId':this[_0x5b7bc2(0x191)][_0x5b7bc2(0x2a2)](),'fieldId':this[_0x5b7bc2(0x2c4)],'input':{'type':_0x222579,'config':_0x5a08c7}});}[_0x19990d(0x1ef)](){const _0x11be6f=_0x19990d;return this[_0x11be6f(0x2b2)][_0x11be6f(0x29f)](c[_0x11be6f(0x317)]['id'],{'unitId':this['_base'][_0x11be6f(0x2a2)](),'tableId':this[_0x11be6f(0x191)][_0x11be6f(0x2a2)](),'fieldId':this[_0x11be6f(0x2c4)]});}['move'](_0x481e3b){const _0x403d2b=_0x19990d;return this['_commandService'][_0x403d2b(0x29f)](c[_0x403d2b(0x1fa)]['id'],{'unitId':this[_0x403d2b(0x240)][_0x403d2b(0x2a2)](),'tableId':this[_0x403d2b(0x191)]['getId'](),'fieldId':this[_0x403d2b(0x2c4)],'target':_0x481e3b});}[_0x19990d(0x2a4)](){const _0x2ca8c8=_0x19990d;let _0x484201=this[_0x2ca8c8(0x191)]['getTable']()['fields'][this[_0x2ca8c8(0x2c4)]];if(!_0x484201)throw Error(_0x2ca8c8(0x2cd)+this[_0x2ca8c8(0x2c4)]+_0x2ca8c8(0x192));return _0x484201;}[_0x19990d(0x1a9)](_0x191338){const _0x22ec85=_0x19990d;if(!_0x191338||!Array[_0x22ec85(0x2b1)](_0x191338[_0x22ec85(0x279)]))return console[_0x22ec85(0x1fd)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x191338['externalReferences'][_0x22ec85(0x32b)]===0x0)return!0x0;let _0x546ddc=this['_commandService'][_0x22ec85(0x29f)](f[_0x22ec85(0x20a)]['id'],{'unitId':this['_base'][_0x22ec85(0x2a2)](),'references':_0x191338[_0x22ec85(0x279)]});return _0x546ddc||console['warn'](_0x22ec85(0x2c6)),_0x546ddc;}};_=g([h(0x3,l[_0x19990d(0x2b4)]),h(0x4,l[_0x19990d(0x18f)])],_);let v=function(_0x22133b){const _0x58dd86=_0x19990d;return _0x22133b['Id']='id',_0x22133b[_0x58dd86(0x1b6)]='name',_0x22133b[_0x58dd86(0x21b)]=_0x58dd86(0x333),_0x22133b;}({});function y(_0x4fb628){const _0x5e047a=_0x19990d;return!!(_0x4fb628&&_0x4fb628[_0x5e047a(0x2de)]!==!0x0&&_0x4fb628[_0x5e047a(0x258)]!==l[_0x5e047a(0x1a8)]['RecordId']);}function b(_0x31fd82,_0xf8cd8b,_0x291168='id'){const _0x3a5382=_0x19990d;if(!_0xf8cd8b)return{};let _0x3dfd82={};return Object[_0x3a5382(0x2a5)](_0xf8cd8b)[_0x3a5382(0x236)](([_0x54ad1c,_0xf0d669])=>{const _0x6bd93c=_0x3a5382;let _0x4c37fd=S(_0x31fd82,_0x54ad1c,_0x291168);_0x3dfd82[_0x4c37fd]=x(_0x31fd82[_0x6bd93c(0x24a)][_0x4c37fd],_0xf0d669);}),_0x3dfd82;}function _0x3b36(_0x345776,_0x2e0f02){_0x345776=_0x345776-0x186;const _0xbe4f9c=_0xbe4f();let _0x3b36ff=_0xbe4f9c[_0x345776];return _0x3b36ff;}function x(_0x43ac9a,_0x9fdf41){const _0x2b0510=_0x19990d;if((_0x43ac9a==null?void 0x0:_0x43ac9a[_0x2b0510(0x258)])!==l[_0x2b0510(0x1a8)][_0x2b0510(0x287)]||_0x9fdf41==null)return _0x9fdf41;if(!Array[_0x2b0510(0x2b1)](_0x9fdf41))throw TypeError(_0x2b0510(0x1b2)+_0x43ac9a[_0x2b0510(0x19c)]+'\x22:\x20expected\x20an\x20array.');return _0x9fdf41['map']((_0x2fdaba,_0x134785)=>C(_0x43ac9a,_0x2fdaba,_0x134785));}function S(_0x773020,_0x51e925,_0x5bf23e){const _0x25f164=_0x19990d;if(_0x5bf23e==='id'||_0x5bf23e===_0x25f164(0x333)&&_0x773020[_0x25f164(0x24a)][_0x51e925])return _0x51e925;let _0xe3a3ef=Object['values'](_0x773020['fields'])['filter'](_0x3e0927=>_0x3e0927[_0x25f164(0x19c)]===_0x51e925);if(_0xe3a3ef[_0x25f164(0x32b)]===0x1)return _0xe3a3ef[0x0]['id'];throw _0xe3a3ef[_0x25f164(0x32b)]>0x1?Error(_0x25f164(0x18a)+_0x51e925):Error(_0x25f164(0x20c)+_0x51e925);}function C(_0x2f8a60,_0x1b5b1c,_0x2ccdf4){const _0x5d920f=_0x19990d;let _0x1a7303=_0x5d920f(0x1a4)+_0x2ccdf4+_0x5d920f(0x1c9)+_0x2f8a60[_0x5d920f(0x19c)]+'\x22';if(!O(_0x1b5b1c))throw TypeError(_0x1a7303+':\x20expected\x20an\x20object.');if(_0x5d920f(0x320)in _0x1b5b1c)throw TypeError(_0x1a7303+':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.');if(_0x5d920f(0x258)in _0x1b5b1c)throw TypeError(_0x1a7303+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x28dbde=T(_0x1b5b1c['id'],_0x1a7303,'id'),_0x485f6e=T(_0x1b5b1c[_0x5d920f(0x19c)],_0x1a7303,_0x5d920f(0x19c)),_0x34df79=T(_0x1b5b1c[_0x5d920f(0x187)],_0x1a7303,_0x5d920f(0x187));return{'id':_0x28dbde,'name':_0x485f6e,'source':_0x34df79,'sourceType':w(_0x1b5b1c[_0x5d920f(0x267)],_0x34df79,_0x1a7303),...E(_0x1b5b1c,'mimeType',_0x1a7303),...D(_0x1b5b1c,_0x5d920f(0x2b6),_0x1a7303),...D(_0x1b5b1c,_0x5d920f(0x1b1),_0x1a7303),...D(_0x1b5b1c,_0x5d920f(0x2ec),_0x1a7303),...E(_0x1b5b1c,_0x5d920f(0x266),_0x1a7303)};}function w(_0x4270e6,_0x2a2303,_0x3d224b){const _0x354d0b=_0x19990d;if(_0x4270e6==null)return _0x2a2303[_0x354d0b(0x1f9)](_0x354d0b(0x1c6))?l[_0x354d0b(0x327)]['BASE64']:l[_0x354d0b(0x327)][_0x354d0b(0x2bb)];if(_0x4270e6===l[_0x354d0b(0x327)][_0x354d0b(0x2bb)]||_0x4270e6===l[_0x354d0b(0x327)]['UUID']||_0x4270e6===l[_0x354d0b(0x327)][_0x354d0b(0x2ea)])return _0x4270e6;throw TypeError(_0x3d224b+_0x354d0b(0x1c8));}function T(_0x56b3fd,_0x153cfe,_0x3d6b76){const _0x2821c3=_0x19990d;if(typeof _0x56b3fd!=_0x2821c3(0x2f9)||!_0x56b3fd['trim']())throw TypeError(_0x153cfe+_0x2821c3(0x2f2)+_0x3d6b76+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x56b3fd;}function E(_0x2f267a,_0x523c39,_0x369b53){const _0x5148da=_0x19990d;let _0x1a0d6e=_0x2f267a[_0x523c39];if(_0x1a0d6e==null)return{};if(typeof _0x1a0d6e!=_0x5148da(0x2f9)||!_0x1a0d6e[_0x5148da(0x245)]())throw TypeError(_0x369b53+_0x5148da(0x2f2)+_0x523c39+_0x5148da(0x1bf));return{[_0x523c39]:_0x1a0d6e};}function D(_0xe54a18,_0x34df0e,_0x1c6478){const _0x57bd3e=_0x19990d;let _0x1fff5a=_0xe54a18[_0x34df0e];if(_0x1fff5a==null)return{};if(typeof _0x1fff5a!=_0x57bd3e(0x2b5)||!Number['isFinite'](_0x1fff5a)||_0x1fff5a<0x0)throw TypeError(_0x1c6478+_0x57bd3e(0x2f2)+_0x34df0e+'\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.');return{[_0x34df0e]:_0x1fff5a};}function O(_0x2b63dc){const _0xd1f96b=_0x19990d;return typeof _0x2b63dc==_0xd1f96b(0x2d2)&&!!_0x2b63dc&&!Array['isArray'](_0x2b63dc);}var k;let A=k=class{constructor(_0x56850e,_0xc6bfc4,_0x2e8d0b,_0x147354,_0x27ccef){const _0x23aa17=_0x19990d;this['_base']=_0x56850e,this[_0x23aa17(0x191)]=_0xc6bfc4,this['_range']=_0x2e8d0b,this[_0x23aa17(0x335)]=_0x147354,this['_commandService']=_0x27ccef,this[_0x23aa17(0x1e5)]();}[_0x19990d(0x300)](){const _0x35a5f3=_0x19990d;return this[_0x35a5f3(0x240)][_0x35a5f3(0x2a2)]();}[_0x19990d(0x27b)](){const _0xec1422=_0x19990d;return this[_0xec1422(0x191)]['getId']();}[_0x19990d(0x292)](){const _0x21f539=_0x19990d;return{...this[_0x21f539(0x285)]};}[_0x19990d(0x2a8)](){const _0xa8fa20=_0x19990d;return this['_range'][_0xa8fa20(0x319)];}[_0x19990d(0x1ba)](){const _0x51bfd3=_0x19990d;return this[_0x51bfd3(0x285)][_0x51bfd3(0x1a6)];}[_0x19990d(0x1d8)](){const _0x2d66ed=_0x19990d;return this['_range'][_0x2d66ed(0x2bf)]-this['_range'][_0x2d66ed(0x319)]+0x1;}[_0x19990d(0x1b5)](){const _0xaff768=_0x19990d;return this[_0xaff768(0x285)]['endColumn']-this[_0xaff768(0x285)][_0xaff768(0x1a6)]+0x1;}[_0x19990d(0x2f4)](){const _0x1709aa=_0x19990d;let _0x20c56b=this[_0x1709aa(0x30f)](),_0x4b6467=this[_0x1709aa(0x2e5)](_0x20c56b),_0x1893e8=[];for(let _0x1d1a51=this[_0x1709aa(0x285)][_0x1709aa(0x319)];_0x1d1a51<=this['_range']['endRow'];_0x1d1a51++){var _0x1080be;let _0x2b34c5=(_0x1080be=_0x20c56b[_0x1709aa(0x1f5)])==null?void 0x0:_0x1080be[_0x1d1a51],_0x3da390=[];for(let _0x5b15c6=this[_0x1709aa(0x285)][_0x1709aa(0x1a6)];_0x5b15c6<=this['_range'][_0x1709aa(0x273)];_0x5b15c6++){let _0x573c84=_0x4b6467[_0x5b15c6];_0x3da390[_0x1709aa(0x1b4)](_0x2b34c5&&_0x573c84?(0x0,c[_0x1709aa(0x1bd)])(_0x20c56b,_0x2b34c5,_0x573c84):null);}_0x1893e8[_0x1709aa(0x1b4)](_0x3da390);}return _0x1893e8;}['getValue'](){var _0x2d61b1;return((_0x2d61b1=this['getValues']()[0x0])==null?void 0x0:_0x2d61b1[0x0])??null;}[_0x19990d(0x307)](_0x19e279){const _0x56be15=_0x19990d;return this[_0x56be15(0x28a)]([[_0x19e279]]);}[_0x19990d(0x28a)](_0x11b4a1){const _0x39dbab=_0x19990d;let _0x3ea32c=this['getNumRows'](),_0x41505d=this[_0x39dbab(0x1b5)]();if(_0x11b4a1[_0x39dbab(0x32b)]>_0x3ea32c||_0x11b4a1['some'](_0x4bbe95=>_0x4bbe95[_0x39dbab(0x32b)]>_0x41505d)){var _0x43c3d9;throw Error(_0x39dbab(0x2c5)+_0x11b4a1[_0x39dbab(0x32b)]+'x'+(((_0x43c3d9=_0x11b4a1[0x0])==null?void 0x0:_0x43c3d9[_0x39dbab(0x32b)])??0x0)+_0x39dbab(0x254)+_0x3ea32c+'x'+_0x41505d+'.');}let _0x118c0f=this[_0x39dbab(0x30f)](),_0x229615=this[_0x39dbab(0x2e5)](_0x118c0f),_0x5af398=_0x11b4a1[_0x39dbab(0x237)]((_0x18d8df,_0x25f9ff)=>_0x18d8df[_0x39dbab(0x24d)]((_0x10db69,_0x572d93)=>{const _0x5b1cfc=_0x39dbab;var _0x1c72d1;let _0x5a53e6=this[_0x5b1cfc(0x285)][_0x5b1cfc(0x319)]+_0x25f9ff,_0x1192eb=_0x229615[this[_0x5b1cfc(0x285)][_0x5b1cfc(0x1a6)]+_0x572d93],_0x520edc=(_0x1c72d1=_0x118c0f['rowId'])==null?void 0x0:_0x1c72d1[_0x5a53e6];if(!_0x1192eb||!_0x520edc)throw Error(_0x5b1cfc(0x229));return{'recordId':_0x520edc,'fieldId':_0x1192eb,'value':_0x10db69};}));return this[_0x39dbab(0x2b2)][_0x39dbab(0x29f)](c[_0x39dbab(0x231)]['id'],{'unitId':this[_0x39dbab(0x240)][_0x39dbab(0x2a2)](),'tableId':this[_0x39dbab(0x191)][_0x39dbab(0x2a2)](),'patches':_0x5af398,'source':c[_0x39dbab(0x272)][_0x39dbab(0x2e7)]});}[_0x19990d(0x20e)](){const _0x497d9a=_0x19990d;return this[_0x497d9a(0x28a)](Array[_0x497d9a(0x253)]({'length':this[_0x497d9a(0x1d8)]()},()=>Array[_0x497d9a(0x253)]({'length':this['getNumColumns']()},()=>null)));}[_0x19990d(0x1b9)](_0x373b2f,_0xa9eaf8,_0x3fc087=this[_0x19990d(0x1d8)](),_0x1c415f=this[_0x19990d(0x1b5)]()){const _0x128ee0=_0x19990d;return this['_inject'][_0x128ee0(0x2b3)](k,this[_0x128ee0(0x240)],this[_0x128ee0(0x191)],{'startRow':this[_0x128ee0(0x285)][_0x128ee0(0x319)]+_0x373b2f,'startColumn':this[_0x128ee0(0x285)]['startColumn']+_0xa9eaf8,'endRow':this['_range'][_0x128ee0(0x319)]+_0x373b2f+_0x3fc087-0x1,'endColumn':this[_0x128ee0(0x285)][_0x128ee0(0x1a6)]+_0xa9eaf8+_0x1c415f-0x1},this[_0x128ee0(0x335)]);}[_0x19990d(0x30f)](){const _0x1d7cae=_0x19990d;let _0x244236=this[_0x1d7cae(0x191)][_0x1d7cae(0x2a7)]();if(!_0x244236)throw Error(_0x1d7cae(0x1cd));return(0x0,c[_0x1d7cae(0x1ea)])(_0x244236);}[_0x19990d(0x1e5)](){const _0x21d5b6=_0x19990d;var _0x26ae35;let _0x3b218c=this['_getTable'](),_0x59beb7=((_0x26ae35=_0x3b218c[_0x21d5b6(0x204)])==null?void 0x0:_0x26ae35[_0x21d5b6(0x32b)])??0x0,_0x42ad87=this[_0x21d5b6(0x2e5)](_0x3b218c)[_0x21d5b6(0x32b)];if(this[_0x21d5b6(0x285)]['startRow']<0x0||this[_0x21d5b6(0x285)][_0x21d5b6(0x1a6)]<0x0||this[_0x21d5b6(0x285)][_0x21d5b6(0x2bf)]<this[_0x21d5b6(0x285)][_0x21d5b6(0x319)]||this['_range'][_0x21d5b6(0x273)]<this['_range']['startColumn']||this[_0x21d5b6(0x285)][_0x21d5b6(0x2bf)]>=Math[_0x21d5b6(0x1e3)](_0x59beb7,0x1)||this[_0x21d5b6(0x285)][_0x21d5b6(0x273)]>=Math[_0x21d5b6(0x1e3)](_0x42ad87,0x1))throw Error('[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20'+_0x59beb7+',\x20max\x20columns:\x20'+_0x42ad87+_0x21d5b6(0x205)+JSON['stringify'](this['_range'])+'.');}[_0x19990d(0x2e5)](_0x5b3273){const _0x411ca7=_0x19990d;return _0x5b3273[_0x411ca7(0x277)][_0x411ca7(0x2f0)](_0x1a40d2=>y(_0x5b3273[_0x411ca7(0x24a)][_0x1a40d2]));}};A=k=g([h(0x4,l[_0x19990d(0x2b4)])],A);function j(_0x3bee38){'@babel/helpers - typeof';const _0x5ccc7b=_0x19990d;return j=typeof Symbol==_0x5ccc7b(0x23a)&&typeof Symbol[_0x5ccc7b(0x32f)]==_0x5ccc7b(0x19e)?function(_0x5ec979){return typeof _0x5ec979;}:function(_0x198a0d){const _0x3507c9=_0x5ccc7b;return _0x198a0d&&typeof Symbol==_0x3507c9(0x23a)&&_0x198a0d['constructor']===Symbol&&_0x198a0d!==Symbol['prototype']?_0x3507c9(0x19e):typeof _0x198a0d;},j(_0x3bee38);}function M(_0x1fb588,_0x203e16){const _0xc4e64e=_0x19990d;if(j(_0x1fb588)!=_0xc4e64e(0x2d2)||!_0x1fb588)return _0x1fb588;var _0x44be80=_0x1fb588[Symbol[_0xc4e64e(0x29a)]];if(_0x44be80!==void 0x0){var _0x15e82f=_0x44be80['call'](_0x1fb588,_0x203e16||_0xc4e64e(0x318));if(j(_0x15e82f)!=_0xc4e64e(0x2d2))return _0x15e82f;throw TypeError(_0xc4e64e(0x278));}return(_0x203e16===_0xc4e64e(0x2f9)?String:Number)(_0x1fb588);}function N(_0x3a906e){const _0x155227=_0x19990d;var _0x158d2b=M(_0x3a906e,'string');return j(_0x158d2b)==_0x155227(0x19e)?_0x158d2b:_0x158d2b+'';}function P(_0x27433b,_0x25ca29,_0x49a83b){return(_0x25ca29=N(_0x25ca29))in _0x27433b?Object['defineProperty'](_0x27433b,_0x25ca29,{'value':_0x49a83b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27433b[_0x25ca29]=_0x49a83b,_0x27433b;}var F;let I=F=class extends u[_0x19990d(0x2d1)]{constructor(_0x231dfe,_0x5f07e5,_0x59a4ad,_0x1aef30,_0x5eb1a8,_0x419368){const _0x5a56d6=_0x19990d;super(_0x1aef30),this[_0x5a56d6(0x240)]=_0x231dfe,this['_table']=_0x5f07e5,this[_0x5a56d6(0x262)]=_0x59a4ad,this[_0x5a56d6(0x1f8)]=_0x1aef30,this[_0x5a56d6(0x2b2)]=_0x5eb1a8,this['_permissionService']=_0x419368,P(this,'_baseUnitId',void 0x0),P(this,_0x5a56d6(0x281),void 0x0),this[_0x5a56d6(0x1a3)]=_0x231dfe[_0x5a56d6(0x2a2)](),this[_0x5a56d6(0x281)]=_0x5f07e5['getId']();}['getBaseFacade'](){const _0x374ac7=_0x19990d;return this[_0x374ac7(0x240)];}[_0x19990d(0x1cf)](){const _0x534713=_0x19990d;return this[_0x534713(0x191)];}['getId'](){const _0x16fb2e=_0x19990d;return this[_0x16fb2e(0x262)];}[_0x19990d(0x24f)](){const _0x93f045=_0x19990d;let _0x3afcf7=this[_0x93f045(0x191)][_0x93f045(0x2a2)]();return new m(this[_0x93f045(0x240)][_0x93f045(0x2a2)](),(0x0,c[_0x93f045(0x233)])(_0x3afcf7,this[_0x93f045(0x262)]),[(0x0,c[_0x93f045(0x200)])(_0x3afcf7)],this[_0x93f045(0x2b2)],this['_permissionService']);}['getRecord'](){const _0xe4e8b0=_0x19990d;return{...this['_getRecord'](),'values':this[_0xe4e8b0(0x2f4)]()};}[_0x19990d(0x1c5)](_0x7349e9){const _0x17b85f=_0x19990d;return y(this['_table'][_0x17b85f(0x2a7)]()[_0x17b85f(0x24a)][_0x7349e9])?this['_getRecord']()['values'][_0x7349e9]??null:null;}['getValues'](){const _0x303dc1=_0x19990d;let _0x572773=this[_0x303dc1(0x191)][_0x303dc1(0x2a7)]();return Object[_0x303dc1(0x24e)](Object[_0x303dc1(0x2a5)](this[_0x303dc1(0x26f)]()[_0x303dc1(0x209)])[_0x303dc1(0x2f0)](([_0x25fa8c])=>y(_0x572773['fields'][_0x25fa8c])));}[_0x19990d(0x307)](_0x9592e8,_0x507d24){const _0x1204d6=_0x19990d;let _0xa99da6=this[_0x1204d6(0x191)][_0x1204d6(0x2a7)]()[_0x1204d6(0x24a)][_0x9592e8];return this[_0x1204d6(0x2b2)][_0x1204d6(0x29f)](c['UpdateBaseCellCommand']['id'],{'unitId':this[_0x1204d6(0x240)]['getId'](),'tableId':this['_table'][_0x1204d6(0x2a2)](),'recordId':this[_0x1204d6(0x262)],'fieldId':_0x9592e8,'value':x(_0xa99da6,_0x507d24),'source':c['BaseEventSource'][_0x1204d6(0x2e7)]});}['setAttachments'](_0x41dd31,_0x35f22a){const _0x596286=_0x19990d;return this[_0x596286(0x307)](_0x41dd31,_0x35f22a[_0x596286(0x24d)](_0x17daa3=>({..._0x17daa3})));}['getAttachments'](_0x153344){const _0x336137=_0x19990d;this[_0x336137(0x1d9)](_0x153344);let _0xdc1ece=this[_0x336137(0x1c5)](_0x153344);return Array[_0x336137(0x2b1)](_0xdc1ece)?_0xdc1ece[_0x336137(0x24d)]((_0x20cf9a,_0x2b1ef8)=>R(_0x20cf9a,_0x153344,_0x2b1ef8)):[];}['deleteAttachments'](_0x2f8ed3,_0x560ad0){const _0x5d9fe2=_0x19990d;this['_getAttachmentField'](_0x2f8ed3);let _0x161937=new Set(_0x560ad0[_0x5d9fe2(0x24d)](_0x4861b4=>_0x4861b4['id']));if(!_0x161937[_0x5d9fe2(0x2b6)])return!0x0;let _0x425c04=this[_0x5d9fe2(0x1f4)](_0x2f8ed3),_0x4429f9=_0x425c04[_0x5d9fe2(0x2f0)](_0x5bffa8=>!_0x161937['has'](_0x5bffa8['id']));return _0x4429f9[_0x5d9fe2(0x32b)]===_0x425c04['length']||this[_0x5d9fe2(0x1e8)](_0x2f8ed3,_0x4429f9);}[_0x19990d(0x28a)](_0x5c6005,_0x235eb4='id'){const _0x33b6ac=_0x19990d;let _0x389e1b=this[_0x33b6ac(0x191)][_0x33b6ac(0x2a7)](),_0x484363=[{'recordId':this[_0x33b6ac(0x262)],'values':b(_0x389e1b,_0x5c6005,_0x235eb4)}];return this[_0x33b6ac(0x2b2)][_0x33b6ac(0x29f)](c[_0x33b6ac(0x189)]['id'],{'unitId':this['_base'][_0x33b6ac(0x2a2)](),'tableId':this[_0x33b6ac(0x191)][_0x33b6ac(0x2a2)](),'patches':_0x484363,'source':c[_0x33b6ac(0x272)][_0x33b6ac(0x2e7)]});}['delete'](){const _0x50aac7=_0x19990d;return this['_commandService'][_0x50aac7(0x29f)](c[_0x50aac7(0x213)]['id'],{'unitId':this[_0x50aac7(0x240)][_0x50aac7(0x2a2)](),'tableId':this[_0x50aac7(0x191)][_0x50aac7(0x2a2)](),'recordId':this[_0x50aac7(0x262)],'source':c['BaseEventSource'][_0x50aac7(0x2e7)]});}['duplicate'](_0x35425e){const _0x66e924=_0x19990d;let _0xdb2b24={...this[_0x66e924(0x26f)](),..._0x35425e,'id':(0x0,l[_0x66e924(0x1d0)])(0x6)};_0xdb2b24[_0x66e924(0x209)]={..._0xdb2b24[_0x66e924(0x209)],..._0x35425e==null?void 0x0:_0x35425e[_0x66e924(0x209)]},Reflect[_0x66e924(0x1e1)](_0xdb2b24[_0x66e924(0x209)],l[_0x66e924(0x33b)]);let _0x5532b3=Date[_0x66e924(0x25b)]();if(_0xdb2b24[_0x66e924(0x263)]||=''+_0x5532b3,_0xdb2b24[_0x66e924(0x302)]||=_0x5532b3,_0xdb2b24['updatedAt']||=_0x5532b3,!this['_commandService'][_0x66e924(0x29f)](c[_0x66e924(0x215)]['id'],{'unitId':this[_0x66e924(0x240)][_0x66e924(0x2a2)](),'tableId':this[_0x66e924(0x191)]['getId'](),'sourceRecordId':this['_recordId'],'record':_0xdb2b24,'source':c[_0x66e924(0x272)]['Facade']}))throw Error(_0x66e924(0x26d)+this[_0x66e924(0x262)]+'\x22.');return this[_0x66e924(0x1f8)][_0x66e924(0x2b3)](F,this[_0x66e924(0x240)],this['_table'],_0xdb2b24['id'],this['_injector']);}[_0x19990d(0x2b8)](_0x236a19){const _0x584e36=_0x19990d;return this[_0x584e36(0x2b2)][_0x584e36(0x29f)](c[_0x584e36(0x1ed)]['id'],{'unitId':this['_base'][_0x584e36(0x2a2)](),'tableId':this[_0x584e36(0x191)][_0x584e36(0x2a2)](),'recordId':this['_recordId'],'orderKey':_0x236a19});}[_0x19990d(0x27d)](_0x239bbb){const _0x2ee3e5=_0x19990d;let _0x351d4f=this[_0x2ee3e5(0x280)](_0x239bbb),_0x37a51d=this[_0x2ee3e5(0x1c5)](_0x351d4f['id']);return(0x0,c[_0x2ee3e5(0x2cb)])(_0x37a51d);}[_0x19990d(0x210)](_0x490cb2,_0x3dca99){const _0x49b1ec=_0x19990d;let _0x23f09f=this[_0x49b1ec(0x280)](_0x490cb2),_0x4882f2=(0x0,c['serializeRecordLinkIds'])(_0x3dca99),_0x2eac88=(0x0,c[_0x49b1ec(0x1f1)])(this[_0x49b1ec(0x240)][_0x49b1ec(0x30b)]()[_0x49b1ec(0x28e)](),_0x23f09f,_0x4882f2);if(!_0x2eac88[_0x49b1ec(0x23e)])throw Error(_0x2eac88[_0x49b1ec(0x26a)]??'[FRecord]:\x20invalid\x20RecordLink\x20value.');return this[_0x49b1ec(0x2b2)][_0x49b1ec(0x29f)](c[_0x49b1ec(0x21f)]['id'],{'unitId':this[_0x49b1ec(0x240)][_0x49b1ec(0x2a2)](),'tableId':this['_table'][_0x49b1ec(0x2a2)](),'recordId':this[_0x49b1ec(0x262)],'fieldId':_0x490cb2,'value':_0x4882f2,'source':c['BaseEventSource'][_0x49b1ec(0x2e7)]});}['addLinkedRecord'](_0x35bebc,_0x3e36f9){const _0x380d3e=_0x19990d;let _0x24810f=this[_0x380d3e(0x280)](_0x35bebc),_0x287cca=(0x0,c['getRecordLinkFieldConfig'])(_0x24810f);if(!_0x287cca)throw Error(_0x380d3e(0x28d)+_0x35bebc+_0x380d3e(0x2dc));let _0x500930=this[_0x380d3e(0x27d)](_0x35bebc);return _0x287cca[_0x380d3e(0x2db)]&&_0x500930[_0x380d3e(0x219)](_0x3e36f9)?!0x0:this['setLinkedRecordIds'](_0x35bebc,_0x287cca[_0x380d3e(0x2db)]?[..._0x500930,_0x3e36f9]:[_0x3e36f9]);}['removeLinkedRecord'](_0x100741,_0x4f777b){const _0x152ec0=_0x19990d;let _0xf3a0ad=this[_0x152ec0(0x27d)](_0x100741);return!_0xf3a0ad[_0x152ec0(0x219)](_0x4f777b)||this[_0x152ec0(0x210)](_0x100741,_0xf3a0ad[_0x152ec0(0x2f0)](_0x3c392b=>_0x3c392b!==_0x4f777b));}[_0x19990d(0x197)](_0x1a6fd5){const _0x284b70=_0x19990d;let _0x354729=this[_0x284b70(0x1d1)](_0x1a6fd5)[_0x284b70(0x24b)][_0x284b70(0x289)](this[_0x284b70(0x262)])??null;return _0x354729?this[_0x284b70(0x191)][_0x284b70(0x235)](_0x354729):null;}[_0x19990d(0x2af)](_0x5c0659){const _0x31bed8=_0x19990d;return(this[_0x31bed8(0x1d1)](_0x5c0659)[_0x31bed8(0x1f0)]['get'](this[_0x31bed8(0x262)])??[])[_0x31bed8(0x237)](_0x3a2f36=>{const _0x3c951e=_0x31bed8;let _0xca895e=this[_0x3c951e(0x191)][_0x3c951e(0x235)](_0x3a2f36);return _0xca895e?[_0xca895e]:[];});}[_0x19990d(0x288)](_0x88a5ed){const _0x1ff314=_0x19990d;let _0x5a035a=this[_0x1ff314(0x1d1)](_0x88a5ed),_0xc28195=[],_0x28a072=_0x5a035a['parentByRecordId'][_0x1ff314(0x289)](this[_0x1ff314(0x262)])??null;for(;_0x28a072;){let _0x31a250=this[_0x1ff314(0x191)][_0x1ff314(0x235)](_0x28a072);_0x31a250&&_0xc28195['push'](_0x31a250),_0x28a072=_0x5a035a[_0x1ff314(0x24b)][_0x1ff314(0x289)](_0x28a072)??null;}return _0xc28195;}[_0x19990d(0x214)](_0x9b9023){const _0x4de33d=_0x19990d;let _0x894fe2=this[_0x4de33d(0x1d1)](_0x9b9023),_0x528b53=_0x894fe2[_0x4de33d(0x31b)]['indexOf'](this[_0x4de33d(0x262)]),_0x1edad5=_0x894fe2[_0x4de33d(0x2e2)][_0x4de33d(0x315)](this[_0x4de33d(0x262)])?this['_collectDescendantIds'](_0x894fe2[_0x4de33d(0x1f0)],this['_recordId']):[];return _0x528b53<0x0?[]:_0x1edad5[_0x4de33d(0x237)](_0x34d355=>{const _0x59287b=_0x4de33d;let _0x5eb1d2=this[_0x59287b(0x191)][_0x59287b(0x235)](_0x34d355);return _0x5eb1d2?[_0x5eb1d2]:[];});}[_0x19990d(0x2bd)](_0x9b3bb6,_0x26b12d,_0x4c45f0){const _0x13f862=_0x19990d;return this[_0x13f862(0x2b2)][_0x13f862(0x29f)](c[_0x13f862(0x1a2)]['id'],{'unitId':this['_base'][_0x13f862(0x2a2)](),'tableId':this[_0x13f862(0x191)]['getId'](),'fieldId':_0x9b3bb6,'recordId':this['_recordId'],'parentRecordId':_0x26b12d,'orderKey':_0x4c45f0,'source':c[_0x13f862(0x272)][_0x13f862(0x2e7)]});}[_0x19990d(0x2b0)](_0x592949,_0xde6745,_0xe9d271='id',_0x2993ea){const _0x3d1d18=_0x19990d;let _0x339a8a=this['_table'][_0x3d1d18(0x2a7)](),_0x46615e=Date[_0x3d1d18(0x25b)](),_0xf45eac={..._0x2993ea,'id':(0x0,l[_0x3d1d18(0x1d0)])(0x6),'values':b(_0x339a8a,_0xde6745,_0xe9d271),'orderKey':(_0x2993ea==null?void 0x0:_0x2993ea[_0x3d1d18(0x263)])||''+_0x46615e,'createdAt':(_0x2993ea==null?void 0x0:_0x2993ea[_0x3d1d18(0x302)])||_0x46615e,'updatedAt':(_0x2993ea==null?void 0x0:_0x2993ea[_0x3d1d18(0x1f6)])||_0x46615e};if(!this['_commandService'][_0x3d1d18(0x29f)](c[_0x3d1d18(0x19d)]['id'],{'unitId':this['_base'][_0x3d1d18(0x2a2)](),'tableId':this[_0x3d1d18(0x191)][_0x3d1d18(0x2a2)](),'fieldId':_0x592949,'parentRecordId':this[_0x3d1d18(0x262)],'record':_0xf45eac,'source':c[_0x3d1d18(0x272)][_0x3d1d18(0x2e7)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x3d1d18(0x262)]+'\x22.');return this[_0x3d1d18(0x1f8)][_0x3d1d18(0x2b3)](F,this[_0x3d1d18(0x240)],this[_0x3d1d18(0x191)],_0xf45eac['id'],this[_0x3d1d18(0x1f8)]);}[_0x19990d(0x1d1)](_0x1be5b5){const _0x58f721=_0x19990d;return(0x0,c[_0x58f721(0x1a0)])(this[_0x58f721(0x191)][_0x58f721(0x2a7)](),_0x1be5b5);}['_collectDescendantIds'](_0x3a1b4d,_0x3e87b8){let _0x3fc409=[],_0x421df5=_0x107394=>{const _0x235dbd=_0x3b36;for(let _0x362d67 of _0x3a1b4d['get'](_0x107394)??[])_0x3fc409[_0x235dbd(0x1b4)](_0x362d67),_0x421df5(_0x362d67);};return _0x421df5(_0x3e87b8),_0x3fc409;}[_0x19990d(0x26f)](){const _0x55db7a=_0x19990d;let _0x4ee7f6=this[_0x55db7a(0x191)][_0x55db7a(0x2a7)]()[_0x55db7a(0x251)][this[_0x55db7a(0x262)]];if(!_0x4ee7f6)throw Error(_0x55db7a(0x241)+this['_recordId']+_0x55db7a(0x192));return _0x4ee7f6;}[_0x19990d(0x280)](_0x1d9537){const _0x5ae40d=_0x19990d;let _0x3aa594=this['_table'][_0x5ae40d(0x2a7)]()[_0x5ae40d(0x24a)][_0x1d9537];if(!_0x3aa594||_0x3aa594[_0x5ae40d(0x258)]!==l[_0x5ae40d(0x1a8)][_0x5ae40d(0x18d)])throw Error(_0x5ae40d(0x1c1)+_0x1d9537+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x3aa594;}[_0x19990d(0x1d9)](_0x5bf45b){const _0x33e053=_0x19990d;let _0x3bb4a5=this[_0x33e053(0x191)][_0x33e053(0x2a7)]()['fields'][_0x5bf45b];if(!_0x3bb4a5||_0x3bb4a5['type']!==l[_0x33e053(0x1a8)][_0x33e053(0x287)])throw Error('[FRecord]:\x20field\x20\x22'+_0x5bf45b+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x3bb4a5;}};I=F=g([h(0x4,l[_0x19990d(0x2b4)]),h(0x5,l[_0x19990d(0x18f)])],I);function L(_0xf0ffe1){const _0x5cbcee=_0x19990d;return!!(_0xf0ffe1&&typeof _0xf0ffe1==_0x5cbcee(0x2d2)&&'id'in _0xf0ffe1&&typeof _0xf0ffe1['id']=='string'&&'name'in _0xf0ffe1&&typeof _0xf0ffe1[_0x5cbcee(0x19c)]=='string');}function R(_0x979c0c,_0x5d6409,_0x16268b){const _0x8bc13b=_0x19990d;if(!L(_0x979c0c))throw Error(_0x8bc13b(0x2b7)+_0x16268b+_0x8bc13b(0x2d7)+_0x5d6409+'\x22\x20is\x20invalid.');return{..._0x979c0c};}let z=class{constructor(_0x142a48,_0xbce33b,_0x31da83,_0x561241,_0xd631fd,_0x452939,_0x2e0138){const _0xf2e6e0=_0x19990d;this[_0xf2e6e0(0x240)]=_0x142a48,this[_0xf2e6e0(0x191)]=_0xbce33b,this[_0xf2e6e0(0x194)]=_0x31da83,this[_0xf2e6e0(0x1f8)]=_0x561241,this[_0xf2e6e0(0x2b2)]=_0xd631fd,this[_0xf2e6e0(0x2fe)]=_0x452939,this[_0xf2e6e0(0x193)]=_0x2e0138;}[_0x19990d(0x2a2)](){return this['_viewId'];}['getPermission'](){const _0xbb8ca8=_0x19990d;let _0x316659=this[_0xbb8ca8(0x191)][_0xbb8ca8(0x2a2)]();return new m(this['_base']['getId'](),(0x0,c[_0xbb8ca8(0x1c2)])(_0x316659,this['_viewId']),[(0x0,c[_0xbb8ca8(0x200)])(_0x316659)],this[_0xbb8ca8(0x2b2)],this['_permissionService']);}[_0x19990d(0x226)](){const _0x2f95db=_0x19990d;return this[_0x2f95db(0x18e)]();}['getName'](){const _0x493808=_0x19990d;return this[_0x493808(0x18e)]()['name'];}[_0x19990d(0x22e)](){const _0x2417f0=_0x19990d;return this['_getView']()[_0x2417f0(0x258)];}[_0x19990d(0x2ef)](_0x2b610a){const _0x256eff=_0x19990d;return this[_0x256eff(0x2b2)][_0x256eff(0x29f)](c[_0x256eff(0x1c7)]['id'],{'unitId':this[_0x256eff(0x240)]['getId'](),'tableId':this[_0x256eff(0x191)]['getId'](),'viewId':this[_0x256eff(0x194)],'name':_0x2b610a});}[_0x19990d(0x1bb)](){const _0x30033c=_0x19990d;let _0x1e6142=this['getType'](),_0x3b6ab7=this['_getView']()[_0x30033c(0x206)];switch(_0x1e6142){case l['BaseViewType'][_0x30033c(0x228)]:return _0x3b6ab7;case l[_0x30033c(0x1e4)]['Kanban']:return _0x3b6ab7;case l['BaseViewType'][_0x30033c(0x2a0)]:return _0x3b6ab7;case l[_0x30033c(0x1e4)][_0x30033c(0x2cf)]:return _0x3b6ab7;case l['BaseViewType'][_0x30033c(0x322)]:return _0x3b6ab7;default:return _0x3b6ab7;}}['updateConfig'](_0x57fe45){const _0x28d7aa=_0x19990d;return this[_0x28d7aa(0x2b2)][_0x28d7aa(0x29f)](c[_0x28d7aa(0x1d3)]['id'],{'unitId':this[_0x28d7aa(0x240)]['getId'](),'tableId':this['_table'][_0x28d7aa(0x2a2)](),'viewId':this[_0x28d7aa(0x194)],'patch':_0x57fe45});}[_0x19990d(0x309)](){const _0x2f2fcd=_0x19990d;var _0x376b38;return l[_0x2f2fcd(0x1e0)][_0x2f2fcd(0x2ad)](((_0x376b38=this['_getView']()['config'][_0x2f2fcd(0x2c3)])==null?void 0x0:_0x376b38['rules'])??[]);}['setConditionalColorRules'](_0x45f569){const _0x222e4b=_0x19990d;return this['_commandService'][_0x222e4b(0x29f)](c[_0x222e4b(0x2cc)]['id'],{'unitId':this[_0x222e4b(0x240)][_0x222e4b(0x2a2)](),'tableId':this[_0x222e4b(0x191)][_0x222e4b(0x2a2)](),'viewId':this[_0x222e4b(0x194)],'type':c['BaseConditionalColorRuleUpdateType'][_0x222e4b(0x2dd)],'rules':_0x45f569});}[_0x19990d(0x1a5)](_0x5f580a){const _0x47ec68=_0x19990d;return this['_commandService'][_0x47ec68(0x29f)](c[_0x47ec68(0x2cc)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x47ec68(0x191)]['getId'](),'viewId':this[_0x47ec68(0x194)],'type':c[_0x47ec68(0x1cc)][_0x47ec68(0x311)],'rule':_0x5f580a});}['deleteConditionalColorRule'](_0x3dcf72){const _0x50bf61=_0x19990d;return this['_commandService'][_0x50bf61(0x29f)](c['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x50bf61(0x240)][_0x50bf61(0x2a2)](),'tableId':this['_table'][_0x50bf61(0x2a2)](),'viewId':this[_0x50bf61(0x194)],'type':c[_0x50bf61(0x1cc)][_0x50bf61(0x22c)],'ruleId':_0x3dcf72});}[_0x19990d(0x202)](){const _0x52ff0e=_0x19990d;return this[_0x52ff0e(0x2b2)][_0x52ff0e(0x29f)](c[_0x52ff0e(0x2cc)]['id'],{'unitId':this['_base'][_0x52ff0e(0x2a2)](),'tableId':this[_0x52ff0e(0x191)][_0x52ff0e(0x2a2)](),'viewId':this['_viewId'],'type':c['BaseConditionalColorRuleUpdateType'][_0x52ff0e(0x2e8)]});}[_0x19990d(0x244)](){const _0x1e6a70=_0x19990d;return this[_0x1e6a70(0x18e)]()['filter']??null;}[_0x19990d(0x2df)](_0x43483e){const _0x295ec1=_0x19990d;return this[_0x295ec1(0x2b2)]['syncExecuteCommand'](c[_0x295ec1(0x264)]['id'],{'unitId':this['_base'][_0x295ec1(0x2a2)](),'tableId':this[_0x295ec1(0x191)][_0x295ec1(0x2a2)](),'viewId':this['_viewId'],'filter':_0x43483e});}[_0x19990d(0x217)](){const _0x19ae11=_0x19990d;return this[_0x19ae11(0x18e)]()[_0x19ae11(0x2e6)]??[];}[_0x19990d(0x30a)](_0xbb5006){const _0x1b7912=_0x19990d;return this[_0x1b7912(0x2b2)][_0x1b7912(0x29f)](c['SetBaseViewSortCommand']['id'],{'unitId':this[_0x1b7912(0x240)][_0x1b7912(0x2a2)](),'tableId':this['_table']['getId'](),'viewId':this['_viewId'],'sort':_0xbb5006});}[_0x19990d(0x2a3)](){const _0x527cf1=_0x19990d;return this[_0x527cf1(0x18e)]()[_0x527cf1(0x305)]??[];}[_0x19990d(0x188)](_0xa7dbe){const _0x2c3d6a=_0x19990d;return this['_commandService'][_0x2c3d6a(0x29f)](c[_0x2c3d6a(0x1dd)]['id'],{'unitId':this[_0x2c3d6a(0x240)][_0x2c3d6a(0x2a2)](),'tableId':this[_0x2c3d6a(0x191)][_0x2c3d6a(0x2a2)](),'viewId':this[_0x2c3d6a(0x194)],'group':_0xa7dbe});}[_0x19990d(0x207)](_0x2d4137){const _0x20eef1=_0x19990d;var _0x11c20b;return y(this[_0x20eef1(0x191)][_0x20eef1(0x2a7)]()[_0x20eef1(0x24a)][_0x2d4137])?((_0x11c20b=this['_getView']()[_0x20eef1(0x29b)])==null?void 0x0:_0x11c20b[_0x2d4137])??{}:{};}['getVisibleFields'](){const _0x346b72=_0x19990d;let _0x1a19f4=this[_0x346b72(0x191)][_0x346b72(0x2a7)](),_0x3bbd63=this[_0x346b72(0x18e)]();return(_0x3bbd63[_0x346b72(0x277)]??_0x1a19f4[_0x346b72(0x277)])[_0x346b72(0x2f0)](_0xa595ed=>{const _0x432c29=_0x346b72;var _0x5d7ddd;let _0x4572da=_0x1a19f4[_0x432c29(0x24a)][_0xa595ed];return y(_0x4572da)&&!((_0x5d7ddd=_0x3bbd63['fieldSettings'])!=null&&(_0x5d7ddd=_0x5d7ddd[_0xa595ed])!=null&&_0x5d7ddd[_0x432c29(0x1c4)]);})[_0x346b72(0x24d)](_0x40b9c6=>this[_0x346b72(0x1f8)][_0x346b72(0x2b3)](_,this[_0x346b72(0x240)],this[_0x346b72(0x191)],_0x40b9c6));}[_0x19990d(0x261)](_0x33237b,_0x126f54){const _0xf7f277=_0x19990d;return y(this[_0xf7f277(0x191)][_0xf7f277(0x2a7)]()[_0xf7f277(0x24a)][_0x33237b])?this[_0xf7f277(0x2b2)][_0xf7f277(0x29f)](c[_0xf7f277(0x33d)]['id'],{'unitId':this[_0xf7f277(0x240)]['getId'](),'tableId':this[_0xf7f277(0x191)]['getId'](),'viewId':this[_0xf7f277(0x194)],'fieldId':_0x33237b,'visible':_0x126f54}):!0x1;}['setFieldWidth'](_0x1d4fc8,_0x103e88){const _0x445edd=_0x19990d;return y(this[_0x445edd(0x191)]['getTable']()[_0x445edd(0x24a)][_0x1d4fc8])?this['_commandService'][_0x445edd(0x29f)](c['SetBaseViewFieldWidthCommand']['id'],{'unitId':this[_0x445edd(0x240)][_0x445edd(0x2a2)](),'tableId':this['_table'][_0x445edd(0x2a2)](),'viewId':this[_0x445edd(0x194)],'fieldId':_0x1d4fc8,'width':_0x103e88}):!0x1;}[_0x19990d(0x2d6)](_0x5824a2,_0x34b1b0){const _0x2915cc=_0x19990d;let _0x431873=this[_0x2915cc(0x191)][_0x2915cc(0x2a7)](),_0x32ed3b=_0x34b1b0[_0x2915cc(0x2ff)]??_0x34b1b0['afterFieldId'];return!y(_0x431873[_0x2915cc(0x24a)][_0x5824a2])||!_0x32ed3b||!y(_0x431873[_0x2915cc(0x24a)][_0x32ed3b])?!0x1:this[_0x2915cc(0x2b2)][_0x2915cc(0x29f)](c[_0x2915cc(0x325)]['id'],{'unitId':this[_0x2915cc(0x240)][_0x2915cc(0x2a2)](),'tableId':this[_0x2915cc(0x191)][_0x2915cc(0x2a2)](),'viewId':this[_0x2915cc(0x194)],'fieldId':_0x5824a2,'target':_0x34b1b0});}[_0x19990d(0x28b)](_0x25b482){const _0x17079f=_0x19990d;return this[_0x17079f(0x2b2)]['syncExecuteCommand'](c[_0x17079f(0x308)]['id'],{'unitId':this[_0x17079f(0x240)]['getId'](),'tableId':this[_0x17079f(0x191)][_0x17079f(0x2a2)](),'viewId':this[_0x17079f(0x194)],'target':_0x25b482});}['delete'](){const _0x37c02d=_0x19990d;return this[_0x37c02d(0x2b2)]['syncExecuteCommand'](c[_0x37c02d(0x22a)]['id'],{'unitId':this[_0x37c02d(0x240)]['getId'](),'tableId':this[_0x37c02d(0x191)][_0x37c02d(0x2a2)](),'viewId':this[_0x37c02d(0x194)]});}[_0x19990d(0x19b)](){const _0x303601=_0x19990d;return this[_0x303601(0x193)][_0x303601(0x19b)](this['_base'][_0x303601(0x30b)]()[_0x303601(0x28e)](),this['_table']['getId'](),this['_viewId']);}['_getView'](){const _0x371e6c=_0x19990d;let _0x43564b=this[_0x371e6c(0x191)][_0x371e6c(0x2a7)]()[_0x371e6c(0x2e3)][this[_0x371e6c(0x194)]];if(!_0x43564b)throw Error(_0x371e6c(0x296)+this[_0x371e6c(0x194)]+_0x371e6c(0x192));return _0x43564b;}};z=g([h(0x4,l[_0x19990d(0x2b4)]),h(0x5,l[_0x19990d(0x18f)]),h(0x6,c[_0x19990d(0x2ac)])],z);let B=class{constructor(_0x4cdda7,_0x452eb4,_0x302634,_0x1a18df,_0x1db4bb,_0x2caaaa){const _0x56b719=_0x19990d;this[_0x56b719(0x240)]=_0x4cdda7,this[_0x56b719(0x199)]=_0x452eb4,this['_injector']=_0x302634,this['_commandService']=_0x1a18df,this[_0x56b719(0x2fe)]=_0x1db4bb,this[_0x56b719(0x193)]=_0x2caaaa;}[_0x19990d(0x30b)](){const _0x5c3824=_0x19990d;return this[_0x5c3824(0x240)]['getBase']();}[_0x19990d(0x2a7)](){return this['_getTable']();}[_0x19990d(0x2a2)](){const _0x51746b=_0x19990d;return this[_0x51746b(0x199)];}[_0x19990d(0x24f)](){const _0x500085=_0x19990d;return new m(this[_0x500085(0x30b)]()[_0x500085(0x1d6)](),(0x0,c[_0x500085(0x200)])(this['_tableId']),[],this[_0x500085(0x2b2)],this[_0x500085(0x2fe)]);}['getHierarchyFieldId'](){const _0x549585=_0x19990d;return(0x0,c[_0x549585(0x2be)])(this['_getTable']());}[_0x19990d(0x2c8)](_0x26379e){const _0x39b2b9=_0x19990d;return this[_0x39b2b9(0x2b2)]['syncExecuteCommand'](c[_0x39b2b9(0x1c0)]['id'],{'unitId':this[_0x39b2b9(0x240)][_0x39b2b9(0x2a2)](),'tableId':this[_0x39b2b9(0x199)],'fieldId':_0x26379e});}[_0x19990d(0x26c)](){const _0x4ab4a5=_0x19990d;return this[_0x4ab4a5(0x30f)]()[_0x4ab4a5(0x19c)];}[_0x19990d(0x286)](){const _0x35bb2f=_0x19990d;let _0x28c938=this[_0x35bb2f(0x240)]['getBase']()[_0x35bb2f(0x28e)]();return(0x0,c[_0x35bb2f(0x1ca)])(this[_0x35bb2f(0x30f)](),_0x28c938);}[_0x19990d(0x2ef)](_0x44020a){const _0x203bdc=_0x19990d;let _0x2a2700=(0x0,c[_0x203bdc(0x247)])(this[_0x203bdc(0x240)][_0x203bdc(0x30b)]()['getSnapshot'](),_0x44020a,this[_0x203bdc(0x199)]);if(!_0x2a2700[_0x203bdc(0x23e)])throw Error(_0x203bdc(0x30c)+_0x44020a+_0x203bdc(0x2d3)+c['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0x2a2700[_0x203bdc(0x26a)]);return this['_commandService'][_0x203bdc(0x29f)](c[_0x203bdc(0x2c1)]['id'],{'unitId':this[_0x203bdc(0x240)][_0x203bdc(0x2a2)](),'tableId':this['_tableId'],'name':_0x44020a});}[_0x19990d(0x19f)](_0x57a616,_0x13fe46){const _0x152aaa=_0x19990d;let _0x515700=this[_0x152aaa(0x240)]['getBase']()[_0x152aaa(0x28e)](),_0xa7ad67=this[_0x152aaa(0x30f)]();if(_0x13fe46){let _0x2dd481=this[_0x152aaa(0x193)]['getProjection'](_0x515700,this[_0x152aaa(0x199)],_0x13fe46),_0x451cb4=_0xa7ad67[_0x152aaa(0x2e3)][_0x13fe46],_0x2b0b95=_0x57a616[_0x152aaa(0x31e)]??J(_0xa7ad67,_0x451cb4,_0x2dd481),_0x29fda7=_0x152aaa(0x232)in _0x2dd481&&Array[_0x152aaa(0x2b1)](_0x2dd481[_0x152aaa(0x232)])?_0x2dd481[_0x152aaa(0x232)]:[];return(0x0,c[_0x152aaa(0x2c9)])({..._0x57a616,'table':_0xa7ad67,'fieldIds':_0x2b0b95,'rows':_0x29fda7});}let _0x40ad6a=(_0xa7ad67[_0x152aaa(0x204)]?_0xa7ad67[_0x152aaa(0x204)][_0x152aaa(0x24d)](_0x3ac5b1=>_0xa7ad67[_0x152aaa(0x251)][_0x3ac5b1]):Object[_0x152aaa(0x209)](_0xa7ad67['records'])[_0x152aaa(0x2e6)]((_0x4d7568,_0x3ce0b5)=>_0x4d7568['orderKey'][_0x152aaa(0x212)](_0x3ce0b5['orderKey'])))[_0x152aaa(0x2f0)](_0x5d3762=>_0x5d3762)['map'](_0x5b3671=>({'recordId':_0x5b3671['id'],'values':_0x5b3671[_0x152aaa(0x209)]})),_0x34f8f1=_0x57a616[_0x152aaa(0x31e)]??_0xa7ad67[_0x152aaa(0x277)][_0x152aaa(0x2f0)](_0x15ebab=>y(_0xa7ad67[_0x152aaa(0x24a)][_0x15ebab]));return(0x0,c[_0x152aaa(0x2c9)])({..._0x57a616,'table':_0xa7ad67,'fieldIds':_0x34f8f1,'rows':_0x40ad6a});}[_0x19990d(0x238)](){const _0x34c2a7=_0x19990d;return this[_0x34c2a7(0x30f)]()['primaryFieldId'];}[_0x19990d(0x284)](){const _0x174356=_0x19990d;let _0x454a49=this[_0x174356(0x30f)]();return _0x454a49[_0x174356(0x277)][_0x174356(0x24d)](_0x9150a4=>_0x454a49[_0x174356(0x24a)][_0x9150a4])[_0x174356(0x2f0)](y)[_0x174356(0x24d)](_0x126c60=>this[_0x174356(0x1f8)][_0x174356(0x2b3)](_,this[_0x174356(0x240)],this,_0x126c60['id']));}[_0x19990d(0x2ee)](_0x2990ae){const _0x1ad191=_0x19990d;let _0x332c7c=this[_0x1ad191(0x30f)]()[_0x1ad191(0x24a)][_0x2990ae];return y(_0x332c7c)?this['_injector'][_0x1ad191(0x2b3)](_,this[_0x1ad191(0x240)],this,_0x332c7c['id']):null;}[_0x19990d(0x1e2)](_0x38f491){const _0xe1c525=_0x19990d;let _0x92e0a=this[_0xe1c525(0x30f)]()[_0xe1c525(0x24a)],_0x2e9394=Object['values'](_0x92e0a)[_0xe1c525(0x293)](_0x4c39c8=>y(_0x4c39c8)&&_0x4c39c8[_0xe1c525(0x19c)]===_0x38f491);return _0x2e9394?this[_0xe1c525(0x1f8)]['createInstance'](_,this['_base'],this,_0x2e9394['id']):null;}[_0x19990d(0x1ae)](){const _0x1e00c1=_0x19990d;let _0x2c5d6c=this[_0x1e00c1(0x30f)]()[_0x1e00c1(0x1f7)];return this[_0x1e00c1(0x1f8)][_0x1e00c1(0x2b3)](_,this[_0x1e00c1(0x240)],this,_0x2c5d6c);}[_0x19990d(0x22f)](_0x4b0581,_0x2d7343,_0x476c75){const _0x3622fa=_0x19990d;var _0x47a872,_0x2ad561;if(!Object[_0x3622fa(0x209)](l['BaseFieldType'])[_0x3622fa(0x2ca)](_0x5641d4=>_0x5641d4===_0x2d7343))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x2d7343)+'\x22.');if(_0x2d7343===l[_0x3622fa(0x1a8)][_0x3622fa(0x1ab)]&&this[_0x3622fa(0x2fb)](_0x4b0581,_0x476c75),_0x2d7343===l['BaseFieldType'][_0x3622fa(0x18d)]&&(typeof(_0x476c75==null||(_0x47a872=_0x476c75[_0x3622fa(0x27f)])==null||(_0x47a872=_0x47a872['config'])==null?void 0x0:_0x47a872[_0x3622fa(0x23b)])!=_0x3622fa(0x2f9)||typeof _0x476c75[_0x3622fa(0x27f)][_0x3622fa(0x206)][_0x3622fa(0x2db)]!=_0x3622fa(0x249)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x49b037={..._0x476c75==null?void 0x0:_0x476c75['field'],'id':(0x0,l['generateRandomId'])(0x6),'name':_0x4b0581,'type':_0x2d7343,'config':(_0x476c75==null||(_0x2ad561=_0x476c75[_0x3622fa(0x27f)])==null?void 0x0:_0x2ad561[_0x3622fa(0x206)])??{}};if(!this[_0x3622fa(0x2b2)][_0x3622fa(0x29f)](c[_0x3622fa(0x313)]['id'],{'unitId':this[_0x3622fa(0x240)][_0x3622fa(0x2a2)](),'tableId':this[_0x3622fa(0x199)],'field':_0x49b037,'index':_0x476c75==null?void 0x0:_0x476c75[_0x3622fa(0x2d8)]}))throw Error(_0x3622fa(0x274)+_0x4b0581+'\x22');return this[_0x3622fa(0x1f8)]['createInstance'](_,this[_0x3622fa(0x240)],this,_0x49b037['id']);}[_0x19990d(0x2fb)](_0x3dc768,_0x59076b){const _0x5bb07d=_0x19990d;var _0x21f9e6;if(!_0x59076b||!(_0x5bb07d(0x279)in _0x59076b)||!Array[_0x5bb07d(0x2b1)](_0x59076b[_0x5bb07d(0x279)]))throw Error(_0x5bb07d(0x2e0));let _0xc2a1d6=this[_0x5bb07d(0x2b2)][_0x5bb07d(0x29f)](c[_0x5bb07d(0x1be)]['id'],{'unitId':this['_base'][_0x5bb07d(0x2a2)](),'tableId':this[_0x5bb07d(0x199)],'formula':String(((_0x21f9e6=_0x59076b[_0x5bb07d(0x27f)])==null||(_0x21f9e6=_0x21f9e6[_0x5bb07d(0x206)])==null?void 0x0:_0x21f9e6['formula'])??'')});if(!_0xc2a1d6[_0x5bb07d(0x23e)])throw Error(_0xc2a1d6[_0x5bb07d(0x26a)]??_0x5bb07d(0x25f));if(_0x59076b[_0x5bb07d(0x279)]['length']>0x0&&!this[_0x5bb07d(0x2b2)][_0x5bb07d(0x29f)](f[_0x5bb07d(0x20a)]['id'],{'unitId':this['_base'][_0x5bb07d(0x2a2)](),'references':_0x59076b['externalReferences']}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x3dc768+'\x22');}[_0x19990d(0x32c)](){const _0x269569=_0x19990d;return this[_0x269569(0x239)]()[_0x269569(0x24d)](_0xab163a=>this[_0x269569(0x1f8)][_0x269569(0x2b3)](I,this['_base'],this,_0xab163a,this['_injector']));}[_0x19990d(0x235)](_0x33d21f){const _0xf0530b=_0x19990d;return this[_0xf0530b(0x30f)]()[_0xf0530b(0x251)][_0x33d21f]?this[_0xf0530b(0x1f8)][_0xf0530b(0x2b3)](I,this[_0xf0530b(0x240)],this,_0x33d21f,this[_0xf0530b(0x1f8)]):null;}[_0x19990d(0x299)](_0x2b2edb={}){const _0x267eb9=_0x19990d;let _0x41b9f2=this[_0x267eb9(0x30f)](),_0x1f5043=this[_0x267eb9(0x239)](_0x2b2edb),_0x4a932f=Math[_0x267eb9(0x1e3)](0x0,_0x2b2edb['offset']??0x0),_0x497681=_0x2b2edb['limit']==null?null:Math['max'](0x0,_0x2b2edb[_0x267eb9(0x1eb)]),_0x564c5b=H(_0x1f5043[_0x267eb9(0x24d)](_0x19f64f=>_0x41b9f2[_0x267eb9(0x251)][_0x19f64f])['filter'](_0x7b4def=>W(_0x7b4def,_0x41b9f2,_0x2b2edb[_0x267eb9(0x2f0)])),_0x41b9f2,_0x2b2edb[_0x267eb9(0x2e6)]);return{'records':V(_0x564c5b,_0x2b2edb)[_0x267eb9(0x24d)](_0x4773f1=>this['_injector'][_0x267eb9(0x2b3)](I,this[_0x267eb9(0x240)],this,_0x4773f1['id'],this[_0x267eb9(0x1f8)])),'total':_0x564c5b[_0x267eb9(0x32b)],'offset':_0x4a932f,'limit':_0x497681,'hasMore':_0x497681!=null&&_0x4a932f+_0x497681<_0x564c5b[_0x267eb9(0x32b)]};}[_0x19990d(0x2fa)](_0xa59238,_0x376ff6='id',_0x167798){const _0x3d7dac=_0x19990d;let _0x4d7618=this[_0x3d7dac(0x30f)](),_0x43d584=Date[_0x3d7dac(0x25b)](),_0x4afacd={..._0x167798,'id':(0x0,l['generateRandomId'])(0x6),'values':b(_0x4d7618,_0xa59238,_0x376ff6),'orderKey':(_0x167798==null?void 0x0:_0x167798[_0x3d7dac(0x263)])||''+_0x43d584,'createdAt':(_0x167798==null?void 0x0:_0x167798['createdAt'])||_0x43d584,'updatedAt':(_0x167798==null?void 0x0:_0x167798[_0x3d7dac(0x1f6)])||_0x43d584};if(!this[_0x3d7dac(0x2b2)]['syncExecuteCommand'](c['CreateBaseRecordCommand']['id'],{'unitId':this[_0x3d7dac(0x240)]['getId'](),'tableId':this[_0x3d7dac(0x199)],'record':_0x4afacd,'source':c[_0x3d7dac(0x272)][_0x3d7dac(0x2e7)]}))throw Error(_0x3d7dac(0x2aa)+_0x4afacd['id']+'\x22');return this[_0x3d7dac(0x1f8)][_0x3d7dac(0x2b3)](I,this['_base'],this,_0x4afacd['id'],this[_0x3d7dac(0x1f8)]);}['addRecords'](_0x2bd073){const _0x4f76cf=_0x19990d;if(!_0x2bd073['length'])return[];let _0x5aaa11=this[_0x4f76cf(0x30f)](),_0x5aed60=Date['now'](),_0x4e0033=_0x2bd073[_0x4f76cf(0x24d)]((_0x13abda,_0x1a77b9)=>{const _0x322c99=_0x4f76cf;var _0x15f5f6,_0x45cccd,_0xdbdaa5;return{..._0x13abda[_0x322c99(0x1a7)],'id':(0x0,l[_0x322c99(0x1d0)])(0x6),'values':b(_0x5aaa11,_0x13abda[_0x322c99(0x209)],_0x13abda[_0x322c99(0x1d4)]??'id'),'orderKey':((_0x15f5f6=_0x13abda[_0x322c99(0x1a7)])==null?void 0x0:_0x15f5f6['orderKey'])||''+(_0x5aed60+_0x1a77b9),'createdAt':((_0x45cccd=_0x13abda[_0x322c99(0x1a7)])==null?void 0x0:_0x45cccd[_0x322c99(0x302)])||_0x5aed60,'updatedAt':((_0xdbdaa5=_0x13abda[_0x322c99(0x1a7)])==null?void 0x0:_0xdbdaa5[_0x322c99(0x1f6)])||_0x5aed60};});if(!this[_0x4f76cf(0x2b2)][_0x4f76cf(0x29f)](c[_0x4f76cf(0x27e)]['id'],{'unitId':this['_base'][_0x4f76cf(0x2a2)](),'tableId':this['_tableId'],'records':_0x4e0033,'source':c['BaseEventSource'][_0x4f76cf(0x2e7)]}))throw Error(_0x4f76cf(0x271));return _0x4e0033[_0x4f76cf(0x24d)](_0x166d6d=>this[_0x4f76cf(0x1f8)][_0x4f76cf(0x2b3)](I,this[_0x4f76cf(0x240)],this,_0x166d6d['id'],this['_injector']));}[_0x19990d(0x29c)](_0x5d2e16){const _0xbd9690=_0x19990d;return!_0x5d2e16['length']||this[_0xbd9690(0x2b2)][_0xbd9690(0x29f)](c[_0xbd9690(0x294)]['id'],{'unitId':this[_0xbd9690(0x240)][_0xbd9690(0x2a2)](),'tableId':this[_0xbd9690(0x199)],'recordIds':_0x5d2e16,'source':c[_0xbd9690(0x272)][_0xbd9690(0x2e7)]});}['getRange'](_0x370194,_0x552275,_0x24f55c=0x1,_0x432baa=0x1){const _0x43a084=_0x19990d;return this[_0x43a084(0x1f8)]['createInstance'](A,this[_0x43a084(0x240)],this,{'startRow':_0x370194,'endRow':_0x370194+_0x24f55c-0x1,'startColumn':_0x552275,'endColumn':_0x552275+_0x432baa-0x1},this[_0x43a084(0x1f8)]);}[_0x19990d(0x26b)](){const _0x16b551=_0x19990d;var _0x1bc3b1;let _0xacbd4b=(0x0,c[_0x16b551(0x1ea)])(this[_0x16b551(0x30f)]()),_0x471981=((_0x1bc3b1=_0xacbd4b[_0x16b551(0x204)])==null?void 0x0:_0x1bc3b1['length'])??0x0,_0x405970=_0xacbd4b[_0x16b551(0x277)][_0x16b551(0x2f0)](_0x1d8533=>y(_0xacbd4b[_0x16b551(0x24a)][_0x1d8533]))[_0x16b551(0x32b)];return this[_0x16b551(0x292)](0x0,0x0,Math[_0x16b551(0x1e3)](_0x471981,0x1),Math[_0x16b551(0x1e3)](_0x405970,0x1));}[_0x19990d(0x2fd)](){const _0x4fc4b4=_0x19990d;let _0xdb268a=this['_getTable']();return _0xdb268a['viewOrder'][_0x4fc4b4(0x2f0)](_0x514419=>_0xdb268a['views'][_0x514419])[_0x4fc4b4(0x24d)](_0x6988e3=>this[_0x4fc4b4(0x1f8)][_0x4fc4b4(0x2b3)](z,this['_base'],this,_0x6988e3,this[_0x4fc4b4(0x1f8)]));}[_0x19990d(0x326)](_0x467c8a){const _0x474e71=_0x19990d;return this[_0x474e71(0x30f)]()[_0x474e71(0x2e3)][_0x467c8a]?this[_0x474e71(0x1f8)]['createInstance'](z,this['_base'],this,_0x467c8a,this[_0x474e71(0x1f8)]):null;}[_0x19990d(0x198)](_0x4e4b20){const _0x182b4b=_0x19990d;let _0x487938=this[_0x182b4b(0x30f)](),_0x271eb6=Object[_0x182b4b(0x209)](_0x487938[_0x182b4b(0x2e3)])[_0x182b4b(0x293)](_0x5f0676=>_0x5f0676[_0x182b4b(0x19c)]===_0x4e4b20);return _0x271eb6?this[_0x182b4b(0x1f8)]['createInstance'](z,this[_0x182b4b(0x240)],this,_0x271eb6['id'],this[_0x182b4b(0x1f8)]):null;}[_0x19990d(0x2c0)](_0x36d557,_0x11af28,_0x160e53){const _0x3480ac=_0x19990d;var _0x7e0c4e,_0x1ff81d,_0x381fd4,_0x1d2e47;let _0x5cd570=this['_getTable'](),_0x29c7f6=(_0x160e53==null||(_0x7e0c4e=_0x160e53[_0x3480ac(0x1aa)])==null?void 0x0:_0x7e0c4e[_0x3480ac(0x277)])??_0x5cd570['fieldOrder'],_0x18ad4a=[l[_0x3480ac(0x33b)],..._0x29c7f6[_0x3480ac(0x2f0)](_0x107046=>y(_0x5cd570[_0x3480ac(0x24a)][_0x107046]))],_0x5dcf72={..._0x160e53==null?void 0x0:_0x160e53[_0x3480ac(0x1aa)],'id':(0x0,l[_0x3480ac(0x1d0)])(0x6),'name':_0x36d557,'type':_0x11af28,'tableId':this['_tableId'],'config':(_0x160e53==null||(_0x1ff81d=_0x160e53[_0x3480ac(0x1aa)])==null?void 0x0:_0x1ff81d[_0x3480ac(0x206)])??{},'fieldOrder':_0x18ad4a,'fieldSettings':{..._0x160e53==null||(_0x381fd4=_0x160e53[_0x3480ac(0x1aa)])==null?void 0x0:_0x381fd4['fieldSettings'],[l[_0x3480ac(0x33b)]]:{..._0x160e53==null||(_0x1d2e47=_0x160e53[_0x3480ac(0x1aa)])==null||(_0x1d2e47=_0x1d2e47[_0x3480ac(0x29b)])==null?void 0x0:_0x1d2e47[l[_0x3480ac(0x33b)]],'hidden':!0x0}}};if(!this[_0x3480ac(0x2b2)][_0x3480ac(0x29f)](c['CreateBaseViewCommand']['id'],{'unitId':this[_0x3480ac(0x240)][_0x3480ac(0x2a2)](),'tableId':this[_0x3480ac(0x199)],'view':_0x5dcf72,'index':_0x160e53==null?void 0x0:_0x160e53[_0x3480ac(0x2d8)]}))throw Error(_0x3480ac(0x29e)+_0x36d557+'\x22');return this[_0x3480ac(0x1f8)][_0x3480ac(0x2b3)](z,this[_0x3480ac(0x240)],this,_0x5dcf72['id'],this[_0x3480ac(0x1f8)]);}[_0x19990d(0x18c)](){const _0x3abfa6=_0x19990d;let _0x156313=this[_0x3abfa6(0x30f)](),_0x31c066=_0x156313['fieldOrder'][_0x3abfa6(0x2f0)](_0x129777=>y(_0x156313[_0x3abfa6(0x24a)][_0x129777])),_0x23c3d7=_0x156313[_0x3abfa6(0x1e6)][_0x3abfa6(0x2f0)](_0x3375d9=>_0x156313[_0x3abfa6(0x2e3)][_0x3375d9]);return{'id':_0x156313['id'],'name':_0x156313[_0x3abfa6(0x19c)],'formulaName':this[_0x3abfa6(0x286)](),'primaryFieldId':_0x156313['primaryFieldId'],'fieldIds':_0x31c066,'viewIds':_0x23c3d7,'recordCount':this[_0x3abfa6(0x239)]()[_0x3abfa6(0x32b)],'fields':_0x31c066[_0x3abfa6(0x24d)](_0x388029=>{const _0x52b94b=_0x3abfa6;let _0x2101bc=_0x156313[_0x52b94b(0x24a)][_0x388029];return{'id':_0x2101bc['id'],'name':_0x2101bc[_0x52b94b(0x19c)],'type':_0x2101bc[_0x52b94b(0x258)],'config':_0x2101bc['config'],'readonly':_0x2101bc[_0x52b94b(0x1d5)],'description':_0x2101bc[_0x52b94b(0x291)]};}),'views':_0x23c3d7[_0x3abfa6(0x24d)](_0x15e06d=>{const _0x4672b2=_0x3abfa6;let _0x5215ef=_0x156313[_0x4672b2(0x2e3)][_0x15e06d];return{'id':_0x5215ef['id'],'name':_0x5215ef['name'],'type':_0x5215ef['type']};})};}[_0x19990d(0x30f)](){const _0x5cd144=_0x19990d;let _0x34cbbd=this[_0x5cd144(0x240)]['getBase']()['getSnapshot']()[_0x5cd144(0x2f3)][this[_0x5cd144(0x199)]];if(!_0x34cbbd)throw Error('[FTable]:\x20table\x20\x22'+this[_0x5cd144(0x199)]+_0x5cd144(0x192));return _0x34cbbd;}[_0x19990d(0x239)](_0x47ec10={}){const _0x3e4a94=_0x19990d;let _0x2b8661=this[_0x3e4a94(0x240)][_0x3e4a94(0x30b)]()['getSnapshot'](),_0x1a8445=this[_0x3e4a94(0x30f)]();if(_0x47ec10['viewId']){let _0x257616=this['_projectionService'][_0x3e4a94(0x19b)](_0x2b8661,this[_0x3e4a94(0x199)],_0x47ec10[_0x3e4a94(0x301)]);if('rows'in _0x257616&&Array[_0x3e4a94(0x2b1)](_0x257616[_0x3e4a94(0x232)]))return _0x257616[_0x3e4a94(0x232)][_0x3e4a94(0x24d)](_0x47e741=>_0x47e741[_0x3e4a94(0x1de)]);}return(_0x1a8445[_0x3e4a94(0x204)]?_0x1a8445[_0x3e4a94(0x204)][_0x3e4a94(0x24d)](_0x1a89ba=>_0x1a8445[_0x3e4a94(0x251)][_0x1a89ba]):Object[_0x3e4a94(0x209)](_0x1a8445['records'])[_0x3e4a94(0x2e6)]((_0x532995,_0x131df4)=>_0x532995['orderKey']['localeCompare'](_0x131df4[_0x3e4a94(0x263)])))['filter'](_0x25ecac=>_0x25ecac)[_0x3e4a94(0x24d)](_0x2c92b5=>_0x2c92b5['id']);}};B=g([h(0x3,l[_0x19990d(0x2b4)]),h(0x4,l[_0x19990d(0x18f)]),h(0x5,c[_0x19990d(0x2ac)])],B);function V(_0x2af97c,_0x116392){const _0x5e4365=_0x19990d;let _0xbb55b5=Math[_0x5e4365(0x1e3)](0x0,_0x116392[_0x5e4365(0x1b9)]??0x0);return _0x116392[_0x5e4365(0x1eb)]==null?_0x2af97c[_0x5e4365(0x2d0)](_0xbb55b5):_0x2af97c[_0x5e4365(0x2d0)](_0xbb55b5,_0xbb55b5+Math[_0x5e4365(0x1e3)](0x0,_0x116392['limit']));}function H(_0x5027ca,_0x300a9e,_0x46614d=[]){const _0x4a6f4e=_0x19990d;return _0x46614d[_0x4a6f4e(0x32b)]?[..._0x5027ca][_0x4a6f4e(0x2e6)]((_0x4c710e,_0x2f8eaf)=>{const _0x4ea2ff=_0x4a6f4e;for(let _0x4f56f8 of _0x46614d){var _0xa4ad53;let _0x4dce42=_0x4f56f8[_0x4ea2ff(0x186)]===l[_0x4ea2ff(0x2ab)][_0x4ea2ff(0x339)]?-0x1:0x1,_0x1a506f=U(_0x4c710e[_0x4ea2ff(0x209)][_0x4f56f8['fieldId']],_0x2f8eaf[_0x4ea2ff(0x209)][_0x4f56f8[_0x4ea2ff(0x2e9)]],(_0xa4ad53=_0x300a9e['fields'][_0x4f56f8[_0x4ea2ff(0x2e9)]])==null?void 0x0:_0xa4ad53['type']);if(_0x1a506f!==0x0)return _0x1a506f*_0x4dce42;}return String(_0x4c710e['orderKey']??_0x4c710e['id'])['localeCompare'](String(_0x2f8eaf['orderKey']??_0x2f8eaf['id']));}):_0x5027ca;}function U(_0x1738ba,_0x287c64,_0x3e0c6a){const _0x153ffa=_0x19990d;return _0x1738ba==null&&_0x287c64==null?0x0:_0x1738ba==null?-0x1:_0x287c64==null?0x1:typeof _0x1738ba==_0x153ffa(0x2b5)&&typeof _0x287c64==_0x153ffa(0x2b5)?_0x1738ba-_0x287c64:_0x3e0c6a===l['BaseFieldType'][_0x153ffa(0x246)]?Number(_0x1738ba)-Number(_0x287c64):String(_0x1738ba)[_0x153ffa(0x212)](String(_0x287c64));}function W(_0x451740,_0x39cdbe,_0x172221){const _0x3082a8=_0x19990d;var _0x4b1013;if(!_0x172221||!((_0x4b1013=_0x172221['conditions'])!=null&&_0x4b1013[_0x3082a8(0x32b)]))return!0x0;let {conjunction:_0x4e8ed0=l[_0x3082a8(0x31a)]['OR'],conditions:_0x4528a1}=_0x172221;return _0x4e8ed0===l[_0x3082a8(0x31a)]['AND']&&_0x4528a1[_0x3082a8(0x32b)]>0x1?_0x4528a1[_0x3082a8(0x329)](_0x3e5516=>G(_0x451740,_0x39cdbe,_0x3e5516)):_0x4528a1[_0x3082a8(0x2ca)](_0x12a04d=>G(_0x451740,_0x39cdbe,_0x12a04d));}function G(_0x6eb1f2,_0x421bc1,_0x5c9a70){const _0x1a401b=_0x19990d;let _0x393980=_0x6eb1f2['values'][_0x5c9a70[_0x1a401b(0x2e9)]],_0x441a1e=_0x421bc1['fields'][_0x5c9a70['fieldId']];if(K(_0x5c9a70)){let _0x172362=q(_0x5c9a70)['test'](String(_0x393980??''));return _0x5c9a70[_0x1a401b(0x1f3)]===_0x1a401b(0x2da)?_0x172362:!_0x172362;}return!_0x441a1e||(0x0,c[_0x1a401b(0x23c)])(_0x393980,_0x5c9a70[_0x1a401b(0x1f3)],_0x5c9a70[_0x1a401b(0x337)],_0x441a1e);}function K(_0x2c9877){const _0x4b4658=_0x19990d;return _0x2c9877[_0x4b4658(0x1f3)]==='matches'||_0x2c9877[_0x4b4658(0x1f3)]===_0x4b4658(0x1ce);}function q(_0x20bdde){const _0x127be4=_0x19990d;let _0x49a0e3=String(_0x20bdde['value']??'');if(_0x49a0e3[_0x127be4(0x32b)]>0x200)throw Error(_0x127be4(0x1ec));try{return new RegExp(_0x49a0e3,_0x20bdde[_0x127be4(0x223)]?void 0x0:'i');}catch(_0x32708a){throw Error(_0x127be4(0x21a)+_0x49a0e3+'.\x20'+(_0x32708a instanceof Error?_0x32708a[_0x127be4(0x30d)]:String(_0x32708a)));}}function J(_0x582e8c,_0x57052b,_0x402f52){const _0x366b6b=_0x19990d;if(_0x402f52['type']!=='invalid'&&_0x402f52[_0x366b6b(0x258)]!==_0x366b6b(0x324)){var _0x551366;if(_0x402f52[_0x366b6b(0x258)]===l[_0x366b6b(0x1e4)][_0x366b6b(0x190)]){var _0x23e969;let _0x50d2cd=[((_0x23e969=_0x402f52['fields'])==null||(_0x23e969=_0x23e969[0x0])==null?void 0x0:_0x23e969['id'])??_0x582e8c[_0x366b6b(0x1f7)],..._0x402f52['visibleCardFieldIds']??[]];return Array[_0x366b6b(0x253)](new Set(_0x50d2cd[_0x366b6b(0x2f0)](_0x4c78b0=>!!_0x582e8c[_0x366b6b(0x24a)][_0x4c78b0])));}if((_0x551366=_0x402f52[_0x366b6b(0x24a)])!=null&&_0x551366[_0x366b6b(0x32b)])return _0x402f52[_0x366b6b(0x24a)][_0x366b6b(0x24d)](_0x349e04=>_0x349e04['id'])[_0x366b6b(0x2f0)](_0x3ea51d=>{const _0x4d7050=_0x366b6b;var _0x735d2f;return!(!_0x582e8c[_0x4d7050(0x24a)][_0x3ea51d]||_0x57052b!=null&&(_0x735d2f=_0x57052b[_0x4d7050(0x29b)])!=null&&(_0x735d2f=_0x735d2f[_0x3ea51d])!=null&&_0x735d2f[_0x4d7050(0x1c4)]);});}return _0x582e8c[_0x366b6b(0x277)][_0x366b6b(0x2f0)](_0x278359=>{const _0x498438=_0x366b6b;var _0x4b2f44;return!(!_0x582e8c['fields'][_0x278359]||_0x57052b!=null&&(_0x4b2f44=_0x57052b[_0x498438(0x29b)])!=null&&(_0x4b2f44=_0x4b2f44[_0x278359])!=null&&_0x4b2f44[_0x498438(0x1c4)]);});}let Y=class extends u['FBase']{constructor(_0x1d8656,_0x417f9c,_0x37d868,_0x17f376,_0x23cd77){const _0x2411d6=_0x19990d;super(),this[_0x2411d6(0x240)]=_0x1d8656,this[_0x2411d6(0x1f8)]=_0x417f9c,this[_0x2411d6(0x2c7)]=_0x37d868,this[_0x2411d6(0x2b2)]=_0x17f376,this[_0x2411d6(0x2fe)]=_0x23cd77;}[_0x19990d(0x30b)](){const _0x18df7b=_0x19990d;return this[_0x18df7b(0x240)];}[_0x19990d(0x2a2)](){const _0xc43f1e=_0x19990d;return this[_0xc43f1e(0x240)]['getUnitId']();}[_0x19990d(0x24f)](){const _0x530ef2=_0x19990d;return new p(this[_0x530ef2(0x2a2)](),this[_0x530ef2(0x2b2)],this[_0x530ef2(0x2fe)]);}['save'](){const _0x455edb=_0x19990d;return this[_0x455edb(0x2c7)][_0x455edb(0x25d)](this['getId']())??l[_0x455edb(0x1e0)][_0x455edb(0x2ad)](this[_0x455edb(0x240)][_0x455edb(0x28e)]());}[_0x19990d(0x26c)](){const _0x3cc548=_0x19990d;return this[_0x3cc548(0x240)]['getSnapshot']()[_0x3cc548(0x19c)];}['setName'](_0x412a8a){const _0x5a70e9=_0x19990d;this[_0x5a70e9(0x2b2)][_0x5a70e9(0x29f)](c[_0x5a70e9(0x27c)]['id'],{'unitId':this[_0x5a70e9(0x2a2)](),'name':_0x412a8a});}['getTables'](){const _0x20f64b=_0x19990d;let _0x5797a6=this[_0x20f64b(0x240)][_0x20f64b(0x28e)]();return _0x5797a6[_0x20f64b(0x2f7)][_0x20f64b(0x24d)](_0x3f8508=>_0x5797a6[_0x20f64b(0x2f3)][_0x3f8508])[_0x20f64b(0x2f0)](_0x4b6432=>_0x4b6432)['map'](_0x1d59b7=>this[_0x20f64b(0x1f8)][_0x20f64b(0x2b3)](B,this,_0x1d59b7['id'],this['_injector']));}[_0x19990d(0x221)](_0x14a401){const _0x5f04f1=_0x19990d;let _0x4e49d7=this[_0x5f04f1(0x240)][_0x5f04f1(0x28e)]()['tables'][_0x14a401];return _0x4e49d7?this['_injector'][_0x5f04f1(0x2b3)](B,this,_0x4e49d7['id'],this[_0x5f04f1(0x1f8)]):null;}['getTableByName'](_0x3d2be5){const _0x216a64=_0x19990d;let _0x5deae2=this[_0x216a64(0x240)][_0x216a64(0x28e)](),_0x2b8cf4=Object[_0x216a64(0x209)](_0x5deae2[_0x216a64(0x2f3)])[_0x216a64(0x293)](_0x19a78b=>_0x19a78b[_0x216a64(0x19c)]===_0x3d2be5);return _0x2b8cf4?this[_0x216a64(0x1f8)][_0x216a64(0x2b3)](B,this,_0x2b8cf4['id'],this[_0x216a64(0x1f8)]):null;}['insertTable'](_0x5106b7,_0x16b44a){const _0x224e8b=_0x19990d;let _0x53fecc=(0x0,l['createDefaultBaseTableSnapshot'])({'id':(0x0,l[_0x224e8b(0x1d0)])(),'name':_0x5106b7,..._0x16b44a==null?void 0x0:_0x16b44a['table'],'primaryFieldName':_0x16b44a==null?void 0x0:_0x16b44a[_0x224e8b(0x196)]}),_0x44e3f0=l[_0x224e8b(0x1e0)][_0x224e8b(0x260)](_0x53fecc,(_0x16b44a==null?void 0x0:_0x16b44a[_0x224e8b(0x1ee)])??{}),_0x1d23ed=(0x0,c['validateBaseTableName'])(this[_0x224e8b(0x240)][_0x224e8b(0x28e)](),_0x44e3f0[_0x224e8b(0x19c)]);if(!_0x1d23ed[_0x224e8b(0x23e)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x44e3f0['name']+_0x224e8b(0x2d3)+c[_0x224e8b(0x332)]+'\x20'+_0x1d23ed[_0x224e8b(0x26a)]);if(!this[_0x224e8b(0x2b2)][_0x224e8b(0x29f)](c[_0x224e8b(0x2e1)]['id'],{'unitId':this['_base'][_0x224e8b(0x1d6)](),'table':_0x44e3f0,'index':_0x16b44a==null?void 0x0:_0x16b44a['index']}))throw Error(_0x224e8b(0x225)+_0x5106b7+'\x22.');return this['_injector'][_0x224e8b(0x2b3)](B,this,_0x44e3f0['id'],this[_0x224e8b(0x1f8)]);}[_0x19990d(0x222)](_0x3b28fa){const _0x570488=_0x19990d;let _0x3d7496=typeof _0x3b28fa=='string'?_0x3b28fa:_0x3b28fa[_0x570488(0x2a2)]();if(!this[_0x570488(0x2b2)][_0x570488(0x29f)](c[_0x570488(0x25e)]['id'],{'unitId':this['_base'][_0x570488(0x1d6)](),'tableId':_0x3d7496}))throw Error('Failed\x20to\x20delete\x20table\x20\x22'+_0x3d7496+'\x22.');return!0x0;}[_0x19990d(0x276)](_0x145321,_0xb58403){const _0x3c16c7=_0x19990d;let _0x42b31c=this[_0x3c16c7(0x240)][_0x3c16c7(0x28e)](),_0x59eb06=typeof _0x145321==_0x3c16c7(0x2f9)?_0x145321:_0x145321[_0x3c16c7(0x2a2)](),_0x2b7629=_0x42b31c['tables'][_0x59eb06];if(!_0x2b7629)throw Error('[FBase]:\x20table\x20\x22'+_0x59eb06+_0x3c16c7(0x192));let _0x21e890=_0x42b31c[_0x3c16c7(0x2f7)][_0x3c16c7(0x338)](_0x59eb06)+0x1,_0x5a29a1=(0x0,l[_0x3c16c7(0x1d0)])(),_0x301438=(0x0,c['copyBaseTableSnapshot'])(_0x2b7629,{'id':_0x5a29a1,'name':(0x0,c['createUniqueBaseTableName'])(_0x42b31c,_0x2b7629[_0x3c16c7(0x19c)]+_0x3c16c7(0x33a)),'includeRecords':(_0xb58403==null?void 0x0:_0xb58403[_0x3c16c7(0x259)])??!0x1,'regenerateViewIds':(_0xb58403==null?void 0x0:_0xb58403[_0x3c16c7(0x203)])??!0x1});if(!this[_0x3c16c7(0x2b2)][_0x3c16c7(0x29f)](c[_0x3c16c7(0x2e1)]['id'],{'unitId':this[_0x3c16c7(0x240)][_0x3c16c7(0x1d6)](),'table':_0x301438,'index':_0x21e890}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x59eb06+'\x22.');return this['_injector']['createInstance'](B,this,_0x301438['id'],this[_0x3c16c7(0x1f8)]);}[_0x19990d(0x18c)](){const _0x2aa59c=_0x19990d;let _0x19d73c=this[_0x2aa59c(0x240)][_0x2aa59c(0x28e)]();return{'id':_0x19d73c['id'],'name':_0x19d73c['name'],'tables':this[_0x2aa59c(0x2eb)]()[_0x2aa59c(0x24d)](_0x3f61f3=>_0x3f61f3[_0x2aa59c(0x18c)]())};}};Y=g([h(0x1,(0x0,l[_0x19990d(0x2f1)])(l[_0x19990d(0x32e)])),h(0x2,l[_0x19990d(0x1e7)]),h(0x3,l['ICommandService']),h(0x4,l[_0x19990d(0x18f)])],Y);var X=class extends u[_0x19990d(0x20f)]{[_0x19990d(0x2a9)](){const _0x38dd3a=_0x19990d;this['_initBaseBeforeEvents'](),this[_0x38dd3a(0x282)]();}['createBase'](_0x58ae1c={},_0xee72d3){const _0x50a483=_0x19990d;let _0x1183dc=this[_0x50a483(0x2d4)][_0x50a483(0x2ce)](l['UniverInstanceType'][_0x50a483(0x23d)],_0x58ae1c,_0xee72d3);return this[_0x50a483(0x1f8)][_0x50a483(0x2b3)](Y,_0x1183dc);}[_0x19990d(0x26e)](){const _0x34f8a9=_0x19990d;let _0x2d4df7=this[_0x34f8a9(0x2d4)]['getCurrentUnitOfType'](l[_0x34f8a9(0x1b7)][_0x34f8a9(0x23d)]);return _0x2d4df7?this[_0x34f8a9(0x1f8)][_0x34f8a9(0x2b3)](Y,_0x2d4df7):null;}[_0x19990d(0x30b)](_0x24d7e9){const _0x2e258b=_0x19990d;let _0x568f19=this[_0x2e258b(0x2d4)]['getUnit'](_0x24d7e9,l[_0x2e258b(0x1b7)][_0x2e258b(0x23d)]);return _0x568f19?this['_injector'][_0x2e258b(0x2b3)](Y,_0x568f19):null;}[_0x19990d(0x295)](){const _0x5e7165=_0x19990d;return this[_0x5e7165(0x2d4)][_0x5e7165(0x20d)](l[_0x5e7165(0x1b7)]['UNIVER_BASE'])[_0x5e7165(0x24d)](_0x282890=>this[_0x5e7165(0x1f8)][_0x5e7165(0x2b3)](Y,_0x282890));}[_0x19990d(0x282)](){const _0x460eb6=_0x19990d;this['disposeWithMe'](this['registerEventHandler'](this[_0x460eb6(0x2bc)][_0x460eb6(0x2d5)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)]((_0x535463,_0x355ab2)=>{const _0x51802=_0x460eb6;var _0x420bf3;if(!Z(_0x535463,c[_0x51802(0x22d)]))return;let _0x5c8beb=_0x535463['params'];if(!((_0x420bf3=_0x5c8beb[_0x51802(0x1fe)])!=null&&_0x420bf3[_0x51802(0x32b)]))return;let _0x31b5d5=this[_0x51802(0x30b)](_0x5c8beb[_0x51802(0x321)]),_0x5028fd=_0x31b5d5==null?void 0x0:_0x31b5d5[_0x51802(0x221)](_0x5c8beb[_0x51802(0x1fe)][0x0][_0x51802(0x230)]);if(!_0x31b5d5||!_0x5028fd)return;let _0x105dbf={'base':_0x31b5d5,'table':_0x5028fd,'changes':_0x5c8beb[_0x51802(0x1fe)],'source':_0x355ab2!=null&&_0x355ab2[_0x51802(0x2ed)]?c[_0x51802(0x272)]['Remote']:_0x5c8beb['source']??c['BaseEventSource']['UI']};this[_0x51802(0x21c)](this['Event']['BaseHierarchyChanged'],_0x105dbf);}))),this['disposeWithMe'](this[_0x460eb6(0x20b)](this[_0x460eb6(0x2bc)][_0x460eb6(0x1a1)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x566d02=>{const _0x3f891b=_0x460eb6;if(_0x566d02['id']!==c[_0x3f891b(0x2e1)]['id'])return;let {unitId:_0x898507,table:_0x75768b,index:_0xb63f23}=_0x566d02['params'],_0x5022d7=this[_0x3f891b(0x30b)](_0x898507);if(!_0x5022d7)return;let _0x25ab6a={'base':_0x5022d7,'table':_0x75768b,'index':_0xb63f23};this['fireEvent'](this[_0x3f891b(0x2bc)][_0x3f891b(0x1a1)],_0x25ab6a);}))),this[_0x460eb6(0x1e9)](this['registerEventHandler'](this['Event']['BaseTableFieldCreated'],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x390429=>{const _0x276411=_0x460eb6;if(_0x390429['id']!==c[_0x276411(0x313)]['id'])return;let {unitId:_0x3f9a94,tableId:_0x4d0bfe,field:_0x3f7c4c,index:_0x3362b9,viewIndexes:_0x65b198}=_0x390429[_0x276411(0x224)],_0x26fa58=this['getBase'](_0x3f9a94);if(!_0x26fa58)return;let _0x29733a=_0x26fa58['getTableById'](_0x4d0bfe);if(!_0x29733a)return;let _0x1f2294={'base':_0x26fa58,'table':_0x29733a,'field':_0x3f7c4c,'index':_0x3362b9,'viewIndexes':_0x65b198};this[_0x276411(0x21c)](this[_0x276411(0x2bc)]['BaseTableFieldCreated'],_0x1f2294);}))),this[_0x460eb6(0x1e9)](this[_0x460eb6(0x20b)](this[_0x460eb6(0x2bc)][_0x460eb6(0x270)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x131832=>{const _0x428376=_0x460eb6;if(_0x131832['id']!==c[_0x428376(0x269)]['id']&&_0x131832['id']!==c[_0x428376(0x27e)]['id'])return;let _0x4d0a4f=_0x131832['params'],{unitId:_0x58524b,tableId:_0x305e0d}=_0x4d0a4f,_0x47423d=_0x4d0a4f[_0x428376(0x251)]??[_0x4d0a4f[_0x428376(0x1a7)]],_0x583aac=this[_0x428376(0x30b)](_0x58524b);if(!_0x583aac)return;let _0x2a629a=_0x583aac[_0x428376(0x221)](_0x305e0d);if(!_0x2a629a)return;let _0x173798={'base':_0x583aac,'table':_0x2a629a,'records':_0x47423d};this['fireEvent'](this[_0x428376(0x2bc)]['BaseTableRecordCreated'],_0x173798);}))),this['disposeWithMe'](this[_0x460eb6(0x20b)](this['Event'][_0x460eb6(0x256)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x2d831f=>{const _0x512a76=_0x460eb6;if(_0x2d831f['id']!==c[_0x512a76(0x30e)]['id'])return;let {unitId:_0x579dcf,tableId:_0x55509b,view:_0x5410d2,index:_0x4d2950}=_0x2d831f[_0x512a76(0x224)],_0x36a78a=this[_0x512a76(0x30b)](_0x579dcf);if(!_0x36a78a)return;let _0x105db3=_0x36a78a[_0x512a76(0x221)](_0x55509b);if(!_0x105db3)return;let _0x3ddba4={'base':_0x36a78a,'table':_0x105db3,'view':_0x5410d2,'index':_0x4d2950};this[_0x512a76(0x21c)](this[_0x512a76(0x2bc)][_0x512a76(0x256)],_0x3ddba4);}))),this[_0x460eb6(0x1e9)](this['registerEventHandler'](this[_0x460eb6(0x2bc)][_0x460eb6(0x32a)],()=>this[_0x460eb6(0x2b2)][_0x460eb6(0x1b3)](_0x475c44=>{const _0x19aee2=_0x460eb6;if(_0x475c44['id']!==c[_0x19aee2(0x21f)]['id'])return;let {unitId:_0x1a81e2,tableId:_0x43795b,recordId:_0xf8dce0,fieldId:_0x40d4c0,value:_0x43958e}=_0x475c44[_0x19aee2(0x224)],_0x11c616=this[_0x19aee2(0x30b)](_0x1a81e2);if(!_0x11c616)return;let _0xd41011=_0x11c616[_0x19aee2(0x221)](_0x43795b);if(!_0xd41011)return;let _0x19b3c4=_0xd41011[_0x19aee2(0x2ee)](_0x40d4c0);if(!_0x19b3c4)return;let _0x364388=_0xd41011[_0x19aee2(0x235)](_0xf8dce0);if(!_0x364388)return;let _0x2a63a0={'base':_0x11c616,'table':_0xd41011,'field':_0x19b3c4,'record':_0x364388,'value':_0x43958e};this[_0x19aee2(0x21c)](this[_0x19aee2(0x2bc)][_0x19aee2(0x32a)],_0x2a63a0);})));}[_0x19990d(0x234)](){const _0x3ca052=_0x19990d;this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)]['BeforeBaseHierarchyChange'],()=>this['_commandService'][_0x3ca052(0x328)](_0x32490d=>{const _0x5e0648=_0x3ca052;if(Z(_0x32490d,c['SetBaseRecordValuesCommand'])){let {unitId:_0x27c172,tableId:_0x4e66b0,patches:_0x22ba4b,source:_0x2dbd09=c[_0x5e0648(0x272)]['UI']}=_0x32490d['params'],_0x1ef4bd=this[_0x5e0648(0x1b8)](_0x27c172,_0x4e66b0);if(!_0x1ef4bd)return;this['_fireBeforeHierarchyChange'](_0x1ef4bd[_0x5e0648(0x18b)],_0x1ef4bd[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x1c3)])(_0x1ef4bd[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x22ba4b),_0x2dbd09);return;}if(Z(_0x32490d,c['SetBaseRangeValuesCommand'])){let {unitId:_0x1dcbc9,tableId:_0xcb9ff3,patches:_0xdbb96f,source:_0xa37512=c['BaseEventSource']['UI']}=_0x32490d[_0x5e0648(0x224)],_0x25d719=this[_0x5e0648(0x1b8)](_0x1dcbc9,_0xcb9ff3);if(!_0x25d719)return;let _0x1257c2=_0x25d719['table'][_0x5e0648(0x2a7)]();this[_0x5e0648(0x1df)](_0x25d719[_0x5e0648(0x18b)],_0x25d719['table'],(0x0,c[_0x5e0648(0x1c3)])(_0x1257c2,(0x0,c[_0x5e0648(0x1d2)])(_0x1257c2,_0xdbb96f)),_0xa37512);return;}if(Z(_0x32490d,c[_0x5e0648(0x269)])){let _0x58c390=_0x32490d[_0x5e0648(0x224)],_0x595c23=this[_0x5e0648(0x1b8)](_0x58c390['unitId'],_0x58c390[_0x5e0648(0x230)]);if(!_0x595c23)return;this[_0x5e0648(0x1df)](_0x595c23[_0x5e0648(0x18b)],_0x595c23[_0x5e0648(0x1ee)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x595c23[_0x5e0648(0x1ee)]['getTable'](),[_0x58c390[_0x5e0648(0x1a7)]]),_0x58c390[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x27e)])){let _0x4c87a4=_0x32490d[_0x5e0648(0x224)],_0x5d10b0=this[_0x5e0648(0x1b8)](_0x4c87a4[_0x5e0648(0x321)],_0x4c87a4[_0x5e0648(0x230)]);if(!_0x5d10b0)return;this[_0x5e0648(0x1df)](_0x5d10b0[_0x5e0648(0x18b)],_0x5d10b0[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x24c)])(_0x5d10b0[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x4c87a4['records']),_0x4c87a4['source']??c['BaseEventSource']['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x215)])){let _0x35c4f0=_0x32490d['params'],_0x1e9520=this['_getHierarchyEventContext'](_0x35c4f0[_0x5e0648(0x321)],_0x35c4f0[_0x5e0648(0x230)]);if(!_0x1e9520)return;this['_fireBeforeHierarchyChange'](_0x1e9520[_0x5e0648(0x18b)],_0x1e9520[_0x5e0648(0x1ee)],(0x0,c['validateBaseHierarchyRecordCreations'])(_0x1e9520['table'][_0x5e0648(0x2a7)](),[_0x35c4f0['record']]),_0x35c4f0['source']??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x1a2)])){let _0x1e6bfc=_0x32490d['params'],_0x501373=this[_0x5e0648(0x1b8)](_0x1e6bfc[_0x5e0648(0x321)],_0x1e6bfc['tableId']);if(!_0x501373)return;let _0x35e023=_0x501373[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x189f67=_0x1e6bfc[_0x5e0648(0x2e9)]??(0x0,c['resolveBaseHierarchyFieldId'])(_0x35e023),_0x300d87=(0x0,c[_0x5e0648(0x1a0)])(_0x35e023,_0x189f67)['parentByRecordId']['get'](_0x1e6bfc[_0x5e0648(0x1de)])??null;this['_fireBeforeHierarchyChange'](_0x501373['base'],_0x501373[_0x5e0648(0x1ee)],[{'tableId':_0x1e6bfc[_0x5e0648(0x230)],'fieldId':_0x189f67,'recordId':_0x1e6bfc[_0x5e0648(0x1de)],'oldParentRecordId':_0x300d87,'parentRecordId':_0x1e6bfc['parentRecordId']}],_0x1e6bfc['source']??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c['CreateBaseChildRecordCommand'])){let _0x2e7d01=_0x32490d[_0x5e0648(0x224)],_0x4df68f=this[_0x5e0648(0x1b8)](_0x2e7d01['unitId'],_0x2e7d01[_0x5e0648(0x230)]);if(!_0x4df68f)return;let _0x5678ad=_0x2e7d01['fieldId']??(0x0,c[_0x5e0648(0x2be)])(_0x4df68f[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)]());this[_0x5e0648(0x1df)](_0x4df68f[_0x5e0648(0x18b)],_0x4df68f[_0x5e0648(0x1ee)],[{'tableId':_0x2e7d01[_0x5e0648(0x230)],'fieldId':_0x5678ad,'recordId':_0x2e7d01[_0x5e0648(0x1a7)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2e7d01[_0x5e0648(0x31d)]}],_0x2e7d01[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x213)])){let _0x5791e9=_0x32490d[_0x5e0648(0x224)],_0xc725d0=this['_getHierarchyEventContext'](_0x5791e9[_0x5e0648(0x321)],_0x5791e9[_0x5e0648(0x230)]);if(!_0xc725d0)return;this[_0x5e0648(0x1df)](_0xc725d0[_0x5e0648(0x18b)],_0xc725d0[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x32d)])(_0xc725d0['table'][_0x5e0648(0x2a7)](),[_0x5791e9[_0x5e0648(0x1de)]]),_0x5791e9[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(Z(_0x32490d,c[_0x5e0648(0x294)])){let _0x7ab7ec=_0x32490d[_0x5e0648(0x224)],_0x1410c0=this[_0x5e0648(0x1b8)](_0x7ab7ec['unitId'],_0x7ab7ec[_0x5e0648(0x230)]);if(!_0x1410c0)return;this[_0x5e0648(0x1df)](_0x1410c0[_0x5e0648(0x18b)],_0x1410c0[_0x5e0648(0x1ee)],(0x0,c[_0x5e0648(0x32d)])(_0x1410c0[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)](),_0x7ab7ec[_0x5e0648(0x323)]),_0x7ab7ec[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);return;}if(!Z(_0x32490d,c[_0x5e0648(0x21f)]))return;let _0x273ae1=_0x32490d[_0x5e0648(0x224)],_0x4fd440=this[_0x5e0648(0x1b8)](_0x273ae1[_0x5e0648(0x321)],_0x273ae1[_0x5e0648(0x230)]);if(!_0x4fd440)return;let _0x2709ce=_0x4fd440[_0x5e0648(0x1ee)][_0x5e0648(0x2a7)]();if(!(0x0,c[_0x5e0648(0x25c)])(_0x2709ce)[_0x5e0648(0x219)](_0x273ae1[_0x5e0648(0x2e9)]))return;let _0x1ca228=(0x0,c[_0x5e0648(0x1a0)])(_0x2709ce,_0x273ae1['fieldId'])[_0x5e0648(0x24b)][_0x5e0648(0x289)](_0x273ae1[_0x5e0648(0x1de)])??null,_0x2c58d9=(0x0,c[_0x5e0648(0x2cb)])(_0x273ae1[_0x5e0648(0x337)])[0x0]??null;_0x1ca228!==_0x2c58d9&&this[_0x5e0648(0x1df)](_0x4fd440[_0x5e0648(0x18b)],_0x4fd440[_0x5e0648(0x1ee)],[{'tableId':_0x273ae1['tableId'],'fieldId':_0x273ae1[_0x5e0648(0x2e9)],'recordId':_0x273ae1[_0x5e0648(0x1de)],'oldParentRecordId':_0x1ca228,'parentRecordId':_0x2c58d9}],_0x273ae1[_0x5e0648(0x187)]??c[_0x5e0648(0x272)]['UI']);}))),this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)][_0x3ca052(0x2b9)],()=>this[_0x3ca052(0x2b2)][_0x3ca052(0x328)](_0x1624ac=>{const _0x42e43a=_0x3ca052;if(_0x1624ac['id']!==c['CreateBaseTableCommand']['id'])return;let {unitId:_0x4e3d54,table:_0xb9ae83,index:_0x3a1310}=_0x1624ac[_0x42e43a(0x224)],_0x15f291=this[_0x42e43a(0x30b)](_0x4e3d54);if(!_0x15f291)return;let _0x3b17ab={'base':_0x15f291,'table':_0xb9ae83,'index':_0x3a1310};if(this[_0x42e43a(0x21c)](this['Event'][_0x42e43a(0x2b9)],_0x3b17ab),_0x3b17ab[_0x42e43a(0x21e)])throw new l[(_0x42e43a(0x31c))]();}))),this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)][_0x3ca052(0x1b0)],()=>this[_0x3ca052(0x2b2)][_0x3ca052(0x328)](_0x548615=>{const _0x2dcf7f=_0x3ca052;if(_0x548615['id']!==c[_0x2dcf7f(0x313)]['id'])return;let {unitId:_0x355482,tableId:_0x14c4a8,field:_0x57186a,index:_0x4fe5c9,viewIndexes:_0x4a0cc5}=_0x548615[_0x2dcf7f(0x224)],_0x264471=this[_0x2dcf7f(0x30b)](_0x355482);if(!_0x264471)return;let _0x485289=_0x264471[_0x2dcf7f(0x221)](_0x14c4a8);if(!_0x485289)return;let _0x4cb572={'base':_0x264471,'table':_0x485289,'field':_0x57186a,'index':_0x4fe5c9,'viewIndexes':_0x4a0cc5};if(this['fireEvent'](this[_0x2dcf7f(0x2bc)]['BeforeBaseTableFieldCreate'],_0x4cb572),_0x4cb572[_0x2dcf7f(0x21e)])throw new l[(_0x2dcf7f(0x31c))]();}))),this[_0x3ca052(0x1e9)](this['registerEventHandler'](this[_0x3ca052(0x2bc)][_0x3ca052(0x2ae)],()=>this['_commandService'][_0x3ca052(0x328)](_0x4d8cbc=>{const _0x375f7d=_0x3ca052;if(_0x4d8cbc['id']!==c[_0x375f7d(0x269)]['id']&&_0x4d8cbc['id']!==c['BatchCreateBaseRecordsCommand']['id'])return;let _0x402ecd=_0x4d8cbc['params'],{unitId:_0x525089,tableId:_0x479fc9}=_0x402ecd,_0x356457=_0x402ecd[_0x375f7d(0x251)]??[_0x402ecd['record']],_0x34235c=this[_0x375f7d(0x30b)](_0x525089);if(!_0x34235c)return;let _0x5e56d7=_0x34235c[_0x375f7d(0x221)](_0x479fc9);if(!_0x5e56d7)return;let _0x41c39e={'base':_0x34235c,'table':_0x5e56d7,'records':_0x356457};if(this[_0x375f7d(0x21c)](this['Event'][_0x375f7d(0x2ae)],_0x41c39e),_0x41c39e[_0x375f7d(0x21e)])throw new l[(_0x375f7d(0x31c))]();}))),this[_0x3ca052(0x1e9)](this[_0x3ca052(0x20b)](this['Event'][_0x3ca052(0x22b)],()=>this['_commandService'][_0x3ca052(0x328)](_0x2dca12=>{const _0x1b2f62=_0x3ca052;if(_0x2dca12['id']!==c[_0x1b2f62(0x30e)]['id'])return;let {unitId:_0x59649e,tableId:_0x337440,view:_0x229e65,index:_0x4d541a}=_0x2dca12['params'],_0x566f50=this['getBase'](_0x59649e);if(!_0x566f50)return;let _0x57f775=_0x566f50[_0x1b2f62(0x221)](_0x337440);if(!_0x57f775)return;let _0x5d5984={'base':_0x566f50,'table':_0x57f775,'view':_0x229e65,'index':_0x4d541a};if(this[_0x1b2f62(0x21c)](this[_0x1b2f62(0x2bc)][_0x1b2f62(0x22b)],_0x5d5984),_0x5d5984[_0x1b2f62(0x21e)])throw new l[(_0x1b2f62(0x31c))]();}))),this[_0x3ca052(0x1e9)](this[_0x3ca052(0x20b)](this[_0x3ca052(0x2bc)][_0x3ca052(0x275)],()=>this[_0x3ca052(0x2b2)][_0x3ca052(0x328)](_0x1f5c94=>{const _0x355160=_0x3ca052;if(_0x1f5c94['id']!==c['UpdateBaseCellCommand']['id'])return;let {unitId:_0x4da2d1,tableId:_0x2b4361,recordId:_0x17cf37,fieldId:_0x26d05c,value:_0x52c08d}=_0x1f5c94[_0x355160(0x224)],_0xf119ce=this[_0x355160(0x30b)](_0x4da2d1);if(!_0xf119ce)return;let _0x59d066=_0xf119ce[_0x355160(0x221)](_0x2b4361);if(!_0x59d066)return;let _0x41a34d=_0x59d066[_0x355160(0x2ee)](_0x26d05c);if(!_0x41a34d)return;let _0x38c8ce=_0x59d066['getRecordById'](_0x17cf37);if(!_0x38c8ce)return;let _0x3caea9={'base':_0xf119ce,'table':_0x59d066,'field':_0x41a34d,'record':_0x38c8ce,'value':_0x52c08d};if(this[_0x355160(0x21c)](this[_0x355160(0x2bc)][_0x355160(0x275)],_0x3caea9),_0x3caea9[_0x355160(0x21e)])throw new l[(_0x355160(0x31c))]();})));}[_0x19990d(0x1b8)](_0x554e71,_0x3bbdcb){const _0x539581=_0x19990d;let _0x21eecc=this[_0x539581(0x30b)](_0x554e71),_0x2a548e=_0x21eecc==null?void 0x0:_0x21eecc[_0x539581(0x221)](_0x3bbdcb);return _0x21eecc&&_0x2a548e?{'base':_0x21eecc,'table':_0x2a548e}:null;}[_0x19990d(0x1df)](_0x167f17,_0x43c938,_0x144e9b,_0x396948){const _0x3f28c5=_0x19990d;if(!_0x144e9b[_0x3f28c5(0x32b)])return;let _0x3af896={'base':_0x167f17,'table':_0x43c938,'changes':_0x144e9b,'source':_0x396948};if(this[_0x3f28c5(0x21c)](this[_0x3f28c5(0x2bc)][_0x3f28c5(0x33e)],_0x3af896),_0x3af896[_0x3f28c5(0x21e)])throw new l[(_0x3f28c5(0x31c))]();}};function Z(_0x477f9b,_0x204ffd){return _0x477f9b['id']===_0x204ffd['id']&&_0x477f9b['params']!==void 0x0;}u[_0x19990d(0x20f)]['extend'](X);var Q=class extends u[_0x19990d(0x1da)]{get[_0x19990d(0x1a8)](){return l['BaseFieldType'];}get[_0x19990d(0x31a)](){return l['BaseFilterConjunction'];}get[_0x19990d(0x2c2)](){const _0x3f85bd=_0x19990d;return l[_0x3f85bd(0x2c2)];}get[_0x19990d(0x2f6)](){return v;}get['BaseViewType'](){const _0x12efe2=_0x19990d;return l[_0x12efe2(0x1e4)];}get['BaseConditionalColorTarget'](){const _0x289e9c=_0x19990d;return l[_0x289e9c(0x290)];}get['BaseConditionalColorOperator'](){return l['BaseConditionalColorOperator'];}get[_0x19990d(0x316)](){const _0x3e682f=_0x19990d;return l[_0x3e682f(0x316)];}get[_0x19990d(0x2ab)](){const _0x509631=_0x19990d;return l[_0x509631(0x2ab)];}get[_0x19990d(0x272)](){const _0x2e2c2f=_0x19990d;return c[_0x2e2c2f(0x272)];}get['BaseHierarchyErrorCode'](){const _0x148744=_0x19990d;return c[_0x148744(0x298)];}get[_0x19990d(0x1d7)](){return l['BaseHierarchyInvalidReason'];}get['BaseRecordLinkRole'](){const _0x1bb433=_0x19990d;return l[_0x1bb433(0x2d9)];}};u['FEnum'][_0x19990d(0x304)](Q);var $=class extends u[_0x19990d(0x306)]{get[_0x19990d(0x1a1)](){const _0x3d3a1=_0x19990d;return _0x3d3a1(0x1a1);}get[_0x19990d(0x2b9)](){return'BeforeBaseTableCreate';}get['BaseTableFieldCreated'](){const _0x534519=_0x19990d;return _0x534519(0x336);}get['BeforeBaseTableFieldCreate'](){return'BeforeBaseTableFieldCreate';}get[_0x19990d(0x270)](){const _0x488d41=_0x19990d;return _0x488d41(0x270);}get[_0x19990d(0x2ae)](){const _0x1f0139=_0x19990d;return _0x1f0139(0x2ae);}get[_0x19990d(0x256)](){const _0x3763a7=_0x19990d;return _0x3763a7(0x256);}get['BeforeBaseTableViewCreate'](){const _0x2e4c9e=_0x19990d;return _0x2e4c9e(0x22b);}get[_0x19990d(0x32a)](){const _0xa1fa42=_0x19990d;return _0xa1fa42(0x32a);}get['BeforeBaseTableCellValueChange'](){const _0x30c99e=_0x19990d;return _0x30c99e(0x275);}get[_0x19990d(0x2d5)](){const _0x1da32c=_0x19990d;return _0x1da32c(0x2d5);}get['BeforeBaseHierarchyChange'](){const _0x53457c=_0x19990d;return _0x53457c(0x33e);}};u[_0x19990d(0x306)][_0x19990d(0x304)]($),exports['BaseFieldKeyEnum']=v,Object['defineProperty'](exports,_0x19990d(0x2ba),{'enumerable':!0x0,'get':function(){return Y;}}),exports[_0x19990d(0x248)]=m,exports[_0x19990d(0x1cb)]=p,Object[_0x19990d(0x1bc)](exports,_0x19990d(0x2f5),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x25a),{'enumerable':!0x0,'get':function(){return _;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x2e4),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x2a1),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x19990d(0x1bc)](exports,_0x19990d(0x1fb),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x19990d(0x31f)]=$,exports['resolveBaseFieldKey']=S,exports[_0x19990d(0x297)]=b;
|