@univerjs-pro/bases 1.0.1 → 1.0.2

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.
Files changed (85) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/pl-PL.js +1 -1
  15. package/lib/cjs/locale/pt-BR.js +1 -1
  16. package/lib/cjs/locale/ru-RU.js +1 -1
  17. package/lib/cjs/locale/sk-SK.js +1 -1
  18. package/lib/cjs/locale/vi-VN.js +1 -1
  19. package/lib/cjs/locale/zh-CN.js +1 -1
  20. package/lib/cjs/locale/zh-HK.js +1 -1
  21. package/lib/cjs/locale/zh-TW.js +1 -1
  22. package/lib/es/facade.js +1 -1
  23. package/lib/es/index.js +1 -1
  24. package/lib/es/locale/ar-SA.js +1 -1
  25. package/lib/es/locale/ca-ES.js +1 -1
  26. package/lib/es/locale/de-DE.js +1 -1
  27. package/lib/es/locale/en-US.js +1 -1
  28. package/lib/es/locale/es-ES.js +1 -1
  29. package/lib/es/locale/fa-IR.js +1 -1
  30. package/lib/es/locale/fr-FR.js +1 -1
  31. package/lib/es/locale/id-ID.js +1 -1
  32. package/lib/es/locale/it-IT.js +1 -1
  33. package/lib/es/locale/ja-JP.js +1 -1
  34. package/lib/es/locale/ko-KR.js +1 -1
  35. package/lib/es/locale/pl-PL.js +1 -1
  36. package/lib/es/locale/pt-BR.js +1 -1
  37. package/lib/es/locale/ru-RU.js +1 -1
  38. package/lib/es/locale/sk-SK.js +1 -1
  39. package/lib/es/locale/vi-VN.js +1 -1
  40. package/lib/es/locale/zh-CN.js +1 -1
  41. package/lib/es/locale/zh-HK.js +1 -1
  42. package/lib/es/locale/zh-TW.js +1 -1
  43. package/lib/facade.js +1 -1
  44. package/lib/index.js +1 -1
  45. package/lib/locale/ar-SA.js +1 -1
  46. package/lib/locale/ca-ES.js +1 -1
  47. package/lib/locale/de-DE.js +1 -1
  48. package/lib/locale/en-US.js +1 -1
  49. package/lib/locale/es-ES.js +1 -1
  50. package/lib/locale/fa-IR.js +1 -1
  51. package/lib/locale/fr-FR.js +1 -1
  52. package/lib/locale/id-ID.js +1 -1
  53. package/lib/locale/it-IT.js +1 -1
  54. package/lib/locale/ja-JP.js +1 -1
  55. package/lib/locale/ko-KR.js +1 -1
  56. package/lib/locale/pl-PL.js +1 -1
  57. package/lib/locale/pt-BR.js +1 -1
  58. package/lib/locale/ru-RU.js +1 -1
  59. package/lib/locale/sk-SK.js +1 -1
  60. package/lib/locale/vi-VN.js +1 -1
  61. package/lib/locale/zh-CN.js +1 -1
  62. package/lib/locale/zh-HK.js +1 -1
  63. package/lib/locale/zh-TW.js +1 -1
  64. package/lib/umd/facade.js +1 -1
  65. package/lib/umd/index.js +1 -1
  66. package/lib/umd/locale/ar-SA.js +1 -1
  67. package/lib/umd/locale/ca-ES.js +1 -1
  68. package/lib/umd/locale/de-DE.js +1 -1
  69. package/lib/umd/locale/en-US.js +1 -1
  70. package/lib/umd/locale/es-ES.js +1 -1
  71. package/lib/umd/locale/fa-IR.js +1 -1
  72. package/lib/umd/locale/fr-FR.js +1 -1
  73. package/lib/umd/locale/id-ID.js +1 -1
  74. package/lib/umd/locale/it-IT.js +1 -1
  75. package/lib/umd/locale/ja-JP.js +1 -1
  76. package/lib/umd/locale/ko-KR.js +1 -1
  77. package/lib/umd/locale/pl-PL.js +1 -1
  78. package/lib/umd/locale/pt-BR.js +1 -1
  79. package/lib/umd/locale/ru-RU.js +1 -1
  80. package/lib/umd/locale/sk-SK.js +1 -1
  81. package/lib/umd/locale/vi-VN.js +1 -1
  82. package/lib/umd/locale/zh-CN.js +1 -1
  83. package/lib/umd/locale/zh-HK.js +1 -1
  84. package/lib/umd/locale/zh-TW.js +1 -1
  85. package/package.json +8 -8
@@ -1 +1 @@
1
- const _0x25e4df=_0x1049;(function(_0x5001e6,_0x5790a5){const _0x2af058=_0x1049,_0x282361=_0x5001e6();while(!![]){try{const _0x5505dd=-parseInt(_0x2af058(0x1ec))/0x1*(-parseInt(_0x2af058(0x1f5))/0x2)+parseInt(_0x2af058(0x1f6))/0x3+-parseInt(_0x2af058(0x1f7))/0x4*(-parseInt(_0x2af058(0x1ea))/0x5)+-parseInt(_0x2af058(0x1f2))/0x6*(-parseInt(_0x2af058(0x1f3))/0x7)+-parseInt(_0x2af058(0x1f1))/0x8+-parseInt(_0x2af058(0x1e8))/0x9+-parseInt(_0x2af058(0x1f9))/0xa;if(_0x5505dd===_0x5790a5)break;else _0x282361['push'](_0x282361['shift']());}catch(_0x4c7b77){_0x282361['push'](_0x282361['shift']());}}}(_0x5c93,0x2b846));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x25e4df(0x1eb),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x25e4df(0x1ee),'email':_0x25e4df(0x1fe),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x25e4df(0x203),'recordId':'記錄\x20ID','createdBy':_0x25e4df(0x1ef),'updatedBy':_0x25e4df(0x202),'createdAt':'建立時間','updatedAt':_0x25e4df(0x204),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x25e4df(0x1e9),'linkPlaceholder':'輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。'},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x25e4df(0x1fc),'gantt':_0x25e4df(0x1fa),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x25e4df(0x201),'invalidFieldType':_0x25e4df(0x1f0),'invalidCellValue':_0x25e4df(0x1fb),'invalidKanbanGroupField':_0x25e4df(0x1ff),'invalidCalendarDateField':'行事曆需要日期欄位','invalidGanttDateField':_0x25e4df(0x1f8)},'command':{'updateCell':_0x25e4df(0x1fd),'createField':_0x25e4df(0x200),'deleteField':_0x25e4df(0x1ed),'createRecord':_0x25e4df(0x1f4),'deleteRecord':'刪除記錄','updateViewConfig':'更新檢視設定'}}};function _0x1049(_0x41c6b6,_0xea29b4){_0x41c6b6=_0x41c6b6-0x1e8;const _0x5c9321=_0x5c93();let _0x10498c=_0x5c9321[_0x41c6b6];return _0x10498c;}function _0x5c93(){const _0x52b780=['更新時間','99882JXYsZE','輸入內容','10udgCgT','核取方塊','11hqUzxq','刪除欄位','電話號碼','建立人','欄位類型無效','339696vkOVwY','330798lXxBJC','42BeRVUE','建立記錄','8656BIJUHz','1050435ZKhHMy','508084hBkrFN','甘特圖檢視需要開始和結束日期欄位','7507870pjNofy','甘特圖','儲存格值無效','行事曆','更新儲存格','電子郵件','看板需要可分組欄位','建立欄位','欄位標題不能為空','更新人','關聯記錄'];_0x5c93=function(){return _0x52b780;};return _0x5c93();}export{e as default};
1
+ const _0x51cd85=_0x14c3;function _0x14c3(_0xbb8ab2,_0x3d4185){_0xbb8ab2=_0xbb8ab2-0x180;const _0x373fcf=_0x373f();let _0x14c337=_0x373fcf[_0xbb8ab2];return _0x14c337;}(function(_0x510155,_0x3358e4){const _0x27a1e7=_0x14c3,_0x4c8874=_0x510155();while(!![]){try{const _0x2e4c65=-parseInt(_0x27a1e7(0x181))/0x1+-parseInt(_0x27a1e7(0x199))/0x2*(parseInt(_0x27a1e7(0x197))/0x3)+-parseInt(_0x27a1e7(0x183))/0x4+-parseInt(_0x27a1e7(0x186))/0x5+parseInt(_0x27a1e7(0x18a))/0x6+parseInt(_0x27a1e7(0x191))/0x7+-parseInt(_0x27a1e7(0x189))/0x8*(-parseInt(_0x27a1e7(0x193))/0x9);if(_0x2e4c65===_0x3358e4)break;else _0x4c8874['push'](_0x4c8874['shift']());}catch(_0x3caeb5){_0x4c8874['push'](_0x4c8874['shift']());}}}(_0x373f,0xc4dad));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':'核取方塊','link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x51cd85(0x185),'email':_0x51cd85(0x18e),'location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x51cd85(0x18d),'recordId':_0x51cd85(0x187),'createdBy':'建立人','updatedBy':'更新人','createdAt':_0x51cd85(0x18c),'updatedAt':_0x51cd85(0x195),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x51cd85(0x18f),'linkPlaceholder':_0x51cd85(0x182)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x51cd85(0x18b),'gantt':'甘特圖','gallery':'圖庫'},'error':{'fieldNameRequired':_0x51cd85(0x19a),'invalidFieldType':_0x51cd85(0x196),'invalidCellValue':_0x51cd85(0x188),'invalidKanbanGroupField':_0x51cd85(0x198),'invalidCalendarDateField':'行事曆需要日期欄位','invalidGanttDateField':'甘特圖檢視需要開始和結束日期欄位'},'command':{'updateCell':_0x51cd85(0x184),'createField':_0x51cd85(0x180),'deleteField':_0x51cd85(0x192),'createRecord':'建立記錄','deleteRecord':_0x51cd85(0x194),'updateViewConfig':_0x51cd85(0x190)}}};export{e as default};function _0x373f(){const _0x58f116=['3571590vDLPid','記錄\x20ID','儲存格值無效','56mHBnZz','3183462HoDPrC','行事曆','建立時間','關聯記錄','電子郵件','輸入內容','更新檢視設定','2163707PKEgPS','刪除欄位','4344201tDHSWV','刪除記錄','更新時間','欄位類型無效','3vhFrnw','看板需要可分組欄位','530084MenZCS','欄位標題不能為空','建立欄位','1106051ohRnpw','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','5307092gQmzHz','更新儲存格','電話號碼'];_0x373f=function(){return _0x58f116;};return _0x373f();}
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- (function(_0x214321,_0x5b7327){const _0x8a24ed=_0x586a,_0x1c446a=_0x214321();while(!![]){try{const _0x5c5848=parseInt(_0x8a24ed(0x2d6))/0x1*(-parseInt(_0x8a24ed(0x2d8))/0x2)+parseInt(_0x8a24ed(0x1a5))/0x3*(-parseInt(_0x8a24ed(0x1d8))/0x4)+-parseInt(_0x8a24ed(0x263))/0x5+parseInt(_0x8a24ed(0x22a))/0x6*(parseInt(_0x8a24ed(0x199))/0x7)+parseInt(_0x8a24ed(0x2fe))/0x8*(-parseInt(_0x8a24ed(0x1b5))/0x9)+parseInt(_0x8a24ed(0x2da))/0xa+parseInt(_0x8a24ed(0x32d))/0xb*(parseInt(_0x8a24ed(0x229))/0xc);if(_0x5c5848===_0x5b7327)break;else _0x1c446a['push'](_0x1c446a['shift']());}catch(_0x5f3907){_0x1c446a['push'](_0x1c446a['shift']());}}}(_0x493e,0xf085c),function(_0x14a5f5,_0x2d1b47){const _0x53b19b=_0x586a;typeof exports==_0x53b19b(0x2e5)&&typeof module<'u'?_0x2d1b47(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/protocol'),require('@univerjs-pro/engine-formula')):typeof define==_0x53b19b(0x300)&&define[_0x53b19b(0x257)]?define([_0x53b19b(0x235),_0x53b19b(0x2ef),_0x53b19b(0x2a6),_0x53b19b(0x25d),'@univerjs/protocol',_0x53b19b(0x2e0)],_0x2d1b47):(_0x14a5f5=typeof globalThis<'u'?globalThis:_0x14a5f5||self,_0x2d1b47(_0x14a5f5[_0x53b19b(0x200)]={},_0x14a5f5[_0x53b19b(0x292)],_0x14a5f5[_0x53b19b(0x265)],_0x14a5f5[_0x53b19b(0x307)],_0x14a5f5['UniverProtocol'],_0x14a5f5[_0x53b19b(0x324)]));}(this,function(_0x2f53ab,_0x471e22,_0x26e2cd,_0x6b6f07,_0x4ed616,_0x30b7c4){const _0x5a49e4=_0x586a;Object[_0x5a49e4(0x19a)](_0x2f53ab,Symbol[_0x5a49e4(0x252)],{'value':_0x5a49e4(0x34b)});var _0x5ddda5=Object[_0x5a49e4(0x1df)],_0x2eef66=Object[_0x5a49e4(0x19a)],_0xd4afa2=Object['getOwnPropertyDescriptor'],_0x4e54a3=Object['getOwnPropertyNames'],_0x259647=Object['getPrototypeOf'],_0x32107d=Object[_0x5a49e4(0x291)]['hasOwnProperty'],_0x5c9ef2=(_0x5be236,_0x3a4ea7,_0x47034b,_0x36ade3)=>{const _0x22ed07=_0x5a49e4;if(_0x3a4ea7&&typeof _0x3a4ea7==_0x22ed07(0x2e5)||typeof _0x3a4ea7==_0x22ed07(0x300)){for(var _0x448f3e=_0x4e54a3(_0x3a4ea7),_0x2dbabc=0x0,_0xa635b1=_0x448f3e[_0x22ed07(0x34f)],_0x503c6a;_0x2dbabc<_0xa635b1;_0x2dbabc++)_0x503c6a=_0x448f3e[_0x2dbabc],!_0x32107d[_0x22ed07(0x325)](_0x5be236,_0x503c6a)&&_0x503c6a!==_0x47034b&&_0x2eef66(_0x5be236,_0x503c6a,{'get':(_0x4e2d7d=>_0x3a4ea7[_0x4e2d7d])['bind'](null,_0x503c6a),'enumerable':!(_0x36ade3=_0xd4afa2(_0x3a4ea7,_0x503c6a))||_0x36ade3['enumerable']});}return _0x5be236;};_0x6b6f07=((_0x46da9a,_0x58319f,_0x594fab)=>(_0x594fab=_0x46da9a==null?{}:_0x5ddda5(_0x259647(_0x46da9a)),_0x5c9ef2(_0x58319f||!_0x46da9a||!_0x46da9a[_0x5a49e4(0x1fd)]||!_0x32107d[_0x5a49e4(0x325)](_0x46da9a,'default')?_0x2eef66(_0x594fab,_0x5a49e4(0x28c),{'value':_0x46da9a,'enumerable':!0x0}):_0x594fab,_0x46da9a)))(_0x6b6f07);var _0x1dc073=class{constructor(_0x4234b7,_0x2007c5,_0x14179c){const _0x3ce576=_0x5a49e4;this[_0x3ce576(0x1f0)]=_0x4234b7,this['_commandService']=_0x2007c5,this[_0x3ce576(0x209)]=_0x14179c;}async['setObjectPermissions'](_0x4ad427){const _0x55953a=_0x5a49e4;return this[_0x55953a(0x1be)][_0x55953a(0x308)](_0x471e22[_0x55953a(0x323)]['id'],{'unitId':this[_0x55953a(0x1f0)],'changes':_0x4ad427});}async[_0x5a49e4(0x32f)](_0x21fa09,_0xdc277){const _0x3a85a9=_0x5a49e4;await this[_0x3a85a9(0x1be)]['executeCommand'](_0x471e22[_0x3a85a9(0x1c1)]['id'],{'unitId':this[_0x3a85a9(0x1f0)],'objectId':this[_0x3a85a9(0x1f0)],'action':_0x21fa09,'value':_0xdc277});}['getPoint'](_0x4950dc){const _0x23af69=_0x5a49e4;return(0x0,_0x471e22[_0x23af69(0x1a0)])(this[_0x23af69(0x209)],this[_0x23af69(0x1f0)],this[_0x23af69(0x1f0)],_0x4950dc);}async['setEditable'](_0x2e04a0=!0x0){const _0x4624cd=_0x5a49e4;await this[_0x4624cd(0x1be)][_0x4624cd(0x308)](_0x471e22['SetBasePermissionCommand']['id'],{'unitId':this[_0x4624cd(0x1f0)],'objectId':this['_unitId'],'action':_0x4ed616[_0x4624cd(0x25a)][_0x4624cd(0x1b0)],'value':_0x2e04a0});}async[_0x5a49e4(0x1a8)](){const _0x16c840=_0x5a49e4;await this[_0x16c840(0x1be)]['executeCommand'](_0x471e22[_0x16c840(0x1c1)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x16c840(0x1f0)],'action':_0x4ed616['UnitAction'][_0x16c840(0x1b0)],'value':!0x1});}['canEdit'](){const _0x3b5378=_0x5a49e4;return(0x0,_0x471e22[_0x3b5378(0x1a0)])(this['_permissionService'],this[_0x3b5378(0x1f0)],this[_0x3b5378(0x1f0)],_0x4ed616[_0x3b5378(0x25a)][_0x3b5378(0x1b0)]);}},_0x1d0494=class{constructor(_0x31e5fa,_0x4dcdf6,_0x4793e1,_0xdb43ad,_0xac5ead){const _0x2b3a73=_0x5a49e4;this[_0x2b3a73(0x1f0)]=_0x31e5fa,this[_0x2b3a73(0x262)]=_0x4dcdf6,this[_0x2b3a73(0x239)]=_0x4793e1,this[_0x2b3a73(0x1be)]=_0xdb43ad,this[_0x2b3a73(0x209)]=_0xac5ead;}async[_0x5a49e4(0x1d1)](_0x59fd50=!0x0){const _0x1fa708=_0x5a49e4;await this[_0x1fa708(0x1be)][_0x1fa708(0x308)](_0x471e22[_0x1fa708(0x1c1)]['id'],{'unitId':this['_unitId'],'objectId':this[_0x1fa708(0x262)],'action':_0x4ed616[_0x1fa708(0x25a)][_0x1fa708(0x1b0)],'value':_0x59fd50});}async['setReadOnly'](){const _0x45bda9=_0x5a49e4;await this[_0x45bda9(0x1be)][_0x45bda9(0x308)](_0x471e22[_0x45bda9(0x1c1)]['id'],{'unitId':this[_0x45bda9(0x1f0)],'objectId':this[_0x45bda9(0x262)],'action':_0x4ed616['UnitAction'][_0x45bda9(0x1b0)],'value':!0x1});}[_0x5a49e4(0x1ac)](){const _0x132fbc=_0x5a49e4;return(0x0,_0x471e22['canEditBaseTargets'])(this[_0x132fbc(0x209)],this['_unitId'],[...this[_0x132fbc(0x239)],this['_objectId']]);}};function _0x197b0f(_0x483420,_0xc39ffb){return function(_0x29f605,_0x119fb1){_0xc39ffb(_0x29f605,_0x119fb1,_0x483420);};}function _0x4ef17f(_0x1e5254,_0x17139b,_0x42e2e4,_0x310bfb){const _0x14bf8=_0x5a49e4;var _0x3a58c3=arguments[_0x14bf8(0x34f)],_0xcabed3=_0x3a58c3<0x3?_0x17139b:_0x310bfb===null?_0x310bfb=Object[_0x14bf8(0x349)](_0x17139b,_0x42e2e4):_0x310bfb,_0x35a182;if(typeof Reflect==_0x14bf8(0x2e5)&&typeof Reflect[_0x14bf8(0x288)]==_0x14bf8(0x300))_0xcabed3=Reflect['decorate'](_0x1e5254,_0x17139b,_0x42e2e4,_0x310bfb);else{for(var _0x131952=_0x1e5254[_0x14bf8(0x34f)]-0x1;_0x131952>=0x0;_0x131952--)(_0x35a182=_0x1e5254[_0x131952])&&(_0xcabed3=(_0x3a58c3<0x3?_0x35a182(_0xcabed3):_0x3a58c3>0x3?_0x35a182(_0x17139b,_0x42e2e4,_0xcabed3):_0x35a182(_0x17139b,_0x42e2e4))||_0xcabed3);}return _0x3a58c3>0x3&&_0xcabed3&&Object[_0x14bf8(0x19a)](_0x17139b,_0x42e2e4,_0xcabed3),_0xcabed3;}let _0x138a01=class{constructor(_0x14ff7f,_0x2dd0f6,_0x2b1cc9,_0x38808e,_0x490789){const _0x3d7b53=_0x5a49e4;this['_base']=_0x14ff7f,this[_0x3d7b53(0x25f)]=_0x2dd0f6,this[_0x3d7b53(0x35c)]=_0x2b1cc9,this[_0x3d7b53(0x1be)]=_0x38808e,this[_0x3d7b53(0x209)]=_0x490789;}[_0x5a49e4(0x32b)](){const _0x464f41=_0x5a49e4;return this[_0x464f41(0x35c)];}[_0x5a49e4(0x352)](){const _0xaa66ab=_0x5a49e4;let _0x4706da=this[_0xaa66ab(0x25f)]['getId']();return new _0x1d0494(this[_0xaa66ab(0x2a0)][_0xaa66ab(0x32b)](),(0x0,_0x471e22[_0xaa66ab(0x29b)])(_0x4706da,this[_0xaa66ab(0x35c)]),[(0x0,_0x471e22[_0xaa66ab(0x251)])(_0x4706da)],this['_commandService'],this[_0xaa66ab(0x209)]);}[_0x5a49e4(0x213)](){return this['_getField']();}[_0x5a49e4(0x31b)](){const _0x2ae84d=_0x5a49e4;return this['_getField']()[_0x2ae84d(0x31d)];}[_0x5a49e4(0x2a7)](){const _0x17a7ab=_0x5a49e4;return this[_0x17a7ab(0x222)]()[_0x17a7ab(0x225)];}[_0x5a49e4(0x1cf)](){const _0x19aa6e=_0x5a49e4;return this[_0x19aa6e(0x222)]()[_0x19aa6e(0x206)];}[_0x5a49e4(0x1aa)](){const _0x482802=_0x5a49e4;return this[_0x482802(0x222)]()[_0x482802(0x294)];}[_0x5a49e4(0x1f7)](){return this['_getField']()['description'];}[_0x5a49e4(0x247)](){const _0x29308b=_0x5a49e4;return!!this[_0x29308b(0x222)]()[_0x29308b(0x254)];}[_0x5a49e4(0x275)](_0x174657){const _0x2d5b40=_0x5a49e4;return this[_0x2d5b40(0x203)]({'name':_0x174657});}[_0x5a49e4(0x22e)](_0x4ad740,_0x3b5e81){return this['update']({'config':_0x4ad740},_0x3b5e81);}[_0x5a49e4(0x1ec)](_0x1a34b6){const _0x57c8a8=_0x5a49e4;return this[_0x57c8a8(0x203)]({'defaultValue':_0x1a34b6});}[_0x5a49e4(0x203)](_0x29b003,_0x1f2f00){const _0x303839=_0x5a49e4;let _0x2a1474=this['_getField']()[_0x303839(0x225)];return(_0x29b003[_0x303839(0x225)]??_0x2a1474)===_0x26e2cd[_0x303839(0x1cd)][_0x303839(0x2e2)]&&(Object[_0x303839(0x291)][_0x303839(0x309)][_0x303839(0x325)](_0x29b003,_0x303839(0x206))||_0x29b003['type']===_0x26e2cd['BaseFieldType'][_0x303839(0x2e2)])&&!this[_0x303839(0x2c5)](_0x1f2f00)?!0x1:this['_commandService'][_0x303839(0x20a)](_0x471e22[_0x303839(0x1f8)]['id'],{'unitId':this[_0x303839(0x2a0)]['getId'](),'tableId':this[_0x303839(0x25f)]['getId'](),'fieldId':this[_0x303839(0x35c)],'patch':_0x29b003});}[_0x5a49e4(0x19c)](_0x10d585,_0x256198={},_0x38d10a){const _0x4786ce=_0x5a49e4;return _0x10d585===_0x26e2cd[_0x4786ce(0x1cd)][_0x4786ce(0x2e2)]&&!this[_0x4786ce(0x2c5)](_0x38d10a)?!0x1:this['_commandService'][_0x4786ce(0x20a)](_0x471e22[_0x4786ce(0x20f)]['id'],{'unitId':this[_0x4786ce(0x2a0)][_0x4786ce(0x32b)](),'tableId':this[_0x4786ce(0x25f)][_0x4786ce(0x32b)](),'fieldId':this['_fieldId'],'input':{'type':_0x10d585,'config':_0x256198}});}[_0x5a49e4(0x34c)](){const _0xa2223d=_0x5a49e4;return this[_0xa2223d(0x1be)][_0xa2223d(0x20a)](_0x471e22[_0xa2223d(0x1af)]['id'],{'unitId':this[_0xa2223d(0x2a0)][_0xa2223d(0x32b)](),'tableId':this[_0xa2223d(0x25f)][_0xa2223d(0x32b)](),'fieldId':this[_0xa2223d(0x35c)]});}[_0x5a49e4(0x1f6)](_0x5798ce){const _0x530e7c=_0x5a49e4;return this['_commandService'][_0x530e7c(0x20a)](_0x471e22[_0x530e7c(0x2d0)]['id'],{'unitId':this[_0x530e7c(0x2a0)][_0x530e7c(0x32b)](),'tableId':this[_0x530e7c(0x25f)][_0x530e7c(0x32b)](),'fieldId':this[_0x530e7c(0x35c)],'target':_0x5798ce});}['_getField'](){const _0x22c855=_0x5a49e4;let _0x3a3c74=this[_0x22c855(0x25f)][_0x22c855(0x1f5)]()['fields'][this[_0x22c855(0x35c)]];if(!_0x3a3c74)throw Error(_0x22c855(0x25c)+this[_0x22c855(0x35c)]+_0x22c855(0x2ed));return _0x3a3c74;}[_0x5a49e4(0x2c5)](_0x25b8ac){const _0x150825=_0x5a49e4;if(!_0x25b8ac||!Array[_0x150825(0x234)](_0x25b8ac['externalReferences']))return console[_0x150825(0x221)]('[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.'),!0x1;if(_0x25b8ac['externalReferences']['length']===0x0)return!0x0;let _0x4f4515=this[_0x150825(0x1be)][_0x150825(0x20a)](_0x30b7c4[_0x150825(0x19e)]['id'],{'unitId':this[_0x150825(0x2a0)][_0x150825(0x32b)](),'references':_0x25b8ac[_0x150825(0x1fa)]});return _0x4f4515||console[_0x150825(0x221)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x4f4515;}};_0x138a01=_0x4ef17f([_0x197b0f(0x3,_0x26e2cd[_0x5a49e4(0x2cd)]),_0x197b0f(0x4,_0x26e2cd['IPermissionService'])],_0x138a01);let _0x51ead3=function(_0x1272e4){const _0x24b826=_0x5a49e4;return _0x1272e4['Id']='id',_0x1272e4[_0x24b826(0x2de)]=_0x24b826(0x31d),_0x1272e4['Auto']='auto',_0x1272e4;}({});function _0x4eb2af(_0x41dbc3){const _0x34ba94=_0x5a49e4;return!!(_0x41dbc3&&_0x41dbc3[_0x34ba94(0x1a2)]!==!0x0&&_0x41dbc3[_0x34ba94(0x225)]!==_0x26e2cd['BaseFieldType'][_0x34ba94(0x2a8)]);}function _0x1c32b4(_0x545fc3,_0xc4f480,_0x3fa27a='id'){const _0x245910=_0x5a49e4;if(!_0xc4f480)return{};let _0x2dee29={};return Object[_0x245910(0x1fe)](_0xc4f480)[_0x245910(0x20d)](([_0x424e9e,_0x3befd0])=>{const _0x2d4aaf=_0x245910;let _0x10905c=_0x40f984(_0x545fc3,_0x424e9e,_0x3fa27a);_0x2dee29[_0x10905c]=_0x4435b6(_0x545fc3[_0x2d4aaf(0x212)][_0x10905c],_0x3befd0);}),_0x2dee29;}function _0x4435b6(_0x4c724d,_0x10e4d7){const _0x33b471=_0x5a49e4;if((_0x4c724d==null?void 0x0:_0x4c724d['type'])!==_0x26e2cd[_0x33b471(0x1cd)][_0x33b471(0x201)]||_0x10e4d7==null)return _0x10e4d7;if(!Array[_0x33b471(0x234)](_0x10e4d7))throw TypeError('Invalid\x20attachment\x20value\x20for\x20field\x20\x22'+_0x4c724d[_0x33b471(0x31d)]+'\x22:\x20expected\x20an\x20array.');return _0x10e4d7[_0x33b471(0x19b)]((_0x348465,_0x4d0b64)=>_0x3c2a5c(_0x4c724d,_0x348465,_0x4d0b64));}function _0x40f984(_0x34dd41,_0x3b386a,_0xedb73d){const _0x409d02=_0x5a49e4;if(_0xedb73d==='id'||_0xedb73d==='auto'&&_0x34dd41[_0x409d02(0x212)][_0x3b386a])return _0x3b386a;let _0x4033a5=Object[_0x409d02(0x289)](_0x34dd41[_0x409d02(0x212)])[_0x409d02(0x208)](_0x301a13=>_0x301a13[_0x409d02(0x31d)]===_0x3b386a);if(_0x4033a5['length']===0x1)return _0x4033a5[0x0]['id'];throw _0x4033a5[_0x409d02(0x34f)]>0x1?Error(_0x409d02(0x1ff)+_0x3b386a):Error('Base\x20field\x20not\x20found:\x20'+_0x3b386a);}function _0x3c2a5c(_0xcdc5e8,_0x2e702b,_0x1db250){const _0x5ab6bb=_0x5a49e4;let _0x5410b3=_0x5ab6bb(0x27c)+_0x1db250+_0x5ab6bb(0x315)+_0xcdc5e8['name']+'\x22';if(!_0x5f142c(_0x2e702b))throw TypeError(_0x5410b3+':\x20expected\x20an\x20object.');if(_0x5ab6bb(0x279)in _0x2e702b)throw TypeError(_0x5410b3+_0x5ab6bb(0x2b0));if('type'in _0x2e702b)throw TypeError(_0x5410b3+_0x5ab6bb(0x230));let _0x52271f=_0x4e811f(_0x2e702b['id'],_0x5410b3,'id'),_0x15cc7c=_0x4e811f(_0x2e702b[_0x5ab6bb(0x31d)],_0x5410b3,_0x5ab6bb(0x31d)),_0x75e3d1=_0x4e811f(_0x2e702b['source'],_0x5410b3,'source');return{'id':_0x52271f,'name':_0x15cc7c,'source':_0x75e3d1,'sourceType':_0x33571e(_0x2e702b[_0x5ab6bb(0x2aa)],_0x75e3d1,_0x5410b3),..._0x4938c4(_0x2e702b,_0x5ab6bb(0x1c8),_0x5410b3),..._0x326cab(_0x2e702b,_0x5ab6bb(0x299),_0x5410b3),..._0x326cab(_0x2e702b,_0x5ab6bb(0x327),_0x5410b3),..._0x326cab(_0x2e702b,_0x5ab6bb(0x27e),_0x5410b3),..._0x4938c4(_0x2e702b,_0x5ab6bb(0x29e),_0x5410b3)};}function _0x33571e(_0x24fe12,_0x3b9e90,_0xcae607){const _0x3f7c66=_0x5a49e4;if(_0x24fe12==null)return _0x3b9e90[_0x3f7c66(0x2b6)](_0x3f7c66(0x342))?_0x26e2cd['ImageSourceType']['BASE64']:_0x26e2cd[_0x3f7c66(0x214)][_0x3f7c66(0x34d)];if(_0x24fe12===_0x26e2cd[_0x3f7c66(0x214)][_0x3f7c66(0x34d)]||_0x24fe12===_0x26e2cd[_0x3f7c66(0x214)][_0x3f7c66(0x1e7)]||_0x24fe12===_0x26e2cd[_0x3f7c66(0x214)][_0x3f7c66(0x23d)])return _0x24fe12;throw TypeError(_0xcae607+_0x3f7c66(0x32e));}function _0x4e811f(_0x3f5061,_0x1dfdef,_0x22f08d){const _0x3b92d8=_0x5a49e4;if(typeof _0x3f5061!=_0x3b92d8(0x1b2)||!_0x3f5061[_0x3b92d8(0x236)]())throw TypeError(_0x1dfdef+':\x20\x22'+_0x22f08d+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x3f5061;}function _0x4938c4(_0x498c77,_0x55cd70,_0x2a5222){const _0x23bb85=_0x5a49e4;let _0x4a2748=_0x498c77[_0x55cd70];if(_0x4a2748==null)return{};if(typeof _0x4a2748!=_0x23bb85(0x1b2)||!_0x4a2748[_0x23bb85(0x236)]())throw TypeError(_0x2a5222+_0x23bb85(0x19f)+_0x55cd70+_0x23bb85(0x2d7));return{[_0x55cd70]:_0x4a2748};}function _0x326cab(_0xa2efb2,_0x11c0ab,_0xb33aa9){const _0xc9e108=_0x5a49e4;let _0x41ff90=_0xa2efb2[_0x11c0ab];if(_0x41ff90==null)return{};if(typeof _0x41ff90!=_0xc9e108(0x2c0)||!Number['isFinite'](_0x41ff90)||_0x41ff90<0x0)throw TypeError(_0xb33aa9+_0xc9e108(0x19f)+_0x11c0ab+_0xc9e108(0x2c2));return{[_0x11c0ab]:_0x41ff90};}function _0x5f142c(_0xa2a674){const _0x313312=_0x5a49e4;return typeof _0xa2a674==_0x313312(0x2e5)&&!!_0xa2a674&&!Array[_0x313312(0x234)](_0xa2a674);}var _0x4d20e6;let _0x39a5e1=_0x4d20e6=class{constructor(_0x2586ba,_0x34e4ca,_0x3f7581,_0x5a3082,_0x303761){const _0x22fa8e=_0x5a49e4;this[_0x22fa8e(0x2a0)]=_0x2586ba,this['_table']=_0x34e4ca,this[_0x22fa8e(0x25b)]=_0x3f7581,this['_inject']=_0x5a3082,this['_commandService']=_0x303761,this[_0x22fa8e(0x2bb)]();}['getBaseId'](){return this['_base']['getId']();}['getTableId'](){const _0xb74a8c=_0x5a49e4;return this[_0xb74a8c(0x25f)][_0xb74a8c(0x32b)]();}[_0x5a49e4(0x357)](){const _0x480401=_0x5a49e4;return{...this[_0x480401(0x25b)]};}[_0x5a49e4(0x216)](){const _0x584302=_0x5a49e4;return this[_0x584302(0x25b)][_0x584302(0x331)];}['getColumn'](){const _0x36717f=_0x5a49e4;return this['_range'][_0x36717f(0x1f2)];}['getNumRows'](){const _0x5b2a05=_0x5a49e4;return this['_range'][_0x5b2a05(0x2b3)]-this['_range'][_0x5b2a05(0x331)]+0x1;}[_0x5a49e4(0x1b1)](){const _0x7a2dd=_0x5a49e4;return this[_0x7a2dd(0x25b)][_0x7a2dd(0x248)]-this[_0x7a2dd(0x25b)][_0x7a2dd(0x1f2)]+0x1;}['getValues'](){const _0x65bceb=_0x5a49e4;let _0x87d19e=this['_getTable'](),_0x5ced1f=this[_0x65bceb(0x306)](_0x87d19e),_0x38d256=[];for(let _0x3a43f5=this['_range']['startRow'];_0x3a43f5<=this['_range']['endRow'];_0x3a43f5++){var _0x183a30;let _0x3123fe=(_0x183a30=_0x87d19e['rowId'])==null?void 0x0:_0x183a30[_0x3a43f5],_0x1a8d01=[];for(let _0x4c8fb8=this[_0x65bceb(0x25b)]['startColumn'];_0x4c8fb8<=this[_0x65bceb(0x25b)][_0x65bceb(0x248)];_0x4c8fb8++){let _0x15165e=_0x5ced1f[_0x4c8fb8];_0x1a8d01[_0x65bceb(0x2f4)](_0x3123fe&&_0x15165e?(0x0,_0x471e22[_0x65bceb(0x27a)])(_0x87d19e,_0x3123fe,_0x15165e):null);}_0x38d256[_0x65bceb(0x2f4)](_0x1a8d01);}return _0x38d256;}['getValue'](){const _0x261152=_0x5a49e4;var _0x392b3d;return((_0x392b3d=this[_0x261152(0x340)]()[0x0])==null?void 0x0:_0x392b3d[0x0])??null;}['setValue'](_0x47ca92){return this['setValues']([[_0x47ca92]]);}[_0x5a49e4(0x301)](_0x5e5bac){const _0x50de71=_0x5a49e4;let _0x1cc2e4=this['getNumRows'](),_0x4b3f15=this[_0x50de71(0x1b1)]();if(_0x5e5bac['length']>_0x1cc2e4||_0x5e5bac[_0x50de71(0x2d5)](_0x511f7f=>_0x511f7f['length']>_0x4b3f15)){var _0x1f90c4;throw Error(_0x50de71(0x1ed)+_0x5e5bac[_0x50de71(0x34f)]+'x'+(((_0x1f90c4=_0x5e5bac[0x0])==null?void 0x0:_0x1f90c4[_0x50de71(0x34f)])??0x0)+_0x50de71(0x278)+_0x1cc2e4+'x'+_0x4b3f15+'.');}let _0x1d4147=this[_0x50de71(0x1e2)](),_0x21d53f=this['_getFieldIds'](_0x1d4147),_0x2b25e2=_0x5e5bac['flatMap']((_0x2c02fc,_0x4dbdbf)=>_0x2c02fc[_0x50de71(0x19b)]((_0x14b518,_0x40c9fc)=>{const _0x46ea1e=_0x50de71;var _0x59979f;let _0x344b1f=this[_0x46ea1e(0x25b)]['startRow']+_0x4dbdbf,_0x52035b=_0x21d53f[this[_0x46ea1e(0x25b)][_0x46ea1e(0x1f2)]+_0x40c9fc],_0x53e044=(_0x59979f=_0x1d4147[_0x46ea1e(0x2ba)])==null?void 0x0:_0x59979f[_0x344b1f];if(!_0x52035b||!_0x53e044)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x53e044,'fieldId':_0x52035b,'value':_0x14b518};}));return this['_commandService'][_0x50de71(0x20a)](_0x471e22[_0x50de71(0x22b)]['id'],{'unitId':this['_base'][_0x50de71(0x32b)](),'tableId':this[_0x50de71(0x25f)][_0x50de71(0x32b)](),'patches':_0x2b25e2,'source':_0x471e22[_0x50de71(0x27b)]['Facade']});}[_0x5a49e4(0x341)](){const _0x3a11f0=_0x5a49e4;return this[_0x3a11f0(0x301)](Array[_0x3a11f0(0x30b)]({'length':this[_0x3a11f0(0x26d)]()},()=>Array['from']({'length':this[_0x3a11f0(0x1b1)]()},()=>null)));}[_0x5a49e4(0x267)](_0x3b76cc,_0x58626c,_0x11a22d=this['getNumRows'](),_0x6877e4=this[_0x5a49e4(0x1b1)]()){const _0x15a7d9=_0x5a49e4;return this[_0x15a7d9(0x273)]['createInstance'](_0x4d20e6,this[_0x15a7d9(0x2a0)],this[_0x15a7d9(0x25f)],{'startRow':this[_0x15a7d9(0x25b)][_0x15a7d9(0x331)]+_0x3b76cc,'startColumn':this[_0x15a7d9(0x25b)][_0x15a7d9(0x1f2)]+_0x58626c,'endRow':this[_0x15a7d9(0x25b)]['startRow']+_0x3b76cc+_0x11a22d-0x1,'endColumn':this[_0x15a7d9(0x25b)]['startColumn']+_0x58626c+_0x6877e4-0x1},this[_0x15a7d9(0x273)]);}['_getTable'](){const _0x9c4c72=_0x5a49e4;let _0x25967a=this[_0x9c4c72(0x25f)][_0x9c4c72(0x1f5)]();if(!_0x25967a)throw Error(_0x9c4c72(0x240));return(0x0,_0x471e22[_0x9c4c72(0x23c)])(_0x25967a);}[_0x5a49e4(0x2bb)](){const _0x26bdfa=_0x5a49e4;var _0x473dbe;let _0x4e6ac4=this[_0x26bdfa(0x1e2)](),_0x212d49=((_0x473dbe=_0x4e6ac4[_0x26bdfa(0x1a7)])==null?void 0x0:_0x473dbe[_0x26bdfa(0x34f)])??0x0,_0x1384bf=this[_0x26bdfa(0x306)](_0x4e6ac4)[_0x26bdfa(0x34f)];if(this[_0x26bdfa(0x25b)][_0x26bdfa(0x331)]<0x0||this[_0x26bdfa(0x25b)][_0x26bdfa(0x1f2)]<0x0||this[_0x26bdfa(0x25b)]['endRow']<this[_0x26bdfa(0x25b)][_0x26bdfa(0x331)]||this[_0x26bdfa(0x25b)][_0x26bdfa(0x248)]<this['_range'][_0x26bdfa(0x1f2)]||this[_0x26bdfa(0x25b)][_0x26bdfa(0x2b3)]>=Math[_0x26bdfa(0x2b1)](_0x212d49,0x1)||this[_0x26bdfa(0x25b)][_0x26bdfa(0x248)]>=Math[_0x26bdfa(0x2b1)](_0x1384bf,0x1))throw Error(_0x26bdfa(0x33d)+_0x212d49+_0x26bdfa(0x1b8)+_0x1384bf+_0x26bdfa(0x2bd)+JSON[_0x26bdfa(0x219)](this['_range'])+'.');}[_0x5a49e4(0x306)](_0x562651){const _0x5b8f7d=_0x5a49e4;return _0x562651[_0x5b8f7d(0x1ce)][_0x5b8f7d(0x208)](_0x456249=>_0x4eb2af(_0x562651['fields'][_0x456249]));}};_0x39a5e1=_0x4d20e6=_0x4ef17f([_0x197b0f(0x4,_0x26e2cd[_0x5a49e4(0x2cd)])],_0x39a5e1);function _0x232979(_0x378a9d){'@babel/helpers - typeof';const _0x234593=_0x5a49e4;return _0x232979=typeof Symbol==_0x234593(0x300)&&typeof Symbol['iterator']==_0x234593(0x35b)?function(_0x4b4d35){return typeof _0x4b4d35;}:function(_0x3776a8){const _0x261be5=_0x234593;return _0x3776a8&&typeof Symbol==_0x261be5(0x300)&&_0x3776a8[_0x261be5(0x1b7)]===Symbol&&_0x3776a8!==Symbol[_0x261be5(0x291)]?_0x261be5(0x35b):typeof _0x3776a8;},_0x232979(_0x378a9d);}function _0x49ab5d(_0x174bc6,_0x3365f3){const _0x262227=_0x5a49e4;if(_0x232979(_0x174bc6)!=_0x262227(0x2e5)||!_0x174bc6)return _0x174bc6;var _0x5b1a46=_0x174bc6[Symbol[_0x262227(0x2a5)]];if(_0x5b1a46!==void 0x0){var _0x55230d=_0x5b1a46['call'](_0x174bc6,_0x3365f3||'default');if(_0x232979(_0x55230d)!='object')return _0x55230d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3365f3===_0x262227(0x1b2)?String:Number)(_0x174bc6);}function _0x46034d(_0x3d294c){const _0x5a270b=_0x5a49e4;var _0x16fbab=_0x49ab5d(_0x3d294c,_0x5a270b(0x1b2));return _0x232979(_0x16fbab)==_0x5a270b(0x35b)?_0x16fbab:_0x16fbab+'';}function _0x1677c3(_0x3809ba,_0x13d130,_0x275896){return(_0x13d130=_0x46034d(_0x13d130))in _0x3809ba?Object['defineProperty'](_0x3809ba,_0x13d130,{'value':_0x275896,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3809ba[_0x13d130]=_0x275896,_0x3809ba;}var _0x212fbf;let _0x457046=_0x212fbf=class extends _0x6b6f07[_0x5a49e4(0x255)]{constructor(_0x35d53c,_0x3d9190,_0x5d61d6,_0x22636b,_0x2722f7,_0x11b53d){const _0x439ba9=_0x5a49e4;super(_0x22636b),this[_0x439ba9(0x2a0)]=_0x35d53c,this[_0x439ba9(0x25f)]=_0x3d9190,this[_0x439ba9(0x26e)]=_0x5d61d6,this['_injector']=_0x22636b,this[_0x439ba9(0x1be)]=_0x2722f7,this[_0x439ba9(0x209)]=_0x11b53d,_0x1677c3(this,_0x439ba9(0x29f),void 0x0),_0x1677c3(this,_0x439ba9(0x2dc),void 0x0),this['_baseUnitId']=_0x35d53c[_0x439ba9(0x32b)](),this[_0x439ba9(0x2dc)]=_0x3d9190[_0x439ba9(0x32b)]();}['getBaseFacade'](){const _0x17da7e=_0x5a49e4;return this[_0x17da7e(0x2a0)];}['getTableFacade'](){const _0x154c4a=_0x5a49e4;return this[_0x154c4a(0x25f)];}[_0x5a49e4(0x32b)](){return this['_recordId'];}[_0x5a49e4(0x352)](){const _0x2c61ce=_0x5a49e4;let _0x2e0d0c=this[_0x2c61ce(0x25f)][_0x2c61ce(0x32b)]();return new _0x1d0494(this[_0x2c61ce(0x2a0)][_0x2c61ce(0x32b)](),(0x0,_0x471e22['getBaseRecordPermissionObjectId'])(_0x2e0d0c,this[_0x2c61ce(0x26e)]),[(0x0,_0x471e22[_0x2c61ce(0x251)])(_0x2e0d0c)],this[_0x2c61ce(0x1be)],this[_0x2c61ce(0x209)]);}[_0x5a49e4(0x2bc)](){const _0x21ad61=_0x5a49e4;return{...this[_0x21ad61(0x27d)](),'values':this[_0x21ad61(0x340)]()};}['getValue'](_0x29c0c8){const _0x383d7d=_0x5a49e4;return _0x4eb2af(this['_table']['getTable']()[_0x383d7d(0x212)][_0x29c0c8])?this[_0x383d7d(0x27d)]()['values'][_0x29c0c8]??null:null;}[_0x5a49e4(0x340)](){const _0x827ffc=_0x5a49e4;let _0x4fc3ae=this['_table'][_0x827ffc(0x1f5)]();return Object['fromEntries'](Object['entries'](this[_0x827ffc(0x27d)]()['values'])[_0x827ffc(0x208)](([_0x54c7f3])=>_0x4eb2af(_0x4fc3ae[_0x827ffc(0x212)][_0x54c7f3])));}[_0x5a49e4(0x1ca)](_0x5e450b,_0xdbc34c){const _0x4e09b6=_0x5a49e4;let _0x18da0c=this[_0x4e09b6(0x25f)]['getTable']()[_0x4e09b6(0x212)][_0x5e450b];return this[_0x4e09b6(0x1be)][_0x4e09b6(0x20a)](_0x471e22['UpdateBaseCellCommand']['id'],{'unitId':this[_0x4e09b6(0x2a0)][_0x4e09b6(0x32b)](),'tableId':this[_0x4e09b6(0x25f)][_0x4e09b6(0x32b)](),'recordId':this[_0x4e09b6(0x26e)],'fieldId':_0x5e450b,'value':_0x4435b6(_0x18da0c,_0xdbc34c),'source':_0x471e22[_0x4e09b6(0x27b)]['Facade']});}[_0x5a49e4(0x312)](_0x27eef0,_0x17459e){const _0x548249=_0x5a49e4;return this['setValue'](_0x27eef0,_0x17459e[_0x548249(0x19b)](_0x339922=>({..._0x339922})));}[_0x5a49e4(0x1a4)](_0x32bd65){const _0x256957=_0x5a49e4;this[_0x256957(0x268)](_0x32bd65);let _0x5a5b08=this[_0x256957(0x202)](_0x32bd65);return Array[_0x256957(0x234)](_0x5a5b08)?_0x5a5b08[_0x256957(0x19b)]((_0xf7dcd4,_0x6dbfc2)=>_0xe7381(_0xf7dcd4,_0x32bd65,_0x6dbfc2)):[];}[_0x5a49e4(0x276)](_0x450bdf,_0x11a35b){const _0x5a94f3=_0x5a49e4;this[_0x5a94f3(0x268)](_0x450bdf);let _0x16e078=new Set(_0x11a35b[_0x5a94f3(0x19b)](_0x3fcd80=>_0x3fcd80['id']));if(!_0x16e078[_0x5a94f3(0x299)])return!0x0;let _0x238ca9=this['getAttachments'](_0x450bdf),_0x52fd48=_0x238ca9[_0x5a94f3(0x208)](_0x552ba6=>!_0x16e078['has'](_0x552ba6['id']));return _0x52fd48['length']===_0x238ca9[_0x5a94f3(0x34f)]||this[_0x5a94f3(0x312)](_0x450bdf,_0x52fd48);}[_0x5a49e4(0x301)](_0x1235e0,_0x2431f0='id'){const _0xf2e3e6=_0x5a49e4;let _0x8a3b10=this['_table']['getTable'](),_0x17cbb1=[{'recordId':this['_recordId'],'values':_0x1c32b4(_0x8a3b10,_0x1235e0,_0x2431f0)}];return this['_commandService'][_0xf2e3e6(0x20a)](_0x471e22[_0xf2e3e6(0x24e)]['id'],{'unitId':this[_0xf2e3e6(0x2a0)][_0xf2e3e6(0x32b)](),'tableId':this[_0xf2e3e6(0x25f)][_0xf2e3e6(0x32b)](),'patches':_0x17cbb1,'source':_0x471e22['BaseEventSource']['Facade']});}['delete'](){const _0x2cc67e=_0x5a49e4;return this['_commandService'][_0x2cc67e(0x20a)](_0x471e22[_0x2cc67e(0x1c3)]['id'],{'unitId':this['_base'][_0x2cc67e(0x32b)](),'tableId':this[_0x2cc67e(0x25f)][_0x2cc67e(0x32b)](),'recordId':this[_0x2cc67e(0x26e)],'source':_0x471e22[_0x2cc67e(0x27b)]['Facade']});}[_0x5a49e4(0x270)](_0x3711c0){const _0x1ff38b=_0x5a49e4;let _0x29a8e0={...this[_0x1ff38b(0x27d)](),..._0x3711c0,'id':(0x0,_0x26e2cd[_0x1ff38b(0x2ca)])(0x6)};_0x29a8e0['values']={..._0x29a8e0[_0x1ff38b(0x289)],..._0x3711c0==null?void 0x0:_0x3711c0['values']},Reflect[_0x1ff38b(0x2a4)](_0x29a8e0[_0x1ff38b(0x289)],_0x26e2cd[_0x1ff38b(0x353)]);let _0x327ce1=Date[_0x1ff38b(0x205)]();if(_0x29a8e0[_0x1ff38b(0x1ea)]||=''+_0x327ce1,_0x29a8e0[_0x1ff38b(0x19d)]||=_0x327ce1,_0x29a8e0['updatedAt']||=_0x327ce1,!this[_0x1ff38b(0x1be)][_0x1ff38b(0x20a)](_0x471e22[_0x1ff38b(0x1bf)]['id'],{'unitId':this['_base'][_0x1ff38b(0x32b)](),'tableId':this['_table']['getId'](),'sourceRecordId':this['_recordId'],'record':_0x29a8e0,'source':_0x471e22[_0x1ff38b(0x27b)][_0x1ff38b(0x1dc)]}))throw Error(_0x1ff38b(0x224)+this[_0x1ff38b(0x26e)]+'\x22.');return this[_0x1ff38b(0x2c1)][_0x1ff38b(0x345)](_0x212fbf,this[_0x1ff38b(0x2a0)],this['_table'],_0x29a8e0['id'],this['_injector']);}['setOrderKey'](_0x2af746){const _0x1ef588=_0x5a49e4;return this['_commandService'][_0x1ef588(0x20a)](_0x471e22[_0x1ef588(0x1e6)]['id'],{'unitId':this[_0x1ef588(0x2a0)][_0x1ef588(0x32b)](),'tableId':this[_0x1ef588(0x25f)]['getId'](),'recordId':this['_recordId'],'orderKey':_0x2af746});}['getLinkedRecordIds'](_0x2b02b3){const _0x3df803=_0x5a49e4;let _0x483118=this['_getRecordLinkField'](_0x2b02b3),_0x52fb59=this[_0x3df803(0x202)](_0x483118['id']);return(0x0,_0x471e22['parseRecordLinkIds'])(_0x52fb59);}[_0x5a49e4(0x2a2)](_0x179598,_0x39c704){const _0x2f6f55=_0x5a49e4;let _0x125a36=this['_getRecordLinkField'](_0x179598),_0x3663bf=(0x0,_0x471e22[_0x2f6f55(0x310)])(_0x39c704),_0x4ddc35=(0x0,_0x471e22['validateRecordLinkValue'])(this['_base'][_0x2f6f55(0x30f)]()[_0x2f6f55(0x2c4)](),_0x125a36,_0x3663bf);if(!_0x4ddc35[_0x2f6f55(0x2f3)])throw Error(_0x4ddc35[_0x2f6f55(0x33a)]??_0x2f6f55(0x2b9));return this['_commandService'][_0x2f6f55(0x20a)](_0x471e22['UpdateBaseCellCommand']['id'],{'unitId':this[_0x2f6f55(0x2a0)][_0x2f6f55(0x32b)](),'tableId':this[_0x2f6f55(0x25f)][_0x2f6f55(0x32b)](),'recordId':this[_0x2f6f55(0x26e)],'fieldId':_0x179598,'value':_0x3663bf,'source':_0x471e22[_0x2f6f55(0x27b)][_0x2f6f55(0x1dc)]});}['addLinkedRecord'](_0x3c2d25,_0x58431b){const _0xc5d94f=_0x5a49e4;let _0x51b9fb=this[_0xc5d94f(0x35d)](_0x3c2d25),_0x5bcc36=(0x0,_0x471e22[_0xc5d94f(0x20e)])(_0x51b9fb);if(!_0x5bcc36)throw Error(_0xc5d94f(0x33e)+_0x3c2d25+_0xc5d94f(0x1fc));let _0x652afe=this['getLinkedRecordIds'](_0x3c2d25);return _0x5bcc36[_0xc5d94f(0x344)]&&_0x652afe[_0xc5d94f(0x28a)](_0x58431b)?!0x0:this[_0xc5d94f(0x2a2)](_0x3c2d25,_0x5bcc36[_0xc5d94f(0x344)]?[..._0x652afe,_0x58431b]:[_0x58431b]);}[_0x5a49e4(0x354)](_0x545246,_0x1fe0fa){const _0x31889d=_0x5a49e4;let _0x53f0c4=this[_0x31889d(0x1a6)](_0x545246);return!_0x53f0c4[_0x31889d(0x28a)](_0x1fe0fa)||this['setLinkedRecordIds'](_0x545246,_0x53f0c4['filter'](_0x2276f3=>_0x2276f3!==_0x1fe0fa));}[_0x5a49e4(0x2f2)](_0x1b8823){const _0x56cccd=_0x5a49e4;let _0x2ce6d8=this[_0x56cccd(0x31c)](_0x1b8823)[_0x56cccd(0x304)][_0x56cccd(0x29a)](this[_0x56cccd(0x26e)])??null;return _0x2ce6d8?this[_0x56cccd(0x25f)]['getRecordById'](_0x2ce6d8):null;}['getChildren'](_0x3af5b8){const _0x9115cc=_0x5a49e4;return(this[_0x9115cc(0x31c)](_0x3af5b8)['childrenByParentId'][_0x9115cc(0x29a)](this[_0x9115cc(0x26e)])??[])[_0x9115cc(0x1c2)](_0x2b2fc3=>{const _0x546a2d=_0x9115cc;let _0x369651=this['_table'][_0x546a2d(0x30c)](_0x2b2fc3);return _0x369651?[_0x369651]:[];});}[_0x5a49e4(0x333)](_0x483205){const _0x3a7242=_0x5a49e4;let _0x16657b=this[_0x3a7242(0x31c)](_0x483205),_0x365310=[],_0x3a711c=_0x16657b[_0x3a7242(0x304)][_0x3a7242(0x29a)](this[_0x3a7242(0x26e)])??null;for(;_0x3a711c;){let _0x63f018=this[_0x3a7242(0x25f)][_0x3a7242(0x30c)](_0x3a711c);_0x63f018&&_0x365310[_0x3a7242(0x2f4)](_0x63f018),_0x3a711c=_0x16657b['parentByRecordId']['get'](_0x3a711c)??null;}return _0x365310;}[_0x5a49e4(0x2b2)](_0x1e126f){const _0x458168=_0x5a49e4;let _0x540856=this[_0x458168(0x31c)](_0x1e126f),_0x4f4c08=_0x540856['orderedRecordIds'][_0x458168(0x328)](this[_0x458168(0x26e)]),_0x4e2dfe=_0x540856['subtreeHeightByRecordId'][_0x458168(0x2b8)](this[_0x458168(0x26e)])?this[_0x458168(0x2d2)](_0x540856[_0x458168(0x211)],this[_0x458168(0x26e)]):[];return _0x4f4c08<0x0?[]:_0x4e2dfe[_0x458168(0x1c2)](_0x413c53=>{const _0x4c9020=_0x458168;let _0x37d5e5=this[_0x4c9020(0x25f)][_0x4c9020(0x30c)](_0x413c53);return _0x37d5e5?[_0x37d5e5]:[];});}['setParent'](_0x27d828,_0x4598e0,_0x508ea7){const _0x2bb7ed=_0x5a49e4;return this[_0x2bb7ed(0x1be)]['syncExecuteCommand'](_0x471e22['MoveBaseHierarchyRecordCommand']['id'],{'unitId':this['_base'][_0x2bb7ed(0x32b)](),'tableId':this[_0x2bb7ed(0x25f)][_0x2bb7ed(0x32b)](),'fieldId':_0x27d828,'recordId':this[_0x2bb7ed(0x26e)],'parentRecordId':_0x4598e0,'orderKey':_0x508ea7,'source':_0x471e22[_0x2bb7ed(0x27b)][_0x2bb7ed(0x1dc)]});}[_0x5a49e4(0x319)](_0x3f3723,_0x1f1ac9,_0x378009='id',_0x309950){const _0x5196ff=_0x5a49e4;let _0x17c8e8=this[_0x5196ff(0x25f)]['getTable'](),_0x545817=Date[_0x5196ff(0x205)](),_0x25d446={..._0x309950,'id':(0x0,_0x26e2cd['generateRandomId'])(0x6),'values':_0x1c32b4(_0x17c8e8,_0x1f1ac9,_0x378009),'orderKey':(_0x309950==null?void 0x0:_0x309950[_0x5196ff(0x1ea)])||''+_0x545817,'createdAt':(_0x309950==null?void 0x0:_0x309950[_0x5196ff(0x19d)])||_0x545817,'updatedAt':(_0x309950==null?void 0x0:_0x309950[_0x5196ff(0x1cb)])||_0x545817};if(!this['_commandService']['syncExecuteCommand'](_0x471e22[_0x5196ff(0x2f5)]['id'],{'unitId':this[_0x5196ff(0x2a0)][_0x5196ff(0x32b)](),'tableId':this[_0x5196ff(0x25f)][_0x5196ff(0x32b)](),'fieldId':_0x3f3723,'parentRecordId':this[_0x5196ff(0x26e)],'record':_0x25d446,'source':_0x471e22[_0x5196ff(0x27b)]['Facade']}))throw Error(_0x5196ff(0x2ce)+this[_0x5196ff(0x26e)]+'\x22.');return this['_injector'][_0x5196ff(0x345)](_0x212fbf,this[_0x5196ff(0x2a0)],this[_0x5196ff(0x25f)],_0x25d446['id'],this[_0x5196ff(0x2c1)]);}[_0x5a49e4(0x31c)](_0x3f85f9){const _0x55b089=_0x5a49e4;return(0x0,_0x471e22[_0x55b089(0x1f3)])(this[_0x55b089(0x25f)][_0x55b089(0x1f5)](),_0x3f85f9);}[_0x5a49e4(0x2d2)](_0x15524c,_0x3ffbf5){let _0x38100c=[],_0xfa5c61=_0x44164a=>{const _0x5d10bd=_0x586a;for(let _0x14465d of _0x15524c[_0x5d10bd(0x29a)](_0x44164a)??[])_0x38100c[_0x5d10bd(0x2f4)](_0x14465d),_0xfa5c61(_0x14465d);};return _0xfa5c61(_0x3ffbf5),_0x38100c;}[_0x5a49e4(0x27d)](){const _0xdaaa08=_0x5a49e4;let _0x5e007a=this[_0xdaaa08(0x25f)][_0xdaaa08(0x1f5)]()[_0xdaaa08(0x320)][this[_0xdaaa08(0x26e)]];if(!_0x5e007a)throw Error(_0xdaaa08(0x346)+this[_0xdaaa08(0x26e)]+_0xdaaa08(0x2ed));return _0x5e007a;}['_getRecordLinkField'](_0x2bce8b){const _0x463d8f=_0x5a49e4;let _0x2595e5=this[_0x463d8f(0x25f)][_0x463d8f(0x1f5)]()[_0x463d8f(0x212)][_0x2bce8b];if(!_0x2595e5||_0x2595e5['type']!==_0x26e2cd['BaseFieldType'][_0x463d8f(0x223)])throw Error(_0x463d8f(0x348)+_0x2bce8b+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x2595e5;}[_0x5a49e4(0x268)](_0x41d3ff){const _0x1bb88b=_0x5a49e4;let _0x3518c9=this[_0x1bb88b(0x25f)][_0x1bb88b(0x1f5)]()[_0x1bb88b(0x212)][_0x41d3ff];if(!_0x3518c9||_0x3518c9[_0x1bb88b(0x225)]!==_0x26e2cd[_0x1bb88b(0x1cd)][_0x1bb88b(0x201)])throw Error('[FRecord]:\x20field\x20\x22'+_0x41d3ff+'\x22\x20is\x20not\x20an\x20Attachment\x20field.');return _0x3518c9;}};_0x457046=_0x212fbf=_0x4ef17f([_0x197b0f(0x4,_0x26e2cd[_0x5a49e4(0x2cd)]),_0x197b0f(0x5,_0x26e2cd[_0x5a49e4(0x317)])],_0x457046);function _0x789d89(_0x412ebc){const _0x581c14=_0x5a49e4;return!!(_0x412ebc&&typeof _0x412ebc=='object'&&'id'in _0x412ebc&&typeof _0x412ebc['id']==_0x581c14(0x1b2)&&_0x581c14(0x31d)in _0x412ebc&&typeof _0x412ebc['name']=='string');}function _0xe7381(_0x213b23,_0x2429a2,_0xd242aa){const _0x1b0dbd=_0x5a49e4;if(!_0x789d89(_0x213b23))throw Error(_0x1b0dbd(0x298)+_0xd242aa+_0x1b0dbd(0x322)+_0x2429a2+'\x22\x20is\x20invalid.');return{..._0x213b23};}let _0x1284f7=class{constructor(_0x82069b,_0x2a199e,_0x48024b,_0x3e8608,_0x4363f0,_0x81f47c,_0x226a39){const _0x686eb4=_0x5a49e4;this[_0x686eb4(0x2a0)]=_0x82069b,this[_0x686eb4(0x25f)]=_0x2a199e,this['_viewId']=_0x48024b,this[_0x686eb4(0x2c1)]=_0x3e8608,this['_commandService']=_0x4363f0,this[_0x686eb4(0x209)]=_0x81f47c,this[_0x686eb4(0x2e1)]=_0x226a39;}[_0x5a49e4(0x32b)](){const _0x5bcb61=_0x5a49e4;return this[_0x5bcb61(0x2ad)];}[_0x5a49e4(0x352)](){const _0x2ead3a=_0x5a49e4;let _0x579d85=this[_0x2ead3a(0x25f)][_0x2ead3a(0x32b)]();return new _0x1d0494(this[_0x2ead3a(0x2a0)][_0x2ead3a(0x32b)](),(0x0,_0x471e22[_0x2ead3a(0x34e)])(_0x579d85,this[_0x2ead3a(0x2ad)]),[(0x0,_0x471e22[_0x2ead3a(0x251)])(_0x579d85)],this[_0x2ead3a(0x1be)],this[_0x2ead3a(0x209)]);}[_0x5a49e4(0x231)](){const _0x478307=_0x5a49e4;return this[_0x478307(0x1f4)]();}[_0x5a49e4(0x31b)](){const _0x3040ca=_0x5a49e4;return this['_getView']()[_0x3040ca(0x31d)];}[_0x5a49e4(0x2a7)](){const _0x24eafb=_0x5a49e4;return this[_0x24eafb(0x1f4)]()[_0x24eafb(0x225)];}[_0x5a49e4(0x275)](_0x192f3f){const _0x251570=_0x5a49e4;return this['_commandService'][_0x251570(0x20a)](_0x471e22[_0x251570(0x24f)]['id'],{'unitId':this[_0x251570(0x2a0)][_0x251570(0x32b)](),'tableId':this[_0x251570(0x25f)][_0x251570(0x32b)](),'viewId':this[_0x251570(0x2ad)],'name':_0x192f3f});}[_0x5a49e4(0x1cf)](){const _0x1866c6=_0x5a49e4;let _0x451149=this[_0x1866c6(0x2a7)](),_0x43966f=this[_0x1866c6(0x1f4)]()[_0x1866c6(0x206)];switch(_0x451149){case _0x26e2cd[_0x1866c6(0x28e)][_0x1866c6(0x314)]:return _0x43966f;case _0x26e2cd[_0x1866c6(0x28e)][_0x1866c6(0x282)]:return _0x43966f;case _0x26e2cd[_0x1866c6(0x28e)][_0x1866c6(0x2ac)]:return _0x43966f;case _0x26e2cd[_0x1866c6(0x28e)]['Gantt']:return _0x43966f;case _0x26e2cd[_0x1866c6(0x28e)]['Gallery']:return _0x43966f;default:return _0x43966f;}}[_0x5a49e4(0x2f9)](_0x30bd60){const _0xf24a2=_0x5a49e4;return this['_commandService'][_0xf24a2(0x20a)](_0x471e22[_0xf24a2(0x338)]['id'],{'unitId':this[_0xf24a2(0x2a0)]['getId'](),'tableId':this[_0xf24a2(0x25f)][_0xf24a2(0x32b)](),'viewId':this[_0xf24a2(0x2ad)],'patch':_0x30bd60});}[_0x5a49e4(0x2e8)](){const _0x2c1719=_0x5a49e4;var _0x168f05;return _0x26e2cd[_0x2c1719(0x23b)][_0x2c1719(0x32c)](((_0x168f05=this[_0x2c1719(0x1f4)]()[_0x2c1719(0x206)]['conditionalColoring'])==null?void 0x0:_0x168f05['rules'])??[]);}[_0x5a49e4(0x21e)](_0x4a617f){const _0x837384=_0x5a49e4;return this['_commandService'][_0x837384(0x20a)](_0x471e22[_0x837384(0x313)]['id'],{'unitId':this[_0x837384(0x2a0)][_0x837384(0x32b)](),'tableId':this[_0x837384(0x25f)]['getId'](),'viewId':this[_0x837384(0x2ad)],'type':_0x471e22[_0x837384(0x264)]['Set'],'rules':_0x4a617f});}['addConditionalColorRule'](_0x42c0e3){const _0x17a165=_0x5a49e4;return this[_0x17a165(0x1be)]['syncExecuteCommand'](_0x471e22['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x17a165(0x2a0)][_0x17a165(0x32b)](),'tableId':this[_0x17a165(0x25f)][_0x17a165(0x32b)](),'viewId':this[_0x17a165(0x2ad)],'type':_0x471e22[_0x17a165(0x264)][_0x17a165(0x1e9)],'rule':_0x42c0e3});}[_0x5a49e4(0x2f8)](_0x311b8b){const _0x16b044=_0x5a49e4;return this[_0x16b044(0x1be)][_0x16b044(0x20a)](_0x471e22['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this['_base'][_0x16b044(0x32b)](),'tableId':this[_0x16b044(0x25f)]['getId'](),'viewId':this['_viewId'],'type':_0x471e22['BaseConditionalColorRuleUpdateType'][_0x16b044(0x21c)],'ruleId':_0x311b8b});}['clearConditionalColorRules'](){const _0x454bb3=_0x5a49e4;return this[_0x454bb3(0x1be)][_0x454bb3(0x20a)](_0x471e22[_0x454bb3(0x313)]['id'],{'unitId':this[_0x454bb3(0x2a0)]['getId'](),'tableId':this[_0x454bb3(0x25f)][_0x454bb3(0x32b)](),'viewId':this[_0x454bb3(0x2ad)],'type':_0x471e22[_0x454bb3(0x264)][_0x454bb3(0x31e)]});}['getFilter'](){const _0x1a7083=_0x5a49e4;return this[_0x1a7083(0x1f4)]()[_0x1a7083(0x208)]??null;}[_0x5a49e4(0x23f)](_0x332dd0){const _0x2de77b=_0x5a49e4;return this[_0x2de77b(0x1be)][_0x2de77b(0x20a)](_0x471e22[_0x2de77b(0x2ea)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2de77b(0x25f)][_0x2de77b(0x32b)](),'viewId':this[_0x2de77b(0x2ad)],'filter':_0x332dd0});}['getSort'](){const _0x1b9a20=_0x5a49e4;return this[_0x1b9a20(0x1f4)]()[_0x1b9a20(0x326)]??[];}[_0x5a49e4(0x2af)](_0x1cefc6){const _0x5db916=_0x5a49e4;return this[_0x5db916(0x1be)][_0x5db916(0x20a)](_0x471e22[_0x5db916(0x249)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x5db916(0x25f)][_0x5db916(0x32b)](),'viewId':this['_viewId'],'sort':_0x1cefc6});}['getGroup'](){const _0x4dc54c=_0x5a49e4;return this[_0x4dc54c(0x1f4)]()[_0x4dc54c(0x1b9)]??[];}['setGroup'](_0x540ca6){const _0xa0caf4=_0x5a49e4;return this['_commandService'][_0xa0caf4(0x20a)](_0x471e22[_0xa0caf4(0x1c0)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0xa0caf4(0x25f)][_0xa0caf4(0x32b)](),'viewId':this['_viewId'],'group':_0x540ca6});}[_0x5a49e4(0x29c)](_0x45abb2){const _0x367812=_0x5a49e4;var _0x3f8fef;return _0x4eb2af(this[_0x367812(0x25f)]['getTable']()['fields'][_0x45abb2])?((_0x3f8fef=this[_0x367812(0x1f4)]()[_0x367812(0x2c7)])==null?void 0x0:_0x3f8fef[_0x45abb2])??{}:{};}[_0x5a49e4(0x356)](){const _0xab6034=_0x5a49e4;let _0x3838af=this[_0xab6034(0x25f)]['getTable'](),_0x214e0e=this[_0xab6034(0x1f4)]();return(_0x214e0e['fieldOrder']??_0x3838af[_0xab6034(0x1ce)])[_0xab6034(0x208)](_0xb49fc8=>{const _0x55357f=_0xab6034;var _0x4c97bd;let _0x241bf2=_0x3838af[_0x55357f(0x212)][_0xb49fc8];return _0x4eb2af(_0x241bf2)&&!((_0x4c97bd=_0x214e0e[_0x55357f(0x2c7)])!=null&&(_0x4c97bd=_0x4c97bd[_0xb49fc8])!=null&&_0x4c97bd[_0x55357f(0x218)]);})[_0xab6034(0x19b)](_0x5a7617=>this[_0xab6034(0x2c1)][_0xab6034(0x345)](_0x138a01,this[_0xab6034(0x2a0)],this[_0xab6034(0x25f)],_0x5a7617));}[_0x5a49e4(0x23e)](_0x54b460,_0x25cf02){const _0xe8c367=_0x5a49e4;return _0x4eb2af(this[_0xe8c367(0x25f)]['getTable']()[_0xe8c367(0x212)][_0x54b460])?this['_commandService'][_0xe8c367(0x20a)](_0x471e22[_0xe8c367(0x21d)]['id'],{'unitId':this[_0xe8c367(0x2a0)][_0xe8c367(0x32b)](),'tableId':this[_0xe8c367(0x25f)]['getId'](),'viewId':this[_0xe8c367(0x2ad)],'fieldId':_0x54b460,'visible':_0x25cf02}):!0x1;}['setFieldWidth'](_0x2c9c70,_0x217d7){const _0x5b87c1=_0x5a49e4;return _0x4eb2af(this['_table'][_0x5b87c1(0x1f5)]()['fields'][_0x2c9c70])?this[_0x5b87c1(0x1be)][_0x5b87c1(0x20a)](_0x471e22[_0x5b87c1(0x2e9)]['id'],{'unitId':this[_0x5b87c1(0x2a0)][_0x5b87c1(0x32b)](),'tableId':this[_0x5b87c1(0x25f)][_0x5b87c1(0x32b)](),'viewId':this[_0x5b87c1(0x2ad)],'fieldId':_0x2c9c70,'width':_0x217d7}):!0x1;}['moveField'](_0xbcc5de,_0x330b74){const _0x4e2889=_0x5a49e4;let _0x63a71b=this[_0x4e2889(0x25f)][_0x4e2889(0x1f5)](),_0x478195=_0x330b74[_0x4e2889(0x1d2)]??_0x330b74[_0x4e2889(0x359)];return!_0x4eb2af(_0x63a71b[_0x4e2889(0x212)][_0xbcc5de])||!_0x478195||!_0x4eb2af(_0x63a71b[_0x4e2889(0x212)][_0x478195])?!0x1:this[_0x4e2889(0x1be)]['syncExecuteCommand'](_0x471e22[_0x4e2889(0x287)]['id'],{'unitId':this['_base'][_0x4e2889(0x32b)](),'tableId':this['_table'][_0x4e2889(0x32b)](),'viewId':this[_0x4e2889(0x2ad)],'fieldId':_0xbcc5de,'target':_0x330b74});}['move'](_0x42c58d){const _0x597493=_0x5a49e4;return this[_0x597493(0x1be)][_0x597493(0x20a)](_0x471e22[_0x597493(0x244)]['id'],{'unitId':this['_base'][_0x597493(0x32b)](),'tableId':this[_0x597493(0x25f)][_0x597493(0x32b)](),'viewId':this[_0x597493(0x2ad)],'target':_0x42c58d});}[_0x5a49e4(0x34c)](){const _0x3893cf=_0x5a49e4;return this[_0x3893cf(0x1be)][_0x3893cf(0x20a)](_0x471e22['DeleteBaseViewCommand']['id'],{'unitId':this[_0x3893cf(0x2a0)][_0x3893cf(0x32b)](),'tableId':this['_table'][_0x3893cf(0x32b)](),'viewId':this[_0x3893cf(0x2ad)]});}[_0x5a49e4(0x30a)](){const _0x4cab03=_0x5a49e4;return this['_projectionService'][_0x4cab03(0x30a)](this['_base'][_0x4cab03(0x30f)]()['getSnapshot'](),this[_0x4cab03(0x25f)][_0x4cab03(0x32b)](),this[_0x4cab03(0x2ad)]);}['_getView'](){const _0x521412=_0x5a49e4;let _0x49f1f8=this[_0x521412(0x25f)][_0x521412(0x1f5)]()[_0x521412(0x1c9)][this[_0x521412(0x2ad)]];if(!_0x49f1f8)throw Error(_0x521412(0x250)+this[_0x521412(0x2ad)]+_0x521412(0x2ed));return _0x49f1f8;}};_0x1284f7=_0x4ef17f([_0x197b0f(0x4,_0x26e2cd[_0x5a49e4(0x2cd)]),_0x197b0f(0x5,_0x26e2cd['IPermissionService']),_0x197b0f(0x6,_0x471e22[_0x5a49e4(0x2db)])],_0x1284f7);let _0x264539=class{constructor(_0x4249a6,_0x5a8b52,_0x496af9,_0x3bc22f,_0x3c413a,_0x1e3857){const _0x35b78c=_0x5a49e4;this['_base']=_0x4249a6,this['_tableId']=_0x5a8b52,this[_0x35b78c(0x2c1)]=_0x496af9,this[_0x35b78c(0x1be)]=_0x3bc22f,this[_0x35b78c(0x209)]=_0x3c413a,this['_projectionService']=_0x1e3857;}['getBase'](){const _0x3491db=_0x5a49e4;return this[_0x3491db(0x2a0)][_0x3491db(0x30f)]();}[_0x5a49e4(0x1f5)](){const _0x506430=_0x5a49e4;return this[_0x506430(0x1e2)]();}[_0x5a49e4(0x32b)](){const _0x32f0a=_0x5a49e4;return this[_0x32f0a(0x33f)];}[_0x5a49e4(0x352)](){const _0x431727=_0x5a49e4;return new _0x1d0494(this['getBase']()[_0x431727(0x26b)](),(0x0,_0x471e22[_0x431727(0x251)])(this[_0x431727(0x33f)]),[],this[_0x431727(0x1be)],this[_0x431727(0x209)]);}[_0x5a49e4(0x295)](){const _0x499bac=_0x5a49e4;return(0x0,_0x471e22['resolveBaseHierarchyFieldId'])(this[_0x499bac(0x1e2)]());}[_0x5a49e4(0x1ef)](_0x39b49f){const _0x2f3e1c=_0x5a49e4;return this[_0x2f3e1c(0x1be)]['syncExecuteCommand'](_0x471e22[_0x2f3e1c(0x28d)]['id'],{'unitId':this[_0x2f3e1c(0x2a0)][_0x2f3e1c(0x32b)](),'tableId':this[_0x2f3e1c(0x33f)],'fieldId':_0x39b49f});}['getName'](){const _0x1bbcba=_0x5a49e4;return this[_0x1bbcba(0x1e2)]()[_0x1bbcba(0x31d)];}[_0x5a49e4(0x217)](){const _0x222dd0=_0x5a49e4;let _0x5aa36e=this[_0x222dd0(0x2a0)][_0x222dd0(0x30f)]()[_0x222dd0(0x2c4)]();return(0x0,_0x471e22[_0x222dd0(0x2c8)])(this[_0x222dd0(0x1e2)](),_0x5aa36e);}[_0x5a49e4(0x275)](_0x45c149){const _0x432743=_0x5a49e4;let _0x56f38e=(0x0,_0x471e22['validateBaseTableName'])(this['_base'][_0x432743(0x30f)]()['getSnapshot'](),_0x45c149,this[_0x432743(0x33f)]);if(!_0x56f38e[_0x432743(0x2f3)])throw Error('[FBaseTable]:\x20invalid\x20table\x20name\x20\x22'+_0x45c149+_0x432743(0x290)+_0x471e22[_0x432743(0x2e6)]+'\x20'+_0x56f38e['reason']);return this['_commandService'][_0x432743(0x20a)](_0x471e22[_0x432743(0x329)]['id'],{'unitId':this['_base'][_0x432743(0x32b)](),'tableId':this[_0x432743(0x33f)],'name':_0x45c149});}[_0x5a49e4(0x343)](_0x229304,_0x5a6428){const _0x3e0de1=_0x5a49e4;let _0x24cd47=this[_0x3e0de1(0x2a0)][_0x3e0de1(0x30f)]()[_0x3e0de1(0x2c4)](),_0xf773e0=this[_0x3e0de1(0x1e2)]();if(_0x5a6428){let _0x1a83af=this[_0x3e0de1(0x2e1)][_0x3e0de1(0x30a)](_0x24cd47,this[_0x3e0de1(0x33f)],_0x5a6428),_0x3eafff=_0xf773e0[_0x3e0de1(0x1c9)][_0x5a6428],_0x30a998=_0x229304[_0x3e0de1(0x237)]??_0x4994b7(_0xf773e0,_0x3eafff,_0x1a83af),_0x2c4170=_0x3e0de1(0x26c)in _0x1a83af&&Array[_0x3e0de1(0x234)](_0x1a83af['rows'])?_0x1a83af['rows']:[];return(0x0,_0x471e22[_0x3e0de1(0x260)])({..._0x229304,'table':_0xf773e0,'fieldIds':_0x30a998,'rows':_0x2c4170});}let _0x22ab56=(_0xf773e0[_0x3e0de1(0x1a7)]?_0xf773e0[_0x3e0de1(0x1a7)][_0x3e0de1(0x19b)](_0x44addc=>_0xf773e0[_0x3e0de1(0x320)][_0x44addc]):Object[_0x3e0de1(0x289)](_0xf773e0[_0x3e0de1(0x320)])[_0x3e0de1(0x326)]((_0x23158a,_0x51165e)=>_0x23158a[_0x3e0de1(0x1ea)][_0x3e0de1(0x2cb)](_0x51165e[_0x3e0de1(0x1ea)])))['filter'](_0x4e1414=>_0x4e1414)[_0x3e0de1(0x19b)](_0x251b6b=>({'recordId':_0x251b6b['id'],'values':_0x251b6b[_0x3e0de1(0x289)]})),_0x4d0fc3=_0x229304['fieldIds']??_0xf773e0[_0x3e0de1(0x1ce)]['filter'](_0x524f85=>_0x4eb2af(_0xf773e0[_0x3e0de1(0x212)][_0x524f85]));return(0x0,_0x471e22[_0x3e0de1(0x260)])({..._0x229304,'table':_0xf773e0,'fieldIds':_0x4d0fc3,'rows':_0x22ab56});}[_0x5a49e4(0x1ae)](){const _0x35b7a0=_0x5a49e4;return this[_0x35b7a0(0x1e2)]()[_0x35b7a0(0x2b4)];}[_0x5a49e4(0x2c3)](){const _0x2db356=_0x5a49e4;let _0x3822d9=this[_0x2db356(0x1e2)]();return _0x3822d9[_0x2db356(0x1ce)]['map'](_0x1783cc=>_0x3822d9[_0x2db356(0x212)][_0x1783cc])[_0x2db356(0x208)](_0x4eb2af)[_0x2db356(0x19b)](_0x38c63d=>this[_0x2db356(0x2c1)][_0x2db356(0x345)](_0x138a01,this[_0x2db356(0x2a0)],this,_0x38c63d['id']));}['getFieldById'](_0xcb749a){const _0x394950=_0x5a49e4;let _0x1d6f88=this[_0x394950(0x1e2)]()[_0x394950(0x212)][_0xcb749a];return _0x4eb2af(_0x1d6f88)?this[_0x394950(0x2c1)][_0x394950(0x345)](_0x138a01,this[_0x394950(0x2a0)],this,_0x1d6f88['id']):null;}['getFieldByName'](_0x440069){const _0x53430f=_0x5a49e4;let _0x488c88=this[_0x53430f(0x1e2)]()[_0x53430f(0x212)],_0x4aeafc=Object[_0x53430f(0x289)](_0x488c88)[_0x53430f(0x286)](_0x109dac=>_0x4eb2af(_0x109dac)&&_0x109dac[_0x53430f(0x31d)]===_0x440069);return _0x4aeafc?this[_0x53430f(0x2c1)][_0x53430f(0x345)](_0x138a01,this['_base'],this,_0x4aeafc['id']):null;}[_0x5a49e4(0x1fb)](){const _0x2b01c=_0x5a49e4;let _0x1a64ce=this[_0x2b01c(0x1e2)]()[_0x2b01c(0x2b4)];return this[_0x2b01c(0x2c1)][_0x2b01c(0x345)](_0x138a01,this[_0x2b01c(0x2a0)],this,_0x1a64ce);}[_0x5a49e4(0x2f0)](_0x2635f0,_0xf5739f,_0x2eb879){const _0x2ef64c=_0x5a49e4;var _0x41c1b4,_0x433362;if(!Object['values'](_0x26e2cd['BaseFieldType'])[_0x2ef64c(0x2d5)](_0x54f6de=>_0x54f6de===_0xf5739f))throw Error(_0x2ef64c(0x337)+String(_0xf5739f)+'\x22.');if(_0xf5739f===_0x26e2cd['BaseFieldType'][_0x2ef64c(0x2e2)]&&this[_0x2ef64c(0x321)](_0x2635f0,_0x2eb879),_0xf5739f===_0x26e2cd[_0x2ef64c(0x1cd)][_0x2ef64c(0x223)]&&(typeof(_0x2eb879==null||(_0x41c1b4=_0x2eb879[_0x2ef64c(0x2e4)])==null||(_0x41c1b4=_0x41c1b4[_0x2ef64c(0x206)])==null?void 0x0:_0x41c1b4[_0x2ef64c(0x1bb)])!=_0x2ef64c(0x1b2)||typeof _0x2eb879[_0x2ef64c(0x2e4)][_0x2ef64c(0x206)]['multiple']!=_0x2ef64c(0x32a)))throw Error('RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.');let _0x2122b9={..._0x2eb879==null?void 0x0:_0x2eb879[_0x2ef64c(0x2e4)],'id':(0x0,_0x26e2cd['generateRandomId'])(0x6),'name':_0x2635f0,'type':_0xf5739f,'config':(_0x2eb879==null||(_0x433362=_0x2eb879[_0x2ef64c(0x2e4)])==null?void 0x0:_0x433362[_0x2ef64c(0x206)])??{}};if(!this[_0x2ef64c(0x1be)][_0x2ef64c(0x20a)](_0x471e22['CreateBaseFieldCommand']['id'],{'unitId':this[_0x2ef64c(0x2a0)][_0x2ef64c(0x32b)](),'tableId':this[_0x2ef64c(0x33f)],'field':_0x2122b9,'index':_0x2eb879==null?void 0x0:_0x2eb879[_0x2ef64c(0x2b7)]}))throw Error(_0x2ef64c(0x1e8)+_0x2635f0+'\x22');return this[_0x2ef64c(0x2c1)][_0x2ef64c(0x345)](_0x138a01,this[_0x2ef64c(0x2a0)],this,_0x2122b9['id']);}[_0x5a49e4(0x321)](_0x28a8b3,_0x27133a){const _0x4dafd9=_0x5a49e4;var _0x3ee49d;if(!_0x27133a||!(_0x4dafd9(0x1fa)in _0x27133a)||!Array['isArray'](_0x27133a[_0x4dafd9(0x1fa)]))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');let _0x219585=this[_0x4dafd9(0x1be)][_0x4dafd9(0x20a)](_0x471e22[_0x4dafd9(0x21a)]['id'],{'unitId':this['_base'][_0x4dafd9(0x32b)](),'tableId':this['_tableId'],'formula':String(((_0x3ee49d=_0x27133a[_0x4dafd9(0x2e4)])==null||(_0x3ee49d=_0x3ee49d[_0x4dafd9(0x206)])==null?void 0x0:_0x3ee49d['formula'])??'')});if(!_0x219585[_0x4dafd9(0x2f3)])throw Error(_0x219585[_0x4dafd9(0x33a)]??_0x4dafd9(0x2e7));if(_0x27133a[_0x4dafd9(0x1fa)]['length']>0x0&&!this['_commandService'][_0x4dafd9(0x20a)](_0x30b7c4[_0x4dafd9(0x19e)]['id'],{'unitId':this[_0x4dafd9(0x2a0)]['getId'](),'references':_0x27133a['externalReferences']}))throw Error(_0x4dafd9(0x358)+_0x28a8b3+'\x22');}[_0x5a49e4(0x204)](){const _0x59b7ac=_0x5a49e4;return this['_resolveRecordIds']()['map'](_0x2b36e0=>this['_injector'][_0x59b7ac(0x345)](_0x457046,this[_0x59b7ac(0x2a0)],this,_0x2b36e0,this['_injector']));}['getRecordById'](_0x57dd78){const _0x3d7252=_0x5a49e4;return this['_getTable']()[_0x3d7252(0x320)][_0x57dd78]?this[_0x3d7252(0x2c1)][_0x3d7252(0x345)](_0x457046,this['_base'],this,_0x57dd78,this[_0x3d7252(0x2c1)]):null;}['queryRecords'](_0x2c7b85={}){const _0x140dce=_0x5a49e4;let _0x1e3e5c=this[_0x140dce(0x1e2)](),_0x4dbdb2=this[_0x140dce(0x1d6)](_0x2c7b85),_0x1430eb=Math['max'](0x0,_0x2c7b85[_0x140dce(0x267)]??0x0),_0x1519f5=_0x2c7b85[_0x140dce(0x318)]==null?null:Math[_0x140dce(0x2b1)](0x0,_0x2c7b85['limit']),_0x2247ed=_0x1d28a5(_0x4dbdb2[_0x140dce(0x19b)](_0x42e57a=>_0x1e3e5c['records'][_0x42e57a])[_0x140dce(0x208)](_0x464075=>_0x1167c4(_0x464075,_0x1e3e5c,_0x2c7b85[_0x140dce(0x208)])),_0x1e3e5c,_0x2c7b85[_0x140dce(0x326)]);return{'records':_0x38fcfc(_0x2247ed,_0x2c7b85)[_0x140dce(0x19b)](_0x29960d=>this[_0x140dce(0x2c1)][_0x140dce(0x345)](_0x457046,this[_0x140dce(0x2a0)],this,_0x29960d['id'],this[_0x140dce(0x2c1)])),'total':_0x2247ed[_0x140dce(0x34f)],'offset':_0x1430eb,'limit':_0x1519f5,'hasMore':_0x1519f5!=null&&_0x1430eb+_0x1519f5<_0x2247ed[_0x140dce(0x34f)]};}[_0x5a49e4(0x283)](_0xdf395d,_0x1a108c='id',_0xf3360){const _0x5eec96=_0x5a49e4;let _0x3661da=this[_0x5eec96(0x1e2)](),_0x5433d4=Date[_0x5eec96(0x205)](),_0x2f39fb={..._0xf3360,'id':(0x0,_0x26e2cd[_0x5eec96(0x2ca)])(0x6),'values':_0x1c32b4(_0x3661da,_0xdf395d,_0x1a108c),'orderKey':(_0xf3360==null?void 0x0:_0xf3360[_0x5eec96(0x1ea)])||''+_0x5433d4,'createdAt':(_0xf3360==null?void 0x0:_0xf3360[_0x5eec96(0x19d)])||_0x5433d4,'updatedAt':(_0xf3360==null?void 0x0:_0xf3360[_0x5eec96(0x1cb)])||_0x5433d4};if(!this[_0x5eec96(0x1be)][_0x5eec96(0x20a)](_0x471e22[_0x5eec96(0x316)]['id'],{'unitId':this[_0x5eec96(0x2a0)][_0x5eec96(0x32b)](),'tableId':this[_0x5eec96(0x33f)],'record':_0x2f39fb,'source':_0x471e22[_0x5eec96(0x27b)][_0x5eec96(0x1dc)]}))throw Error(_0x5eec96(0x1e0)+_0x2f39fb['id']+'\x22');return this[_0x5eec96(0x2c1)][_0x5eec96(0x345)](_0x457046,this['_base'],this,_0x2f39fb['id'],this[_0x5eec96(0x2c1)]);}[_0x5a49e4(0x253)](_0x4347b0){const _0x11e79c=_0x5a49e4;if(!_0x4347b0['length'])return[];let _0x172476=this[_0x11e79c(0x1e2)](),_0xaedfb2=Date['now'](),_0x3496a4=_0x4347b0[_0x11e79c(0x19b)]((_0x5155a3,_0x4a6d08)=>{const _0x199d01=_0x11e79c;var _0x6804a4,_0x4b5ce2,_0x3ab7d3;return{..._0x5155a3['record'],'id':(0x0,_0x26e2cd[_0x199d01(0x2ca)])(0x6),'values':_0x1c32b4(_0x172476,_0x5155a3[_0x199d01(0x289)],_0x5155a3[_0x199d01(0x285)]??'id'),'orderKey':((_0x6804a4=_0x5155a3[_0x199d01(0x336)])==null?void 0x0:_0x6804a4['orderKey'])||''+(_0xaedfb2+_0x4a6d08),'createdAt':((_0x4b5ce2=_0x5155a3[_0x199d01(0x336)])==null?void 0x0:_0x4b5ce2[_0x199d01(0x19d)])||_0xaedfb2,'updatedAt':((_0x3ab7d3=_0x5155a3[_0x199d01(0x336)])==null?void 0x0:_0x3ab7d3[_0x199d01(0x1cb)])||_0xaedfb2};});if(!this['_commandService']['syncExecuteCommand'](_0x471e22['BatchCreateBaseRecordsCommand']['id'],{'unitId':this[_0x11e79c(0x2a0)][_0x11e79c(0x32b)](),'tableId':this[_0x11e79c(0x33f)],'records':_0x3496a4,'source':_0x471e22[_0x11e79c(0x27b)][_0x11e79c(0x1dc)]}))throw Error(_0x11e79c(0x1bd));return _0x3496a4[_0x11e79c(0x19b)](_0x43a2d3=>this[_0x11e79c(0x2c1)][_0x11e79c(0x345)](_0x457046,this[_0x11e79c(0x2a0)],this,_0x43a2d3['id'],this[_0x11e79c(0x2c1)]));}[_0x5a49e4(0x261)](_0x564545){const _0x42639d=_0x5a49e4;return!_0x564545[_0x42639d(0x34f)]||this['_commandService'][_0x42639d(0x20a)](_0x471e22[_0x42639d(0x1a9)]['id'],{'unitId':this[_0x42639d(0x2a0)]['getId'](),'tableId':this[_0x42639d(0x33f)],'recordIds':_0x564545,'source':_0x471e22[_0x42639d(0x27b)][_0x42639d(0x1dc)]});}['getRange'](_0x1b152a,_0x3b2b57,_0x52b54d=0x1,_0x4cde0f=0x1){const _0xcc1a7f=_0x5a49e4;return this[_0xcc1a7f(0x2c1)][_0xcc1a7f(0x345)](_0x39a5e1,this['_base'],this,{'startRow':_0x1b152a,'endRow':_0x1b152a+_0x52b54d-0x1,'startColumn':_0x3b2b57,'endColumn':_0x3b2b57+_0x4cde0f-0x1},this[_0xcc1a7f(0x2c1)]);}[_0x5a49e4(0x233)](){const _0x335485=_0x5a49e4;var _0x129867;let _0x16a26f=(0x0,_0x471e22[_0x335485(0x23c)])(this[_0x335485(0x1e2)]()),_0x5ad87a=((_0x129867=_0x16a26f[_0x335485(0x1a7)])==null?void 0x0:_0x129867[_0x335485(0x34f)])??0x0,_0x1ff751=_0x16a26f[_0x335485(0x1ce)][_0x335485(0x208)](_0x57047b=>_0x4eb2af(_0x16a26f[_0x335485(0x212)][_0x57047b]))[_0x335485(0x34f)];return this['getRange'](0x0,0x0,Math[_0x335485(0x2b1)](_0x5ad87a,0x1),Math[_0x335485(0x2b1)](_0x1ff751,0x1));}[_0x5a49e4(0x266)](){const _0x182fc7=_0x5a49e4;let _0x32d533=this[_0x182fc7(0x1e2)]();return _0x32d533[_0x182fc7(0x2fb)][_0x182fc7(0x208)](_0x5b4b08=>_0x32d533[_0x182fc7(0x1c9)][_0x5b4b08])[_0x182fc7(0x19b)](_0x2fb262=>this[_0x182fc7(0x2c1)]['createInstance'](_0x1284f7,this['_base'],this,_0x2fb262,this[_0x182fc7(0x2c1)]));}[_0x5a49e4(0x284)](_0x197b93){const _0x28eafa=_0x5a49e4;return this[_0x28eafa(0x1e2)]()[_0x28eafa(0x1c9)][_0x197b93]?this[_0x28eafa(0x2c1)][_0x28eafa(0x345)](_0x1284f7,this[_0x28eafa(0x2a0)],this,_0x197b93,this[_0x28eafa(0x2c1)]):null;}[_0x5a49e4(0x35a)](_0x169469){const _0x18ba70=_0x5a49e4;let _0x4cf7fd=this[_0x18ba70(0x1e2)](),_0x45d227=Object[_0x18ba70(0x289)](_0x4cf7fd['views'])[_0x18ba70(0x286)](_0x178882=>_0x178882[_0x18ba70(0x31d)]===_0x169469);return _0x45d227?this[_0x18ba70(0x2c1)]['createInstance'](_0x1284f7,this['_base'],this,_0x45d227['id'],this[_0x18ba70(0x2c1)]):null;}[_0x5a49e4(0x302)](_0x4b50c0,_0x50c4f5,_0x3dcd67){const _0x240000=_0x5a49e4;var _0xc89d98,_0x1e6774,_0x1fe7c8,_0x178668;let _0x1bd080=this['_getTable'](),_0x51abbb=(_0x3dcd67==null||(_0xc89d98=_0x3dcd67[_0x240000(0x1c7)])==null?void 0x0:_0xc89d98[_0x240000(0x1ce)])??_0x1bd080['fieldOrder'],_0x19ecf4=[_0x26e2cd[_0x240000(0x353)],..._0x51abbb[_0x240000(0x208)](_0x35dc9b=>_0x4eb2af(_0x1bd080['fields'][_0x35dc9b]))],_0xd364c2={..._0x3dcd67==null?void 0x0:_0x3dcd67[_0x240000(0x1c7)],'id':(0x0,_0x26e2cd['generateRandomId'])(0x6),'name':_0x4b50c0,'type':_0x50c4f5,'tableId':this[_0x240000(0x33f)],'config':(_0x3dcd67==null||(_0x1e6774=_0x3dcd67[_0x240000(0x1c7)])==null?void 0x0:_0x1e6774[_0x240000(0x206)])??{},'fieldOrder':_0x19ecf4,'fieldSettings':{..._0x3dcd67==null||(_0x1fe7c8=_0x3dcd67[_0x240000(0x1c7)])==null?void 0x0:_0x1fe7c8[_0x240000(0x2c7)],[_0x26e2cd[_0x240000(0x353)]]:{..._0x3dcd67==null||(_0x178668=_0x3dcd67[_0x240000(0x1c7)])==null||(_0x178668=_0x178668['fieldSettings'])==null?void 0x0:_0x178668[_0x26e2cd[_0x240000(0x353)]],'hidden':!0x0}}};if(!this['_commandService'][_0x240000(0x20a)](_0x471e22[_0x240000(0x2ae)]['id'],{'unitId':this[_0x240000(0x2a0)][_0x240000(0x32b)](),'tableId':this[_0x240000(0x33f)],'view':_0xd364c2,'index':_0x3dcd67==null?void 0x0:_0x3dcd67['index']}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x4b50c0+'\x22');return this[_0x240000(0x2c1)][_0x240000(0x345)](_0x1284f7,this['_base'],this,_0xd364c2['id'],this[_0x240000(0x2c1)]);}[_0x5a49e4(0x355)](){const _0x106e00=_0x5a49e4;let _0x3ffdc4=this[_0x106e00(0x1e2)](),_0x25da45=_0x3ffdc4[_0x106e00(0x1ce)][_0x106e00(0x208)](_0x36b87a=>_0x4eb2af(_0x3ffdc4[_0x106e00(0x212)][_0x36b87a])),_0x23f715=_0x3ffdc4[_0x106e00(0x2fb)][_0x106e00(0x208)](_0x255aef=>_0x3ffdc4[_0x106e00(0x1c9)][_0x255aef]);return{'id':_0x3ffdc4['id'],'name':_0x3ffdc4[_0x106e00(0x31d)],'formulaName':this[_0x106e00(0x217)](),'primaryFieldId':_0x3ffdc4['primaryFieldId'],'fieldIds':_0x25da45,'viewIds':_0x23f715,'recordCount':this[_0x106e00(0x1d6)]()[_0x106e00(0x34f)],'fields':_0x25da45['map'](_0x42d8f1=>{const _0x47aa92=_0x106e00;let _0x45835c=_0x3ffdc4[_0x47aa92(0x212)][_0x42d8f1];return{'id':_0x45835c['id'],'name':_0x45835c['name'],'type':_0x45835c[_0x47aa92(0x225)],'config':_0x45835c[_0x47aa92(0x206)],'readonly':_0x45835c[_0x47aa92(0x254)],'description':_0x45835c[_0x47aa92(0x24d)]};}),'views':_0x23f715['map'](_0x292e62=>{const _0x5d8c0d=_0x106e00;let _0x4fb65a=_0x3ffdc4['views'][_0x292e62];return{'id':_0x4fb65a['id'],'name':_0x4fb65a[_0x5d8c0d(0x31d)],'type':_0x4fb65a[_0x5d8c0d(0x225)]};})};}['_getTable'](){const _0xddf922=_0x5a49e4;let _0x19ac3a=this[_0xddf922(0x2a0)][_0xddf922(0x30f)]()[_0xddf922(0x2c4)]()[_0xddf922(0x1e4)][this[_0xddf922(0x33f)]];if(!_0x19ac3a)throw Error(_0xddf922(0x2f7)+this[_0xddf922(0x33f)]+'\x22\x20does\x20not\x20exist.');return _0x19ac3a;}[_0x5a49e4(0x1d6)](_0x350642={}){const _0x29a8ea=_0x5a49e4;let _0x3fe6ed=this[_0x29a8ea(0x2a0)]['getBase']()[_0x29a8ea(0x2c4)](),_0x2daa55=this['_getTable']();if(_0x350642[_0x29a8ea(0x296)]){let _0x28591c=this[_0x29a8ea(0x2e1)][_0x29a8ea(0x30a)](_0x3fe6ed,this['_tableId'],_0x350642[_0x29a8ea(0x296)]);if(_0x29a8ea(0x26c)in _0x28591c&&Array[_0x29a8ea(0x234)](_0x28591c['rows']))return _0x28591c['rows']['map'](_0xef8942=>_0xef8942[_0x29a8ea(0x2d1)]);}return(_0x2daa55[_0x29a8ea(0x1a7)]?_0x2daa55['recordOrder'][_0x29a8ea(0x19b)](_0xb818a5=>_0x2daa55['records'][_0xb818a5]):Object[_0x29a8ea(0x289)](_0x2daa55['records'])[_0x29a8ea(0x326)]((_0x14e586,_0x4f50bb)=>_0x14e586[_0x29a8ea(0x1ea)][_0x29a8ea(0x2cb)](_0x4f50bb[_0x29a8ea(0x1ea)])))[_0x29a8ea(0x208)](_0x3ad512=>_0x3ad512)[_0x29a8ea(0x19b)](_0x41421c=>_0x41421c['id']);}};_0x264539=_0x4ef17f([_0x197b0f(0x3,_0x26e2cd[_0x5a49e4(0x2cd)]),_0x197b0f(0x4,_0x26e2cd['IPermissionService']),_0x197b0f(0x5,_0x471e22['IBaseProjectionService'])],_0x264539);function _0x38fcfc(_0xfb9362,_0x2ded8e){const _0x507d2a=_0x5a49e4;let _0x12a9cf=Math[_0x507d2a(0x2b1)](0x0,_0x2ded8e[_0x507d2a(0x267)]??0x0);return _0x2ded8e['limit']==null?_0xfb9362['slice'](_0x12a9cf):_0xfb9362[_0x507d2a(0x24a)](_0x12a9cf,_0x12a9cf+Math[_0x507d2a(0x2b1)](0x0,_0x2ded8e[_0x507d2a(0x318)]));}function _0x1d28a5(_0x58a7bd,_0x3a6116,_0xb9a40c=[]){return _0xb9a40c['length']?[..._0x58a7bd]['sort']((_0x2712e1,_0x113736)=>{const _0x5869d7=_0x586a;for(let _0x4f2105 of _0xb9a40c){var _0x259b88;let _0x446d43=_0x4f2105['direction']===_0x26e2cd[_0x5869d7(0x334)][_0x5869d7(0x228)]?-0x1:0x1,_0x233f67=_0x40965a(_0x2712e1['values'][_0x4f2105[_0x5869d7(0x293)]],_0x113736[_0x5869d7(0x289)][_0x4f2105[_0x5869d7(0x293)]],(_0x259b88=_0x3a6116[_0x5869d7(0x212)][_0x4f2105[_0x5869d7(0x293)]])==null?void 0x0:_0x259b88['type']);if(_0x233f67!==0x0)return _0x233f67*_0x446d43;}return String(_0x2712e1[_0x5869d7(0x1ea)]??_0x2712e1['id'])[_0x5869d7(0x2cb)](String(_0x113736[_0x5869d7(0x1ea)]??_0x113736['id']));}):_0x58a7bd;}function _0x40965a(_0x559d5e,_0x270799,_0x5e7535){const _0x978428=_0x5a49e4;return _0x559d5e==null&&_0x270799==null?0x0:_0x559d5e==null?-0x1:_0x270799==null?0x1:typeof _0x559d5e==_0x978428(0x2c0)&&typeof _0x270799==_0x978428(0x2c0)?_0x559d5e-_0x270799:_0x5e7535===_0x26e2cd[_0x978428(0x1cd)][_0x978428(0x1d0)]?Number(_0x559d5e)-Number(_0x270799):String(_0x559d5e)[_0x978428(0x2cb)](String(_0x270799));}function _0x1167c4(_0x595cbb,_0x8ebe02,_0x3521c1){const _0x39679b=_0x5a49e4;var _0x586bd0;if(!_0x3521c1||!((_0x586bd0=_0x3521c1[_0x39679b(0x1e1)])!=null&&_0x586bd0['length']))return!0x0;let {conjunction:_0x3a4119=_0x26e2cd[_0x39679b(0x1a1)]['OR'],conditions:_0x3989b2}=_0x3521c1;return _0x3a4119===_0x26e2cd[_0x39679b(0x1a1)][_0x39679b(0x2ab)]&&_0x3989b2[_0x39679b(0x34f)]>0x1?_0x3989b2['every'](_0x335356=>_0x3558f5(_0x595cbb,_0x8ebe02,_0x335356)):_0x3989b2[_0x39679b(0x2d5)](_0x548109=>_0x3558f5(_0x595cbb,_0x8ebe02,_0x548109));}function _0x3558f5(_0x4c8262,_0x3345fe,_0x427c16){const _0x31e48c=_0x5a49e4;let _0x1e8190=_0x4c8262[_0x31e48c(0x289)][_0x427c16[_0x31e48c(0x293)]],_0x10668a=_0x3345fe[_0x31e48c(0x212)][_0x427c16[_0x31e48c(0x293)]];if(_0x34eb80(_0x427c16)){let _0x3222c8=_0x56573c(_0x427c16)['test'](String(_0x1e8190??''));return _0x427c16[_0x31e48c(0x1f1)]==='matches'?_0x3222c8:!_0x3222c8;}return!_0x10668a||(0x0,_0x471e22[_0x31e48c(0x28b)])(_0x1e8190,_0x427c16[_0x31e48c(0x1f1)],_0x427c16[_0x31e48c(0x277)],_0x10668a);}function _0x34eb80(_0x111980){const _0x570ebb=_0x5a49e4;return _0x111980['operator']===_0x570ebb(0x2fc)||_0x111980[_0x570ebb(0x1f1)]===_0x570ebb(0x2a1);}function _0x56573c(_0x37017c){const _0x104c60=_0x5a49e4;let _0x26fe88=String(_0x37017c[_0x104c60(0x277)]??'');if(_0x26fe88[_0x104c60(0x34f)]>0x200)throw Error(_0x104c60(0x215));try{return new RegExp(_0x26fe88,_0x37017c[_0x104c60(0x1cc)]?void 0x0:'i');}catch(_0x2af2e3){throw Error(_0x104c60(0x258)+_0x26fe88+'.\x20'+(_0x2af2e3 instanceof Error?_0x2af2e3[_0x104c60(0x2c9)]:String(_0x2af2e3)));}}function _0x4994b7(_0x17f510,_0x53ee3b,_0x562018){const _0x35f20b=_0x5a49e4;if(_0x562018[_0x35f20b(0x225)]!==_0x35f20b(0x1ba)&&_0x562018[_0x35f20b(0x225)]!==_0x35f20b(0x242)){var _0x2c3e6c;if(_0x562018[_0x35f20b(0x225)]===_0x26e2cd['BaseViewType']['Kanban']){var _0x1168dd;let _0x2cb91d=[((_0x1168dd=_0x562018[_0x35f20b(0x212)])==null||(_0x1168dd=_0x1168dd[0x0])==null?void 0x0:_0x1168dd['id'])??_0x17f510[_0x35f20b(0x2b4)],..._0x562018[_0x35f20b(0x305)]??[]];return Array['from'](new Set(_0x2cb91d[_0x35f20b(0x208)](_0x46a9a9=>!!_0x17f510['fields'][_0x46a9a9])));}if((_0x2c3e6c=_0x562018[_0x35f20b(0x212)])!=null&&_0x2c3e6c[_0x35f20b(0x34f)])return _0x562018['fields'][_0x35f20b(0x19b)](_0x457305=>_0x457305['id'])[_0x35f20b(0x208)](_0x49bb1d=>{const _0x1c040b=_0x35f20b;var _0x5a9d04;return!(!_0x17f510[_0x1c040b(0x212)][_0x49bb1d]||_0x53ee3b!=null&&(_0x5a9d04=_0x53ee3b['fieldSettings'])!=null&&(_0x5a9d04=_0x5a9d04[_0x49bb1d])!=null&&_0x5a9d04['hidden']);});}return _0x17f510[_0x35f20b(0x1ce)][_0x35f20b(0x208)](_0x2ca503=>{const _0xb6b58c=_0x35f20b;var _0x4e4a99;return!(!_0x17f510[_0xb6b58c(0x212)][_0x2ca503]||_0x53ee3b!=null&&(_0x4e4a99=_0x53ee3b['fieldSettings'])!=null&&(_0x4e4a99=_0x4e4a99[_0x2ca503])!=null&&_0x4e4a99['hidden']);});}let _0x6e6b66=class extends _0x6b6f07[_0x5a49e4(0x1e3)]{constructor(_0x15c3a7,_0x3dd8a2,_0x1368d8,_0x467487,_0x32e456){const _0x4c0d35=_0x5a49e4;super(),this[_0x4c0d35(0x2a0)]=_0x15c3a7,this['_injector']=_0x3dd8a2,this[_0x4c0d35(0x1c5)]=_0x1368d8,this[_0x4c0d35(0x1be)]=_0x467487,this[_0x4c0d35(0x209)]=_0x32e456;}[_0x5a49e4(0x30f)](){const _0x4799ce=_0x5a49e4;return this[_0x4799ce(0x2a0)];}[_0x5a49e4(0x32b)](){const _0x13f392=_0x5a49e4;return this[_0x13f392(0x2a0)][_0x13f392(0x26b)]();}[_0x5a49e4(0x352)](){const _0x5b7def=_0x5a49e4;return new _0x1dc073(this[_0x5b7def(0x32b)](),this[_0x5b7def(0x1be)],this[_0x5b7def(0x209)]);}[_0x5a49e4(0x30e)](){const _0x779c41=_0x5a49e4;return this[_0x779c41(0x1c5)]['saveUnit'](this['getId']())??_0x26e2cd['Tools']['deepClone'](this[_0x779c41(0x2a0)][_0x779c41(0x2c4)]());}['getName'](){const _0x490f35=_0x5a49e4;return this[_0x490f35(0x2a0)][_0x490f35(0x2c4)]()[_0x490f35(0x31d)];}[_0x5a49e4(0x275)](_0x653bb9){const _0x3c228f=_0x5a49e4;this[_0x3c228f(0x1be)][_0x3c228f(0x20a)](_0x471e22['SetBaseNameCommand']['id'],{'unitId':this[_0x3c228f(0x32b)](),'name':_0x653bb9});}[_0x5a49e4(0x2e3)](){const _0x28a69b=_0x5a49e4;let _0x310299=this['_base'][_0x28a69b(0x2c4)]();return _0x310299[_0x28a69b(0x22f)][_0x28a69b(0x19b)](_0x36f6af=>_0x310299[_0x28a69b(0x1e4)][_0x36f6af])[_0x28a69b(0x208)](_0x48b21f=>_0x48b21f)['map'](_0x37ec1f=>this[_0x28a69b(0x2c1)][_0x28a69b(0x345)](_0x264539,this,_0x37ec1f['id'],this[_0x28a69b(0x2c1)]));}['getTableById'](_0x36cad1){const _0x19f091=_0x5a49e4;let _0x3481d8=this[_0x19f091(0x2a0)][_0x19f091(0x2c4)]()[_0x19f091(0x1e4)][_0x36cad1];return _0x3481d8?this['_injector'][_0x19f091(0x345)](_0x264539,this,_0x3481d8['id'],this[_0x19f091(0x2c1)]):null;}[_0x5a49e4(0x1dd)](_0x468fd5){const _0x18385e=_0x5a49e4;let _0x82cd47=this[_0x18385e(0x2a0)][_0x18385e(0x2c4)](),_0x4cc505=Object[_0x18385e(0x289)](_0x82cd47[_0x18385e(0x1e4)])[_0x18385e(0x286)](_0x5d1f0e=>_0x5d1f0e[_0x18385e(0x31d)]===_0x468fd5);return _0x4cc505?this[_0x18385e(0x2c1)][_0x18385e(0x345)](_0x264539,this,_0x4cc505['id'],this[_0x18385e(0x2c1)]):null;}[_0x5a49e4(0x274)](_0x45a9f3,_0x3a9684){const _0x57d4c0=_0x5a49e4;let _0x1b296b=(0x0,_0x26e2cd[_0x57d4c0(0x335)])({'id':(0x0,_0x26e2cd['generateRandomId'])(),'name':_0x45a9f3,..._0x3a9684==null?void 0x0:_0x3a9684[_0x57d4c0(0x271)],'primaryFieldName':_0x3a9684==null?void 0x0:_0x3a9684[_0x57d4c0(0x1d5)]}),_0x4ea5d6=_0x26e2cd[_0x57d4c0(0x23b)][_0x57d4c0(0x1c6)](_0x1b296b,(_0x3a9684==null?void 0x0:_0x3a9684[_0x57d4c0(0x271)])??{}),_0x1d5cc8=(0x0,_0x471e22['validateBaseTableName'])(this[_0x57d4c0(0x2a0)][_0x57d4c0(0x2c4)](),_0x4ea5d6[_0x57d4c0(0x31d)]);if(!_0x1d5cc8['valid'])throw Error(_0x57d4c0(0x28f)+_0x4ea5d6[_0x57d4c0(0x31d)]+_0x57d4c0(0x290)+_0x471e22['BASE_TABLE_NAME_REQUIREMENTS']+'\x20'+_0x1d5cc8['reason']);if(!this[_0x57d4c0(0x1be)][_0x57d4c0(0x20a)](_0x471e22[_0x57d4c0(0x339)]['id'],{'unitId':this[_0x57d4c0(0x2a0)]['getUnitId'](),'table':_0x4ea5d6,'index':_0x3a9684==null?void 0x0:_0x3a9684[_0x57d4c0(0x2b7)]}))throw Error(_0x57d4c0(0x34a)+_0x45a9f3+'\x22.');return this[_0x57d4c0(0x2c1)][_0x57d4c0(0x345)](_0x264539,this,_0x4ea5d6['id'],this['_injector']);}['deleteTable'](_0x470f42){const _0x4a585d=_0x5a49e4;let _0x27a9be=typeof _0x470f42==_0x4a585d(0x1b2)?_0x470f42:_0x470f42[_0x4a585d(0x32b)]();if(!this['_commandService'][_0x4a585d(0x20a)](_0x471e22['DeleteBaseTableCommand']['id'],{'unitId':this['_base']['getUnitId'](),'tableId':_0x27a9be}))throw Error(_0x4a585d(0x1b3)+_0x27a9be+'\x22.');return!0x0;}[_0x5a49e4(0x2ff)](_0x37795f,_0x491308){const _0x374283=_0x5a49e4;let _0x591463=this[_0x374283(0x2a0)][_0x374283(0x2c4)](),_0x1467f7=typeof _0x37795f==_0x374283(0x1b2)?_0x37795f:_0x37795f[_0x374283(0x32b)](),_0x220f06=_0x591463[_0x374283(0x1e4)][_0x1467f7];if(!_0x220f06)throw Error('[FBase]:\x20table\x20\x22'+_0x1467f7+'\x22\x20does\x20not\x20exist.');let _0x481543=_0x591463[_0x374283(0x22f)][_0x374283(0x328)](_0x1467f7)+0x1,_0x4b22e3=(0x0,_0x26e2cd[_0x374283(0x2ca)])(),_0x4a6a3d=(0x0,_0x471e22[_0x374283(0x256)])(_0x220f06,{'id':_0x4b22e3,'name':(0x0,_0x471e22[_0x374283(0x2a9)])(_0x591463,_0x220f06[_0x374283(0x31d)]+'\x20Copy'),'includeRecords':(_0x491308==null?void 0x0:_0x491308[_0x374283(0x33b)])??!0x1,'regenerateViewIds':(_0x491308==null?void 0x0:_0x491308[_0x374283(0x24c)])??!0x1});if(!this['_commandService'][_0x374283(0x20a)](_0x471e22[_0x374283(0x339)]['id'],{'unitId':this[_0x374283(0x2a0)][_0x374283(0x26b)](),'table':_0x4a6a3d,'index':_0x481543}))throw Error('Failed\x20to\x20duplicate\x20table\x20\x22'+_0x1467f7+'\x22.');return this[_0x374283(0x2c1)]['createInstance'](_0x264539,this,_0x4a6a3d['id'],this['_injector']);}[_0x5a49e4(0x355)](){const _0x1e6b54=_0x5a49e4;let _0x2f6b31=this[_0x1e6b54(0x2a0)][_0x1e6b54(0x2c4)]();return{'id':_0x2f6b31['id'],'name':_0x2f6b31[_0x1e6b54(0x31d)],'tables':this[_0x1e6b54(0x2e3)]()['map'](_0x5050bd=>_0x5050bd[_0x1e6b54(0x355)]())};}};_0x6e6b66=_0x4ef17f([_0x197b0f(0x1,(0x0,_0x26e2cd[_0x5a49e4(0x25e)])(_0x26e2cd[_0x5a49e4(0x21f)])),_0x197b0f(0x2,_0x26e2cd[_0x5a49e4(0x30d)]),_0x197b0f(0x3,_0x26e2cd['ICommandService']),_0x197b0f(0x4,_0x26e2cd[_0x5a49e4(0x317)])],_0x6e6b66);var _0x46cd8c=class extends _0x6b6f07[_0x5a49e4(0x269)]{[_0x5a49e4(0x2f1)](){const _0x36fa69=_0x5a49e4;this[_0x36fa69(0x311)](),this[_0x36fa69(0x227)]();}[_0x5a49e4(0x24b)](_0xb8e54a={},_0x26c3c8){const _0x40b111=_0x5a49e4;let _0x53418c=this[_0x40b111(0x246)][_0x40b111(0x238)](_0x26e2cd[_0x40b111(0x2ee)][_0x40b111(0x2c6)],_0xb8e54a,_0x26c3c8);return this[_0x40b111(0x2c1)][_0x40b111(0x345)](_0x6e6b66,_0x53418c);}[_0x5a49e4(0x20c)](){const _0x4a6dec=_0x5a49e4;let _0x8dc62e=this[_0x4a6dec(0x246)]['getCurrentUnitOfType'](_0x26e2cd[_0x4a6dec(0x2ee)]['UNIVER_BASE']);return _0x8dc62e?this[_0x4a6dec(0x2c1)]['createInstance'](_0x6e6b66,_0x8dc62e):null;}[_0x5a49e4(0x30f)](_0x4d0d29){const _0x365b58=_0x5a49e4;let _0x4ad684=this['_univerInstanceService'][_0x365b58(0x2bf)](_0x4d0d29,_0x26e2cd[_0x365b58(0x2ee)]['UNIVER_BASE']);return _0x4ad684?this[_0x365b58(0x2c1)][_0x365b58(0x345)](_0x6e6b66,_0x4ad684):null;}[_0x5a49e4(0x332)](){const _0x3ca6f2=_0x5a49e4;return this['_univerInstanceService']['getAllUnitsForType'](_0x26e2cd['UniverInstanceType']['UNIVER_BASE'])[_0x3ca6f2(0x19b)](_0x40422b=>this['_injector'][_0x3ca6f2(0x345)](_0x6e6b66,_0x40422b));}[_0x5a49e4(0x227)](){const _0x2f20d1=_0x5a49e4;this[_0x2f20d1(0x1e5)](this['registerEventHandler'](this[_0x2f20d1(0x1ee)]['BaseHierarchyChanged'],()=>this[_0x2f20d1(0x1be)]['onCommandExecuted']((_0x1f88d7,_0x163eb1)=>{const _0xf6326c=_0x2f20d1;var _0x883c18;if(!_0x4594be(_0x1f88d7,_0x471e22[_0xf6326c(0x1d3)]))return;let _0xb417b0=_0x1f88d7['params'];if(!((_0x883c18=_0xb417b0[_0xf6326c(0x347)])!=null&&_0x883c18['length']))return;let _0x6af7a8=this[_0xf6326c(0x30f)](_0xb417b0[_0xf6326c(0x2b5)]),_0x4a0213=_0x6af7a8==null?void 0x0:_0x6af7a8['getTableById'](_0xb417b0['hierarchyChanges'][0x0][_0xf6326c(0x1f9)]);if(!_0x6af7a8||!_0x4a0213)return;let _0x22f64c={'base':_0x6af7a8,'table':_0x4a0213,'changes':_0xb417b0[_0xf6326c(0x347)],'source':_0x163eb1!=null&&_0x163eb1[_0xf6326c(0x1ab)]?_0x471e22[_0xf6326c(0x27b)][_0xf6326c(0x21b)]:_0xb417b0[_0xf6326c(0x220)]??_0x471e22[_0xf6326c(0x27b)]['UI']};this[_0xf6326c(0x2a3)](this['Event'][_0xf6326c(0x1d7)],_0x22f64c);}))),this[_0x2f20d1(0x1e5)](this[_0x2f20d1(0x297)](this[_0x2f20d1(0x1ee)][_0x2f20d1(0x2ec)],()=>this[_0x2f20d1(0x1be)]['onCommandExecuted'](_0x3a100c=>{const _0x2f82ee=_0x2f20d1;if(_0x3a100c['id']!==_0x471e22[_0x2f82ee(0x339)]['id'])return;let {unitId:_0x14dabe,table:_0x2d71a0,index:_0x1258b3}=_0x3a100c[_0x2f82ee(0x272)],_0x5aeab2=this[_0x2f82ee(0x30f)](_0x14dabe);if(!_0x5aeab2)return;let _0x249214={'base':_0x5aeab2,'table':_0x2d71a0,'index':_0x1258b3};this[_0x2f82ee(0x2a3)](this['Event'][_0x2f82ee(0x2ec)],_0x249214);}))),this[_0x2f20d1(0x1e5)](this['registerEventHandler'](this['Event'][_0x2f20d1(0x232)],()=>this[_0x2f20d1(0x1be)][_0x2f20d1(0x330)](_0x59b7d3=>{const _0x1d25a4=_0x2f20d1;if(_0x59b7d3['id']!==_0x471e22[_0x1d25a4(0x207)]['id'])return;let {unitId:_0x3cff6f,tableId:_0x216d04,field:_0x25d366,index:_0x536618,viewIndexes:_0x1c477b}=_0x59b7d3[_0x1d25a4(0x272)],_0x3b3f6f=this[_0x1d25a4(0x30f)](_0x3cff6f);if(!_0x3b3f6f)return;let _0x47b0e5=_0x3b3f6f[_0x1d25a4(0x259)](_0x216d04);if(!_0x47b0e5)return;let _0x3eae67={'base':_0x3b3f6f,'table':_0x47b0e5,'field':_0x25d366,'index':_0x536618,'viewIndexes':_0x1c477b};this[_0x1d25a4(0x2a3)](this[_0x1d25a4(0x1ee)][_0x1d25a4(0x232)],_0x3eae67);}))),this[_0x2f20d1(0x1e5)](this[_0x2f20d1(0x297)](this[_0x2f20d1(0x1ee)][_0x2f20d1(0x1da)],()=>this[_0x2f20d1(0x1be)][_0x2f20d1(0x330)](_0x4af28a=>{const _0x284ac7=_0x2f20d1;if(_0x4af28a['id']!==_0x471e22[_0x284ac7(0x316)]['id']&&_0x4af28a['id']!==_0x471e22[_0x284ac7(0x2eb)]['id'])return;let _0x3188e6=_0x4af28a[_0x284ac7(0x272)],{unitId:_0x9429bf,tableId:_0x5cf4f8}=_0x3188e6,_0x577ecf=_0x3188e6[_0x284ac7(0x320)]??[_0x3188e6[_0x284ac7(0x336)]],_0xf1842c=this[_0x284ac7(0x30f)](_0x9429bf);if(!_0xf1842c)return;let _0x3e581e=_0xf1842c['getTableById'](_0x5cf4f8);if(!_0x3e581e)return;let _0x575fe8={'base':_0xf1842c,'table':_0x3e581e,'records':_0x577ecf};this[_0x284ac7(0x2a3)](this[_0x284ac7(0x1ee)][_0x284ac7(0x1da)],_0x575fe8);}))),this[_0x2f20d1(0x1e5)](this[_0x2f20d1(0x297)](this['Event'][_0x2f20d1(0x1d4)],()=>this[_0x2f20d1(0x1be)][_0x2f20d1(0x330)](_0x325231=>{const _0x42eaf9=_0x2f20d1;if(_0x325231['id']!==_0x471e22['CreateBaseViewCommand']['id'])return;let {unitId:_0x1bcd0c,tableId:_0x334203,view:_0x477c94,index:_0x5b257f}=_0x325231[_0x42eaf9(0x272)],_0x13e760=this[_0x42eaf9(0x30f)](_0x1bcd0c);if(!_0x13e760)return;let _0x48de17=_0x13e760[_0x42eaf9(0x259)](_0x334203);if(!_0x48de17)return;let _0x109e79={'base':_0x13e760,'table':_0x48de17,'view':_0x477c94,'index':_0x5b257f};this[_0x42eaf9(0x2a3)](this[_0x42eaf9(0x1ee)]['BaseTableViewCreated'],_0x109e79);}))),this['disposeWithMe'](this[_0x2f20d1(0x297)](this[_0x2f20d1(0x1ee)][_0x2f20d1(0x2fa)],()=>this[_0x2f20d1(0x1be)][_0x2f20d1(0x330)](_0x4a6cf6=>{const _0x320f56=_0x2f20d1;if(_0x4a6cf6['id']!==_0x471e22['UpdateBaseCellCommand']['id'])return;let {unitId:_0x11db54,tableId:_0x5f08ac,recordId:_0x989781,fieldId:_0x571389,value:_0x2f16cb}=_0x4a6cf6[_0x320f56(0x272)],_0x432d71=this[_0x320f56(0x30f)](_0x11db54);if(!_0x432d71)return;let _0xa68e4b=_0x432d71[_0x320f56(0x259)](_0x5f08ac);if(!_0xa68e4b)return;let _0x419a51=_0xa68e4b[_0x320f56(0x2be)](_0x571389);if(!_0x419a51)return;let _0x31ff2e=_0xa68e4b[_0x320f56(0x30c)](_0x989781);if(!_0x31ff2e)return;let _0x40eb50={'base':_0x432d71,'table':_0xa68e4b,'field':_0x419a51,'record':_0x31ff2e,'value':_0x2f16cb};this[_0x320f56(0x2a3)](this[_0x320f56(0x1ee)]['BaseTableCellValueChanged'],_0x40eb50);})));}[_0x5a49e4(0x311)](){const _0x275133=_0x5a49e4;this[_0x275133(0x1e5)](this[_0x275133(0x297)](this[_0x275133(0x1ee)][_0x275133(0x27f)],()=>this[_0x275133(0x1be)][_0x275133(0x1c4)](_0x288dfa=>{const _0x39c863=_0x275133;if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x24e)])){let {unitId:_0x3ee004,tableId:_0x1b0fcb,patches:_0x4c6260,source:_0x2500f9=_0x471e22[_0x39c863(0x27b)]['UI']}=_0x288dfa[_0x39c863(0x272)],_0x497a1f=this[_0x39c863(0x31f)](_0x3ee004,_0x1b0fcb);if(!_0x497a1f)return;this[_0x39c863(0x2d4)](_0x497a1f['base'],_0x497a1f[_0x39c863(0x271)],(0x0,_0x471e22[_0x39c863(0x26f)])(_0x497a1f[_0x39c863(0x271)]['getTable'](),_0x4c6260),_0x2500f9);return;}if(_0x4594be(_0x288dfa,_0x471e22['SetBaseRangeValuesCommand'])){let {unitId:_0x424313,tableId:_0x245131,patches:_0x419322,source:_0x42a311=_0x471e22[_0x39c863(0x27b)]['UI']}=_0x288dfa['params'],_0x92ba20=this[_0x39c863(0x31f)](_0x424313,_0x245131);if(!_0x92ba20)return;let _0x24844f=_0x92ba20[_0x39c863(0x271)]['getTable']();this[_0x39c863(0x2d4)](_0x92ba20[_0x39c863(0x20b)],_0x92ba20[_0x39c863(0x271)],(0x0,_0x471e22[_0x39c863(0x26f)])(_0x24844f,(0x0,_0x471e22[_0x39c863(0x210)])(_0x24844f,_0x419322)),_0x42a311);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x316)])){let _0x160b91=_0x288dfa[_0x39c863(0x272)],_0x50a418=this['_getHierarchyEventContext'](_0x160b91['unitId'],_0x160b91[_0x39c863(0x1f9)]);if(!_0x50a418)return;this[_0x39c863(0x2d4)](_0x50a418[_0x39c863(0x20b)],_0x50a418[_0x39c863(0x271)],(0x0,_0x471e22['validateBaseHierarchyRecordCreations'])(_0x50a418['table'][_0x39c863(0x1f5)](),[_0x160b91[_0x39c863(0x336)]]),_0x160b91[_0x39c863(0x220)]??_0x471e22[_0x39c863(0x27b)]['UI']);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x2eb)])){let _0x56fe4b=_0x288dfa[_0x39c863(0x272)],_0x265e83=this[_0x39c863(0x31f)](_0x56fe4b['unitId'],_0x56fe4b[_0x39c863(0x1f9)]);if(!_0x265e83)return;this[_0x39c863(0x2d4)](_0x265e83[_0x39c863(0x20b)],_0x265e83[_0x39c863(0x271)],(0x0,_0x471e22[_0x39c863(0x29d)])(_0x265e83['table']['getTable'](),_0x56fe4b[_0x39c863(0x320)]),_0x56fe4b[_0x39c863(0x220)]??_0x471e22[_0x39c863(0x27b)]['UI']);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x1bf)])){let _0x2194a7=_0x288dfa[_0x39c863(0x272)],_0x59737b=this[_0x39c863(0x31f)](_0x2194a7[_0x39c863(0x2b5)],_0x2194a7[_0x39c863(0x1f9)]);if(!_0x59737b)return;this[_0x39c863(0x2d4)](_0x59737b[_0x39c863(0x20b)],_0x59737b['table'],(0x0,_0x471e22['validateBaseHierarchyRecordCreations'])(_0x59737b['table'][_0x39c863(0x1f5)](),[_0x2194a7[_0x39c863(0x336)]]),_0x2194a7['source']??_0x471e22[_0x39c863(0x27b)]['UI']);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x1ad)])){let _0x4b2bfd=_0x288dfa[_0x39c863(0x272)],_0x17c7e7=this[_0x39c863(0x31f)](_0x4b2bfd[_0x39c863(0x2b5)],_0x4b2bfd[_0x39c863(0x1f9)]);if(!_0x17c7e7)return;let _0x5d5006=_0x17c7e7[_0x39c863(0x271)]['getTable'](),_0x4b4c41=_0x4b2bfd[_0x39c863(0x293)]??(0x0,_0x471e22[_0x39c863(0x2d9)])(_0x5d5006),_0x2ffab2=(0x0,_0x471e22[_0x39c863(0x1f3)])(_0x5d5006,_0x4b4c41)[_0x39c863(0x304)][_0x39c863(0x29a)](_0x4b2bfd[_0x39c863(0x2d1)])??null;this[_0x39c863(0x2d4)](_0x17c7e7[_0x39c863(0x20b)],_0x17c7e7[_0x39c863(0x271)],[{'tableId':_0x4b2bfd[_0x39c863(0x1f9)],'fieldId':_0x4b4c41,'recordId':_0x4b2bfd[_0x39c863(0x2d1)],'oldParentRecordId':_0x2ffab2,'parentRecordId':_0x4b2bfd[_0x39c863(0x2f6)]}],_0x4b2bfd['source']??_0x471e22[_0x39c863(0x27b)]['UI']);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x2f5)])){let _0x3ef3cc=_0x288dfa[_0x39c863(0x272)],_0x174596=this[_0x39c863(0x31f)](_0x3ef3cc['unitId'],_0x3ef3cc[_0x39c863(0x1f9)]);if(!_0x174596)return;let _0x1da57e=_0x3ef3cc['fieldId']??(0x0,_0x471e22[_0x39c863(0x2d9)])(_0x174596[_0x39c863(0x271)][_0x39c863(0x1f5)]());this['_fireBeforeHierarchyChange'](_0x174596[_0x39c863(0x20b)],_0x174596['table'],[{'tableId':_0x3ef3cc['tableId'],'fieldId':_0x1da57e,'recordId':_0x3ef3cc['record']['id'],'oldParentRecordId':null,'parentRecordId':_0x3ef3cc[_0x39c863(0x2f6)]}],_0x3ef3cc['source']??_0x471e22['BaseEventSource']['UI']);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x1c3)])){let _0x126347=_0x288dfa[_0x39c863(0x272)],_0x4fed3d=this[_0x39c863(0x31f)](_0x126347[_0x39c863(0x2b5)],_0x126347['tableId']);if(!_0x4fed3d)return;this['_fireBeforeHierarchyChange'](_0x4fed3d[_0x39c863(0x20b)],_0x4fed3d[_0x39c863(0x271)],(0x0,_0x471e22[_0x39c863(0x281)])(_0x4fed3d[_0x39c863(0x271)][_0x39c863(0x1f5)](),[_0x126347[_0x39c863(0x2d1)]]),_0x126347['source']??_0x471e22[_0x39c863(0x27b)]['UI']);return;}if(_0x4594be(_0x288dfa,_0x471e22[_0x39c863(0x1a9)])){let _0xdfe2c5=_0x288dfa[_0x39c863(0x272)],_0x7db668=this[_0x39c863(0x31f)](_0xdfe2c5[_0x39c863(0x2b5)],_0xdfe2c5[_0x39c863(0x1f9)]);if(!_0x7db668)return;this[_0x39c863(0x2d4)](_0x7db668['base'],_0x7db668[_0x39c863(0x271)],(0x0,_0x471e22[_0x39c863(0x281)])(_0x7db668[_0x39c863(0x271)][_0x39c863(0x1f5)](),_0xdfe2c5[_0x39c863(0x2dd)]),_0xdfe2c5['source']??_0x471e22[_0x39c863(0x27b)]['UI']);return;}if(!_0x4594be(_0x288dfa,_0x471e22['UpdateBaseCellCommand']))return;let _0x1ab637=_0x288dfa[_0x39c863(0x272)],_0x12fa4b=this['_getHierarchyEventContext'](_0x1ab637['unitId'],_0x1ab637['tableId']);if(!_0x12fa4b)return;let _0x2bafa2=_0x12fa4b['table']['getTable']();if(!(0x0,_0x471e22[_0x39c863(0x26a)])(_0x2bafa2)[_0x39c863(0x28a)](_0x1ab637[_0x39c863(0x293)]))return;let _0xe25740=(0x0,_0x471e22[_0x39c863(0x1f3)])(_0x2bafa2,_0x1ab637[_0x39c863(0x293)])[_0x39c863(0x304)]['get'](_0x1ab637[_0x39c863(0x2d1)])??null,_0x1e3804=(0x0,_0x471e22[_0x39c863(0x2cf)])(_0x1ab637['value'])[0x0]??null;_0xe25740!==_0x1e3804&&this[_0x39c863(0x2d4)](_0x12fa4b[_0x39c863(0x20b)],_0x12fa4b['table'],[{'tableId':_0x1ab637[_0x39c863(0x1f9)],'fieldId':_0x1ab637[_0x39c863(0x293)],'recordId':_0x1ab637['recordId'],'oldParentRecordId':_0xe25740,'parentRecordId':_0x1e3804}],_0x1ab637[_0x39c863(0x220)]??_0x471e22['BaseEventSource']['UI']);}))),this[_0x275133(0x1e5)](this[_0x275133(0x297)](this['Event'][_0x275133(0x1de)],()=>this[_0x275133(0x1be)][_0x275133(0x1c4)](_0x3d9d3c=>{const _0x2342db=_0x275133;if(_0x3d9d3c['id']!==_0x471e22[_0x2342db(0x339)]['id'])return;let {unitId:_0x452f3d,table:_0x85964,index:_0x3f8d68}=_0x3d9d3c[_0x2342db(0x272)],_0x400e5d=this['getBase'](_0x452f3d);if(!_0x400e5d)return;let _0x258b1c={'base':_0x400e5d,'table':_0x85964,'index':_0x3f8d68};if(this['fireEvent'](this[_0x2342db(0x1ee)][_0x2342db(0x1de)],_0x258b1c),_0x258b1c[_0x2342db(0x1b6)])throw new _0x26e2cd['CanceledError']();}))),this[_0x275133(0x1e5)](this[_0x275133(0x297)](this['Event'][_0x275133(0x2df)],()=>this[_0x275133(0x1be)][_0x275133(0x1c4)](_0x3e225b=>{const _0x42035b=_0x275133;if(_0x3e225b['id']!==_0x471e22[_0x42035b(0x207)]['id'])return;let {unitId:_0x35ffa4,tableId:_0x587b69,field:_0x351aeb,index:_0x341976,viewIndexes:_0x59f34b}=_0x3e225b['params'],_0x45c9c2=this[_0x42035b(0x30f)](_0x35ffa4);if(!_0x45c9c2)return;let _0x1699f9=_0x45c9c2[_0x42035b(0x259)](_0x587b69);if(!_0x1699f9)return;let _0x205aa7={'base':_0x45c9c2,'table':_0x1699f9,'field':_0x351aeb,'index':_0x341976,'viewIndexes':_0x59f34b};if(this[_0x42035b(0x2a3)](this[_0x42035b(0x1ee)][_0x42035b(0x2df)],_0x205aa7),_0x205aa7[_0x42035b(0x1b6)])throw new _0x26e2cd[(_0x42035b(0x350))]();}))),this[_0x275133(0x1e5)](this[_0x275133(0x297)](this['Event'][_0x275133(0x2fd)],()=>this[_0x275133(0x1be)][_0x275133(0x1c4)](_0x210849=>{const _0x3b555a=_0x275133;if(_0x210849['id']!==_0x471e22[_0x3b555a(0x316)]['id']&&_0x210849['id']!==_0x471e22[_0x3b555a(0x2eb)]['id'])return;let _0x3d26f9=_0x210849['params'],{unitId:_0x15490c,tableId:_0x24bdce}=_0x3d26f9,_0x26981f=_0x3d26f9[_0x3b555a(0x320)]??[_0x3d26f9[_0x3b555a(0x336)]],_0x35e5b0=this[_0x3b555a(0x30f)](_0x15490c);if(!_0x35e5b0)return;let _0x7e94be=_0x35e5b0[_0x3b555a(0x259)](_0x24bdce);if(!_0x7e94be)return;let _0x550b06={'base':_0x35e5b0,'table':_0x7e94be,'records':_0x26981f};if(this['fireEvent'](this[_0x3b555a(0x1ee)][_0x3b555a(0x2fd)],_0x550b06),_0x550b06['cancel'])throw new _0x26e2cd[(_0x3b555a(0x350))]();}))),this[_0x275133(0x1e5)](this[_0x275133(0x297)](this[_0x275133(0x1ee)][_0x275133(0x33c)],()=>this['_commandService']['beforeCommandExecuted'](_0x50267c=>{const _0xa99fa4=_0x275133;if(_0x50267c['id']!==_0x471e22['CreateBaseViewCommand']['id'])return;let {unitId:_0x2a5930,tableId:_0x3845f1,view:_0x19a7b3,index:_0x345ed1}=_0x50267c[_0xa99fa4(0x272)],_0x1e0c6b=this[_0xa99fa4(0x30f)](_0x2a5930);if(!_0x1e0c6b)return;let _0x5e312b=_0x1e0c6b['getTableById'](_0x3845f1);if(!_0x5e312b)return;let _0x1d211e={'base':_0x1e0c6b,'table':_0x5e312b,'view':_0x19a7b3,'index':_0x345ed1};if(this[_0xa99fa4(0x2a3)](this[_0xa99fa4(0x1ee)]['BeforeBaseTableViewCreate'],_0x1d211e),_0x1d211e[_0xa99fa4(0x1b6)])throw new _0x26e2cd[(_0xa99fa4(0x350))]();}))),this[_0x275133(0x1e5)](this[_0x275133(0x297)](this['Event']['BeforeBaseTableCellValueChange'],()=>this[_0x275133(0x1be)][_0x275133(0x1c4)](_0x545aad=>{const _0x24d2d1=_0x275133;if(_0x545aad['id']!==_0x471e22['UpdateBaseCellCommand']['id'])return;let {unitId:_0x14249c,tableId:_0x3f126f,recordId:_0x393013,fieldId:_0x29be74,value:_0x3a5698}=_0x545aad[_0x24d2d1(0x272)],_0x2e5241=this['getBase'](_0x14249c);if(!_0x2e5241)return;let _0x3980fb=_0x2e5241[_0x24d2d1(0x259)](_0x3f126f);if(!_0x3980fb)return;let _0x2f56bc=_0x3980fb[_0x24d2d1(0x2be)](_0x29be74);if(!_0x2f56bc)return;let _0x5f176e=_0x3980fb[_0x24d2d1(0x30c)](_0x393013);if(!_0x5f176e)return;let _0x5bdab0={'base':_0x2e5241,'table':_0x3980fb,'field':_0x2f56bc,'record':_0x5f176e,'value':_0x3a5698};if(this[_0x24d2d1(0x2a3)](this[_0x24d2d1(0x1ee)]['BeforeBaseTableCellValueChange'],_0x5bdab0),_0x5bdab0[_0x24d2d1(0x1b6)])throw new _0x26e2cd[(_0x24d2d1(0x350))]();})));}[_0x5a49e4(0x31f)](_0x21becc,_0x5802a9){const _0x2a751b=_0x5a49e4;let _0x3fd2d3=this['getBase'](_0x21becc),_0x2c8521=_0x3fd2d3==null?void 0x0:_0x3fd2d3[_0x2a751b(0x259)](_0x5802a9);return _0x3fd2d3&&_0x2c8521?{'base':_0x3fd2d3,'table':_0x2c8521}:null;}[_0x5a49e4(0x2d4)](_0x3a6edc,_0x685080,_0x434fbf,_0x429e26){const _0xd02b4a=_0x5a49e4;if(!_0x434fbf['length'])return;let _0x3d0deb={'base':_0x3a6edc,'table':_0x685080,'changes':_0x434fbf,'source':_0x429e26};if(this[_0xd02b4a(0x2a3)](this[_0xd02b4a(0x1ee)][_0xd02b4a(0x27f)],_0x3d0deb),_0x3d0deb[_0xd02b4a(0x1b6)])throw new _0x26e2cd['CanceledError']();}};function _0x4594be(_0x556f4a,_0x3208b4){const _0x4d4dc3=_0x5a49e4;return _0x556f4a['id']===_0x3208b4['id']&&_0x556f4a[_0x4d4dc3(0x272)]!==void 0x0;}_0x6b6f07['FUniver'][_0x5a49e4(0x31a)](_0x46cd8c);var _0x4c4f54=class extends _0x6b6f07[_0x5a49e4(0x245)]{get[_0x5a49e4(0x1cd)](){return _0x26e2cd['BaseFieldType'];}get['BaseFilterConjunction'](){const _0x35e0b4=_0x5a49e4;return _0x26e2cd[_0x35e0b4(0x1a1)];}get['BaseFilterOperator'](){const _0x101f0e=_0x5a49e4;return _0x26e2cd[_0x101f0e(0x22d)];}get[_0x5a49e4(0x22c)](){return _0x51ead3;}get[_0x5a49e4(0x28e)](){const _0x1b9c47=_0x5a49e4;return _0x26e2cd[_0x1b9c47(0x28e)];}get[_0x5a49e4(0x1d9)](){const _0x54daab=_0x5a49e4;return _0x26e2cd[_0x54daab(0x1d9)];}get[_0x5a49e4(0x280)](){const _0xfb8820=_0x5a49e4;return _0x26e2cd[_0xfb8820(0x280)];}get['BaseConditionalDateMode'](){return _0x26e2cd['BaseConditionalDateMode'];}get[_0x5a49e4(0x334)](){return _0x26e2cd['BaseSortDirection'];}get['BaseEventSource'](){const _0x10a68e=_0x5a49e4;return _0x471e22[_0x10a68e(0x27b)];}get[_0x5a49e4(0x2cc)](){const _0x3341cf=_0x5a49e4;return _0x471e22[_0x3341cf(0x2cc)];}get[_0x5a49e4(0x351)](){const _0x12302c=_0x5a49e4;return _0x26e2cd[_0x12302c(0x351)];}get[_0x5a49e4(0x1a3)](){return _0x26e2cd['BaseRecordLinkRole'];}};_0x6b6f07[_0x5a49e4(0x245)]['extend'](_0x4c4f54);var _0x800ce=class extends _0x6b6f07['FEventName']{get['BaseTableCreated'](){const _0x1a322e=_0x5a49e4;return _0x1a322e(0x2ec);}get[_0x5a49e4(0x1de)](){const _0x88b49a=_0x5a49e4;return _0x88b49a(0x1de);}get['BaseTableFieldCreated'](){const _0x3d52ea=_0x5a49e4;return _0x3d52ea(0x232);}get[_0x5a49e4(0x2df)](){const _0x1f5251=_0x5a49e4;return _0x1f5251(0x2df);}get[_0x5a49e4(0x1da)](){return'BaseTableRecordCreated';}get[_0x5a49e4(0x2fd)](){return'BeforeBaseTableRecordCreate';}get['BaseTableViewCreated'](){const _0x31c7ce=_0x5a49e4;return _0x31c7ce(0x1d4);}get[_0x5a49e4(0x33c)](){return'BeforeBaseTableViewCreate';}get[_0x5a49e4(0x2fa)](){const _0x7c29fc=_0x5a49e4;return _0x7c29fc(0x2fa);}get[_0x5a49e4(0x1b4)](){const _0x5342ae=_0x5a49e4;return _0x5342ae(0x1b4);}get[_0x5a49e4(0x1d7)](){const _0x2bcad2=_0x5a49e4;return _0x2bcad2(0x1d7);}get[_0x5a49e4(0x27f)](){return'BeforeBaseHierarchyChange';}};_0x6b6f07[_0x5a49e4(0x241)]['extend'](_0x800ce),_0x2f53ab[_0x5a49e4(0x22c)]=_0x51ead3,Object[_0x5a49e4(0x19a)](_0x2f53ab,_0x5a49e4(0x1e3),{'enumerable':!0x0,'get':function(){return _0x6e6b66;}}),_0x2f53ab[_0x5a49e4(0x2d3)]=_0x1d0494,_0x2f53ab[_0x5a49e4(0x1bc)]=_0x1dc073,Object[_0x5a49e4(0x19a)](_0x2f53ab,_0x5a49e4(0x1eb),{'enumerable':!0x0,'get':function(){return _0x264539;}}),Object[_0x5a49e4(0x19a)](_0x2f53ab,'FBaseTableField',{'enumerable':!0x0,'get':function(){return _0x138a01;}}),Object[_0x5a49e4(0x19a)](_0x2f53ab,'FBaseTableRange',{'enumerable':!0x0,'get':function(){return _0x39a5e1;}}),Object[_0x5a49e4(0x19a)](_0x2f53ab,_0x5a49e4(0x1db),{'enumerable':!0x0,'get':function(){return _0x457046;}}),Object[_0x5a49e4(0x19a)](_0x2f53ab,_0x5a49e4(0x23a),{'enumerable':!0x0,'get':function(){return _0x1284f7;}}),_0x2f53ab[_0x5a49e4(0x303)]=_0x800ce,_0x2f53ab[_0x5a49e4(0x243)]=_0x40f984,_0x2f53ab[_0x5a49e4(0x226)]=_0x1c32b4;}));function _0x586a(_0xe40fd1,_0xa0ba45){_0xe40fd1=_0xe40fd1-0x199;const _0x493ef1=_0x493e();let _0x586aa8=_0x493ef1[_0xe40fd1];return _0x586aa8;}function _0x493e(){const _0x84fe97=['getHierarchyFieldId','viewId','registerEventHandler','[FRecord]:\x20attachment\x20at\x20index\x20','size','get','getBaseFieldPermissionObjectId','getFieldSettings','validateBaseHierarchyRecordCreations','thumbnail','_baseUnitId','_base','notMatches','setLinkedRecordIds','fireEvent','deleteProperty','toPrimitive','@univerjs/core','getType','RecordId','createUniqueBaseTableName','sourceType','AND','Calendar','_viewId','CreateBaseViewCommand','setSort',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','max','getDescendants','endRow','primaryFieldId','unitId','startsWith','index','has','[FRecord]:\x20invalid\x20RecordLink\x20value.','rowId','_assertInBounds','getRecord',',\x20range:\x20','getFieldById','getUnit','number','_injector','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getFields','getSnapshot','_writeFormulaExternalReferences','UNIVER_BASE','fieldSettings','getBaseFormulaTableName','message','generateRandomId','localeCompare','BaseHierarchyErrorCode','ICommandService','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','parseRecordLinkIds','MoveBaseFieldCommand','recordId','_collectDescendantIds','FBaseObjectPermission','_fireBeforeHierarchyChange','some','108689lAQaMN','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','10MGShGt','resolveBaseHierarchyFieldId','10733190KchkBz','IBaseProjectionService','_baseTableId','recordIds','Name','BeforeBaseTableFieldCreate','@univerjs-pro/engine-formula','_projectionService','Formula','getTables','field','object','BASE_TABLE_NAME_REQUIREMENTS','Invalid\x20Base\x20formula.','getConditionalColorRules','SetBaseViewFieldWidthCommand','SetBaseViewFilterCommand','BatchCreateBaseRecordsCommand','BaseTableCreated','\x22\x20does\x20not\x20exist.','UniverInstanceType','@univerjs-pro/bases','addField','_initialize','getParent','valid','push','CreateBaseChildRecordCommand','parentRecordId','[FTable]:\x20table\x20\x22','deleteConditionalColorRule','updateConfig','BaseTableCellValueChanged','viewOrder','matches','BeforeBaseTableRecordCreate','1775432lTQDkw','duplicateTable','function','setValues','createView','FBasesEventNameMixin','parentByRecordId','visibleCardFieldIds','_getFieldIds','UniverCoreFacade','executeCommand','hasOwnProperty','getProjection','from','getRecordById','IResourceLoaderService','save','getBase','serializeRecordLinkIds','_initBaseBeforeEvents','setAttachments','UpdateBaseViewConditionalColorRulesCommand','Grid','\x20for\x20field\x20\x22','CreateBaseRecordCommand','IPermissionService','limit','addChild','extend','getName','_getHierarchyIndex','name','Clear','_getHierarchyEventContext','records','_prepareFormulaFieldReferences','\x20in\x20field\x20\x22','SetBasePermissionsCommand','UniverProEngineFormula','call','sort','width','indexOf','RenameBaseTableCommand','boolean','getId','deepClone','22987712LrboGD',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','setPoint','onCommandExecuted','startRow','getBases','getAncestors','BaseSortDirection','createDefaultBaseTableSnapshot','record','Unsupported\x20Base\x20field\x20type\x20\x22','UpdateBaseViewConfigCommand','CreateBaseTableCommand','reason','includeRecords','BeforeBaseTableViewCreate','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','[FRecord]:\x20RecordLink\x20field\x20\x22','_tableId','getValues','clear','data:','search','multiple','createInstance','[FRecord]:\x20record\x20\x22','hierarchyChanges','[FRecord]:\x20field\x20\x22','getOwnPropertyDescriptor','Failed\x20to\x20create\x20table\x20\x22','Module','delete','URL','getBaseViewPermissionObjectId','length','CanceledError','BaseHierarchyInvalidReason','getPermission','BASE_RECORD_ID_FIELD_ID','removeLinkedRecord','getSchema','getVisibleFields','getRange','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','afterFieldId','getViewByName','symbol','_fieldId','_getRecordLinkField','76622jrexYx','defineProperty','map','changeType','createdAt','UpsertHostExternalReferencesCommand',':\x20\x22','getBasePermissionValue','BaseFilterConjunction','system','BaseRecordLinkRole','getAttachments','87303hgdDrk','getLinkedRecordIds','recordOrder','setReadOnly','BatchDeleteBaseRecordsCommand','getDefaultValue','fromCollab','canEdit','MoveBaseHierarchyRecordCommand','getPrimaryFieldId','DeleteBaseFieldCommand','Edit','getNumColumns','string','Failed\x20to\x20delete\x20table\x20\x22','BeforeBaseTableCellValueChange','45fExQKB','cancel','constructor',',\x20max\x20columns:\x20','group','invalid','targetTableId','FBasePermission','Failed\x20to\x20add\x20records','_commandService','DuplicateBaseRecordCommand','SetBaseViewGroupCommand','SetBasePermissionCommand','flatMap','DeleteBaseRecordCommand','beforeCommandExecuted','_resourceLoaderService','commonExtend','view','mimeType','views','setValue','updatedAt','caseSensitive','BaseFieldType','fieldOrder','getConfig','Date','setEditable','beforeFieldId','ApplyBaseJson1Mutation','BaseTableViewCreated','primaryFieldName','_resolveRecordIds','BaseHierarchyChanged','164mXPHnh','BaseConditionalColorTarget','BaseTableRecordCreated','FBaseTableRecord','Facade','getTableByName','BeforeBaseTableCreate','create','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','conditions','_getTable','FBase','tables','disposeWithMe','UpdateBaseRecordOrderCommand','UUID','Failed\x20to\x20add\x20field\x20\x22','Add','orderKey','FBaseTable','setDefaultValue','[FBaseRange]:\x20values\x20size\x20','Event','setHierarchyField','_unitId','operator','startColumn','buildBaseHierarchyIndex','_getView','getTable','move','getDescription','UpdateBaseFieldCommand','tableId','externalReferences','getPrimaryField','\x22\x20has\x20invalid\x20config.','__esModule','entries','Duplicate\x20Base\x20field\x20name:\x20','UniverProBasesFacade','Attachment','getValue','update','getRecords','now','config','CreateBaseFieldCommand','filter','_permissionService','syncExecuteCommand','base','getActiveBase','forEach','getRecordLinkFieldConfig','ChangeBaseFieldTypeCommand','resolveBaseRangeHierarchyPatches','childrenByParentId','fields','getField','ImageSourceType','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getRow','getFormulaName','hidden','stringify','ValidateBaseFormulaCommand','Remote','Delete','SetBaseViewFieldVisibleCommand','setConditionalColorRules','Injector','source','warn','_getField','RecordLink','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','type','resolveBaseFieldValues','_initBaseAfterEvents','DESC','12KmofVJ','438nNYruw','SetBaseRangeValuesCommand','BaseFieldKeyEnum','BaseFilterOperator','setConfig','tableOrder',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','getView','BaseTableFieldCreated','getDataRange','isArray','exports','trim','fieldIds','createUnit','_parentObjectIds','FBaseTableView','Tools','ensureBaseTableCellLayout','BASE64','setFieldVisible','setFilter','[FBaseRange]:\x20table\x20does\x20not\x20exist.','FEventName','custom','resolveBaseFieldKey','MoveBaseViewCommand','FEnum','_univerInstanceService','isReadonly','endColumn','SetBaseViewSortCommand','slice','createBase','regenerateViewIds','description','SetBaseRecordValuesCommand','RenameBaseViewCommand','[FView]:\x20view\x20\x22','getBaseTablePermissionObjectId','toStringTag','addRecords','readonly','FBaseInitialable','copyBaseTableSnapshot','amd','Invalid\x20Base\x20regex\x20filter:\x20','getTableById','UnitAction','_range','[FField]:\x20field\x20\x22','@univerjs/core/facade','Inject','_table','searchBaseTable','deleteRecords','_objectId','653790JjGACL','BaseConditionalColorRuleUpdateType','UniverCore','getViews','offset','_getAttachmentField','FUniver','getActiveBaseHierarchyFieldIds','getUnitId','rows','getNumRows','_recordId','validateBaseHierarchyRecordPatches','duplicate','table','params','_inject','insertTable','setName','deleteAttachments','value','\x20exceeds\x20range\x20size\x20','url','getBaseCellValue','BaseEventSource','Invalid\x20attachment\x20at\x20index\x20','_getRecord','height','BeforeBaseHierarchyChange','BaseConditionalColorOperator','getBaseHierarchyDeletePromotions','Kanban','addRecord','getViewById','fieldKey','find','SetBaseViewFieldOrderCommand','decorate','values','includes','matchesBaseCondition','default','SetBaseTableHierarchyFieldCommand','BaseViewType','[FBase]:\x20invalid\x20table\x20name\x20\x22','\x22.\x20','prototype','UniverProBases','fieldId','defaultValue'];_0x493e=function(){return _0x84fe97;};return _0x493e();}
1
+ function _0x3ced(){const _0x19ece1=['128hnWvUn','test','BaseConditionalColorRuleUpdateType','[FBaseTable]:\x20invalid\x20table\x20name\x20\x22','toStringTag','Failed\x20to\x20create\x20view\x20\x22','Invalid\x20attachment\x20at\x20index\x20','height','validateRecordLinkValue','tables','BeforeBaseTableViewCreate','BaseConditionalColorOperator','recordOrder','getSnapshot','values','\x20in\x20field\x20\x22','Base\x20field\x20not\x20found:\x20','filter','_getField','description','conditionalColoring','@univerjs-pro/engine-formula','getTableById','UniverProtocol','Set','createDefaultBaseTableSnapshot','commonExtend','delete','startRow','auto','Event','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','endRow','getBaseFacade','deleteProperty','offset','FBaseTableField','BaseHierarchyErrorCode','find','fieldSettings','BASE_RECORD_ID_FIELD_ID','SetBaseViewSortCommand','addRecord','getRecords','getId','DeleteBaseRecordCommand','map','rowId','fieldKey','canEdit','_base','createUnit','_tableId','RenameBaseViewCommand','validateBaseHierarchyRecordPatches','max','getRecord','BeforeBaseHierarchyChange','getField','setAttachments','@univerjs-pro/bases','call','_getTable','deleteAttachments','setName','source','DeleteBaseTableCommand','BeforeBaseTableFieldCreate','validateBaseHierarchyRecordCreations','url','hasOwnProperty','10rLsfqo','BASE64','record','_parentObjectIds','ApplyBaseJson1Mutation','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.','insertTable','getPrototypeOf','\x22\x20is\x20invalid.','getOwnPropertyNames','BaseRecordLinkRole','length','@univerjs/core','getRange','UpdateBaseFieldCommand','BaseConditionalDateMode','records','some','update','getAncestors','[FRecord]:\x20invalid\x20RecordLink\x20value.','getFieldByName','MoveBaseHierarchyRecordCommand','createInstance','setConditionalColorRules','orderKey','fromCollab','_inject','fieldOrder','getValues','BaseFieldType','IBaseProjectionService','getType','includes','\x20Copy','SetBaseNameCommand','[FRecord]:\x20record\x20\x22','getAttachments','type','createdAt','getBaseHierarchyDeletePromotions','_initBaseAfterEvents','80279VYtrvg','notMatches','params','function','getPrimaryFieldId','getDescription','UnitAction','getTableId','setGroup','_injector','ImageSourceType','CreateBaseChildRecordCommand','_unitId','from','invalid','every','registerEventHandler','_getRecord','setEditable','getBaseRecordPermissionObjectId','UniverInstanceType','limit','fieldId','addField','getUnitId','flatMap','Kanban','getBaseTablePermissionObjectId','UniverProBasesFacade','FBasePermission','name','getLinkedRecordIds','\x22.\x20','getFormulaName','_commandService','orderedRecordIds','UniverProEngineFormula','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','getChildren',':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.','enumerable','resolveBaseRangeHierarchyPatches','FBaseTableRange','SetBasePermissionsCommand','generateRandomId','Unsupported\x20Base\x20field\x20type\x20\x22','sourceType','11948319pOHgFf','width','caseSensitive','BaseFieldKeyEnum','getViewById','FBaseTableRecord','table','defaultValue','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','\x22:\x20expected\x20an\x20array.','viewId','Module','view','fields','setHierarchyField','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','deepClone','parentByRecordId','getUnit','BatchDeleteBaseRecordsCommand','trim','DeleteBaseFieldCommand','__esModule','clear','cancel','clearConditionalColorRules','\x22\x20is\x20not\x20an\x20Attachment\x20field.','create','visibleCardFieldIds','changeType','FEventName',':\x20expected\x20an\x20object.','setValue','search','setSort','[FBase]:\x20table\x20\x22','endColumn','rows','amd','91NeMCFd','CreateBaseRecordCommand','Duplicate\x20Base\x20field\x20name:\x20','syncExecuteCommand','Formula','BaseConditionalColorTarget','[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22','data:','FEnum','FBase','multiple','10yAAquG','[FRecord]:\x20field\x20\x22','CreateBaseTableCommand','direction','BaseViewType','\x22\x20does\x20not\x20exist.','getGroup','base','message','Invalid\x20Base\x20formula.','FBaseInitialable','validateBaseTableName','afterFieldId','Edit','_baseUnitId','resolveBaseFieldKey','viewOrder','getViews','parentRecordId','size','hidden','MoveBaseFieldCommand','copyBaseTableSnapshot','_getHierarchyIndex','Tools','BaseFilterOperator','rules','Date','BaseFilterConjunction','_initialize','tableId','_prepareFormulaFieldReferences','matches','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','setFieldWidth','readonly','canEditBaseTargets','startColumn','primaryFieldId','_getHierarchyEventContext','_projectionService','getBase','updateConfig','removeLinkedRecord','getTables','SetBaseViewFieldVisibleCommand','RecordLink','ChangeBaseFieldTypeCommand','Invalid\x20Base\x20regex\x20filter:\x20','2580985GXzIbQ',',\x20max\x20columns:\x20','formula','fromEntries','sort','UpsertHostExternalReferencesCommand','getSort','setLinkedRecordIds','URL','[FTable]:\x20table\x20\x22','BeforeBaseTableCellValueChange','getNumRows','38397403PjIXLm','SetBaseViewFieldWidthCommand','resolveBaseFieldValues','conditions','BaseTableCreated','SetBaseViewFilterCommand','FBasesEventNameMixin','BaseHierarchyChanged','_table','Gallery','Name','onCommandExecuted','[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.','indexOf','[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','[FField]:\x20field\x20\x22','createView','_collectDescendantIds','getBasePermissionValue','IPermissionService','AND','_fieldId','UpdateBaseViewConditionalColorRulesCommand','BatchCreateBaseRecordsCommand','_getRecordLinkField','getConfig','deleteRecords','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','getPrimaryField','unitId','getProjection','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','_permissionService','BeforeBaseTableRecordCreate','36372CPHhWX','[FRecord]:\x20RecordLink\x20field\x20\x22','valid','getAllUnitsForType','Failed\x20to\x20add\x20records','constructor','_getView','string','getBaseCellValue','Grid','deleteConditionalColorRule','default','Calendar','CreateBaseFieldCommand','FBaseTableView','UpdateBaseCellCommand','getBaseViewPermissionObjectId','beforeCommandExecuted','prototype','getSchema','[FView]:\x20view\x20\x22','ensureBaseTableCellLayout','_getAttachmentField','RecordId','_objectId','serializeRecordLinkIds','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','getDataRange','reason','externalReferences','_resourceLoaderService','SetBasePermissionCommand','object','getRecordById','fireEvent','_assertInBounds','value','deleteTable','get','SetBaseRangeValuesCommand','matchesBaseCondition','thumbnail','now','disposeWithMe','Delete','getPermission','boolean','bind','SetBaseRecordValuesCommand','_initBaseBeforeEvents','hierarchyChanges','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','_baseTableId','queryRecords','[FBaseRange]:\x20table\x20does\x20not\x20exist.','getValue','isFinite','BaseSortDirection','extend','warn','Failed\x20to\x20delete\x20table\x20\x22','getName','BaseTableViewCreated','recordId','getDescendants','SetBaseViewGroupCommand','Failed\x20to\x20duplicate\x20table\x20\x22','BaseTableRecordCreated','58424FMQzdU','ValidateBaseFormulaCommand','setValues','BASE_TABLE_NAME_REQUIREMENTS','updatedAt','getTable','symbol','getParent','resolveBaseHierarchyFieldId','index','isArray','getActiveBase','FBaseTable','getFieldById','BeforeBaseTableCreate','executeCommand','parseRecordLinkIds','UpdateBaseRecordOrderCommand','_writeFormulaExternalReferences','getRecordLinkFieldConfig','_univerInstanceService','searchBaseTable','getTableByName','views','includeRecords','Attachment','SetBaseViewFieldOrderCommand','addLinkedRecord','UpdateBaseViewConfigCommand','custom','BaseTableFieldCreated','slice','getRow','RenameBaseTableCommand','moveField','exports','CreateBaseViewCommand','FUniver','localeCompare','BaseTableCellValueChanged','6269448oWosVR','primaryFieldName','setPoint','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','config',':\x20\x22','fieldIds','getActiveBaseHierarchyFieldIds','addChild','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','stringify','number','_viewId','_fireBeforeHierarchyChange','UniverCoreFacade','recordIds','decorate','getHierarchyFieldId','UniverProBases','@univerjs/core/facade','\x22\x20has\x20invalid\x20config.','_resolveRecordIds','UniverCore','getFieldSettings','ICommandService','Failed\x20to\x20create\x20table\x20\x22','beforeFieldId','entries','_getFieldIds','buildBaseHierarchyIndex','defineProperty','addRecords','childrenByParentId','BaseHierarchyInvalidReason','UNIVER_BASE','CanceledError','Clear','_range','FBaseObjectPermission','getFields','push','operator','getTableFacade','forEach','setReadOnly','setObjectPermissions','_recordId','has','Facade','field','iterator','BaseEventSource','Inject',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','group','setOrderKey','getNumColumns','Injector'];_0x3ced=function(){return _0x19ece1;};return _0x3ced();}function _0x1590(_0x2dc6bb,_0x4209a0){_0x2dc6bb=_0x2dc6bb-0x184;const _0x3ced58=_0x3ced();let _0x1590b0=_0x3ced58[_0x2dc6bb];return _0x1590b0;}(function(_0x4e7d50,_0x3c77a0){const _0x3b636e=_0x1590,_0x559784=_0x4e7d50();while(!![]){try{const _0x5760f9=-parseInt(_0x3b636e(0x20e))/0x1*(parseInt(_0x3b636e(0x26f))/0x2)+parseInt(_0x3b636e(0x2ce))/0x3*(parseInt(_0x3b636e(0x19d))/0x4)+-parseInt(_0x3b636e(0x2a0))/0x5+-parseInt(_0x3b636e(0x33a))/0x6+-parseInt(_0x3b636e(0x264))/0x7*(-parseInt(_0x3b636e(0x312))/0x8)+parseInt(_0x3b636e(0x23d))/0x9*(-parseInt(_0x3b636e(0x1e4))/0xa)+parseInt(_0x3b636e(0x2ac))/0xb;if(_0x5760f9===_0x3c77a0)break;else _0x559784['push'](_0x559784['shift']());}catch(_0xa318d2){_0x559784['push'](_0x559784['shift']());}}}(_0x3ced,0xa6de1),function(_0x37508f,_0x2d8aa7){const _0x39bd92=_0x1590;typeof exports==_0x39bd92(0x2ee)&&typeof module<'u'?_0x2d8aa7(exports,require('@univerjs-pro/bases'),require('@univerjs/core'),require('@univerjs/core/facade'),require('@univerjs/protocol'),require('@univerjs-pro/engine-formula')):typeof define==_0x39bd92(0x211)&&define[_0x39bd92(0x263)]?define([_0x39bd92(0x335),_0x39bd92(0x1d9),_0x39bd92(0x1f0),_0x39bd92(0x34d),'@univerjs/protocol',_0x39bd92(0x1b2)],_0x2d8aa7):(_0x37508f=typeof globalThis<'u'?globalThis:_0x37508f||self,_0x2d8aa7(_0x37508f[_0x39bd92(0x22a)]={},_0x37508f[_0x39bd92(0x34c)],_0x37508f[_0x39bd92(0x350)],_0x37508f[_0x39bd92(0x348)],_0x37508f[_0x39bd92(0x1b4)],_0x37508f[_0x39bd92(0x232)]));}(this,function(_0x2114e5,_0x1acf8a,_0x3c73ae,_0x5cd49a,_0x15b081,_0x4b4bfb){const _0x592355=_0x1590;Object[_0x592355(0x358)](_0x2114e5,Symbol[_0x592355(0x1a1)],{'value':_0x592355(0x248)});var _0xa0c2ae=Object[_0x592355(0x258)],_0x33c39b=Object['defineProperty'],_0x4ebdb4=Object['getOwnPropertyDescriptor'],_0x66be20=Object[_0x592355(0x1ed)],_0x557ea2=Object[_0x592355(0x1eb)],_0x33d6be=Object['prototype'][_0x592355(0x1e3)],_0x54208e=(_0x21eb05,_0xacc28c,_0x4198f8,_0xa9da83)=>{const _0x402d05=_0x592355;if(_0xacc28c&&typeof _0xacc28c==_0x402d05(0x2ee)||typeof _0xacc28c==_0x402d05(0x211)){for(var _0x58697c=_0x66be20(_0xacc28c),_0x5e09f3=0x0,_0x31ff4f=_0x58697c[_0x402d05(0x1ef)],_0x41f154;_0x5e09f3<_0x31ff4f;_0x5e09f3++)_0x41f154=_0x58697c[_0x5e09f3],!_0x33d6be[_0x402d05(0x1da)](_0x21eb05,_0x41f154)&&_0x41f154!==_0x4198f8&&_0x33c39b(_0x21eb05,_0x41f154,{'get':(_0x40ccaf=>_0xacc28c[_0x40ccaf])[_0x402d05(0x2fd)](null,_0x41f154),'enumerable':!(_0xa9da83=_0x4ebdb4(_0xacc28c,_0x41f154))||_0xa9da83[_0x402d05(0x236)]});}return _0x21eb05;};_0x5cd49a=((_0xf68153,_0x4337f8,_0x4e58ac)=>(_0x4e58ac=_0xf68153==null?{}:_0xa0c2ae(_0x557ea2(_0xf68153)),_0x54208e(_0x4337f8||!_0xf68153||!_0xf68153[_0x592355(0x253)]||!_0x33d6be[_0x592355(0x1da)](_0xf68153,'default')?_0x33c39b(_0x4e58ac,'default',{'value':_0xf68153,'enumerable':!0x0}):_0x4e58ac,_0xf68153)))(_0x5cd49a);var _0x18cceb=class{constructor(_0x287117,_0x48dc54,_0x4cb07e){const _0x295799=_0x592355;this[_0x295799(0x21a)]=_0x287117,this[_0x295799(0x230)]=_0x48dc54,this[_0x295799(0x2cc)]=_0x4cb07e;}async[_0x592355(0x190)](_0x1ff91a){const _0x4fc487=_0x592355;return this[_0x4fc487(0x230)][_0x4fc487(0x321)](_0x1acf8a[_0x4fc487(0x239)]['id'],{'unitId':this[_0x4fc487(0x21a)],'changes':_0x1ff91a});}async[_0x592355(0x33c)](_0x161f07,_0x2623cc){const _0xe20c23=_0x592355;await this[_0xe20c23(0x230)]['executeCommand'](_0x1acf8a[_0xe20c23(0x2ed)]['id'],{'unitId':this[_0xe20c23(0x21a)],'objectId':this[_0xe20c23(0x21a)],'action':_0x161f07,'value':_0x2623cc});}['getPoint'](_0x323bdb){const _0x4e5ae5=_0x592355;return(0x0,_0x1acf8a[_0x4e5ae5(0x2be)])(this[_0x4e5ae5(0x2cc)],this[_0x4e5ae5(0x21a)],this['_unitId'],_0x323bdb);}async[_0x592355(0x220)](_0x3db337=!0x0){const _0x5bef9c=_0x592355;await this[_0x5bef9c(0x230)][_0x5bef9c(0x321)](_0x1acf8a['SetBasePermissionCommand']['id'],{'unitId':this['_unitId'],'objectId':this['_unitId'],'action':_0x15b081['UnitAction'][_0x5bef9c(0x27c)],'value':_0x3db337});}async[_0x592355(0x18f)](){const _0x318fa9=_0x592355;await this[_0x318fa9(0x230)]['executeCommand'](_0x1acf8a[_0x318fa9(0x2ed)]['id'],{'unitId':this[_0x318fa9(0x21a)],'objectId':this[_0x318fa9(0x21a)],'action':_0x15b081['UnitAction'][_0x318fa9(0x27c)],'value':!0x1});}[_0x592355(0x1ce)](){const _0xa5a91b=_0x592355;return(0x0,_0x1acf8a[_0xa5a91b(0x2be)])(this[_0xa5a91b(0x2cc)],this[_0xa5a91b(0x21a)],this[_0xa5a91b(0x21a)],_0x15b081[_0xa5a91b(0x214)][_0xa5a91b(0x27c)]);}},_0x47ae22=class{constructor(_0xbe93f7,_0x195aca,_0x423474,_0x19108e,_0x2d722d){const _0x5147ee=_0x592355;this[_0x5147ee(0x21a)]=_0xbe93f7,this[_0x5147ee(0x2e6)]=_0x195aca,this['_parentObjectIds']=_0x423474,this[_0x5147ee(0x230)]=_0x19108e,this['_permissionService']=_0x2d722d;}async['setEditable'](_0x9190ee=!0x0){const _0x1cf4d4=_0x592355;await this[_0x1cf4d4(0x230)]['executeCommand'](_0x1acf8a['SetBasePermissionCommand']['id'],{'unitId':this[_0x1cf4d4(0x21a)],'objectId':this[_0x1cf4d4(0x2e6)],'action':_0x15b081[_0x1cf4d4(0x214)][_0x1cf4d4(0x27c)],'value':_0x9190ee});}async[_0x592355(0x18f)](){const _0x10d1d7=_0x592355;await this[_0x10d1d7(0x230)][_0x10d1d7(0x321)](_0x1acf8a[_0x10d1d7(0x2ed)]['id'],{'unitId':this[_0x10d1d7(0x21a)],'objectId':this[_0x10d1d7(0x2e6)],'action':_0x15b081[_0x10d1d7(0x214)][_0x10d1d7(0x27c)],'value':!0x1});}['canEdit'](){const _0x1920b1=_0x592355;return(0x0,_0x1acf8a[_0x1920b1(0x293)])(this[_0x1920b1(0x2cc)],this['_unitId'],[...this[_0x1920b1(0x1e7)],this['_objectId']]);}};function _0x5bf86b(_0x3e6bfa,_0xa15947){return function(_0x2332c4,_0x3c50ea){_0xa15947(_0x2332c4,_0x3c50ea,_0x3e6bfa);};}function _0x577aa0(_0x41c3d2,_0x21d40a,_0x184d49,_0xb0a6d7){const _0x3d4b48=_0x592355;var _0x18d5a2=arguments[_0x3d4b48(0x1ef)],_0x5ac1bb=_0x18d5a2<0x3?_0x21d40a:_0xb0a6d7===null?_0xb0a6d7=Object['getOwnPropertyDescriptor'](_0x21d40a,_0x184d49):_0xb0a6d7,_0x201f0e;if(typeof Reflect==_0x3d4b48(0x2ee)&&typeof Reflect[_0x3d4b48(0x34a)]==_0x3d4b48(0x211))_0x5ac1bb=Reflect[_0x3d4b48(0x34a)](_0x41c3d2,_0x21d40a,_0x184d49,_0xb0a6d7);else{for(var _0x471800=_0x41c3d2[_0x3d4b48(0x1ef)]-0x1;_0x471800>=0x0;_0x471800--)(_0x201f0e=_0x41c3d2[_0x471800])&&(_0x5ac1bb=(_0x18d5a2<0x3?_0x201f0e(_0x5ac1bb):_0x18d5a2>0x3?_0x201f0e(_0x21d40a,_0x184d49,_0x5ac1bb):_0x201f0e(_0x21d40a,_0x184d49))||_0x5ac1bb);}return _0x18d5a2>0x3&&_0x5ac1bb&&Object[_0x3d4b48(0x358)](_0x21d40a,_0x184d49,_0x5ac1bb),_0x5ac1bb;}let _0x79721e=class{constructor(_0x378a07,_0x14d937,_0x325e32,_0x3d2e75,_0x2cf97c){const _0x4be403=_0x592355;this['_base']=_0x378a07,this[_0x4be403(0x2b4)]=_0x14d937,this[_0x4be403(0x2c1)]=_0x325e32,this[_0x4be403(0x230)]=_0x3d2e75,this[_0x4be403(0x2cc)]=_0x2cf97c;}['getId'](){const _0x49723b=_0x592355;return this[_0x49723b(0x2c1)];}[_0x592355(0x2fb)](){const _0x317599=_0x592355;let _0xa03b02=this['_table'][_0x317599(0x1c9)]();return new _0x47ae22(this[_0x317599(0x1cf)][_0x317599(0x1c9)](),(0x0,_0x1acf8a['getBaseFieldPermissionObjectId'])(_0xa03b02,this['_fieldId']),[(0x0,_0x1acf8a['getBaseTablePermissionObjectId'])(_0xa03b02)],this[_0x317599(0x230)],this[_0x317599(0x2cc)]);}[_0x592355(0x1d7)](){const _0xa75ee=_0x592355;return this[_0xa75ee(0x1af)]();}['getName'](){const _0x26d5b6=_0x592355;return this[_0x26d5b6(0x1af)]()['name'];}[_0x592355(0x204)](){const _0x3db0ad=_0x592355;return this[_0x3db0ad(0x1af)]()[_0x3db0ad(0x20a)];}[_0x592355(0x2c5)](){const _0x307500=_0x592355;return this[_0x307500(0x1af)]()[_0x307500(0x33e)];}['getDefaultValue'](){const _0x30e0e6=_0x592355;return this[_0x30e0e6(0x1af)]()[_0x30e0e6(0x244)];}[_0x592355(0x213)](){const _0x230076=_0x592355;return this[_0x230076(0x1af)]()[_0x230076(0x1b0)];}['isReadonly'](){const _0xe00a66=_0x592355;return!!this[_0xe00a66(0x1af)]()[_0xe00a66(0x292)];}[_0x592355(0x1dd)](_0x1926c1){const _0x4d3bff=_0x592355;return this[_0x4d3bff(0x1f6)]({'name':_0x1926c1});}['setConfig'](_0x1b300a,_0x476d9d){const _0xfb5576=_0x592355;return this[_0xfb5576(0x1f6)]({'config':_0x1b300a},_0x476d9d);}['setDefaultValue'](_0x306e17){const _0x7c082f=_0x592355;return this[_0x7c082f(0x1f6)]({'defaultValue':_0x306e17});}[_0x592355(0x1f6)](_0x593158,_0x92da55){const _0x97f4ab=_0x592355;let _0x3e2279=this['_getField']()[_0x97f4ab(0x20a)];return(_0x593158[_0x97f4ab(0x20a)]??_0x3e2279)===_0x3c73ae[_0x97f4ab(0x202)][_0x97f4ab(0x268)]&&(Object[_0x97f4ab(0x2e0)][_0x97f4ab(0x1e3)][_0x97f4ab(0x1da)](_0x593158,_0x97f4ab(0x33e))||_0x593158[_0x97f4ab(0x20a)]===_0x3c73ae[_0x97f4ab(0x202)]['Formula'])&&!this[_0x97f4ab(0x324)](_0x92da55)?!0x1:this['_commandService']['syncExecuteCommand'](_0x1acf8a[_0x97f4ab(0x1f2)]['id'],{'unitId':this[_0x97f4ab(0x1cf)][_0x97f4ab(0x1c9)](),'tableId':this[_0x97f4ab(0x2b4)]['getId'](),'fieldId':this[_0x97f4ab(0x2c1)],'patch':_0x593158});}[_0x592355(0x25a)](_0x514d62,_0xf43c2={},_0x16aac6){const _0x30a188=_0x592355;return _0x514d62===_0x3c73ae[_0x30a188(0x202)][_0x30a188(0x268)]&&!this[_0x30a188(0x324)](_0x16aac6)?!0x1:this[_0x30a188(0x230)][_0x30a188(0x267)](_0x1acf8a[_0x30a188(0x29e)]['id'],{'unitId':this[_0x30a188(0x1cf)]['getId'](),'tableId':this[_0x30a188(0x2b4)]['getId'](),'fieldId':this['_fieldId'],'input':{'type':_0x514d62,'config':_0xf43c2}});}[_0x592355(0x1b8)](){const _0x3275a3=_0x592355;return this[_0x3275a3(0x230)]['syncExecuteCommand'](_0x1acf8a[_0x3275a3(0x252)]['id'],{'unitId':this[_0x3275a3(0x1cf)][_0x3275a3(0x1c9)](),'tableId':this[_0x3275a3(0x2b4)][_0x3275a3(0x1c9)](),'fieldId':this[_0x3275a3(0x2c1)]});}['move'](_0x43f6a8){const _0x1a7257=_0x592355;return this[_0x1a7257(0x230)]['syncExecuteCommand'](_0x1acf8a[_0x1a7257(0x284)]['id'],{'unitId':this['_base'][_0x1a7257(0x1c9)](),'tableId':this[_0x1a7257(0x2b4)][_0x1a7257(0x1c9)](),'fieldId':this['_fieldId'],'target':_0x43f6a8});}[_0x592355(0x1af)](){const _0x52cb1c=_0x592355;let _0x966114=this['_table'][_0x52cb1c(0x317)]()[_0x52cb1c(0x24a)][this[_0x52cb1c(0x2c1)]];if(!_0x966114)throw Error(_0x52cb1c(0x2bb)+this[_0x52cb1c(0x2c1)]+_0x52cb1c(0x274));return _0x966114;}[_0x592355(0x324)](_0x5658a6){const _0x23a7f7=_0x592355;if(!_0x5658a6||!Array[_0x23a7f7(0x31c)](_0x5658a6[_0x23a7f7(0x2eb)]))return console['warn'](_0x23a7f7(0x245)),!0x1;if(_0x5658a6[_0x23a7f7(0x2eb)][_0x23a7f7(0x1ef)]===0x0)return!0x0;let _0x3b9104=this[_0x23a7f7(0x230)][_0x23a7f7(0x267)](_0x4b4bfb[_0x23a7f7(0x2a5)]['id'],{'unitId':this[_0x23a7f7(0x1cf)]['getId'](),'references':_0x5658a6[_0x23a7f7(0x2eb)]});return _0x3b9104||console[_0x23a7f7(0x309)](_0x23a7f7(0x2ba)),_0x3b9104;}};_0x79721e=_0x577aa0([_0x5bf86b(0x3,_0x3c73ae['ICommandService']),_0x5bf86b(0x4,_0x3c73ae['IPermissionService'])],_0x79721e);let _0x4695ab=function(_0x50f9cb){const _0x474eb7=_0x592355;return _0x50f9cb['Id']='id',_0x50f9cb[_0x474eb7(0x2b6)]=_0x474eb7(0x22c),_0x50f9cb['Auto']=_0x474eb7(0x1ba),_0x50f9cb;}({});function _0x54d54b(_0x51cf7a){const _0x197dd5=_0x592355;return!!(_0x51cf7a&&_0x51cf7a['system']!==!0x0&&_0x51cf7a['type']!==_0x3c73ae[_0x197dd5(0x202)][_0x197dd5(0x2e5)]);}function _0x31c796(_0x7554f9,_0x1a94e8,_0x254ea0='id'){const _0x26f469=_0x592355;if(!_0x1a94e8)return{};let _0x5d0d39={};return Object[_0x26f469(0x355)](_0x1a94e8)[_0x26f469(0x18e)](([_0x19496a,_0x2882c0])=>{const _0x6e4a9d=_0x26f469;let _0xcce3b9=_0x48c489(_0x7554f9,_0x19496a,_0x254ea0);_0x5d0d39[_0xcce3b9]=_0x565fdc(_0x7554f9[_0x6e4a9d(0x24a)][_0xcce3b9],_0x2882c0);}),_0x5d0d39;}function _0x565fdc(_0x43118c,_0x598b8b){const _0x54514c=_0x592355;if((_0x43118c==null?void 0x0:_0x43118c['type'])!==_0x3c73ae[_0x54514c(0x202)]['Attachment']||_0x598b8b==null)return _0x598b8b;if(!Array[_0x54514c(0x31c)](_0x598b8b))throw TypeError(_0x54514c(0x24c)+_0x43118c['name']+_0x54514c(0x246));return _0x598b8b[_0x54514c(0x1cb)]((_0x110c12,_0x7ef4ec)=>_0x57f63e(_0x43118c,_0x110c12,_0x7ef4ec));}function _0x48c489(_0x7e72e4,_0x5b6902,_0x2c4a18){const _0x198568=_0x592355;if(_0x2c4a18==='id'||_0x2c4a18===_0x198568(0x1ba)&&_0x7e72e4[_0x198568(0x24a)][_0x5b6902])return _0x5b6902;let _0x5e88c9=Object['values'](_0x7e72e4[_0x198568(0x24a)])['filter'](_0x57dc1e=>_0x57dc1e[_0x198568(0x22c)]===_0x5b6902);if(_0x5e88c9['length']===0x1)return _0x5e88c9[0x0]['id'];throw _0x5e88c9[_0x198568(0x1ef)]>0x1?Error(_0x198568(0x266)+_0x5b6902):Error(_0x198568(0x1ad)+_0x5b6902);}function _0x57f63e(_0x270c77,_0x2e4203,_0x2e3e92){const _0x2ad308=_0x592355;let _0x357424=_0x2ad308(0x1a3)+_0x2e3e92+'\x20for\x20field\x20\x22'+_0x270c77[_0x2ad308(0x22c)]+'\x22';if(!_0xe27823(_0x2e4203))throw TypeError(_0x357424+_0x2ad308(0x25c));if(_0x2ad308(0x1e2)in _0x2e4203)throw TypeError(_0x357424+_0x2ad308(0x198));if(_0x2ad308(0x20a)in _0x2e4203)throw TypeError(_0x357424+_0x2ad308(0x235));let _0x1f6503=_0x314b8c(_0x2e4203['id'],_0x357424,'id'),_0x101f0e=_0x314b8c(_0x2e4203[_0x2ad308(0x22c)],_0x357424,_0x2ad308(0x22c)),_0x1fc271=_0x314b8c(_0x2e4203[_0x2ad308(0x1de)],_0x357424,_0x2ad308(0x1de));return{'id':_0x1f6503,'name':_0x101f0e,'source':_0x1fc271,'sourceType':_0x151c13(_0x2e4203[_0x2ad308(0x23c)],_0x1fc271,_0x357424),..._0x2fc6e9(_0x2e4203,'mimeType',_0x357424),..._0xf27ceb(_0x2e4203,_0x2ad308(0x282),_0x357424),..._0xf27ceb(_0x2e4203,_0x2ad308(0x23e),_0x357424),..._0xf27ceb(_0x2e4203,_0x2ad308(0x1a4),_0x357424),..._0x2fc6e9(_0x2e4203,_0x2ad308(0x2f7),_0x357424)};}function _0x151c13(_0x723f9a,_0x475933,_0x4251bf){const _0x4cc871=_0x592355;if(_0x723f9a==null)return _0x475933['startsWith'](_0x4cc871(0x26b))?_0x3c73ae[_0x4cc871(0x218)][_0x4cc871(0x1e5)]:_0x3c73ae[_0x4cc871(0x218)][_0x4cc871(0x2a8)];if(_0x723f9a===_0x3c73ae['ImageSourceType']['URL']||_0x723f9a===_0x3c73ae[_0x4cc871(0x218)]['UUID']||_0x723f9a===_0x3c73ae[_0x4cc871(0x218)][_0x4cc871(0x1e5)])return _0x723f9a;throw TypeError(_0x4251bf+':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.');}function _0x314b8c(_0x5ca697,_0x1af7c1,_0x3ea444){const _0x502e9a=_0x592355;if(typeof _0x5ca697!=_0x502e9a(0x2d5)||!_0x5ca697[_0x502e9a(0x251)]())throw TypeError(_0x1af7c1+':\x20\x22'+_0x3ea444+'\x22\x20must\x20be\x20a\x20non-empty\x20string.');return _0x5ca697;}function _0x2fc6e9(_0x49ecae,_0x18b7c8,_0x40c4fa){const _0xab5e7f=_0x592355;let _0x24c63d=_0x49ecae[_0x18b7c8];if(_0x24c63d==null)return{};if(typeof _0x24c63d!=_0xab5e7f(0x2d5)||!_0x24c63d['trim']())throw TypeError(_0x40c4fa+':\x20\x22'+_0x18b7c8+_0xab5e7f(0x1e9));return{[_0x18b7c8]:_0x24c63d};}function _0xf27ceb(_0x373fb8,_0x188ec0,_0x185a80){const _0x16e752=_0x592355;let _0x59669f=_0x373fb8[_0x188ec0];if(_0x59669f==null)return{};if(typeof _0x59669f!=_0x16e752(0x345)||!Number[_0x16e752(0x306)](_0x59669f)||_0x59669f<0x0)throw TypeError(_0x185a80+_0x16e752(0x33f)+_0x188ec0+_0x16e752(0x233));return{[_0x188ec0]:_0x59669f};}function _0xe27823(_0x4e7bfc){const _0xe81795=_0x592355;return typeof _0x4e7bfc==_0xe81795(0x2ee)&&!!_0x4e7bfc&&!Array['isArray'](_0x4e7bfc);}var _0x5664b6;let _0x5b010c=_0x5664b6=class{constructor(_0x4c4f80,_0x527de8,_0x1a0bd1,_0x1e57ab,_0x1263ee){const _0x516092=_0x592355;this['_base']=_0x4c4f80,this[_0x516092(0x2b4)]=_0x527de8,this[_0x516092(0x188)]=_0x1a0bd1,this[_0x516092(0x1ff)]=_0x1e57ab,this[_0x516092(0x230)]=_0x1263ee,this[_0x516092(0x2f1)]();}['getBaseId'](){return this['_base']['getId']();}[_0x592355(0x215)](){const _0x444b85=_0x592355;return this[_0x444b85(0x2b4)][_0x444b85(0x1c9)]();}[_0x592355(0x1f1)](){return{...this['_range']};}[_0x592355(0x332)](){const _0x109aca=_0x592355;return this[_0x109aca(0x188)]['startRow'];}['getColumn'](){const _0x2c351f=_0x592355;return this[_0x2c351f(0x188)][_0x2c351f(0x294)];}[_0x592355(0x2ab)](){const _0x541e68=_0x592355;return this[_0x541e68(0x188)]['endRow']-this[_0x541e68(0x188)][_0x541e68(0x1b9)]+0x1;}[_0x592355(0x19b)](){const _0x21e228=_0x592355;return this[_0x21e228(0x188)][_0x21e228(0x261)]-this['_range'][_0x21e228(0x294)]+0x1;}['getValues'](){const _0x1352d7=_0x592355;let _0xf5f769=this['_getTable'](),_0x48da6e=this[_0x1352d7(0x356)](_0xf5f769),_0x2e36d3=[];for(let _0x107179=this[_0x1352d7(0x188)][_0x1352d7(0x1b9)];_0x107179<=this['_range'][_0x1352d7(0x1bd)];_0x107179++){var _0x53d87c;let _0xda3a1f=(_0x53d87c=_0xf5f769[_0x1352d7(0x1cc)])==null?void 0x0:_0x53d87c[_0x107179],_0x12bb6e=[];for(let _0x573965=this[_0x1352d7(0x188)]['startColumn'];_0x573965<=this[_0x1352d7(0x188)][_0x1352d7(0x261)];_0x573965++){let _0x1ba228=_0x48da6e[_0x573965];_0x12bb6e['push'](_0xda3a1f&&_0x1ba228?(0x0,_0x1acf8a[_0x1352d7(0x2d6)])(_0xf5f769,_0xda3a1f,_0x1ba228):null);}_0x2e36d3[_0x1352d7(0x18b)](_0x12bb6e);}return _0x2e36d3;}[_0x592355(0x305)](){var _0xf0c0cb;return((_0xf0c0cb=this['getValues']()[0x0])==null?void 0x0:_0xf0c0cb[0x0])??null;}[_0x592355(0x25d)](_0x2fae3a){return this['setValues']([[_0x2fae3a]]);}[_0x592355(0x314)](_0x4a909d){const _0x46dfcd=_0x592355;let _0x53724e=this[_0x46dfcd(0x2ab)](),_0x501114=this[_0x46dfcd(0x19b)]();if(_0x4a909d[_0x46dfcd(0x1ef)]>_0x53724e||_0x4a909d[_0x46dfcd(0x1f5)](_0x158f97=>_0x158f97[_0x46dfcd(0x1ef)]>_0x501114)){var _0x31af3c;throw Error('[FBaseRange]:\x20values\x20size\x20'+_0x4a909d[_0x46dfcd(0x1ef)]+'x'+(((_0x31af3c=_0x4a909d[0x0])==null?void 0x0:_0x31af3c[_0x46dfcd(0x1ef)])??0x0)+'\x20exceeds\x20range\x20size\x20'+_0x53724e+'x'+_0x501114+'.');}let _0x2c4e31=this[_0x46dfcd(0x1db)](),_0x728a3b=this[_0x46dfcd(0x356)](_0x2c4e31),_0x6fb34=_0x4a909d[_0x46dfcd(0x227)]((_0x120118,_0x242d47)=>_0x120118[_0x46dfcd(0x1cb)]((_0x4ad781,_0x214b25)=>{const _0x20d92f=_0x46dfcd;var _0x2cf61c;let _0x2b12c0=this[_0x20d92f(0x188)][_0x20d92f(0x1b9)]+_0x242d47,_0xb14b37=_0x728a3b[this[_0x20d92f(0x188)][_0x20d92f(0x294)]+_0x214b25],_0x17fe4a=(_0x2cf61c=_0x2c4e31[_0x20d92f(0x1cc)])==null?void 0x0:_0x2cf61c[_0x2b12c0];if(!_0xb14b37||!_0x17fe4a)throw Error(_0x20d92f(0x2b8));return{'recordId':_0x17fe4a,'fieldId':_0xb14b37,'value':_0x4ad781};}));return this[_0x46dfcd(0x230)][_0x46dfcd(0x267)](_0x1acf8a[_0x46dfcd(0x2f5)]['id'],{'unitId':this[_0x46dfcd(0x1cf)][_0x46dfcd(0x1c9)](),'tableId':this[_0x46dfcd(0x2b4)][_0x46dfcd(0x1c9)](),'patches':_0x6fb34,'source':_0x1acf8a[_0x46dfcd(0x196)][_0x46dfcd(0x193)]});}[_0x592355(0x254)](){const _0x2166a8=_0x592355;return this['setValues'](Array['from']({'length':this[_0x2166a8(0x2ab)]()},()=>Array[_0x2166a8(0x21b)]({'length':this[_0x2166a8(0x19b)]()},()=>null)));}[_0x592355(0x1c0)](_0x5da1a8,_0x275663,_0x201297=this[_0x592355(0x2ab)](),_0x278776=this[_0x592355(0x19b)]()){const _0x40602a=_0x592355;return this[_0x40602a(0x1ff)][_0x40602a(0x1fb)](_0x5664b6,this['_base'],this[_0x40602a(0x2b4)],{'startRow':this[_0x40602a(0x188)][_0x40602a(0x1b9)]+_0x5da1a8,'startColumn':this[_0x40602a(0x188)]['startColumn']+_0x275663,'endRow':this[_0x40602a(0x188)][_0x40602a(0x1b9)]+_0x5da1a8+_0x201297-0x1,'endColumn':this[_0x40602a(0x188)][_0x40602a(0x294)]+_0x275663+_0x278776-0x1},this[_0x40602a(0x1ff)]);}['_getTable'](){const _0x403735=_0x592355;let _0x7b6a52=this[_0x403735(0x2b4)][_0x403735(0x317)]();if(!_0x7b6a52)throw Error(_0x403735(0x304));return(0x0,_0x1acf8a[_0x403735(0x2e3)])(_0x7b6a52);}[_0x592355(0x2f1)](){const _0x29478c=_0x592355;var _0x145353;let _0xdbad23=this[_0x29478c(0x1db)](),_0xd8f090=((_0x145353=_0xdbad23['recordOrder'])==null?void 0x0:_0x145353['length'])??0x0,_0x5306eb=this[_0x29478c(0x356)](_0xdbad23)[_0x29478c(0x1ef)];if(this[_0x29478c(0x188)][_0x29478c(0x1b9)]<0x0||this[_0x29478c(0x188)][_0x29478c(0x294)]<0x0||this[_0x29478c(0x188)]['endRow']<this[_0x29478c(0x188)][_0x29478c(0x1b9)]||this['_range'][_0x29478c(0x261)]<this[_0x29478c(0x188)][_0x29478c(0x294)]||this[_0x29478c(0x188)][_0x29478c(0x1bd)]>=Math[_0x29478c(0x1d4)](_0xd8f090,0x1)||this['_range'][_0x29478c(0x261)]>=Math[_0x29478c(0x1d4)](_0x5306eb,0x1))throw Error(_0x29478c(0x2c7)+_0xd8f090+_0x29478c(0x2a1)+_0x5306eb+',\x20range:\x20'+JSON[_0x29478c(0x344)](this[_0x29478c(0x188)])+'.');}[_0x592355(0x356)](_0x15f50c){const _0x303759=_0x592355;return _0x15f50c[_0x303759(0x200)][_0x303759(0x1ae)](_0x2e53e1=>_0x54d54b(_0x15f50c[_0x303759(0x24a)][_0x2e53e1]));}};_0x5b010c=_0x5664b6=_0x577aa0([_0x5bf86b(0x4,_0x3c73ae[_0x592355(0x352)])],_0x5b010c);function _0x6def91(_0x59361d){'@babel/helpers - typeof';const _0x45e9e7=_0x592355;return _0x6def91=typeof Symbol==_0x45e9e7(0x211)&&typeof Symbol[_0x45e9e7(0x195)]==_0x45e9e7(0x318)?function(_0x10cbcf){return typeof _0x10cbcf;}:function(_0x2ddb51){const _0x1828b8=_0x45e9e7;return _0x2ddb51&&typeof Symbol==_0x1828b8(0x211)&&_0x2ddb51[_0x1828b8(0x2d3)]===Symbol&&_0x2ddb51!==Symbol[_0x1828b8(0x2e0)]?'symbol':typeof _0x2ddb51;},_0x6def91(_0x59361d);}function _0x29caf3(_0x41a8b0,_0xe2ce4f){const _0x1e2d03=_0x592355;if(_0x6def91(_0x41a8b0)!=_0x1e2d03(0x2ee)||!_0x41a8b0)return _0x41a8b0;var _0x3485be=_0x41a8b0[Symbol['toPrimitive']];if(_0x3485be!==void 0x0){var _0xff9248=_0x3485be[_0x1e2d03(0x1da)](_0x41a8b0,_0xe2ce4f||_0x1e2d03(0x2d9));if(_0x6def91(_0xff9248)!=_0x1e2d03(0x2ee))return _0xff9248;throw TypeError(_0x1e2d03(0x290));}return(_0xe2ce4f===_0x1e2d03(0x2d5)?String:Number)(_0x41a8b0);}function _0x569d04(_0x481149){const _0xdb7601=_0x592355;var _0x231aad=_0x29caf3(_0x481149,_0xdb7601(0x2d5));return _0x6def91(_0x231aad)=='symbol'?_0x231aad:_0x231aad+'';}function _0x537a36(_0x1a2ff6,_0x1a1cb8,_0x4e393d){const _0x563aed=_0x592355;return(_0x1a1cb8=_0x569d04(_0x1a1cb8))in _0x1a2ff6?Object[_0x563aed(0x358)](_0x1a2ff6,_0x1a1cb8,{'value':_0x4e393d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1a2ff6[_0x1a1cb8]=_0x4e393d,_0x1a2ff6;}var _0x398bf7;let _0x53ddfc=_0x398bf7=class extends _0x5cd49a[_0x592355(0x279)]{constructor(_0x53596e,_0x35233f,_0x31c9ec,_0x468f32,_0xb5220e,_0x418125){const _0x3fa26a=_0x592355;super(_0x468f32),this[_0x3fa26a(0x1cf)]=_0x53596e,this[_0x3fa26a(0x2b4)]=_0x35233f,this[_0x3fa26a(0x191)]=_0x31c9ec,this[_0x3fa26a(0x217)]=_0x468f32,this[_0x3fa26a(0x230)]=_0xb5220e,this[_0x3fa26a(0x2cc)]=_0x418125,_0x537a36(this,'_baseUnitId',void 0x0),_0x537a36(this,'_baseTableId',void 0x0),this[_0x3fa26a(0x27d)]=_0x53596e[_0x3fa26a(0x1c9)](),this[_0x3fa26a(0x302)]=_0x35233f[_0x3fa26a(0x1c9)]();}[_0x592355(0x1be)](){const _0x1a0a0e=_0x592355;return this[_0x1a0a0e(0x1cf)];}[_0x592355(0x18d)](){return this['_table'];}[_0x592355(0x1c9)](){const _0x513a9e=_0x592355;return this[_0x513a9e(0x191)];}[_0x592355(0x2fb)](){const _0xdb11db=_0x592355;let _0x8b6cb1=this[_0xdb11db(0x2b4)][_0xdb11db(0x1c9)]();return new _0x47ae22(this[_0xdb11db(0x1cf)][_0xdb11db(0x1c9)](),(0x0,_0x1acf8a[_0xdb11db(0x221)])(_0x8b6cb1,this['_recordId']),[(0x0,_0x1acf8a[_0xdb11db(0x229)])(_0x8b6cb1)],this[_0xdb11db(0x230)],this[_0xdb11db(0x2cc)]);}[_0x592355(0x1d5)](){const _0x54839b=_0x592355;return{...this[_0x54839b(0x21f)](),'values':this[_0x54839b(0x201)]()};}[_0x592355(0x305)](_0x49f833){const _0x225493=_0x592355;return _0x54d54b(this[_0x225493(0x2b4)][_0x225493(0x317)]()[_0x225493(0x24a)][_0x49f833])?this['_getRecord']()[_0x225493(0x1ab)][_0x49f833]??null:null;}[_0x592355(0x201)](){const _0x510486=_0x592355;let _0x5e4261=this[_0x510486(0x2b4)]['getTable']();return Object[_0x510486(0x2a3)](Object['entries'](this[_0x510486(0x21f)]()[_0x510486(0x1ab)])[_0x510486(0x1ae)](([_0x3fde96])=>_0x54d54b(_0x5e4261['fields'][_0x3fde96])));}['setValue'](_0x2273f8,_0x19a9f5){const _0xb837b2=_0x592355;let _0x3c1938=this[_0xb837b2(0x2b4)]['getTable']()[_0xb837b2(0x24a)][_0x2273f8];return this[_0xb837b2(0x230)][_0xb837b2(0x267)](_0x1acf8a[_0xb837b2(0x2dd)]['id'],{'unitId':this['_base'][_0xb837b2(0x1c9)](),'tableId':this[_0xb837b2(0x2b4)][_0xb837b2(0x1c9)](),'recordId':this[_0xb837b2(0x191)],'fieldId':_0x2273f8,'value':_0x565fdc(_0x3c1938,_0x19a9f5),'source':_0x1acf8a['BaseEventSource'][_0xb837b2(0x193)]});}['setAttachments'](_0x1f9f0a,_0x4900d5){const _0x12ab5b=_0x592355;return this[_0x12ab5b(0x25d)](_0x1f9f0a,_0x4900d5['map'](_0x4adafb=>({..._0x4adafb})));}[_0x592355(0x209)](_0x340cc6){const _0x1f486e=_0x592355;this[_0x1f486e(0x2e4)](_0x340cc6);let _0x14ba61=this[_0x1f486e(0x305)](_0x340cc6);return Array[_0x1f486e(0x31c)](_0x14ba61)?_0x14ba61['map']((_0x5e3917,_0x346b20)=>_0x46247d(_0x5e3917,_0x340cc6,_0x346b20)):[];}[_0x592355(0x1dc)](_0x3e953c,_0x1f4d30){const _0x3b8878=_0x592355;this[_0x3b8878(0x2e4)](_0x3e953c);let _0x2c26e9=new Set(_0x1f4d30[_0x3b8878(0x1cb)](_0x2a1b99=>_0x2a1b99['id']));if(!_0x2c26e9[_0x3b8878(0x282)])return!0x0;let _0x501156=this[_0x3b8878(0x209)](_0x3e953c),_0x178b3c=_0x501156[_0x3b8878(0x1ae)](_0x1eb1d0=>!_0x2c26e9[_0x3b8878(0x192)](_0x1eb1d0['id']));return _0x178b3c['length']===_0x501156[_0x3b8878(0x1ef)]||this[_0x3b8878(0x1d8)](_0x3e953c,_0x178b3c);}[_0x592355(0x314)](_0x40b0c8,_0xf04dd3='id'){const _0x174a9b=_0x592355;let _0x55fbb8=this[_0x174a9b(0x2b4)][_0x174a9b(0x317)](),_0x6fa437=[{'recordId':this[_0x174a9b(0x191)],'values':_0x31c796(_0x55fbb8,_0x40b0c8,_0xf04dd3)}];return this['_commandService']['syncExecuteCommand'](_0x1acf8a['SetBaseRecordValuesCommand']['id'],{'unitId':this[_0x174a9b(0x1cf)][_0x174a9b(0x1c9)](),'tableId':this['_table'][_0x174a9b(0x1c9)](),'patches':_0x6fa437,'source':_0x1acf8a[_0x174a9b(0x196)][_0x174a9b(0x193)]});}[_0x592355(0x1b8)](){const _0x1ec5e6=_0x592355;return this[_0x1ec5e6(0x230)][_0x1ec5e6(0x267)](_0x1acf8a[_0x1ec5e6(0x1ca)]['id'],{'unitId':this[_0x1ec5e6(0x1cf)]['getId'](),'tableId':this[_0x1ec5e6(0x2b4)]['getId'](),'recordId':this['_recordId'],'source':_0x1acf8a['BaseEventSource'][_0x1ec5e6(0x193)]});}['duplicate'](_0x5252b6){const _0x190150=_0x592355;let _0x4a2cab={...this[_0x190150(0x21f)](),..._0x5252b6,'id':(0x0,_0x3c73ae[_0x190150(0x23a)])(0x6)};_0x4a2cab[_0x190150(0x1ab)]={..._0x4a2cab[_0x190150(0x1ab)],..._0x5252b6==null?void 0x0:_0x5252b6[_0x190150(0x1ab)]},Reflect[_0x190150(0x1bf)](_0x4a2cab[_0x190150(0x1ab)],_0x3c73ae['BASE_RECORD_ID_FIELD_ID']);let _0x96fcfc=Date['now']();if(_0x4a2cab['orderKey']||=''+_0x96fcfc,_0x4a2cab[_0x190150(0x20b)]||=_0x96fcfc,_0x4a2cab[_0x190150(0x316)]||=_0x96fcfc,!this[_0x190150(0x230)][_0x190150(0x267)](_0x1acf8a['DuplicateBaseRecordCommand']['id'],{'unitId':this[_0x190150(0x1cf)][_0x190150(0x1c9)](),'tableId':this['_table'][_0x190150(0x1c9)](),'sourceRecordId':this[_0x190150(0x191)],'record':_0x4a2cab,'source':_0x1acf8a[_0x190150(0x196)][_0x190150(0x193)]}))throw Error(_0x190150(0x343)+this[_0x190150(0x191)]+'\x22.');return this[_0x190150(0x217)]['createInstance'](_0x398bf7,this[_0x190150(0x1cf)],this['_table'],_0x4a2cab['id'],this[_0x190150(0x217)]);}[_0x592355(0x19a)](_0x572476){const _0x3fe3af=_0x592355;return this['_commandService'][_0x3fe3af(0x267)](_0x1acf8a[_0x3fe3af(0x323)]['id'],{'unitId':this[_0x3fe3af(0x1cf)][_0x3fe3af(0x1c9)](),'tableId':this[_0x3fe3af(0x2b4)]['getId'](),'recordId':this['_recordId'],'orderKey':_0x572476});}['getLinkedRecordIds'](_0x16b7a4){const _0xe0bff6=_0x592355;let _0x126b42=this[_0xe0bff6(0x2c4)](_0x16b7a4),_0x158463=this[_0xe0bff6(0x305)](_0x126b42['id']);return(0x0,_0x1acf8a[_0xe0bff6(0x322)])(_0x158463);}[_0x592355(0x2a7)](_0x701ff7,_0x6c1107){const _0x326c08=_0x592355;let _0x2ecc2c=this[_0x326c08(0x2c4)](_0x701ff7),_0x1cf886=(0x0,_0x1acf8a[_0x326c08(0x2e7)])(_0x6c1107),_0x4a8808=(0x0,_0x1acf8a[_0x326c08(0x1a5)])(this['_base'][_0x326c08(0x298)]()[_0x326c08(0x1aa)](),_0x2ecc2c,_0x1cf886);if(!_0x4a8808[_0x326c08(0x2d0)])throw Error(_0x4a8808['reason']??_0x326c08(0x1f8));return this[_0x326c08(0x230)][_0x326c08(0x267)](_0x1acf8a['UpdateBaseCellCommand']['id'],{'unitId':this[_0x326c08(0x1cf)][_0x326c08(0x1c9)](),'tableId':this[_0x326c08(0x2b4)]['getId'](),'recordId':this[_0x326c08(0x191)],'fieldId':_0x701ff7,'value':_0x1cf886,'source':_0x1acf8a[_0x326c08(0x196)][_0x326c08(0x193)]});}[_0x592355(0x32d)](_0x3ded4f,_0x49b44d){const _0x377f92=_0x592355;let _0xc5811c=this[_0x377f92(0x2c4)](_0x3ded4f),_0xa856f1=(0x0,_0x1acf8a[_0x377f92(0x325)])(_0xc5811c);if(!_0xa856f1)throw Error(_0x377f92(0x2cf)+_0x3ded4f+_0x377f92(0x34e));let _0x1b4299=this[_0x377f92(0x22d)](_0x3ded4f);return _0xa856f1['multiple']&&_0x1b4299['includes'](_0x49b44d)?!0x0:this[_0x377f92(0x2a7)](_0x3ded4f,_0xa856f1[_0x377f92(0x26e)]?[..._0x1b4299,_0x49b44d]:[_0x49b44d]);}[_0x592355(0x29a)](_0xeb1597,_0x489103){const _0x31123c=_0x592355;let _0x185284=this[_0x31123c(0x22d)](_0xeb1597);return!_0x185284[_0x31123c(0x205)](_0x489103)||this[_0x31123c(0x2a7)](_0xeb1597,_0x185284[_0x31123c(0x1ae)](_0x2036ff=>_0x2036ff!==_0x489103));}[_0x592355(0x319)](_0x41b3c0){const _0x39cef5=_0x592355;let _0x462ad4=this[_0x39cef5(0x286)](_0x41b3c0)[_0x39cef5(0x24e)]['get'](this[_0x39cef5(0x191)])??null;return _0x462ad4?this['_table'][_0x39cef5(0x2ef)](_0x462ad4):null;}[_0x592355(0x234)](_0x49a715){const _0x2c5038=_0x592355;return(this['_getHierarchyIndex'](_0x49a715)[_0x2c5038(0x35a)][_0x2c5038(0x2f4)](this[_0x2c5038(0x191)])??[])[_0x2c5038(0x227)](_0x3cd979=>{const _0x226a34=_0x2c5038;let _0x5e507f=this[_0x226a34(0x2b4)][_0x226a34(0x2ef)](_0x3cd979);return _0x5e507f?[_0x5e507f]:[];});}[_0x592355(0x1f7)](_0x25abd2){const _0x293867=_0x592355;let _0x13f126=this['_getHierarchyIndex'](_0x25abd2),_0x56fd66=[],_0x4d44f2=_0x13f126['parentByRecordId'][_0x293867(0x2f4)](this[_0x293867(0x191)])??null;for(;_0x4d44f2;){let _0x32564a=this[_0x293867(0x2b4)]['getRecordById'](_0x4d44f2);_0x32564a&&_0x56fd66[_0x293867(0x18b)](_0x32564a),_0x4d44f2=_0x13f126[_0x293867(0x24e)][_0x293867(0x2f4)](_0x4d44f2)??null;}return _0x56fd66;}[_0x592355(0x30e)](_0x2bb2c9){const _0x5c826f=_0x592355;let _0x15fe24=this[_0x5c826f(0x286)](_0x2bb2c9),_0x41d6fd=_0x15fe24[_0x5c826f(0x231)][_0x5c826f(0x2b9)](this['_recordId']),_0x320370=_0x15fe24['subtreeHeightByRecordId'][_0x5c826f(0x192)](this[_0x5c826f(0x191)])?this[_0x5c826f(0x2bd)](_0x15fe24[_0x5c826f(0x35a)],this['_recordId']):[];return _0x41d6fd<0x0?[]:_0x320370[_0x5c826f(0x227)](_0x5bcd98=>{const _0x40aa9f=_0x5c826f;let _0x55ad73=this[_0x40aa9f(0x2b4)][_0x40aa9f(0x2ef)](_0x5bcd98);return _0x55ad73?[_0x55ad73]:[];});}['setParent'](_0x1985fd,_0x2b7c75,_0x35c3de){const _0x158cc5=_0x592355;return this[_0x158cc5(0x230)][_0x158cc5(0x267)](_0x1acf8a[_0x158cc5(0x1fa)]['id'],{'unitId':this[_0x158cc5(0x1cf)][_0x158cc5(0x1c9)](),'tableId':this[_0x158cc5(0x2b4)][_0x158cc5(0x1c9)](),'fieldId':_0x1985fd,'recordId':this[_0x158cc5(0x191)],'parentRecordId':_0x2b7c75,'orderKey':_0x35c3de,'source':_0x1acf8a[_0x158cc5(0x196)][_0x158cc5(0x193)]});}[_0x592355(0x342)](_0x3a185a,_0x4fde3f,_0x5304f1='id',_0x3763e3){const _0x30aef5=_0x592355;let _0x9318dd=this['_table'][_0x30aef5(0x317)](),_0x5be2e8=Date[_0x30aef5(0x2f8)](),_0x5df720={..._0x3763e3,'id':(0x0,_0x3c73ae[_0x30aef5(0x23a)])(0x6),'values':_0x31c796(_0x9318dd,_0x4fde3f,_0x5304f1),'orderKey':(_0x3763e3==null?void 0x0:_0x3763e3[_0x30aef5(0x1fd)])||''+_0x5be2e8,'createdAt':(_0x3763e3==null?void 0x0:_0x3763e3['createdAt'])||_0x5be2e8,'updatedAt':(_0x3763e3==null?void 0x0:_0x3763e3[_0x30aef5(0x316)])||_0x5be2e8};if(!this[_0x30aef5(0x230)][_0x30aef5(0x267)](_0x1acf8a[_0x30aef5(0x219)]['id'],{'unitId':this['_base'][_0x30aef5(0x1c9)](),'tableId':this['_table'][_0x30aef5(0x1c9)](),'fieldId':_0x3a185a,'parentRecordId':this['_recordId'],'record':_0x5df720,'source':_0x1acf8a[_0x30aef5(0x196)][_0x30aef5(0x193)]}))throw Error(_0x30aef5(0x26a)+this[_0x30aef5(0x191)]+'\x22.');return this[_0x30aef5(0x217)]['createInstance'](_0x398bf7,this[_0x30aef5(0x1cf)],this['_table'],_0x5df720['id'],this[_0x30aef5(0x217)]);}[_0x592355(0x286)](_0xfe2da5){const _0xe4441d=_0x592355;return(0x0,_0x1acf8a[_0xe4441d(0x357)])(this[_0xe4441d(0x2b4)]['getTable'](),_0xfe2da5);}[_0x592355(0x2bd)](_0x27ea2b,_0x6c6676){let _0x188536=[],_0x496ab2=_0x64e1fc=>{const _0x31062a=_0x1590;for(let _0x312f7c of _0x27ea2b[_0x31062a(0x2f4)](_0x64e1fc)??[])_0x188536['push'](_0x312f7c),_0x496ab2(_0x312f7c);};return _0x496ab2(_0x6c6676),_0x188536;}[_0x592355(0x21f)](){const _0xf34dd6=_0x592355;let _0x189a4b=this['_table']['getTable']()[_0xf34dd6(0x1f4)][this[_0xf34dd6(0x191)]];if(!_0x189a4b)throw Error(_0xf34dd6(0x208)+this[_0xf34dd6(0x191)]+'\x22\x20does\x20not\x20exist.');return _0x189a4b;}[_0x592355(0x2c4)](_0x40fe91){const _0x2f79fe=_0x592355;let _0x21e9db=this['_table'][_0x2f79fe(0x317)]()['fields'][_0x40fe91];if(!_0x21e9db||_0x21e9db['type']!==_0x3c73ae[_0x2f79fe(0x202)][_0x2f79fe(0x29d)])throw Error('[FRecord]:\x20field\x20\x22'+_0x40fe91+'\x22\x20is\x20not\x20a\x20RecordLink\x20field.');return _0x21e9db;}[_0x592355(0x2e4)](_0x38c7fa){const _0x27222a=_0x592355;let _0xffc34e=this[_0x27222a(0x2b4)]['getTable']()[_0x27222a(0x24a)][_0x38c7fa];if(!_0xffc34e||_0xffc34e['type']!==_0x3c73ae['BaseFieldType'][_0x27222a(0x32b)])throw Error(_0x27222a(0x270)+_0x38c7fa+_0x27222a(0x257));return _0xffc34e;}};_0x53ddfc=_0x398bf7=_0x577aa0([_0x5bf86b(0x4,_0x3c73ae[_0x592355(0x352)]),_0x5bf86b(0x5,_0x3c73ae[_0x592355(0x2bf)])],_0x53ddfc);function _0x1c1a5d(_0x24f974){const _0x41412a=_0x592355;return!!(_0x24f974&&typeof _0x24f974=='object'&&'id'in _0x24f974&&typeof _0x24f974['id']==_0x41412a(0x2d5)&&_0x41412a(0x22c)in _0x24f974&&typeof _0x24f974[_0x41412a(0x22c)]==_0x41412a(0x2d5));}function _0x46247d(_0x50359b,_0xab248e,_0x1ea2f2){const _0x53ba6f=_0x592355;if(!_0x1c1a5d(_0x50359b))throw Error('[FRecord]:\x20attachment\x20at\x20index\x20'+_0x1ea2f2+_0x53ba6f(0x1ac)+_0xab248e+_0x53ba6f(0x1ec));return{..._0x50359b};}let _0x368301=class{constructor(_0x10e4ea,_0x41ae37,_0x3cd1cb,_0x785e78,_0x19f0a7,_0x20d19b,_0x5353fc){const _0x30d9ac=_0x592355;this[_0x30d9ac(0x1cf)]=_0x10e4ea,this[_0x30d9ac(0x2b4)]=_0x41ae37,this[_0x30d9ac(0x346)]=_0x3cd1cb,this[_0x30d9ac(0x217)]=_0x785e78,this[_0x30d9ac(0x230)]=_0x19f0a7,this[_0x30d9ac(0x2cc)]=_0x20d19b,this[_0x30d9ac(0x297)]=_0x5353fc;}[_0x592355(0x1c9)](){const _0x27a0cc=_0x592355;return this[_0x27a0cc(0x346)];}['getPermission'](){const _0x5bdd4a=_0x592355;let _0x3e8d7a=this[_0x5bdd4a(0x2b4)][_0x5bdd4a(0x1c9)]();return new _0x47ae22(this[_0x5bdd4a(0x1cf)][_0x5bdd4a(0x1c9)](),(0x0,_0x1acf8a[_0x5bdd4a(0x2de)])(_0x3e8d7a,this[_0x5bdd4a(0x346)]),[(0x0,_0x1acf8a[_0x5bdd4a(0x229)])(_0x3e8d7a)],this['_commandService'],this[_0x5bdd4a(0x2cc)]);}['getView'](){const _0x1c444b=_0x592355;return this[_0x1c444b(0x2d4)]();}[_0x592355(0x30b)](){const _0x676d02=_0x592355;return this[_0x676d02(0x2d4)]()[_0x676d02(0x22c)];}[_0x592355(0x204)](){const _0x306da5=_0x592355;return this[_0x306da5(0x2d4)]()['type'];}[_0x592355(0x1dd)](_0x1ec566){const _0x2e3436=_0x592355;return this['_commandService'][_0x2e3436(0x267)](_0x1acf8a[_0x2e3436(0x1d2)]['id'],{'unitId':this[_0x2e3436(0x1cf)]['getId'](),'tableId':this[_0x2e3436(0x2b4)][_0x2e3436(0x1c9)](),'viewId':this[_0x2e3436(0x346)],'name':_0x1ec566});}[_0x592355(0x2c5)](){const _0x1b3ba4=_0x592355;let _0x5b3918=this['getType'](),_0x10f8c5=this[_0x1b3ba4(0x2d4)]()[_0x1b3ba4(0x33e)];switch(_0x5b3918){case _0x3c73ae['BaseViewType'][_0x1b3ba4(0x2d7)]:return _0x10f8c5;case _0x3c73ae[_0x1b3ba4(0x273)]['Kanban']:return _0x10f8c5;case _0x3c73ae[_0x1b3ba4(0x273)][_0x1b3ba4(0x2da)]:return _0x10f8c5;case _0x3c73ae[_0x1b3ba4(0x273)]['Gantt']:return _0x10f8c5;case _0x3c73ae['BaseViewType'][_0x1b3ba4(0x2b5)]:return _0x10f8c5;default:return _0x10f8c5;}}[_0x592355(0x299)](_0x5cc088){const _0x5c7c48=_0x592355;return this[_0x5c7c48(0x230)]['syncExecuteCommand'](_0x1acf8a[_0x5c7c48(0x32e)]['id'],{'unitId':this[_0x5c7c48(0x1cf)][_0x5c7c48(0x1c9)](),'tableId':this[_0x5c7c48(0x2b4)][_0x5c7c48(0x1c9)](),'viewId':this['_viewId'],'patch':_0x5cc088});}['getConditionalColorRules'](){const _0x1c8d66=_0x592355;var _0x6b933c;return _0x3c73ae[_0x1c8d66(0x287)][_0x1c8d66(0x24d)](((_0x6b933c=this[_0x1c8d66(0x2d4)]()['config'][_0x1c8d66(0x1b1)])==null?void 0x0:_0x6b933c[_0x1c8d66(0x289)])??[]);}[_0x592355(0x1fc)](_0x222c28){const _0x2152e0=_0x592355;return this['_commandService'][_0x2152e0(0x267)](_0x1acf8a[_0x2152e0(0x2c2)]['id'],{'unitId':this[_0x2152e0(0x1cf)][_0x2152e0(0x1c9)](),'tableId':this[_0x2152e0(0x2b4)][_0x2152e0(0x1c9)](),'viewId':this[_0x2152e0(0x346)],'type':_0x1acf8a[_0x2152e0(0x19f)][_0x2152e0(0x1b5)],'rules':_0x222c28});}['addConditionalColorRule'](_0x1e5314){const _0x56d612=_0x592355;return this['_commandService'][_0x56d612(0x267)](_0x1acf8a[_0x56d612(0x2c2)]['id'],{'unitId':this[_0x56d612(0x1cf)][_0x56d612(0x1c9)](),'tableId':this[_0x56d612(0x2b4)][_0x56d612(0x1c9)](),'viewId':this[_0x56d612(0x346)],'type':_0x1acf8a['BaseConditionalColorRuleUpdateType']['Add'],'rule':_0x1e5314});}[_0x592355(0x2d8)](_0x3efb6a){const _0x3ee807=_0x592355;return this['_commandService'][_0x3ee807(0x267)](_0x1acf8a['UpdateBaseViewConditionalColorRulesCommand']['id'],{'unitId':this[_0x3ee807(0x1cf)]['getId'](),'tableId':this[_0x3ee807(0x2b4)][_0x3ee807(0x1c9)](),'viewId':this[_0x3ee807(0x346)],'type':_0x1acf8a[_0x3ee807(0x19f)][_0x3ee807(0x2fa)],'ruleId':_0x3efb6a});}[_0x592355(0x256)](){const _0x413892=_0x592355;return this[_0x413892(0x230)][_0x413892(0x267)](_0x1acf8a[_0x413892(0x2c2)]['id'],{'unitId':this['_base'][_0x413892(0x1c9)](),'tableId':this[_0x413892(0x2b4)]['getId'](),'viewId':this[_0x413892(0x346)],'type':_0x1acf8a['BaseConditionalColorRuleUpdateType'][_0x413892(0x187)]});}['getFilter'](){const _0x4ba26e=_0x592355;return this['_getView']()[_0x4ba26e(0x1ae)]??null;}['setFilter'](_0x579d82){const _0x58326d=_0x592355;return this[_0x58326d(0x230)][_0x58326d(0x267)](_0x1acf8a[_0x58326d(0x2b1)]['id'],{'unitId':this[_0x58326d(0x1cf)][_0x58326d(0x1c9)](),'tableId':this[_0x58326d(0x2b4)]['getId'](),'viewId':this[_0x58326d(0x346)],'filter':_0x579d82});}[_0x592355(0x2a6)](){const _0x31e4a6=_0x592355;return this['_getView']()[_0x31e4a6(0x2a4)]??[];}[_0x592355(0x25f)](_0x55773a){const _0x5745c9=_0x592355;return this[_0x5745c9(0x230)][_0x5745c9(0x267)](_0x1acf8a[_0x5745c9(0x1c6)]['id'],{'unitId':this[_0x5745c9(0x1cf)]['getId'](),'tableId':this['_table'][_0x5745c9(0x1c9)](),'viewId':this[_0x5745c9(0x346)],'sort':_0x55773a});}[_0x592355(0x275)](){const _0x527353=_0x592355;return this[_0x527353(0x2d4)]()[_0x527353(0x199)]??[];}[_0x592355(0x216)](_0x5dc763){const _0x33775a=_0x592355;return this[_0x33775a(0x230)][_0x33775a(0x267)](_0x1acf8a[_0x33775a(0x30f)]['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x33775a(0x2b4)][_0x33775a(0x1c9)](),'viewId':this[_0x33775a(0x346)],'group':_0x5dc763});}[_0x592355(0x351)](_0x45d7c6){const _0x11bd40=_0x592355;var _0x441ca8;return _0x54d54b(this[_0x11bd40(0x2b4)]['getTable']()['fields'][_0x45d7c6])?((_0x441ca8=this[_0x11bd40(0x2d4)]()['fieldSettings'])==null?void 0x0:_0x441ca8[_0x45d7c6])??{}:{};}['getVisibleFields'](){const _0x5c74a8=_0x592355;let _0x5892dd=this[_0x5c74a8(0x2b4)][_0x5c74a8(0x317)](),_0x3f1cab=this[_0x5c74a8(0x2d4)]();return(_0x3f1cab[_0x5c74a8(0x200)]??_0x5892dd[_0x5c74a8(0x200)])[_0x5c74a8(0x1ae)](_0x3ea584=>{const _0x3b8503=_0x5c74a8;var _0x414d4a;let _0x9e1380=_0x5892dd[_0x3b8503(0x24a)][_0x3ea584];return _0x54d54b(_0x9e1380)&&!((_0x414d4a=_0x3f1cab['fieldSettings'])!=null&&(_0x414d4a=_0x414d4a[_0x3ea584])!=null&&_0x414d4a[_0x3b8503(0x283)]);})['map'](_0x205711=>this[_0x5c74a8(0x217)][_0x5c74a8(0x1fb)](_0x79721e,this[_0x5c74a8(0x1cf)],this[_0x5c74a8(0x2b4)],_0x205711));}['setFieldVisible'](_0x43b657,_0x40f8b6){const _0x213730=_0x592355;return _0x54d54b(this[_0x213730(0x2b4)]['getTable']()[_0x213730(0x24a)][_0x43b657])?this[_0x213730(0x230)][_0x213730(0x267)](_0x1acf8a[_0x213730(0x29c)]['id'],{'unitId':this[_0x213730(0x1cf)][_0x213730(0x1c9)](),'tableId':this['_table'][_0x213730(0x1c9)](),'viewId':this['_viewId'],'fieldId':_0x43b657,'visible':_0x40f8b6}):!0x1;}[_0x592355(0x291)](_0x5257bb,_0x35764){const _0x100a79=_0x592355;return _0x54d54b(this[_0x100a79(0x2b4)][_0x100a79(0x317)]()[_0x100a79(0x24a)][_0x5257bb])?this['_commandService']['syncExecuteCommand'](_0x1acf8a[_0x100a79(0x2ad)]['id'],{'unitId':this[_0x100a79(0x1cf)][_0x100a79(0x1c9)](),'tableId':this[_0x100a79(0x2b4)][_0x100a79(0x1c9)](),'viewId':this[_0x100a79(0x346)],'fieldId':_0x5257bb,'width':_0x35764}):!0x1;}[_0x592355(0x334)](_0x975bc2,_0x45ca0a){const _0x48d580=_0x592355;let _0x1fa1e4=this[_0x48d580(0x2b4)][_0x48d580(0x317)](),_0x491dd1=_0x45ca0a[_0x48d580(0x354)]??_0x45ca0a[_0x48d580(0x27b)];return!_0x54d54b(_0x1fa1e4[_0x48d580(0x24a)][_0x975bc2])||!_0x491dd1||!_0x54d54b(_0x1fa1e4[_0x48d580(0x24a)][_0x491dd1])?!0x1:this[_0x48d580(0x230)][_0x48d580(0x267)](_0x1acf8a[_0x48d580(0x32c)]['id'],{'unitId':this[_0x48d580(0x1cf)][_0x48d580(0x1c9)](),'tableId':this[_0x48d580(0x2b4)][_0x48d580(0x1c9)](),'viewId':this[_0x48d580(0x346)],'fieldId':_0x975bc2,'target':_0x45ca0a});}['move'](_0x55fc76){const _0x3d3df9=_0x592355;return this['_commandService'][_0x3d3df9(0x267)](_0x1acf8a['MoveBaseViewCommand']['id'],{'unitId':this[_0x3d3df9(0x1cf)]['getId'](),'tableId':this[_0x3d3df9(0x2b4)][_0x3d3df9(0x1c9)](),'viewId':this[_0x3d3df9(0x346)],'target':_0x55fc76});}['delete'](){const _0x17a006=_0x592355;return this['_commandService']['syncExecuteCommand'](_0x1acf8a['DeleteBaseViewCommand']['id'],{'unitId':this['_base'][_0x17a006(0x1c9)](),'tableId':this[_0x17a006(0x2b4)][_0x17a006(0x1c9)](),'viewId':this[_0x17a006(0x346)]});}[_0x592355(0x2ca)](){const _0x2bddf3=_0x592355;return this[_0x2bddf3(0x297)][_0x2bddf3(0x2ca)](this[_0x2bddf3(0x1cf)][_0x2bddf3(0x298)]()[_0x2bddf3(0x1aa)](),this['_table'][_0x2bddf3(0x1c9)](),this['_viewId']);}[_0x592355(0x2d4)](){const _0x4f7c1c=_0x592355;let _0x22a272=this[_0x4f7c1c(0x2b4)]['getTable']()['views'][this[_0x4f7c1c(0x346)]];if(!_0x22a272)throw Error(_0x4f7c1c(0x2e2)+this['_viewId']+_0x4f7c1c(0x274));return _0x22a272;}};_0x368301=_0x577aa0([_0x5bf86b(0x4,_0x3c73ae[_0x592355(0x352)]),_0x5bf86b(0x5,_0x3c73ae[_0x592355(0x2bf)]),_0x5bf86b(0x6,_0x1acf8a[_0x592355(0x203)])],_0x368301);let _0x229e0d=class{constructor(_0x891e0b,_0x39a8de,_0x45ddc4,_0x432d35,_0x5965b1,_0x291653){const _0x5ce193=_0x592355;this[_0x5ce193(0x1cf)]=_0x891e0b,this[_0x5ce193(0x1d1)]=_0x39a8de,this[_0x5ce193(0x217)]=_0x45ddc4,this[_0x5ce193(0x230)]=_0x432d35,this[_0x5ce193(0x2cc)]=_0x5965b1,this['_projectionService']=_0x291653;}[_0x592355(0x298)](){const _0x414e5b=_0x592355;return this[_0x414e5b(0x1cf)][_0x414e5b(0x298)]();}[_0x592355(0x317)](){const _0x1ed065=_0x592355;return this[_0x1ed065(0x1db)]();}[_0x592355(0x1c9)](){const _0x5eb807=_0x592355;return this[_0x5eb807(0x1d1)];}[_0x592355(0x2fb)](){const _0x21d7ab=_0x592355;return new _0x47ae22(this[_0x21d7ab(0x298)]()[_0x21d7ab(0x226)](),(0x0,_0x1acf8a[_0x21d7ab(0x229)])(this[_0x21d7ab(0x1d1)]),[],this[_0x21d7ab(0x230)],this['_permissionService']);}[_0x592355(0x34b)](){return(0x0,_0x1acf8a['resolveBaseHierarchyFieldId'])(this['_getTable']());}[_0x592355(0x24b)](_0x16729c){const _0x18fc5c=_0x592355;return this['_commandService'][_0x18fc5c(0x267)](_0x1acf8a['SetBaseTableHierarchyFieldCommand']['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x18fc5c(0x1d1)],'fieldId':_0x16729c});}[_0x592355(0x30b)](){const _0x588269=_0x592355;return this['_getTable']()[_0x588269(0x22c)];}['getFormulaName'](){const _0x54fa8b=_0x592355;let _0x941bdc=this[_0x54fa8b(0x1cf)][_0x54fa8b(0x298)]()[_0x54fa8b(0x1aa)]();return(0x0,_0x1acf8a['getBaseFormulaTableName'])(this[_0x54fa8b(0x1db)](),_0x941bdc);}[_0x592355(0x1dd)](_0x3b6cb8){const _0x355245=_0x592355;let _0x1b17f5=(0x0,_0x1acf8a[_0x355245(0x27a)])(this['_base'][_0x355245(0x298)]()[_0x355245(0x1aa)](),_0x3b6cb8,this[_0x355245(0x1d1)]);if(!_0x1b17f5[_0x355245(0x2d0)])throw Error(_0x355245(0x1a0)+_0x3b6cb8+_0x355245(0x22e)+_0x1acf8a[_0x355245(0x315)]+'\x20'+_0x1b17f5['reason']);return this[_0x355245(0x230)][_0x355245(0x267)](_0x1acf8a[_0x355245(0x333)]['id'],{'unitId':this[_0x355245(0x1cf)]['getId'](),'tableId':this[_0x355245(0x1d1)],'name':_0x3b6cb8});}[_0x592355(0x25e)](_0x32318f,_0x368b28){const _0x2ec828=_0x592355;let _0x11cc26=this[_0x2ec828(0x1cf)][_0x2ec828(0x298)]()[_0x2ec828(0x1aa)](),_0xd12d1e=this[_0x2ec828(0x1db)]();if(_0x368b28){let _0x387b57=this[_0x2ec828(0x297)]['getProjection'](_0x11cc26,this['_tableId'],_0x368b28),_0x2f096c=_0xd12d1e[_0x2ec828(0x329)][_0x368b28],_0x337ede=_0x32318f[_0x2ec828(0x340)]??_0x49314a(_0xd12d1e,_0x2f096c,_0x387b57),_0x49b83a='rows'in _0x387b57&&Array[_0x2ec828(0x31c)](_0x387b57[_0x2ec828(0x262)])?_0x387b57[_0x2ec828(0x262)]:[];return(0x0,_0x1acf8a[_0x2ec828(0x327)])({..._0x32318f,'table':_0xd12d1e,'fieldIds':_0x337ede,'rows':_0x49b83a});}let _0x2c7fe6=(_0xd12d1e[_0x2ec828(0x1a9)]?_0xd12d1e[_0x2ec828(0x1a9)][_0x2ec828(0x1cb)](_0x2a1f7e=>_0xd12d1e[_0x2ec828(0x1f4)][_0x2a1f7e]):Object[_0x2ec828(0x1ab)](_0xd12d1e[_0x2ec828(0x1f4)])[_0x2ec828(0x2a4)]((_0x531eb8,_0x4008aa)=>_0x531eb8[_0x2ec828(0x1fd)][_0x2ec828(0x338)](_0x4008aa[_0x2ec828(0x1fd)])))[_0x2ec828(0x1ae)](_0x125bb7=>_0x125bb7)[_0x2ec828(0x1cb)](_0x21a9b4=>({'recordId':_0x21a9b4['id'],'values':_0x21a9b4[_0x2ec828(0x1ab)]})),_0x369859=_0x32318f[_0x2ec828(0x340)]??_0xd12d1e['fieldOrder']['filter'](_0x24b191=>_0x54d54b(_0xd12d1e[_0x2ec828(0x24a)][_0x24b191]));return(0x0,_0x1acf8a[_0x2ec828(0x327)])({..._0x32318f,'table':_0xd12d1e,'fieldIds':_0x369859,'rows':_0x2c7fe6});}[_0x592355(0x212)](){const _0x73fb4f=_0x592355;return this[_0x73fb4f(0x1db)]()[_0x73fb4f(0x295)];}[_0x592355(0x18a)](){const _0xbae6dc=_0x592355;let _0x117917=this[_0xbae6dc(0x1db)]();return _0x117917[_0xbae6dc(0x200)][_0xbae6dc(0x1cb)](_0x525870=>_0x117917['fields'][_0x525870])[_0xbae6dc(0x1ae)](_0x54d54b)[_0xbae6dc(0x1cb)](_0x5756bb=>this[_0xbae6dc(0x217)][_0xbae6dc(0x1fb)](_0x79721e,this[_0xbae6dc(0x1cf)],this,_0x5756bb['id']));}['getFieldById'](_0x37898f){const _0x43ce9f=_0x592355;let _0x22dece=this[_0x43ce9f(0x1db)]()[_0x43ce9f(0x24a)][_0x37898f];return _0x54d54b(_0x22dece)?this[_0x43ce9f(0x217)][_0x43ce9f(0x1fb)](_0x79721e,this[_0x43ce9f(0x1cf)],this,_0x22dece['id']):null;}[_0x592355(0x1f9)](_0x409693){const _0x27e885=_0x592355;let _0x2fe127=this[_0x27e885(0x1db)]()['fields'],_0x41c4c7=Object[_0x27e885(0x1ab)](_0x2fe127)[_0x27e885(0x1c3)](_0x16276b=>_0x54d54b(_0x16276b)&&_0x16276b[_0x27e885(0x22c)]===_0x409693);return _0x41c4c7?this[_0x27e885(0x217)][_0x27e885(0x1fb)](_0x79721e,this[_0x27e885(0x1cf)],this,_0x41c4c7['id']):null;}[_0x592355(0x2c8)](){const _0x1ee20b=_0x592355;let _0x4a7f36=this[_0x1ee20b(0x1db)]()[_0x1ee20b(0x295)];return this[_0x1ee20b(0x217)][_0x1ee20b(0x1fb)](_0x79721e,this[_0x1ee20b(0x1cf)],this,_0x4a7f36);}[_0x592355(0x225)](_0x3ec08a,_0xdfba9c,_0x150e50){const _0x40003f=_0x592355;var _0x58dbfa,_0x23acb4;if(!Object[_0x40003f(0x1ab)](_0x3c73ae[_0x40003f(0x202)])[_0x40003f(0x1f5)](_0x543a55=>_0x543a55===_0xdfba9c))throw Error(_0x40003f(0x23b)+String(_0xdfba9c)+'\x22.');if(_0xdfba9c===_0x3c73ae['BaseFieldType'][_0x40003f(0x268)]&&this['_prepareFormulaFieldReferences'](_0x3ec08a,_0x150e50),_0xdfba9c===_0x3c73ae[_0x40003f(0x202)][_0x40003f(0x29d)]&&(typeof(_0x150e50==null||(_0x58dbfa=_0x150e50[_0x40003f(0x194)])==null||(_0x58dbfa=_0x58dbfa[_0x40003f(0x33e)])==null?void 0x0:_0x58dbfa['targetTableId'])!=_0x40003f(0x2d5)||typeof _0x150e50[_0x40003f(0x194)][_0x40003f(0x33e)][_0x40003f(0x26e)]!=_0x40003f(0x2fc)))throw Error(_0x40003f(0x1bc));let _0x402ef3={..._0x150e50==null?void 0x0:_0x150e50[_0x40003f(0x194)],'id':(0x0,_0x3c73ae[_0x40003f(0x23a)])(0x6),'name':_0x3ec08a,'type':_0xdfba9c,'config':(_0x150e50==null||(_0x23acb4=_0x150e50['field'])==null?void 0x0:_0x23acb4[_0x40003f(0x33e)])??{}};if(!this[_0x40003f(0x230)]['syncExecuteCommand'](_0x1acf8a[_0x40003f(0x2db)]['id'],{'unitId':this[_0x40003f(0x1cf)][_0x40003f(0x1c9)](),'tableId':this['_tableId'],'field':_0x402ef3,'index':_0x150e50==null?void 0x0:_0x150e50[_0x40003f(0x31b)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x3ec08a+'\x22');return this[_0x40003f(0x217)]['createInstance'](_0x79721e,this['_base'],this,_0x402ef3['id']);}[_0x592355(0x28e)](_0x974fc2,_0x24151e){const _0x507ab6=_0x592355;var _0x4e0c99;if(!_0x24151e||!(_0x507ab6(0x2eb)in _0x24151e)||!Array[_0x507ab6(0x31c)](_0x24151e[_0x507ab6(0x2eb)]))throw Error(_0x507ab6(0x2e8));let _0x101294=this[_0x507ab6(0x230)][_0x507ab6(0x267)](_0x1acf8a[_0x507ab6(0x313)]['id'],{'unitId':this[_0x507ab6(0x1cf)][_0x507ab6(0x1c9)](),'tableId':this[_0x507ab6(0x1d1)],'formula':String(((_0x4e0c99=_0x24151e['field'])==null||(_0x4e0c99=_0x4e0c99[_0x507ab6(0x33e)])==null?void 0x0:_0x4e0c99[_0x507ab6(0x2a2)])??'')});if(!_0x101294['valid'])throw Error(_0x101294[_0x507ab6(0x2ea)]??_0x507ab6(0x278));if(_0x24151e['externalReferences']['length']>0x0&&!this['_commandService'][_0x507ab6(0x267)](_0x4b4bfb[_0x507ab6(0x2a5)]['id'],{'unitId':this[_0x507ab6(0x1cf)][_0x507ab6(0x1c9)](),'references':_0x24151e[_0x507ab6(0x2eb)]}))throw Error(_0x507ab6(0x2cb)+_0x974fc2+'\x22');}[_0x592355(0x1c8)](){const _0x56cea2=_0x592355;return this[_0x56cea2(0x34f)]()[_0x56cea2(0x1cb)](_0x506aff=>this['_injector'][_0x56cea2(0x1fb)](_0x53ddfc,this[_0x56cea2(0x1cf)],this,_0x506aff,this['_injector']));}['getRecordById'](_0x1117e1){const _0x265e22=_0x592355;return this[_0x265e22(0x1db)]()[_0x265e22(0x1f4)][_0x1117e1]?this[_0x265e22(0x217)][_0x265e22(0x1fb)](_0x53ddfc,this['_base'],this,_0x1117e1,this[_0x265e22(0x217)]):null;}[_0x592355(0x303)](_0x2795b8={}){const _0x530600=_0x592355;let _0xe66559=this[_0x530600(0x1db)](),_0x474af8=this[_0x530600(0x34f)](_0x2795b8),_0x302b36=Math[_0x530600(0x1d4)](0x0,_0x2795b8[_0x530600(0x1c0)]??0x0),_0x1a8bdd=_0x2795b8[_0x530600(0x223)]==null?null:Math[_0x530600(0x1d4)](0x0,_0x2795b8[_0x530600(0x223)]),_0x14123f=_0x13457d(_0x474af8[_0x530600(0x1cb)](_0x285fee=>_0xe66559[_0x530600(0x1f4)][_0x285fee])[_0x530600(0x1ae)](_0x5a38ee=>_0x5e9c6e(_0x5a38ee,_0xe66559,_0x2795b8[_0x530600(0x1ae)])),_0xe66559,_0x2795b8[_0x530600(0x2a4)]);return{'records':_0x14b604(_0x14123f,_0x2795b8)[_0x530600(0x1cb)](_0x1390bb=>this[_0x530600(0x217)][_0x530600(0x1fb)](_0x53ddfc,this['_base'],this,_0x1390bb['id'],this[_0x530600(0x217)])),'total':_0x14123f[_0x530600(0x1ef)],'offset':_0x302b36,'limit':_0x1a8bdd,'hasMore':_0x1a8bdd!=null&&_0x302b36+_0x1a8bdd<_0x14123f[_0x530600(0x1ef)]};}[_0x592355(0x1c7)](_0x1e2897,_0x3d2593='id',_0x2c2705){const _0x114320=_0x592355;let _0x196f42=this[_0x114320(0x1db)](),_0x8d368=Date['now'](),_0x1a805a={..._0x2c2705,'id':(0x0,_0x3c73ae[_0x114320(0x23a)])(0x6),'values':_0x31c796(_0x196f42,_0x1e2897,_0x3d2593),'orderKey':(_0x2c2705==null?void 0x0:_0x2c2705['orderKey'])||''+_0x8d368,'createdAt':(_0x2c2705==null?void 0x0:_0x2c2705[_0x114320(0x20b)])||_0x8d368,'updatedAt':(_0x2c2705==null?void 0x0:_0x2c2705['updatedAt'])||_0x8d368};if(!this[_0x114320(0x230)][_0x114320(0x267)](_0x1acf8a[_0x114320(0x265)]['id'],{'unitId':this[_0x114320(0x1cf)][_0x114320(0x1c9)](),'tableId':this[_0x114320(0x1d1)],'record':_0x1a805a,'source':_0x1acf8a[_0x114320(0x196)][_0x114320(0x193)]}))throw Error(_0x114320(0x33d)+_0x1a805a['id']+'\x22');return this['_injector'][_0x114320(0x1fb)](_0x53ddfc,this['_base'],this,_0x1a805a['id'],this[_0x114320(0x217)]);}[_0x592355(0x359)](_0x5ab0fd){const _0x4dac3a=_0x592355;if(!_0x5ab0fd[_0x4dac3a(0x1ef)])return[];let _0xca87b8=this[_0x4dac3a(0x1db)](),_0x16df33=Date[_0x4dac3a(0x2f8)](),_0x24690f=_0x5ab0fd['map']((_0x31431b,_0x3d55ff)=>{const _0x2e5fa3=_0x4dac3a;var _0x322d64,_0xe51506,_0x345838;return{..._0x31431b[_0x2e5fa3(0x1e6)],'id':(0x0,_0x3c73ae[_0x2e5fa3(0x23a)])(0x6),'values':_0x31c796(_0xca87b8,_0x31431b[_0x2e5fa3(0x1ab)],_0x31431b[_0x2e5fa3(0x1cd)]??'id'),'orderKey':((_0x322d64=_0x31431b['record'])==null?void 0x0:_0x322d64['orderKey'])||''+(_0x16df33+_0x3d55ff),'createdAt':((_0xe51506=_0x31431b[_0x2e5fa3(0x1e6)])==null?void 0x0:_0xe51506['createdAt'])||_0x16df33,'updatedAt':((_0x345838=_0x31431b[_0x2e5fa3(0x1e6)])==null?void 0x0:_0x345838[_0x2e5fa3(0x316)])||_0x16df33};});if(!this[_0x4dac3a(0x230)][_0x4dac3a(0x267)](_0x1acf8a[_0x4dac3a(0x2c3)]['id'],{'unitId':this[_0x4dac3a(0x1cf)]['getId'](),'tableId':this[_0x4dac3a(0x1d1)],'records':_0x24690f,'source':_0x1acf8a[_0x4dac3a(0x196)][_0x4dac3a(0x193)]}))throw Error(_0x4dac3a(0x2d2));return _0x24690f[_0x4dac3a(0x1cb)](_0x452561=>this['_injector'][_0x4dac3a(0x1fb)](_0x53ddfc,this[_0x4dac3a(0x1cf)],this,_0x452561['id'],this['_injector']));}[_0x592355(0x2c6)](_0x3e0d04){const _0x3d3c18=_0x592355;return!_0x3e0d04['length']||this[_0x3d3c18(0x230)]['syncExecuteCommand'](_0x1acf8a[_0x3d3c18(0x250)]['id'],{'unitId':this['_base'][_0x3d3c18(0x1c9)](),'tableId':this[_0x3d3c18(0x1d1)],'recordIds':_0x3e0d04,'source':_0x1acf8a[_0x3d3c18(0x196)]['Facade']});}['getRange'](_0x2624d7,_0x2f1096,_0x3299e9=0x1,_0x5387db=0x1){const _0x160f23=_0x592355;return this[_0x160f23(0x217)]['createInstance'](_0x5b010c,this['_base'],this,{'startRow':_0x2624d7,'endRow':_0x2624d7+_0x3299e9-0x1,'startColumn':_0x2f1096,'endColumn':_0x2f1096+_0x5387db-0x1},this[_0x160f23(0x217)]);}[_0x592355(0x2e9)](){const _0x5bfe39=_0x592355;var _0xb20343;let _0x1d2e05=(0x0,_0x1acf8a[_0x5bfe39(0x2e3)])(this['_getTable']()),_0x569c80=((_0xb20343=_0x1d2e05[_0x5bfe39(0x1a9)])==null?void 0x0:_0xb20343[_0x5bfe39(0x1ef)])??0x0,_0x5d4e9c=_0x1d2e05[_0x5bfe39(0x200)][_0x5bfe39(0x1ae)](_0x63b85e=>_0x54d54b(_0x1d2e05[_0x5bfe39(0x24a)][_0x63b85e]))[_0x5bfe39(0x1ef)];return this[_0x5bfe39(0x1f1)](0x0,0x0,Math['max'](_0x569c80,0x1),Math['max'](_0x5d4e9c,0x1));}[_0x592355(0x280)](){const _0x156d15=_0x592355;let _0x1eb444=this[_0x156d15(0x1db)]();return _0x1eb444[_0x156d15(0x27f)][_0x156d15(0x1ae)](_0x2a34d0=>_0x1eb444[_0x156d15(0x329)][_0x2a34d0])[_0x156d15(0x1cb)](_0xccf8b4=>this[_0x156d15(0x217)]['createInstance'](_0x368301,this['_base'],this,_0xccf8b4,this[_0x156d15(0x217)]));}[_0x592355(0x241)](_0x3d49c5){const _0x1a223c=_0x592355;return this[_0x1a223c(0x1db)]()['views'][_0x3d49c5]?this['_injector'][_0x1a223c(0x1fb)](_0x368301,this['_base'],this,_0x3d49c5,this[_0x1a223c(0x217)]):null;}['getViewByName'](_0x53f742){const _0x1007e0=_0x592355;let _0x420d15=this[_0x1007e0(0x1db)](),_0x5790ef=Object[_0x1007e0(0x1ab)](_0x420d15[_0x1007e0(0x329)])[_0x1007e0(0x1c3)](_0x371009=>_0x371009[_0x1007e0(0x22c)]===_0x53f742);return _0x5790ef?this[_0x1007e0(0x217)][_0x1007e0(0x1fb)](_0x368301,this[_0x1007e0(0x1cf)],this,_0x5790ef['id'],this[_0x1007e0(0x217)]):null;}[_0x592355(0x2bc)](_0x256aed,_0x1ce1d6,_0x500bc3){const _0x59b5b2=_0x592355;var _0x872e7e,_0x5bebe6,_0x6e758f,_0x4efa09;let _0x4e8be6=this['_getTable'](),_0x141e20=(_0x500bc3==null||(_0x872e7e=_0x500bc3['view'])==null?void 0x0:_0x872e7e['fieldOrder'])??_0x4e8be6[_0x59b5b2(0x200)],_0x397937=[_0x3c73ae[_0x59b5b2(0x1c5)],..._0x141e20['filter'](_0x47a8e3=>_0x54d54b(_0x4e8be6['fields'][_0x47a8e3]))],_0xccac98={..._0x500bc3==null?void 0x0:_0x500bc3['view'],'id':(0x0,_0x3c73ae[_0x59b5b2(0x23a)])(0x6),'name':_0x256aed,'type':_0x1ce1d6,'tableId':this['_tableId'],'config':(_0x500bc3==null||(_0x5bebe6=_0x500bc3[_0x59b5b2(0x249)])==null?void 0x0:_0x5bebe6[_0x59b5b2(0x33e)])??{},'fieldOrder':_0x397937,'fieldSettings':{..._0x500bc3==null||(_0x6e758f=_0x500bc3[_0x59b5b2(0x249)])==null?void 0x0:_0x6e758f[_0x59b5b2(0x1c4)],[_0x3c73ae['BASE_RECORD_ID_FIELD_ID']]:{..._0x500bc3==null||(_0x4efa09=_0x500bc3[_0x59b5b2(0x249)])==null||(_0x4efa09=_0x4efa09[_0x59b5b2(0x1c4)])==null?void 0x0:_0x4efa09[_0x3c73ae[_0x59b5b2(0x1c5)]],'hidden':!0x0}}};if(!this[_0x59b5b2(0x230)]['syncExecuteCommand'](_0x1acf8a['CreateBaseViewCommand']['id'],{'unitId':this[_0x59b5b2(0x1cf)][_0x59b5b2(0x1c9)](),'tableId':this[_0x59b5b2(0x1d1)],'view':_0xccac98,'index':_0x500bc3==null?void 0x0:_0x500bc3[_0x59b5b2(0x31b)]}))throw Error(_0x59b5b2(0x1a2)+_0x256aed+'\x22');return this['_injector'][_0x59b5b2(0x1fb)](_0x368301,this[_0x59b5b2(0x1cf)],this,_0xccac98['id'],this['_injector']);}['getSchema'](){const _0xf3ff60=_0x592355;let _0x1af7ae=this[_0xf3ff60(0x1db)](),_0x510c77=_0x1af7ae[_0xf3ff60(0x200)][_0xf3ff60(0x1ae)](_0x1c05b2=>_0x54d54b(_0x1af7ae[_0xf3ff60(0x24a)][_0x1c05b2])),_0x56a6b8=_0x1af7ae[_0xf3ff60(0x27f)]['filter'](_0x2ef2a7=>_0x1af7ae[_0xf3ff60(0x329)][_0x2ef2a7]);return{'id':_0x1af7ae['id'],'name':_0x1af7ae[_0xf3ff60(0x22c)],'formulaName':this[_0xf3ff60(0x22f)](),'primaryFieldId':_0x1af7ae[_0xf3ff60(0x295)],'fieldIds':_0x510c77,'viewIds':_0x56a6b8,'recordCount':this['_resolveRecordIds']()[_0xf3ff60(0x1ef)],'fields':_0x510c77['map'](_0x301ecd=>{const _0xb9fc63=_0xf3ff60;let _0x2447a2=_0x1af7ae['fields'][_0x301ecd];return{'id':_0x2447a2['id'],'name':_0x2447a2['name'],'type':_0x2447a2[_0xb9fc63(0x20a)],'config':_0x2447a2[_0xb9fc63(0x33e)],'readonly':_0x2447a2['readonly'],'description':_0x2447a2[_0xb9fc63(0x1b0)]};}),'views':_0x56a6b8[_0xf3ff60(0x1cb)](_0x5c3772=>{const _0x2dcc1d=_0xf3ff60;let _0x5b1271=_0x1af7ae[_0x2dcc1d(0x329)][_0x5c3772];return{'id':_0x5b1271['id'],'name':_0x5b1271[_0x2dcc1d(0x22c)],'type':_0x5b1271[_0x2dcc1d(0x20a)]};})};}[_0x592355(0x1db)](){const _0x10d361=_0x592355;let _0x35712e=this['_base'][_0x10d361(0x298)]()[_0x10d361(0x1aa)]()['tables'][this[_0x10d361(0x1d1)]];if(!_0x35712e)throw Error(_0x10d361(0x2a9)+this[_0x10d361(0x1d1)]+_0x10d361(0x274));return _0x35712e;}[_0x592355(0x34f)](_0xc6ac8={}){const _0x79e42e=_0x592355;let _0x1f9687=this['_base'][_0x79e42e(0x298)]()['getSnapshot'](),_0x27193a=this[_0x79e42e(0x1db)]();if(_0xc6ac8[_0x79e42e(0x247)]){let _0x1c4265=this[_0x79e42e(0x297)][_0x79e42e(0x2ca)](_0x1f9687,this['_tableId'],_0xc6ac8[_0x79e42e(0x247)]);if(_0x79e42e(0x262)in _0x1c4265&&Array[_0x79e42e(0x31c)](_0x1c4265['rows']))return _0x1c4265[_0x79e42e(0x262)]['map'](_0xdc918d=>_0xdc918d[_0x79e42e(0x30d)]);}return(_0x27193a['recordOrder']?_0x27193a['recordOrder'][_0x79e42e(0x1cb)](_0x3285e8=>_0x27193a[_0x79e42e(0x1f4)][_0x3285e8]):Object[_0x79e42e(0x1ab)](_0x27193a[_0x79e42e(0x1f4)])[_0x79e42e(0x2a4)]((_0x5006af,_0x5e8c50)=>_0x5006af['orderKey']['localeCompare'](_0x5e8c50[_0x79e42e(0x1fd)])))['filter'](_0x370b78=>_0x370b78)[_0x79e42e(0x1cb)](_0xddafdb=>_0xddafdb['id']);}};_0x229e0d=_0x577aa0([_0x5bf86b(0x3,_0x3c73ae['ICommandService']),_0x5bf86b(0x4,_0x3c73ae[_0x592355(0x2bf)]),_0x5bf86b(0x5,_0x1acf8a[_0x592355(0x203)])],_0x229e0d);function _0x14b604(_0x4df54b,_0x4a682b){const _0x59abbc=_0x592355;let _0x3ef326=Math[_0x59abbc(0x1d4)](0x0,_0x4a682b['offset']??0x0);return _0x4a682b['limit']==null?_0x4df54b[_0x59abbc(0x331)](_0x3ef326):_0x4df54b['slice'](_0x3ef326,_0x3ef326+Math[_0x59abbc(0x1d4)](0x0,_0x4a682b['limit']));}function _0x13457d(_0x114685,_0x2a6382,_0x1eb84a=[]){const _0x3c2f33=_0x592355;return _0x1eb84a[_0x3c2f33(0x1ef)]?[..._0x114685][_0x3c2f33(0x2a4)]((_0x5aa053,_0xd718da)=>{const _0x13208f=_0x3c2f33;for(let _0x2650d6 of _0x1eb84a){var _0x4fc8dd;let _0x2e0ffd=_0x2650d6[_0x13208f(0x272)]===_0x3c73ae[_0x13208f(0x307)]['DESC']?-0x1:0x1,_0x5125b8=_0x120023(_0x5aa053[_0x13208f(0x1ab)][_0x2650d6['fieldId']],_0xd718da[_0x13208f(0x1ab)][_0x2650d6['fieldId']],(_0x4fc8dd=_0x2a6382[_0x13208f(0x24a)][_0x2650d6[_0x13208f(0x224)]])==null?void 0x0:_0x4fc8dd[_0x13208f(0x20a)]);if(_0x5125b8!==0x0)return _0x5125b8*_0x2e0ffd;}return String(_0x5aa053['orderKey']??_0x5aa053['id'])['localeCompare'](String(_0xd718da[_0x13208f(0x1fd)]??_0xd718da['id']));}):_0x114685;}function _0x120023(_0x21535e,_0xf85862,_0x55c7be){const _0x240f7a=_0x592355;return _0x21535e==null&&_0xf85862==null?0x0:_0x21535e==null?-0x1:_0xf85862==null?0x1:typeof _0x21535e==_0x240f7a(0x345)&&typeof _0xf85862==_0x240f7a(0x345)?_0x21535e-_0xf85862:_0x55c7be===_0x3c73ae[_0x240f7a(0x202)][_0x240f7a(0x28a)]?Number(_0x21535e)-Number(_0xf85862):String(_0x21535e)[_0x240f7a(0x338)](String(_0xf85862));}function _0x5e9c6e(_0x11c1cf,_0x281604,_0x181b46){const _0x364caf=_0x592355;var _0x1296a4;if(!_0x181b46||!((_0x1296a4=_0x181b46[_0x364caf(0x2af)])!=null&&_0x1296a4['length']))return!0x0;let {conjunction:_0x306eed=_0x3c73ae[_0x364caf(0x28b)]['OR'],conditions:_0x251a26}=_0x181b46;return _0x306eed===_0x3c73ae[_0x364caf(0x28b)][_0x364caf(0x2c0)]&&_0x251a26[_0x364caf(0x1ef)]>0x1?_0x251a26[_0x364caf(0x21d)](_0x3a7159=>_0x5958b1(_0x11c1cf,_0x281604,_0x3a7159)):_0x251a26[_0x364caf(0x1f5)](_0x7d0ff5=>_0x5958b1(_0x11c1cf,_0x281604,_0x7d0ff5));}function _0x5958b1(_0x31c537,_0x6dfc53,_0x5d998e){const _0x77c529=_0x592355;let _0x310ec1=_0x31c537[_0x77c529(0x1ab)][_0x5d998e[_0x77c529(0x224)]],_0x3492b8=_0x6dfc53[_0x77c529(0x24a)][_0x5d998e[_0x77c529(0x224)]];if(_0x36cd1a(_0x5d998e)){let _0x594f99=_0x3b08d6(_0x5d998e)[_0x77c529(0x19e)](String(_0x310ec1??''));return _0x5d998e['operator']===_0x77c529(0x28f)?_0x594f99:!_0x594f99;}return!_0x3492b8||(0x0,_0x1acf8a[_0x77c529(0x2f6)])(_0x310ec1,_0x5d998e[_0x77c529(0x18c)],_0x5d998e['value'],_0x3492b8);}function _0x36cd1a(_0x13fff1){const _0x584cea=_0x592355;return _0x13fff1['operator']===_0x584cea(0x28f)||_0x13fff1[_0x584cea(0x18c)]===_0x584cea(0x20f);}function _0x3b08d6(_0x18cb55){const _0x10c3b2=_0x592355;let _0x24450c=String(_0x18cb55[_0x10c3b2(0x2f2)]??'');if(_0x24450c[_0x10c3b2(0x1ef)]>0x200)throw Error(_0x10c3b2(0x301));try{return new RegExp(_0x24450c,_0x18cb55[_0x10c3b2(0x23f)]?void 0x0:'i');}catch(_0x4bb68a){throw Error(_0x10c3b2(0x29f)+_0x24450c+'.\x20'+(_0x4bb68a instanceof Error?_0x4bb68a[_0x10c3b2(0x277)]:String(_0x4bb68a)));}}function _0x49314a(_0x4d4848,_0x55637d,_0x9f038e){const _0xa3818e=_0x592355;if(_0x9f038e[_0xa3818e(0x20a)]!==_0xa3818e(0x21c)&&_0x9f038e[_0xa3818e(0x20a)]!==_0xa3818e(0x32f)){var _0x5396ad;if(_0x9f038e[_0xa3818e(0x20a)]===_0x3c73ae[_0xa3818e(0x273)][_0xa3818e(0x228)]){var _0x20bc7c;let _0x5e331a=[((_0x20bc7c=_0x9f038e['fields'])==null||(_0x20bc7c=_0x20bc7c[0x0])==null?void 0x0:_0x20bc7c['id'])??_0x4d4848[_0xa3818e(0x295)],..._0x9f038e[_0xa3818e(0x259)]??[]];return Array[_0xa3818e(0x21b)](new Set(_0x5e331a[_0xa3818e(0x1ae)](_0x48828c=>!!_0x4d4848[_0xa3818e(0x24a)][_0x48828c])));}if((_0x5396ad=_0x9f038e[_0xa3818e(0x24a)])!=null&&_0x5396ad[_0xa3818e(0x1ef)])return _0x9f038e['fields'][_0xa3818e(0x1cb)](_0x451db8=>_0x451db8['id'])[_0xa3818e(0x1ae)](_0x42fc62=>{const _0xb52b66=_0xa3818e;var _0x9ba997;return!(!_0x4d4848[_0xb52b66(0x24a)][_0x42fc62]||_0x55637d!=null&&(_0x9ba997=_0x55637d[_0xb52b66(0x1c4)])!=null&&(_0x9ba997=_0x9ba997[_0x42fc62])!=null&&_0x9ba997[_0xb52b66(0x283)]);});}return _0x4d4848['fieldOrder']['filter'](_0x3beb19=>{const _0x39bdd0=_0xa3818e;var _0x101d7b;return!(!_0x4d4848[_0x39bdd0(0x24a)][_0x3beb19]||_0x55637d!=null&&(_0x101d7b=_0x55637d['fieldSettings'])!=null&&(_0x101d7b=_0x101d7b[_0x3beb19])!=null&&_0x101d7b[_0x39bdd0(0x283)]);});}let _0x21d7c0=class extends _0x5cd49a[_0x592355(0x26d)]{constructor(_0x372cd9,_0x3d25a8,_0x1c0335,_0x30b0c9,_0x1de835){const _0x3c6c9c=_0x592355;super(),this[_0x3c6c9c(0x1cf)]=_0x372cd9,this[_0x3c6c9c(0x217)]=_0x3d25a8,this['_resourceLoaderService']=_0x1c0335,this[_0x3c6c9c(0x230)]=_0x30b0c9,this[_0x3c6c9c(0x2cc)]=_0x1de835;}[_0x592355(0x298)](){const _0xa4d096=_0x592355;return this[_0xa4d096(0x1cf)];}[_0x592355(0x1c9)](){const _0x17da82=_0x592355;return this['_base'][_0x17da82(0x226)]();}[_0x592355(0x2fb)](){const _0x273a91=_0x592355;return new _0x18cceb(this[_0x273a91(0x1c9)](),this['_commandService'],this[_0x273a91(0x2cc)]);}['save'](){const _0x764341=_0x592355;return this[_0x764341(0x2ec)]['saveUnit'](this[_0x764341(0x1c9)]())??_0x3c73ae[_0x764341(0x287)][_0x764341(0x24d)](this[_0x764341(0x1cf)][_0x764341(0x1aa)]());}[_0x592355(0x30b)](){const _0x3c9c6d=_0x592355;return this[_0x3c9c6d(0x1cf)][_0x3c9c6d(0x1aa)]()[_0x3c9c6d(0x22c)];}[_0x592355(0x1dd)](_0x3cbfc2){const _0x5d4325=_0x592355;this[_0x5d4325(0x230)][_0x5d4325(0x267)](_0x1acf8a[_0x5d4325(0x207)]['id'],{'unitId':this[_0x5d4325(0x1c9)](),'name':_0x3cbfc2});}[_0x592355(0x29b)](){const _0x37ee88=_0x592355;let _0x1d9e98=this[_0x37ee88(0x1cf)][_0x37ee88(0x1aa)]();return _0x1d9e98['tableOrder']['map'](_0x3a0d1f=>_0x1d9e98[_0x37ee88(0x1a6)][_0x3a0d1f])[_0x37ee88(0x1ae)](_0x3e3a36=>_0x3e3a36)['map'](_0x57d1b2=>this['_injector'][_0x37ee88(0x1fb)](_0x229e0d,this,_0x57d1b2['id'],this[_0x37ee88(0x217)]));}[_0x592355(0x1b3)](_0x1a6229){const _0x32271a=_0x592355;let _0x407ef3=this[_0x32271a(0x1cf)][_0x32271a(0x1aa)]()[_0x32271a(0x1a6)][_0x1a6229];return _0x407ef3?this[_0x32271a(0x217)][_0x32271a(0x1fb)](_0x229e0d,this,_0x407ef3['id'],this[_0x32271a(0x217)]):null;}[_0x592355(0x328)](_0x12174c){const _0x158e11=_0x592355;let _0x2d9ff2=this[_0x158e11(0x1cf)][_0x158e11(0x1aa)](),_0xab34cc=Object[_0x158e11(0x1ab)](_0x2d9ff2[_0x158e11(0x1a6)])['find'](_0x3fb5d9=>_0x3fb5d9[_0x158e11(0x22c)]===_0x12174c);return _0xab34cc?this[_0x158e11(0x217)]['createInstance'](_0x229e0d,this,_0xab34cc['id'],this[_0x158e11(0x217)]):null;}[_0x592355(0x1ea)](_0x4960c6,_0x16324f){const _0x4343e7=_0x592355;let _0x114e9f=(0x0,_0x3c73ae[_0x4343e7(0x1b6)])({'id':(0x0,_0x3c73ae[_0x4343e7(0x23a)])(),'name':_0x4960c6,..._0x16324f==null?void 0x0:_0x16324f[_0x4343e7(0x243)],'primaryFieldName':_0x16324f==null?void 0x0:_0x16324f[_0x4343e7(0x33b)]}),_0x57c9a2=_0x3c73ae[_0x4343e7(0x287)][_0x4343e7(0x1b7)](_0x114e9f,(_0x16324f==null?void 0x0:_0x16324f[_0x4343e7(0x243)])??{}),_0x40549b=(0x0,_0x1acf8a[_0x4343e7(0x27a)])(this[_0x4343e7(0x1cf)][_0x4343e7(0x1aa)](),_0x57c9a2[_0x4343e7(0x22c)]);if(!_0x40549b[_0x4343e7(0x2d0)])throw Error('[FBase]:\x20invalid\x20table\x20name\x20\x22'+_0x57c9a2[_0x4343e7(0x22c)]+_0x4343e7(0x22e)+_0x1acf8a[_0x4343e7(0x315)]+'\x20'+_0x40549b[_0x4343e7(0x2ea)]);if(!this['_commandService'][_0x4343e7(0x267)](_0x1acf8a[_0x4343e7(0x271)]['id'],{'unitId':this[_0x4343e7(0x1cf)][_0x4343e7(0x226)](),'table':_0x57c9a2,'index':_0x16324f==null?void 0x0:_0x16324f[_0x4343e7(0x31b)]}))throw Error(_0x4343e7(0x353)+_0x4960c6+'\x22.');return this['_injector'][_0x4343e7(0x1fb)](_0x229e0d,this,_0x57c9a2['id'],this[_0x4343e7(0x217)]);}[_0x592355(0x2f3)](_0x2702ba){const _0x5d31b2=_0x592355;let _0xb5a458=typeof _0x2702ba==_0x5d31b2(0x2d5)?_0x2702ba:_0x2702ba[_0x5d31b2(0x1c9)]();if(!this[_0x5d31b2(0x230)][_0x5d31b2(0x267)](_0x1acf8a[_0x5d31b2(0x1df)]['id'],{'unitId':this['_base'][_0x5d31b2(0x226)](),'tableId':_0xb5a458}))throw Error(_0x5d31b2(0x30a)+_0xb5a458+'\x22.');return!0x0;}['duplicateTable'](_0x561bde,_0x1e352d){const _0x14d1ba=_0x592355;let _0x2452b5=this[_0x14d1ba(0x1cf)][_0x14d1ba(0x1aa)](),_0x46cbe6=typeof _0x561bde==_0x14d1ba(0x2d5)?_0x561bde:_0x561bde['getId'](),_0x37105b=_0x2452b5[_0x14d1ba(0x1a6)][_0x46cbe6];if(!_0x37105b)throw Error(_0x14d1ba(0x260)+_0x46cbe6+_0x14d1ba(0x274));let _0x55070a=_0x2452b5['tableOrder'][_0x14d1ba(0x2b9)](_0x46cbe6)+0x1,_0x27a46b=(0x0,_0x3c73ae[_0x14d1ba(0x23a)])(),_0x5689e5=(0x0,_0x1acf8a[_0x14d1ba(0x285)])(_0x37105b,{'id':_0x27a46b,'name':(0x0,_0x1acf8a['createUniqueBaseTableName'])(_0x2452b5,_0x37105b[_0x14d1ba(0x22c)]+_0x14d1ba(0x206)),'includeRecords':(_0x1e352d==null?void 0x0:_0x1e352d[_0x14d1ba(0x32a)])??!0x1,'regenerateViewIds':(_0x1e352d==null?void 0x0:_0x1e352d['regenerateViewIds'])??!0x1});if(!this[_0x14d1ba(0x230)][_0x14d1ba(0x267)](_0x1acf8a['CreateBaseTableCommand']['id'],{'unitId':this[_0x14d1ba(0x1cf)]['getUnitId'](),'table':_0x5689e5,'index':_0x55070a}))throw Error(_0x14d1ba(0x310)+_0x46cbe6+'\x22.');return this[_0x14d1ba(0x217)][_0x14d1ba(0x1fb)](_0x229e0d,this,_0x5689e5['id'],this['_injector']);}[_0x592355(0x2e1)](){const _0xc9c834=_0x592355;let _0x3854bf=this[_0xc9c834(0x1cf)][_0xc9c834(0x1aa)]();return{'id':_0x3854bf['id'],'name':_0x3854bf[_0xc9c834(0x22c)],'tables':this[_0xc9c834(0x29b)]()[_0xc9c834(0x1cb)](_0x5113b9=>_0x5113b9[_0xc9c834(0x2e1)]())};}};_0x21d7c0=_0x577aa0([_0x5bf86b(0x1,(0x0,_0x3c73ae[_0x592355(0x197)])(_0x3c73ae[_0x592355(0x19c)])),_0x5bf86b(0x2,_0x3c73ae['IResourceLoaderService']),_0x5bf86b(0x3,_0x3c73ae['ICommandService']),_0x5bf86b(0x4,_0x3c73ae[_0x592355(0x2bf)])],_0x21d7c0);var _0x305ea6=class extends _0x5cd49a[_0x592355(0x337)]{[_0x592355(0x28c)](){const _0xb49ac0=_0x592355;this[_0xb49ac0(0x2ff)](),this[_0xb49ac0(0x20d)]();}['createBase'](_0x94670b={},_0x28239e){const _0x34b628=_0x592355;let _0x1bab9e=this[_0x34b628(0x326)][_0x34b628(0x1d0)](_0x3c73ae['UniverInstanceType']['UNIVER_BASE'],_0x94670b,_0x28239e);return this[_0x34b628(0x217)][_0x34b628(0x1fb)](_0x21d7c0,_0x1bab9e);}[_0x592355(0x31d)](){const _0x370117=_0x592355;let _0x12c391=this[_0x370117(0x326)]['getCurrentUnitOfType'](_0x3c73ae['UniverInstanceType']['UNIVER_BASE']);return _0x12c391?this[_0x370117(0x217)][_0x370117(0x1fb)](_0x21d7c0,_0x12c391):null;}['getBase'](_0x543df5){const _0x1fa290=_0x592355;let _0x2de8cf=this[_0x1fa290(0x326)][_0x1fa290(0x24f)](_0x543df5,_0x3c73ae['UniverInstanceType'][_0x1fa290(0x185)]);return _0x2de8cf?this['_injector'][_0x1fa290(0x1fb)](_0x21d7c0,_0x2de8cf):null;}['getBases'](){const _0x576041=_0x592355;return this[_0x576041(0x326)][_0x576041(0x2d1)](_0x3c73ae[_0x576041(0x222)]['UNIVER_BASE'])[_0x576041(0x1cb)](_0x39ce12=>this[_0x576041(0x217)][_0x576041(0x1fb)](_0x21d7c0,_0x39ce12));}[_0x592355(0x20d)](){const _0xca8ef1=_0x592355;this['disposeWithMe'](this[_0xca8ef1(0x21e)](this[_0xca8ef1(0x1bb)][_0xca8ef1(0x2b3)],()=>this[_0xca8ef1(0x230)][_0xca8ef1(0x2b7)]((_0x1cde0d,_0xf5f1ab)=>{const _0x167265=_0xca8ef1;var _0x497638;if(!_0x42bea5(_0x1cde0d,_0x1acf8a[_0x167265(0x1e8)]))return;let _0x246e32=_0x1cde0d['params'];if(!((_0x497638=_0x246e32['hierarchyChanges'])!=null&&_0x497638[_0x167265(0x1ef)]))return;let _0x469ecc=this['getBase'](_0x246e32['unitId']),_0x421f65=_0x469ecc==null?void 0x0:_0x469ecc['getTableById'](_0x246e32[_0x167265(0x300)][0x0]['tableId']);if(!_0x469ecc||!_0x421f65)return;let _0x23eac5={'base':_0x469ecc,'table':_0x421f65,'changes':_0x246e32['hierarchyChanges'],'source':_0xf5f1ab!=null&&_0xf5f1ab[_0x167265(0x1fe)]?_0x1acf8a[_0x167265(0x196)]['Remote']:_0x246e32[_0x167265(0x1de)]??_0x1acf8a[_0x167265(0x196)]['UI']};this['fireEvent'](this[_0x167265(0x1bb)][_0x167265(0x2b3)],_0x23eac5);}))),this[_0xca8ef1(0x2f9)](this[_0xca8ef1(0x21e)](this[_0xca8ef1(0x1bb)][_0xca8ef1(0x2b0)],()=>this[_0xca8ef1(0x230)][_0xca8ef1(0x2b7)](_0x1824da=>{const _0x4dd6de=_0xca8ef1;if(_0x1824da['id']!==_0x1acf8a['CreateBaseTableCommand']['id'])return;let {unitId:_0x583356,table:_0x30b326,index:_0x27bcf4}=_0x1824da['params'],_0x281537=this['getBase'](_0x583356);if(!_0x281537)return;let _0x29032a={'base':_0x281537,'table':_0x30b326,'index':_0x27bcf4};this[_0x4dd6de(0x2f0)](this[_0x4dd6de(0x1bb)]['BaseTableCreated'],_0x29032a);}))),this['disposeWithMe'](this[_0xca8ef1(0x21e)](this['Event'][_0xca8ef1(0x330)],()=>this['_commandService'][_0xca8ef1(0x2b7)](_0x17b029=>{const _0x3b67ef=_0xca8ef1;if(_0x17b029['id']!==_0x1acf8a[_0x3b67ef(0x2db)]['id'])return;let {unitId:_0x411954,tableId:_0xf99844,field:_0x1c587b,index:_0x55276a,viewIndexes:_0x2655fd}=_0x17b029[_0x3b67ef(0x210)],_0x282d1d=this[_0x3b67ef(0x298)](_0x411954);if(!_0x282d1d)return;let _0x1a8d1f=_0x282d1d[_0x3b67ef(0x1b3)](_0xf99844);if(!_0x1a8d1f)return;let _0x4b6c3e={'base':_0x282d1d,'table':_0x1a8d1f,'field':_0x1c587b,'index':_0x55276a,'viewIndexes':_0x2655fd};this[_0x3b67ef(0x2f0)](this[_0x3b67ef(0x1bb)][_0x3b67ef(0x330)],_0x4b6c3e);}))),this[_0xca8ef1(0x2f9)](this['registerEventHandler'](this[_0xca8ef1(0x1bb)][_0xca8ef1(0x311)],()=>this[_0xca8ef1(0x230)][_0xca8ef1(0x2b7)](_0x276c97=>{const _0x4671fd=_0xca8ef1;if(_0x276c97['id']!==_0x1acf8a[_0x4671fd(0x265)]['id']&&_0x276c97['id']!==_0x1acf8a['BatchCreateBaseRecordsCommand']['id'])return;let _0x39c080=_0x276c97['params'],{unitId:_0x6e801d,tableId:_0x1128dc}=_0x39c080,_0xd9ca17=_0x39c080[_0x4671fd(0x1f4)]??[_0x39c080[_0x4671fd(0x1e6)]],_0xc90aad=this[_0x4671fd(0x298)](_0x6e801d);if(!_0xc90aad)return;let _0xfa5f7e=_0xc90aad[_0x4671fd(0x1b3)](_0x1128dc);if(!_0xfa5f7e)return;let _0x3cc27b={'base':_0xc90aad,'table':_0xfa5f7e,'records':_0xd9ca17};this[_0x4671fd(0x2f0)](this['Event']['BaseTableRecordCreated'],_0x3cc27b);}))),this[_0xca8ef1(0x2f9)](this['registerEventHandler'](this[_0xca8ef1(0x1bb)][_0xca8ef1(0x30c)],()=>this['_commandService'][_0xca8ef1(0x2b7)](_0x118b4d=>{const _0x15995d=_0xca8ef1;if(_0x118b4d['id']!==_0x1acf8a[_0x15995d(0x336)]['id'])return;let {unitId:_0x305df1,tableId:_0x51b4ad,view:_0xc9798f,index:_0x1c25b1}=_0x118b4d[_0x15995d(0x210)],_0x291dfa=this[_0x15995d(0x298)](_0x305df1);if(!_0x291dfa)return;let _0x516c35=_0x291dfa[_0x15995d(0x1b3)](_0x51b4ad);if(!_0x516c35)return;let _0x42b11c={'base':_0x291dfa,'table':_0x516c35,'view':_0xc9798f,'index':_0x1c25b1};this[_0x15995d(0x2f0)](this['Event'][_0x15995d(0x30c)],_0x42b11c);}))),this[_0xca8ef1(0x2f9)](this['registerEventHandler'](this[_0xca8ef1(0x1bb)][_0xca8ef1(0x339)],()=>this['_commandService'][_0xca8ef1(0x2b7)](_0x4b66e9=>{const _0xcecbb7=_0xca8ef1;if(_0x4b66e9['id']!==_0x1acf8a[_0xcecbb7(0x2dd)]['id'])return;let {unitId:_0x9cf9b9,tableId:_0xd7d2a6,recordId:_0x2ee92a,fieldId:_0x5ce81c,value:_0x1623e9}=_0x4b66e9[_0xcecbb7(0x210)],_0x2d4365=this['getBase'](_0x9cf9b9);if(!_0x2d4365)return;let _0x3133b3=_0x2d4365[_0xcecbb7(0x1b3)](_0xd7d2a6);if(!_0x3133b3)return;let _0x3fc716=_0x3133b3[_0xcecbb7(0x31f)](_0x5ce81c);if(!_0x3fc716)return;let _0x5ddf5b=_0x3133b3[_0xcecbb7(0x2ef)](_0x2ee92a);if(!_0x5ddf5b)return;let _0x101c23={'base':_0x2d4365,'table':_0x3133b3,'field':_0x3fc716,'record':_0x5ddf5b,'value':_0x1623e9};this[_0xcecbb7(0x2f0)](this['Event']['BaseTableCellValueChanged'],_0x101c23);})));}[_0x592355(0x2ff)](){const _0x5e03b7=_0x592355;this['disposeWithMe'](this[_0x5e03b7(0x21e)](this[_0x5e03b7(0x1bb)][_0x5e03b7(0x1d6)],()=>this['_commandService']['beforeCommandExecuted'](_0x63faf6=>{const _0x3ce523=_0x5e03b7;if(_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x2fe)])){let {unitId:_0x47287e,tableId:_0x4314d3,patches:_0x15da54,source:_0x5f48ab=_0x1acf8a[_0x3ce523(0x196)]['UI']}=_0x63faf6[_0x3ce523(0x210)],_0x5cf747=this['_getHierarchyEventContext'](_0x47287e,_0x4314d3);if(!_0x5cf747)return;this['_fireBeforeHierarchyChange'](_0x5cf747[_0x3ce523(0x276)],_0x5cf747[_0x3ce523(0x243)],(0x0,_0x1acf8a[_0x3ce523(0x1d3)])(_0x5cf747[_0x3ce523(0x243)][_0x3ce523(0x317)](),_0x15da54),_0x5f48ab);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a['SetBaseRangeValuesCommand'])){let {unitId:_0x318292,tableId:_0x50c948,patches:_0x516bca,source:_0x49db80=_0x1acf8a[_0x3ce523(0x196)]['UI']}=_0x63faf6[_0x3ce523(0x210)],_0x276b91=this[_0x3ce523(0x296)](_0x318292,_0x50c948);if(!_0x276b91)return;let _0x26fb8f=_0x276b91[_0x3ce523(0x243)][_0x3ce523(0x317)]();this[_0x3ce523(0x347)](_0x276b91[_0x3ce523(0x276)],_0x276b91[_0x3ce523(0x243)],(0x0,_0x1acf8a['validateBaseHierarchyRecordPatches'])(_0x26fb8f,(0x0,_0x1acf8a[_0x3ce523(0x237)])(_0x26fb8f,_0x516bca)),_0x49db80);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x265)])){let _0x96f3f=_0x63faf6['params'],_0xbd2cbd=this[_0x3ce523(0x296)](_0x96f3f[_0x3ce523(0x2c9)],_0x96f3f[_0x3ce523(0x28d)]);if(!_0xbd2cbd)return;this[_0x3ce523(0x347)](_0xbd2cbd[_0x3ce523(0x276)],_0xbd2cbd['table'],(0x0,_0x1acf8a[_0x3ce523(0x1e1)])(_0xbd2cbd[_0x3ce523(0x243)][_0x3ce523(0x317)](),[_0x96f3f[_0x3ce523(0x1e6)]]),_0x96f3f[_0x3ce523(0x1de)]??_0x1acf8a[_0x3ce523(0x196)]['UI']);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a['BatchCreateBaseRecordsCommand'])){let _0xd50838=_0x63faf6[_0x3ce523(0x210)],_0x900271=this[_0x3ce523(0x296)](_0xd50838[_0x3ce523(0x2c9)],_0xd50838['tableId']);if(!_0x900271)return;this[_0x3ce523(0x347)](_0x900271[_0x3ce523(0x276)],_0x900271[_0x3ce523(0x243)],(0x0,_0x1acf8a[_0x3ce523(0x1e1)])(_0x900271[_0x3ce523(0x243)][_0x3ce523(0x317)](),_0xd50838['records']),_0xd50838[_0x3ce523(0x1de)]??_0x1acf8a['BaseEventSource']['UI']);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a['DuplicateBaseRecordCommand'])){let _0x3ebb31=_0x63faf6['params'],_0x2ebcef=this[_0x3ce523(0x296)](_0x3ebb31['unitId'],_0x3ebb31[_0x3ce523(0x28d)]);if(!_0x2ebcef)return;this[_0x3ce523(0x347)](_0x2ebcef[_0x3ce523(0x276)],_0x2ebcef[_0x3ce523(0x243)],(0x0,_0x1acf8a[_0x3ce523(0x1e1)])(_0x2ebcef[_0x3ce523(0x243)][_0x3ce523(0x317)](),[_0x3ebb31[_0x3ce523(0x1e6)]]),_0x3ebb31[_0x3ce523(0x1de)]??_0x1acf8a['BaseEventSource']['UI']);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x1fa)])){let _0x2ec744=_0x63faf6['params'],_0x519795=this['_getHierarchyEventContext'](_0x2ec744[_0x3ce523(0x2c9)],_0x2ec744[_0x3ce523(0x28d)]);if(!_0x519795)return;let _0x264370=_0x519795[_0x3ce523(0x243)][_0x3ce523(0x317)](),_0x4bbb1a=_0x2ec744[_0x3ce523(0x224)]??(0x0,_0x1acf8a[_0x3ce523(0x31a)])(_0x264370),_0x4cd371=(0x0,_0x1acf8a[_0x3ce523(0x357)])(_0x264370,_0x4bbb1a)['parentByRecordId'][_0x3ce523(0x2f4)](_0x2ec744['recordId'])??null;this['_fireBeforeHierarchyChange'](_0x519795[_0x3ce523(0x276)],_0x519795['table'],[{'tableId':_0x2ec744[_0x3ce523(0x28d)],'fieldId':_0x4bbb1a,'recordId':_0x2ec744[_0x3ce523(0x30d)],'oldParentRecordId':_0x4cd371,'parentRecordId':_0x2ec744[_0x3ce523(0x281)]}],_0x2ec744[_0x3ce523(0x1de)]??_0x1acf8a[_0x3ce523(0x196)]['UI']);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x219)])){let _0x2844bc=_0x63faf6[_0x3ce523(0x210)],_0x344a8f=this[_0x3ce523(0x296)](_0x2844bc[_0x3ce523(0x2c9)],_0x2844bc['tableId']);if(!_0x344a8f)return;let _0x1d4a13=_0x2844bc[_0x3ce523(0x224)]??(0x0,_0x1acf8a[_0x3ce523(0x31a)])(_0x344a8f[_0x3ce523(0x243)][_0x3ce523(0x317)]());this['_fireBeforeHierarchyChange'](_0x344a8f[_0x3ce523(0x276)],_0x344a8f[_0x3ce523(0x243)],[{'tableId':_0x2844bc['tableId'],'fieldId':_0x1d4a13,'recordId':_0x2844bc[_0x3ce523(0x1e6)]['id'],'oldParentRecordId':null,'parentRecordId':_0x2844bc['parentRecordId']}],_0x2844bc[_0x3ce523(0x1de)]??_0x1acf8a['BaseEventSource']['UI']);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x1ca)])){let _0x2c4adc=_0x63faf6[_0x3ce523(0x210)],_0x1f21b0=this['_getHierarchyEventContext'](_0x2c4adc[_0x3ce523(0x2c9)],_0x2c4adc['tableId']);if(!_0x1f21b0)return;this[_0x3ce523(0x347)](_0x1f21b0[_0x3ce523(0x276)],_0x1f21b0[_0x3ce523(0x243)],(0x0,_0x1acf8a['getBaseHierarchyDeletePromotions'])(_0x1f21b0[_0x3ce523(0x243)]['getTable'](),[_0x2c4adc[_0x3ce523(0x30d)]]),_0x2c4adc[_0x3ce523(0x1de)]??_0x1acf8a[_0x3ce523(0x196)]['UI']);return;}if(_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x250)])){let _0x56ba85=_0x63faf6[_0x3ce523(0x210)],_0x4a64ab=this[_0x3ce523(0x296)](_0x56ba85[_0x3ce523(0x2c9)],_0x56ba85['tableId']);if(!_0x4a64ab)return;this[_0x3ce523(0x347)](_0x4a64ab['base'],_0x4a64ab[_0x3ce523(0x243)],(0x0,_0x1acf8a[_0x3ce523(0x20c)])(_0x4a64ab['table'][_0x3ce523(0x317)](),_0x56ba85[_0x3ce523(0x349)]),_0x56ba85[_0x3ce523(0x1de)]??_0x1acf8a[_0x3ce523(0x196)]['UI']);return;}if(!_0x42bea5(_0x63faf6,_0x1acf8a[_0x3ce523(0x2dd)]))return;let _0x164a02=_0x63faf6['params'],_0x3af70d=this[_0x3ce523(0x296)](_0x164a02[_0x3ce523(0x2c9)],_0x164a02[_0x3ce523(0x28d)]);if(!_0x3af70d)return;let _0x304f05=_0x3af70d['table'][_0x3ce523(0x317)]();if(!(0x0,_0x1acf8a[_0x3ce523(0x341)])(_0x304f05)[_0x3ce523(0x205)](_0x164a02[_0x3ce523(0x224)]))return;let _0x5907dc=(0x0,_0x1acf8a[_0x3ce523(0x357)])(_0x304f05,_0x164a02['fieldId'])[_0x3ce523(0x24e)][_0x3ce523(0x2f4)](_0x164a02[_0x3ce523(0x30d)])??null,_0x1c89a0=(0x0,_0x1acf8a['parseRecordLinkIds'])(_0x164a02[_0x3ce523(0x2f2)])[0x0]??null;_0x5907dc!==_0x1c89a0&&this[_0x3ce523(0x347)](_0x3af70d[_0x3ce523(0x276)],_0x3af70d[_0x3ce523(0x243)],[{'tableId':_0x164a02['tableId'],'fieldId':_0x164a02[_0x3ce523(0x224)],'recordId':_0x164a02['recordId'],'oldParentRecordId':_0x5907dc,'parentRecordId':_0x1c89a0}],_0x164a02[_0x3ce523(0x1de)]??_0x1acf8a['BaseEventSource']['UI']);}))),this[_0x5e03b7(0x2f9)](this[_0x5e03b7(0x21e)](this[_0x5e03b7(0x1bb)][_0x5e03b7(0x320)],()=>this[_0x5e03b7(0x230)][_0x5e03b7(0x2df)](_0xab71e4=>{const _0x2748fc=_0x5e03b7;if(_0xab71e4['id']!==_0x1acf8a[_0x2748fc(0x271)]['id'])return;let {unitId:_0x5be2e4,table:_0x23e296,index:_0x201c11}=_0xab71e4[_0x2748fc(0x210)],_0x2b9ae7=this['getBase'](_0x5be2e4);if(!_0x2b9ae7)return;let _0x2f4b77={'base':_0x2b9ae7,'table':_0x23e296,'index':_0x201c11};if(this[_0x2748fc(0x2f0)](this[_0x2748fc(0x1bb)][_0x2748fc(0x320)],_0x2f4b77),_0x2f4b77[_0x2748fc(0x255)])throw new _0x3c73ae['CanceledError']();}))),this[_0x5e03b7(0x2f9)](this['registerEventHandler'](this[_0x5e03b7(0x1bb)]['BeforeBaseTableFieldCreate'],()=>this[_0x5e03b7(0x230)][_0x5e03b7(0x2df)](_0x117bbc=>{const _0x38c60d=_0x5e03b7;if(_0x117bbc['id']!==_0x1acf8a[_0x38c60d(0x2db)]['id'])return;let {unitId:_0x438476,tableId:_0x4a83df,field:_0x3d386a,index:_0x11b700,viewIndexes:_0x45ef05}=_0x117bbc[_0x38c60d(0x210)],_0x56ac4f=this[_0x38c60d(0x298)](_0x438476);if(!_0x56ac4f)return;let _0x3fba2f=_0x56ac4f[_0x38c60d(0x1b3)](_0x4a83df);if(!_0x3fba2f)return;let _0x244d1f={'base':_0x56ac4f,'table':_0x3fba2f,'field':_0x3d386a,'index':_0x11b700,'viewIndexes':_0x45ef05};if(this[_0x38c60d(0x2f0)](this[_0x38c60d(0x1bb)][_0x38c60d(0x1e0)],_0x244d1f),_0x244d1f[_0x38c60d(0x255)])throw new _0x3c73ae[(_0x38c60d(0x186))]();}))),this[_0x5e03b7(0x2f9)](this[_0x5e03b7(0x21e)](this['Event'][_0x5e03b7(0x2cd)],()=>this[_0x5e03b7(0x230)][_0x5e03b7(0x2df)](_0x574476=>{const _0x20b105=_0x5e03b7;if(_0x574476['id']!==_0x1acf8a[_0x20b105(0x265)]['id']&&_0x574476['id']!==_0x1acf8a[_0x20b105(0x2c3)]['id'])return;let _0x591383=_0x574476[_0x20b105(0x210)],{unitId:_0x3417c2,tableId:_0x55a5cb}=_0x591383,_0x5a8ef2=_0x591383['records']??[_0x591383[_0x20b105(0x1e6)]],_0x384d97=this[_0x20b105(0x298)](_0x3417c2);if(!_0x384d97)return;let _0x55123c=_0x384d97['getTableById'](_0x55a5cb);if(!_0x55123c)return;let _0x4f3530={'base':_0x384d97,'table':_0x55123c,'records':_0x5a8ef2};if(this[_0x20b105(0x2f0)](this[_0x20b105(0x1bb)]['BeforeBaseTableRecordCreate'],_0x4f3530),_0x4f3530[_0x20b105(0x255)])throw new _0x3c73ae['CanceledError']();}))),this[_0x5e03b7(0x2f9)](this[_0x5e03b7(0x21e)](this['Event'][_0x5e03b7(0x1a7)],()=>this[_0x5e03b7(0x230)][_0x5e03b7(0x2df)](_0x5e5eb9=>{const _0x7a60e6=_0x5e03b7;if(_0x5e5eb9['id']!==_0x1acf8a[_0x7a60e6(0x336)]['id'])return;let {unitId:_0x3b9ba7,tableId:_0x22e91f,view:_0x14c5c1,index:_0xdc53cb}=_0x5e5eb9['params'],_0x1cbeec=this[_0x7a60e6(0x298)](_0x3b9ba7);if(!_0x1cbeec)return;let _0x2e6b5b=_0x1cbeec[_0x7a60e6(0x1b3)](_0x22e91f);if(!_0x2e6b5b)return;let _0xb2f0ab={'base':_0x1cbeec,'table':_0x2e6b5b,'view':_0x14c5c1,'index':_0xdc53cb};if(this['fireEvent'](this[_0x7a60e6(0x1bb)][_0x7a60e6(0x1a7)],_0xb2f0ab),_0xb2f0ab['cancel'])throw new _0x3c73ae[(_0x7a60e6(0x186))]();}))),this[_0x5e03b7(0x2f9)](this['registerEventHandler'](this[_0x5e03b7(0x1bb)]['BeforeBaseTableCellValueChange'],()=>this['_commandService'][_0x5e03b7(0x2df)](_0xb98a28=>{const _0x5c045e=_0x5e03b7;if(_0xb98a28['id']!==_0x1acf8a[_0x5c045e(0x2dd)]['id'])return;let {unitId:_0x4c6042,tableId:_0xb58068,recordId:_0x3aaa80,fieldId:_0x541abc,value:_0x3775c2}=_0xb98a28[_0x5c045e(0x210)],_0x4dfb72=this['getBase'](_0x4c6042);if(!_0x4dfb72)return;let _0x477d8d=_0x4dfb72['getTableById'](_0xb58068);if(!_0x477d8d)return;let _0x5fadc2=_0x477d8d[_0x5c045e(0x31f)](_0x541abc);if(!_0x5fadc2)return;let _0x220813=_0x477d8d[_0x5c045e(0x2ef)](_0x3aaa80);if(!_0x220813)return;let _0x4a55b5={'base':_0x4dfb72,'table':_0x477d8d,'field':_0x5fadc2,'record':_0x220813,'value':_0x3775c2};if(this['fireEvent'](this[_0x5c045e(0x1bb)][_0x5c045e(0x2aa)],_0x4a55b5),_0x4a55b5[_0x5c045e(0x255)])throw new _0x3c73ae[(_0x5c045e(0x186))]();})));}[_0x592355(0x296)](_0x23a012,_0x3d1328){let _0xbb8f25=this['getBase'](_0x23a012),_0x5869c9=_0xbb8f25==null?void 0x0:_0xbb8f25['getTableById'](_0x3d1328);return _0xbb8f25&&_0x5869c9?{'base':_0xbb8f25,'table':_0x5869c9}:null;}['_fireBeforeHierarchyChange'](_0x384792,_0x2f2497,_0x1c83b9,_0x20723c){const _0x12b25b=_0x592355;if(!_0x1c83b9[_0x12b25b(0x1ef)])return;let _0x18e200={'base':_0x384792,'table':_0x2f2497,'changes':_0x1c83b9,'source':_0x20723c};if(this[_0x12b25b(0x2f0)](this[_0x12b25b(0x1bb)][_0x12b25b(0x1d6)],_0x18e200),_0x18e200['cancel'])throw new _0x3c73ae['CanceledError']();}};function _0x42bea5(_0x20022a,_0x34b38b){const _0x27e786=_0x592355;return _0x20022a['id']===_0x34b38b['id']&&_0x20022a[_0x27e786(0x210)]!==void 0x0;}_0x5cd49a[_0x592355(0x337)]['extend'](_0x305ea6);var _0xdbf476=class extends _0x5cd49a[_0x592355(0x26c)]{get['BaseFieldType'](){const _0x1c202d=_0x592355;return _0x3c73ae[_0x1c202d(0x202)];}get[_0x592355(0x28b)](){return _0x3c73ae['BaseFilterConjunction'];}get['BaseFilterOperator'](){const _0x404dae=_0x592355;return _0x3c73ae[_0x404dae(0x288)];}get[_0x592355(0x240)](){return _0x4695ab;}get[_0x592355(0x273)](){const _0x28e6f5=_0x592355;return _0x3c73ae[_0x28e6f5(0x273)];}get[_0x592355(0x269)](){return _0x3c73ae['BaseConditionalColorTarget'];}get['BaseConditionalColorOperator'](){const _0x3a5c46=_0x592355;return _0x3c73ae[_0x3a5c46(0x1a8)];}get[_0x592355(0x1f3)](){return _0x3c73ae['BaseConditionalDateMode'];}get[_0x592355(0x307)](){const _0xf54e2a=_0x592355;return _0x3c73ae[_0xf54e2a(0x307)];}get[_0x592355(0x196)](){const _0x34bc9f=_0x592355;return _0x1acf8a[_0x34bc9f(0x196)];}get[_0x592355(0x1c2)](){const _0x3f2af0=_0x592355;return _0x1acf8a[_0x3f2af0(0x1c2)];}get[_0x592355(0x184)](){const _0x42caf8=_0x592355;return _0x3c73ae[_0x42caf8(0x184)];}get[_0x592355(0x1ee)](){return _0x3c73ae['BaseRecordLinkRole'];}};_0x5cd49a[_0x592355(0x26c)]['extend'](_0xdbf476);var _0x5de931=class extends _0x5cd49a[_0x592355(0x25b)]{get[_0x592355(0x2b0)](){const _0x5cf579=_0x592355;return _0x5cf579(0x2b0);}get[_0x592355(0x320)](){return'BeforeBaseTableCreate';}get[_0x592355(0x330)](){const _0x32073a=_0x592355;return _0x32073a(0x330);}get['BeforeBaseTableFieldCreate'](){const _0x253d88=_0x592355;return _0x253d88(0x1e0);}get[_0x592355(0x311)](){const _0x4fd6c5=_0x592355;return _0x4fd6c5(0x311);}get['BeforeBaseTableRecordCreate'](){const _0x43e8f2=_0x592355;return _0x43e8f2(0x2cd);}get[_0x592355(0x30c)](){const _0x4e27a2=_0x592355;return _0x4e27a2(0x30c);}get['BeforeBaseTableViewCreate'](){return'BeforeBaseTableViewCreate';}get[_0x592355(0x339)](){const _0x5efb60=_0x592355;return _0x5efb60(0x339);}get[_0x592355(0x2aa)](){return'BeforeBaseTableCellValueChange';}get['BaseHierarchyChanged'](){const _0x442125=_0x592355;return _0x442125(0x2b3);}get['BeforeBaseHierarchyChange'](){const _0x4b2311=_0x592355;return _0x4b2311(0x1d6);}};_0x5cd49a['FEventName'][_0x592355(0x308)](_0x5de931),_0x2114e5['BaseFieldKeyEnum']=_0x4695ab,Object[_0x592355(0x358)](_0x2114e5,_0x592355(0x26d),{'enumerable':!0x0,'get':function(){return _0x21d7c0;}}),_0x2114e5[_0x592355(0x189)]=_0x47ae22,_0x2114e5[_0x592355(0x22b)]=_0x18cceb,Object['defineProperty'](_0x2114e5,_0x592355(0x31e),{'enumerable':!0x0,'get':function(){return _0x229e0d;}}),Object[_0x592355(0x358)](_0x2114e5,_0x592355(0x1c1),{'enumerable':!0x0,'get':function(){return _0x79721e;}}),Object[_0x592355(0x358)](_0x2114e5,_0x592355(0x238),{'enumerable':!0x0,'get':function(){return _0x5b010c;}}),Object[_0x592355(0x358)](_0x2114e5,_0x592355(0x242),{'enumerable':!0x0,'get':function(){return _0x53ddfc;}}),Object['defineProperty'](_0x2114e5,_0x592355(0x2dc),{'enumerable':!0x0,'get':function(){return _0x368301;}}),_0x2114e5[_0x592355(0x2b2)]=_0x5de931,_0x2114e5[_0x592355(0x27e)]=_0x48c489,_0x2114e5[_0x592355(0x2ae)]=_0x31c796;}));