@univerjs-pro/bases 1.0.0-alpha.8 → 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) 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/types/commands/commands/batch-create-base-records.command.d.ts +2 -0
  65. package/lib/types/commands/commands/batch-delete-base-records.command.d.ts +2 -0
  66. package/lib/types/commands/commands/create-base-child-record.command.d.ts +15 -0
  67. package/lib/types/commands/commands/create-base-record.command.d.ts +2 -0
  68. package/lib/types/commands/commands/delete-base-record.command.d.ts +2 -0
  69. package/lib/types/commands/commands/duplicate-base-record.command.d.ts +2 -0
  70. package/lib/types/commands/commands/move-base-hierarchy-record.command.d.ts +17 -0
  71. package/lib/types/commands/commands/set-base-range-values.command.d.ts +8 -1
  72. package/lib/types/commands/commands/set-base-record-values.command.d.ts +2 -0
  73. package/lib/types/commands/commands/set-base-table-hierarchy-field.command.d.ts +9 -0
  74. package/lib/types/commands/commands/update-base-cell.command.d.ts +2 -0
  75. package/lib/types/commands/commands/update-base-view-conditional-color-rules.command.d.ts +32 -0
  76. package/lib/types/commands/mutations/apply-base-json1.mutation.d.ts +4 -0
  77. package/lib/types/commands/utils/base-record-creation.d.ts +18 -0
  78. package/lib/types/commands/utils/base-validation.d.ts +6 -1
  79. package/lib/types/facade/f-base.d.ts +3 -2
  80. package/lib/types/facade/f-enum.d.ts +206 -2
  81. package/lib/types/facade/f-event.d.ts +102 -0
  82. package/lib/types/facade/f-field.d.ts +6 -6
  83. package/lib/types/facade/f-range.d.ts +4 -1
  84. package/lib/types/facade/f-record.d.ts +325 -1
  85. package/lib/types/facade/f-table.d.ts +246 -9
  86. package/lib/types/facade/f-univer.d.ts +2 -0
  87. package/lib/types/facade/f-view.d.ts +179 -3
  88. package/lib/types/facade/field-key.d.ts +3 -1
  89. package/lib/types/fields/date-format.d.ts +20 -1
  90. package/lib/types/fields/field-core-plugin.d.ts +7 -4
  91. package/lib/types/fields/field-stat.d.ts +10 -0
  92. package/lib/types/fields/progress-format.d.ts +1 -0
  93. package/lib/types/index.d.ts +19 -2
  94. package/lib/types/locale/en-US.d.ts +1 -1
  95. package/lib/types/models/base-hierarchy.d.ts +108 -0
  96. package/lib/types/models/record-link.d.ts +14 -0
  97. package/lib/types/ot/json1-op-applier.d.ts +3 -1
  98. package/lib/types/ot/json1-util.d.ts +2 -2
  99. package/lib/types/services/base-command.service.d.ts +1 -0
  100. package/lib/types/services/base-projection.service.d.ts +4 -0
  101. package/lib/umd/facade.js +1 -1
  102. package/lib/umd/index.js +1 -1
  103. package/lib/umd/locale/ar-SA.js +1 -1
  104. package/lib/umd/locale/ca-ES.js +1 -1
  105. package/lib/umd/locale/de-DE.js +1 -1
  106. package/lib/umd/locale/en-US.js +1 -1
  107. package/lib/umd/locale/es-ES.js +1 -1
  108. package/lib/umd/locale/fa-IR.js +1 -1
  109. package/lib/umd/locale/fr-FR.js +1 -1
  110. package/lib/umd/locale/id-ID.js +1 -1
  111. package/lib/umd/locale/it-IT.js +1 -1
  112. package/lib/umd/locale/ja-JP.js +1 -1
  113. package/lib/umd/locale/ko-KR.js +1 -1
  114. package/lib/umd/locale/pl-PL.js +1 -1
  115. package/lib/umd/locale/pt-BR.js +1 -1
  116. package/lib/umd/locale/ru-RU.js +1 -1
  117. package/lib/umd/locale/sk-SK.js +1 -1
  118. package/lib/umd/locale/vi-VN.js +1 -1
  119. package/lib/umd/locale/zh-CN.js +1 -1
  120. package/lib/umd/locale/zh-HK.js +1 -1
  121. package/lib/umd/locale/zh-TW.js +1 -1
  122. package/package.json +7 -7
@@ -1 +1 @@
1
- const _0x48c172=_0x2d32;function _0x2d32(_0x1c6ff1,_0x5f5bec){_0x1c6ff1=_0x1c6ff1-0xc7;const _0x1f233a=_0x1f23();let _0x2d3256=_0x1f233a[_0x1c6ff1];return _0x2d3256;}function _0x1f23(){const _0x4cae1e=['雙向關聯','複選框','3278oEiOjP','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','字段類型無效','3053272DNrhPK','881699MKMLGc','478WjnFPx','電話號碼','更新視圖設置','刪除記錄','修改人','10BySwlv','輸入內容','1638896KQyydn','更新單元格','18920vQRrAz','日曆需要日期字段','單元格值無效','甘特視圖需要開始和結束日期字段','7323ZASvIz','335361ucHRjN','18TPfUQc','495315lQiMpB','刪除字段'];_0x1f23=function(){return _0x4cae1e;};return _0x1f23();}(function(_0x56602d,_0x7cebbb){const _0x111bcf=_0x2d32,_0x3f0507=_0x56602d();while(!![]){try{const _0x31618c=-parseInt(_0x111bcf(0xd7))/0x1+-parseInt(_0x111bcf(0xc9))/0x2*(parseInt(_0x111bcf(0xd6))/0x3)+-parseInt(_0x111bcf(0xd0))/0x4*(-parseInt(_0x111bcf(0xce))/0x5)+parseInt(_0x111bcf(0xd8))/0x6*(-parseInt(_0x111bcf(0xc8))/0x7)+parseInt(_0x111bcf(0xc7))/0x8+-parseInt(_0x111bcf(0xd9))/0x9+-parseInt(_0x111bcf(0xd2))/0xa*(-parseInt(_0x111bcf(0xdd))/0xb);if(_0x31618c===_0x7cebbb)break;else _0x3f0507['push'](_0x3f0507['shift']());}catch(_0x4b7ff6){_0x3f0507['push'](_0x3f0507['shift']());}}}(_0x1f23,0x64e49));const e={'bases':{'fieldType':{'text':'文本','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x48c172(0xdc),'link':'鏈接','formula':'公式','lookup':'查找','flow':'流程','button':'按鈕','numbering':'編號','phone':_0x48c172(0xca),'email':'郵箱','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','twoWayLink':_0x48c172(0xdb),'recordId':'記錄\x20ID','createdBy':'創建人','updatedBy':_0x48c172(0xcd),'createdAt':'創建時間','updatedAt':'更新時間','summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x48c172(0xcf),'linkPlaceholder':_0x48c172(0xde)},'viewType':{'grid':'表格','kanban':'看板','calendar':'日曆','gantt':'甘特','gallery':'畫廊'},'error':{'fieldNameRequired':'字段標題不能為空','invalidFieldType':_0x48c172(0xdf),'invalidCellValue':_0x48c172(0xd4),'invalidKanbanGroupField':'看板需要可分組字段','invalidCalendarDateField':_0x48c172(0xd3),'invalidGanttDateField':_0x48c172(0xd5)},'command':{'updateCell':_0x48c172(0xd1),'createField':'創建字段','deleteField':_0x48c172(0xda),'createRecord':'創建記錄','deleteRecord':_0x48c172(0xcc),'updateViewConfig':_0x48c172(0xcb)}}};module['exports']=e;
1
+ function _0x30ab(){const _0x56e8df=['更新時間','2144450VMkuMp','刪除記錄','記錄\x20ID','關聯記錄','56kOnokx','儲存格值無效','174807jPECVl','4sSUPFE','更新儲存格','甘特圖檢視需要開始和結束日期欄位','欄位標題不能為空','輸入\x20URL(例如\x20univer.ai\x20或\x20https://univer.ai/skills)。','核取方塊','建立時間','欄位類型無效','2945572LSjnCf','行事曆','甘特圖','532764aifpTF','3009375UkuIov','更新檢視設定','輸入內容','行事曆需要日期欄位','更新人','1900488dNoVnX','exports','990199kFpMVP'];_0x30ab=function(){return _0x56e8df;};return _0x30ab();}const _0x7cfa7a=_0x2f22;(function(_0x156942,_0x306875){const _0xfbe92d=_0x2f22,_0x30234e=_0x156942();while(!![]){try{const _0x4abc57=parseInt(_0xfbe92d(0xa5))/0x1*(-parseInt(_0xfbe92d(0x9a))/0x2)+parseInt(_0xfbe92d(0x8a))/0x3+parseInt(_0xfbe92d(0xa2))/0x4+-parseInt(_0xfbe92d(0x93))/0x5+parseInt(_0xfbe92d(0x8f))/0x6+-parseInt(_0xfbe92d(0x91))/0x7+parseInt(_0xfbe92d(0x97))/0x8*(parseInt(_0xfbe92d(0x99))/0x9);if(_0x4abc57===_0x306875)break;else _0x30234e['push'](_0x30234e['shift']());}catch(_0x57ca1f){_0x30234e['push'](_0x30234e['shift']());}}}(_0x30ab,0x87d40));const e={'bases':{'fieldType':{'text':'文字','singleSelect':'單選','multiSelect':'多選','person':'人員','group':'分組','date':'日期','attachment':'附件','number':'數字','checkbox':_0x7cfa7a(0x9f),'link':'連結','formula':'公式','lookup':'查詢','flow':'流程','button':'按鈕','numbering':'編號','phone':'電話號碼','email':'電子郵件','location':'位置','barcode':'條碼','progress':'進度','currency':'貨幣','rating':'評分','recordLink':_0x7cfa7a(0x96),'recordId':_0x7cfa7a(0x95),'createdBy':'建立人','updatedBy':_0x7cfa7a(0x8e),'createdAt':_0x7cfa7a(0xa0),'updatedAt':_0x7cfa7a(0x92),'summary':'彙總'},'fieldConfig':{'textPlaceholder':_0x7cfa7a(0x8c),'linkPlaceholder':_0x7cfa7a(0x9e)},'viewType':{'grid':'表格','kanban':'看板','calendar':_0x7cfa7a(0xa3),'gantt':_0x7cfa7a(0xa4),'gallery':'圖庫'},'error':{'fieldNameRequired':_0x7cfa7a(0x9d),'invalidFieldType':_0x7cfa7a(0xa1),'invalidCellValue':_0x7cfa7a(0x98),'invalidKanbanGroupField':'看板需要可分組欄位','invalidCalendarDateField':_0x7cfa7a(0x8d),'invalidGanttDateField':_0x7cfa7a(0x9c)},'command':{'updateCell':_0x7cfa7a(0x9b),'createField':'建立欄位','deleteField':'刪除欄位','createRecord':'建立記錄','deleteRecord':_0x7cfa7a(0x94),'updateViewConfig':_0x7cfa7a(0x8b)}}};function _0x2f22(_0x8ac4c8,_0x1b03c1){_0x8ac4c8=_0x8ac4c8-0x8a;const _0x30ab80=_0x30ab();let _0x2f22a4=_0x30ab80[_0x8ac4c8];return _0x2f22a4;}module[_0x7cfa7a(0x90)]=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x166382=_0x4e8a;(function(_0x4bfff4,_0xf0b901){const _0x547739=_0x4e8a,_0x5c6810=_0x4bfff4();while(!![]){try{const _0xc4920e=-parseInt(_0x547739(0x1b7))/0x1+-parseInt(_0x547739(0x147))/0x2+-parseInt(_0x547739(0x13b))/0x3*(-parseInt(_0x547739(0x14d))/0x4)+parseInt(_0x547739(0x166))/0x5+-parseInt(_0x547739(0x13e))/0x6*(-parseInt(_0x547739(0x1f4))/0x7)+parseInt(_0x547739(0x20a))/0x8+parseInt(_0x547739(0x159))/0x9*(-parseInt(_0x547739(0x210))/0xa);if(_0xc4920e===_0xf0b901)break;else _0x5c6810['push'](_0x5c6810['shift']());}catch(_0x9736cb){_0x5c6810['push'](_0x5c6810['shift']());}}}(_0x3df4,0x23ef9));import{BatchCreateBaseRecordsCommand as _0x328b9a,BatchDeleteBaseRecordsCommand as _0x41c146,ChangeBaseFieldTypeCommand as _0x4603a8,CreateBaseFieldCommand as _0x12c685,CreateBaseRecordCommand as _0x5d2235,CreateBaseTableCommand as _0x4ae76d,CreateBaseViewCommand as _0x44a3b0,DeleteBaseFieldCommand as _0x98926c,DeleteBaseRecordCommand as _0x3fffa7,DeleteBaseTableCommand as _0x365fcc,DeleteBaseViewCommand as _0x858461,DuplicateBaseRecordCommand as _0x5560d7,IBaseProjectionService as _0x5c28f7,MoveBaseFieldCommand as _0x152d60,MoveBaseViewCommand as _0x168688,RenameBaseTableCommand as _0x4affdf,RenameBaseViewCommand as _0x12da68,SetBaseNameCommand as _0x1e5b21,SetBaseRangeValuesCommand as _0x54e1c4,SetBaseRecordValuesCommand as _0x56e812,SetBaseViewFieldOrderCommand as _0x1d7382,SetBaseViewFieldVisibleCommand as _0x5a97a9,SetBaseViewFieldWidthCommand as _0x179732,SetBaseViewFilterCommand as _0x570bf5,SetBaseViewGroupCommand as _0xf94296,SetBaseViewSortCommand as _0x5d8b7e,UpdateBaseCellCommand as _0x5946f1,UpdateBaseFieldCommand as _0x2e7f1a,UpdateBaseRecordOrderCommand as _0xe2810f,UpdateBaseViewConfigCommand as _0x1e6de5,copyBaseTableSnapshot as _0x457395,ensureBaseTableCellLayout as _0x31afe7,getBaseCellValue as _0x35cd93,matchesBaseCondition as _0x40c801,searchBaseTable as _0x5fa93c}from'@univerjs-pro/bases';import{BaseFieldType as _0x7a8503,BaseFilterConjunction as _0x3015f0,BaseFilterOperator as _0x279e7b,BaseSortDirection as _0x46203c,BaseViewType as _0x4f3b2f,CanceledError as _0x1dc41b,ICommandService as _0x1f43ec,IResourceLoaderService as _0x10705f,IUniverInstanceService as _0x2d4867,Inject as _0x165bb0,Injector as _0x5a7aee,Tools as _0x1b13df,UniverInstanceType as _0x7905cc,createDefaultBaseTableSnapshot as _0x3f58f9,generateRandomId as _0x2decce}from'@univerjs/core';import{FEnum as _0x21fd9b,FEventName as _0x1edd02,FUniver as _0x91489c}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x34373b}from'@univerjs-pro/engine-formula';var V=class{constructor(_0x2c93de,_0x5e6e63,_0xaf600e,_0x239953){const _0x2be2fe=_0x4e8a;this[_0x2be2fe(0x15b)]=_0x2c93de,this[_0x2be2fe(0x1ce)]=_0x5e6e63,this[_0x2be2fe(0x19f)]=_0xaf600e,this[_0x2be2fe(0x1d4)]=_0x239953;}[_0x166382(0x1e9)](){return this['_fieldId'];}[_0x166382(0x214)](){const _0xbb7f0b=_0x166382;return this[_0xbb7f0b(0x215)]();}[_0x166382(0x152)](){const _0x5bcc18=_0x166382;return this[_0x5bcc18(0x215)]()[_0x5bcc18(0x1d7)];}[_0x166382(0x13f)](){const _0x23e868=_0x166382;return this[_0x23e868(0x215)]()[_0x23e868(0x1bd)];}['getConfig'](){return this['_getField']()['config'];}[_0x166382(0x174)](){const _0x1d65b1=_0x166382;return this[_0x1d65b1(0x215)]()[_0x1d65b1(0x1f9)];}[_0x166382(0x15a)](){const _0x421fb7=_0x166382;return this['_getField']()[_0x421fb7(0x209)];}[_0x166382(0x20f)](){const _0xd944=_0x166382;return!!this[_0xd944(0x215)]()[_0xd944(0x1e7)];}['setName'](_0x239978){const _0x2d1cd8=_0x166382;return this[_0x2d1cd8(0x1bb)]({'name':_0x239978});}['setConfig'](_0x3a52ee,_0x1faea1){const _0x4bff3d=_0x166382;return this[_0x4bff3d(0x1bb)]({'config':_0x3a52ee},_0x1faea1);}[_0x166382(0x1eb)](_0x190f97){return this['update']({'defaultValue':_0x190f97});}[_0x166382(0x1bb)](_0x5680f2,_0x37fb09){const _0x5183a8=_0x166382;var _0x3493cc;let _0x162b88=this[_0x5183a8(0x1d4)][_0x5183a8(0x1c6)](_0x1f43ec),_0x261d2a=this['_getField']()[_0x5183a8(0x1bd)];return((_0x3493cc=_0x5680f2[_0x5183a8(0x1bd)])==null?_0x261d2a:_0x3493cc)===_0x7a8503[_0x5183a8(0x142)]&&(Object[_0x5183a8(0x1b0)][_0x5183a8(0x1a8)]['call'](_0x5680f2,_0x5183a8(0x1fb))||_0x5680f2[_0x5183a8(0x1bd)]===_0x7a8503[_0x5183a8(0x142)])&&!this[_0x5183a8(0x16a)](_0x162b88,_0x37fb09)?!0x1:_0x162b88[_0x5183a8(0x182)](_0x2e7f1a['id'],{'unitId':this[_0x5183a8(0x15b)]['getId'](),'tableId':this[_0x5183a8(0x1ce)][_0x5183a8(0x1e9)](),'fieldId':this[_0x5183a8(0x19f)],'patch':_0x5680f2});}[_0x166382(0x207)](_0xd59f4f,_0x1039de={},_0x358597){const _0x1594bb=_0x166382;let _0x3f98dc=this['_inject'][_0x1594bb(0x1c6)](_0x1f43ec);return _0xd59f4f===_0x7a8503[_0x1594bb(0x142)]&&!this[_0x1594bb(0x16a)](_0x3f98dc,_0x358597)?!0x1:_0x3f98dc[_0x1594bb(0x182)](_0x4603a8['id'],{'unitId':this['_base'][_0x1594bb(0x1e9)](),'tableId':this[_0x1594bb(0x1ce)][_0x1594bb(0x1e9)](),'fieldId':this[_0x1594bb(0x19f)],'input':{'type':_0xd59f4f,'config':_0x1039de}});}[_0x166382(0x228)](){const _0x46370e=_0x166382;return this[_0x46370e(0x1d4)][_0x46370e(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x98926c['id'],{'unitId':this[_0x46370e(0x15b)][_0x46370e(0x1e9)](),'tableId':this[_0x46370e(0x1ce)][_0x46370e(0x1e9)](),'fieldId':this[_0x46370e(0x19f)]});}[_0x166382(0x220)](_0x37625a){const _0x10b9e0=_0x166382;return this[_0x10b9e0(0x1d4)][_0x10b9e0(0x1c6)](_0x1f43ec)[_0x10b9e0(0x182)](_0x152d60['id'],{'unitId':this[_0x10b9e0(0x15b)][_0x10b9e0(0x1e9)](),'tableId':this[_0x10b9e0(0x1ce)][_0x10b9e0(0x1e9)](),'fieldId':this[_0x10b9e0(0x19f)],'target':_0x37625a});}[_0x166382(0x215)](){const _0xdd5fca=_0x166382;let _0x3d037d=this[_0xdd5fca(0x1ce)][_0xdd5fca(0x17d)]()[_0xdd5fca(0x15f)][this[_0xdd5fca(0x19f)]];if(!_0x3d037d)throw Error(_0xdd5fca(0x213)+this['_fieldId']+_0xdd5fca(0x1c2));return _0x3d037d;}[_0x166382(0x16a)](_0x3c5c66,_0x5df7ec){const _0x40cd9e=_0x166382;if(!_0x5df7ec||!Array[_0x40cd9e(0x185)](_0x5df7ec['externalReferences']))return console[_0x40cd9e(0x223)](_0x40cd9e(0x143)),!0x1;if(_0x5df7ec[_0x40cd9e(0x1e2)]['length']===0x0)return!0x0;let _0x14a1cf=_0x3c5c66[_0x40cd9e(0x182)](_0x34373b['id'],{'unitId':this[_0x40cd9e(0x15b)][_0x40cd9e(0x1e9)](),'references':_0x5df7ec['externalReferences']});return _0x14a1cf||console[_0x40cd9e(0x223)](_0x40cd9e(0x222)),_0x14a1cf;}},H=class e{constructor(_0x38c12a,_0x35ad28,_0x40570e,_0x5768e2){const _0x1bf006=_0x166382;this[_0x1bf006(0x15b)]=_0x38c12a,this[_0x1bf006(0x1ce)]=_0x35ad28,this[_0x1bf006(0x177)]=_0x40570e,this['_inject']=_0x5768e2,this[_0x1bf006(0x21c)]();}[_0x166382(0x148)](){const _0x399c38=_0x166382;return this[_0x399c38(0x15b)][_0x399c38(0x1e9)]();}['getTableId'](){return this['_table']['getId']();}[_0x166382(0x1e0)](){const _0x251a84=_0x166382;return{...this[_0x251a84(0x177)]};}[_0x166382(0x1f1)](){const _0x4b72c4=_0x166382;return this[_0x4b72c4(0x177)]['startRow'];}[_0x166382(0x1c9)](){return this['_range']['startColumn'];}[_0x166382(0x1b5)](){const _0x3c426b=_0x166382;return this[_0x3c426b(0x177)][_0x3c426b(0x18d)]-this[_0x3c426b(0x177)][_0x3c426b(0x1a7)]+0x1;}[_0x166382(0x1ac)](){const _0x352b61=_0x166382;return this['_range']['endColumn']-this[_0x352b61(0x177)][_0x352b61(0x1f2)]+0x1;}[_0x166382(0x20e)](){const _0x37877a=_0x166382;let _0x354098=this['_getTable'](),_0x6ad0f7=[];for(let _0x38d623=this[_0x37877a(0x177)][_0x37877a(0x1a7)];_0x38d623<=this[_0x37877a(0x177)]['endRow'];_0x38d623++){var _0x4650bc;let _0x497f9f=(_0x4650bc=_0x354098[_0x37877a(0x20c)])==null?void 0x0:_0x4650bc[_0x38d623],_0x2415d1=[];for(let _0x312050=this[_0x37877a(0x177)][_0x37877a(0x1f2)];_0x312050<=this[_0x37877a(0x177)][_0x37877a(0x1cf)];_0x312050++){var _0x4dcf12;let _0x4f7d0c=(_0x4dcf12=_0x354098['colId'])==null?void 0x0:_0x4dcf12[_0x312050];_0x2415d1[_0x37877a(0x1ed)](_0x497f9f&&_0x4f7d0c?_0x35cd93(_0x354098,_0x497f9f,_0x4f7d0c):null);}_0x6ad0f7['push'](_0x2415d1);}return _0x6ad0f7;}[_0x166382(0x1e8)](){const _0x10bb69=_0x166382;var _0xb05234,_0x38f3f9;return(_0xb05234=(_0x38f3f9=this[_0x10bb69(0x20e)]()[0x0])==null?void 0x0:_0x38f3f9[0x0])==null?null:_0xb05234;}[_0x166382(0x19c)](_0x28b0ae){const _0x36b871=_0x166382;return this[_0x36b871(0x176)]([[_0x28b0ae]]);}[_0x166382(0x176)](_0x46c4b7){const _0x2a18af=_0x166382;let _0x1cbd39=this['getNumRows'](),_0x4d21a3=this['getNumColumns']();if(_0x46c4b7[_0x2a18af(0x179)]>_0x1cbd39||_0x46c4b7['some'](_0x1e5143=>_0x1e5143[_0x2a18af(0x179)]>_0x4d21a3)){var _0x5ad26b,_0xcdab72;throw Error(_0x2a18af(0x1b9)+_0x46c4b7['length']+'x'+((_0x5ad26b=(_0xcdab72=_0x46c4b7[0x0])==null?void 0x0:_0xcdab72[_0x2a18af(0x179)])==null?0x0:_0x5ad26b)+_0x2a18af(0x1d1)+_0x1cbd39+'x'+_0x4d21a3+'.');}let _0x55d293=this[_0x2a18af(0x1d4)][_0x2a18af(0x1c6)](_0x1f43ec),_0x263c5f=_0x46c4b7[_0x2a18af(0x192)]((_0x368d00,_0x58383e)=>_0x368d00[_0x2a18af(0x172)]((_0x31cf1f,_0x1f1ddd)=>({'row':this[_0x2a18af(0x177)][_0x2a18af(0x1a7)]+_0x58383e,'col':this[_0x2a18af(0x177)][_0x2a18af(0x1f2)]+_0x1f1ddd,'value':_0x31cf1f})));return _0x55d293[_0x2a18af(0x182)](_0x54e1c4['id'],{'unitId':this[_0x2a18af(0x15b)]['getId'](),'tableId':this[_0x2a18af(0x1ce)][_0x2a18af(0x1e9)](),'patches':_0x263c5f});}[_0x166382(0x141)](){const _0x3314c9=_0x166382;return this['setValues'](Array[_0x3314c9(0x14c)]({'length':this[_0x3314c9(0x1b5)]()},()=>Array[_0x3314c9(0x14c)]({'length':this['getNumColumns']()},()=>null)));}[_0x166382(0x1de)](_0x33fbcc,_0x210174,_0x4acf84=this['getNumRows'](),_0x53f74d=this[_0x166382(0x1ac)]()){const _0x2bf110=_0x166382;return this[_0x2bf110(0x1d4)][_0x2bf110(0x1f6)](e,this[_0x2bf110(0x15b)],this['_table'],{'startRow':this[_0x2bf110(0x177)][_0x2bf110(0x1a7)]+_0x33fbcc,'startColumn':this[_0x2bf110(0x177)][_0x2bf110(0x1f2)]+_0x210174,'endRow':this[_0x2bf110(0x177)][_0x2bf110(0x1a7)]+_0x33fbcc+_0x4acf84-0x1,'endColumn':this[_0x2bf110(0x177)]['startColumn']+_0x210174+_0x53f74d-0x1},this[_0x2bf110(0x1d4)]);}[_0x166382(0x162)](){const _0x619e24=_0x166382;let _0x422716=this['_table'][_0x619e24(0x17d)]();if(!_0x422716)throw Error(_0x619e24(0x20b));return _0x31afe7(_0x422716);}[_0x166382(0x21c)](){const _0xeac529=_0x166382;var _0x35cf76,_0x4f31a8;let _0xcb47de=this['_getTable'](),_0x17c479=(_0x35cf76=(_0x4f31a8=_0xcb47de[_0xeac529(0x1fc)])==null?void 0x0:_0x4f31a8[_0xeac529(0x179)])==null?0x0:_0x35cf76,_0x3b6989=_0xcb47de['fieldOrder']['length'];if(this['_range'][_0xeac529(0x1a7)]<0x0||this[_0xeac529(0x177)][_0xeac529(0x1f2)]<0x0||this['_range'][_0xeac529(0x18d)]<this[_0xeac529(0x177)][_0xeac529(0x1a7)]||this[_0xeac529(0x177)][_0xeac529(0x1cf)]<this[_0xeac529(0x177)][_0xeac529(0x1f2)]||this[_0xeac529(0x177)][_0xeac529(0x18d)]>=Math['max'](_0x17c479,0x1)||this[_0xeac529(0x177)]['endColumn']>=Math[_0xeac529(0x1ae)](_0x3b6989,0x1))throw Error(_0xeac529(0x14e)+_0x17c479+_0xeac529(0x1d2)+_0x3b6989+_0xeac529(0x1f0)+JSON[_0xeac529(0x1ea)](this[_0xeac529(0x177)])+'.');}};let U=function(_0x3da82c){const _0x3b14e6=_0x166382;return _0x3da82c['Id']='id',_0x3da82c[_0x3b14e6(0x181)]=_0x3b14e6(0x1d7),_0x3da82c[_0x3b14e6(0x180)]=_0x3b14e6(0x18f),_0x3da82c;}({});function W(_0x4e54ae,_0x145ad7,_0x1db5ba='id'){const _0x172c2b=_0x166382;if(!_0x145ad7)return{};let _0x4e0179={};return Object[_0x172c2b(0x1a6)](_0x145ad7)[_0x172c2b(0x1c5)](([_0x27bc67,_0x3810c5])=>{_0x4e0179[G(_0x4e54ae,_0x27bc67,_0x1db5ba)]=_0x3810c5;}),_0x4e0179;}function G(_0x5cb942,_0x3a2d9e,_0x17eb24){const _0x591834=_0x166382;if(_0x17eb24==='id'||_0x17eb24===_0x591834(0x18f)&&_0x5cb942[_0x591834(0x15f)][_0x3a2d9e])return _0x3a2d9e;let _0x5f2027=Object[_0x591834(0x168)](_0x5cb942[_0x591834(0x15f)])[_0x591834(0x1be)](_0x1cb5ce=>_0x1cb5ce[_0x591834(0x1d7)]===_0x3a2d9e);if(_0x5f2027[_0x591834(0x179)]===0x1)return _0x5f2027[0x0]['id'];throw _0x5f2027[_0x591834(0x179)]>0x1?Error(_0x591834(0x1ad)+_0x3a2d9e):Error(_0x591834(0x204)+_0x3a2d9e);}var K=class e{constructor(_0x507947,_0x5916d8,_0x27869f,_0x375a09){const _0x33d97a=_0x166382;this['_base']=_0x507947,this[_0x33d97a(0x1ce)]=_0x5916d8,this[_0x33d97a(0x211)]=_0x27869f,this[_0x33d97a(0x1d4)]=_0x375a09;}['getId'](){const _0x42171d=_0x166382;return this[_0x42171d(0x211)];}[_0x166382(0x1f8)](){const _0x2e73ac=_0x166382;return this[_0x2e73ac(0x212)]();}[_0x166382(0x1e8)](_0x17461d){const _0x1de1ae=_0x166382;var _0x3e003d;return(_0x3e003d=this[_0x1de1ae(0x212)]()['values'][_0x17461d])==null?null:_0x3e003d;}['getValues'](){const _0x14af20=_0x166382;return{...this[_0x14af20(0x212)]()[_0x14af20(0x168)]};}[_0x166382(0x19c)](_0x2ab97b,_0x47317f){const _0x3c82f0=_0x166382;return this['_inject'][_0x3c82f0(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x5946f1['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x3c82f0(0x1ce)]['getId'](),'recordId':this[_0x3c82f0(0x211)],'fieldId':_0x2ab97b,'value':_0x47317f});}[_0x166382(0x17f)](_0xd851c3,_0x20a335){const _0x2b5e01=_0x166382;return this['setValue'](_0xd851c3,_0x20a335[_0x2b5e01(0x172)](_0x2e76a1=>({..._0x2e76a1})));}['setValues'](_0xa56617,_0x38e7a8='id'){const _0x2fcf4d=_0x166382;let _0x3d4584=this[_0x2fcf4d(0x1d4)][_0x2fcf4d(0x1c6)](_0x1f43ec),_0x376b7f=this['_table'][_0x2fcf4d(0x17d)](),_0x4d30c5=[{'recordId':this[_0x2fcf4d(0x211)],'values':W(_0x376b7f,_0xa56617,_0x38e7a8)}];return _0x3d4584[_0x2fcf4d(0x182)](_0x56e812['id'],{'unitId':this[_0x2fcf4d(0x15b)]['getId'](),'tableId':this[_0x2fcf4d(0x1ce)][_0x2fcf4d(0x1e9)](),'patches':_0x4d30c5});}[_0x166382(0x228)](){const _0x1b6862=_0x166382;return this[_0x1b6862(0x1d4)][_0x1b6862(0x1c6)](_0x1f43ec)[_0x1b6862(0x182)](_0x3fffa7['id'],{'unitId':this[_0x1b6862(0x15b)][_0x1b6862(0x1e9)](),'tableId':this[_0x1b6862(0x1ce)][_0x1b6862(0x1e9)](),'recordId':this[_0x1b6862(0x211)]});}[_0x166382(0x202)](_0x5973ec){const _0x5818c2=_0x166382;let _0x20bd6f=this[_0x5818c2(0x1d4)][_0x5818c2(0x1c6)](_0x1f43ec),_0x42adfe={...this[_0x5818c2(0x212)](),..._0x5973ec,'id':_0x2decce(0x6)};_0x5973ec!=null&&_0x5973ec[_0x5818c2(0x168)]&&(_0x42adfe['values']={..._0x42adfe[_0x5818c2(0x168)],..._0x5973ec[_0x5818c2(0x168)]});let _0xddf84b=Date[_0x5818c2(0x14a)]();if(_0x42adfe['orderKey']||(_0x42adfe[_0x5818c2(0x1f5)]=''+_0xddf84b),_0x42adfe[_0x5818c2(0x21e)]||(_0x42adfe[_0x5818c2(0x21e)]=_0xddf84b),_0x42adfe['updatedAt']||(_0x42adfe[_0x5818c2(0x154)]=_0xddf84b),!_0x20bd6f[_0x5818c2(0x182)](_0x5560d7['id'],{'unitId':this[_0x5818c2(0x15b)][_0x5818c2(0x1e9)](),'tableId':this['_table'][_0x5818c2(0x1e9)](),'sourceRecordId':this[_0x5818c2(0x211)],'record':_0x42adfe}))throw Error('[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22'+this[_0x5818c2(0x211)]+'\x22.');return this[_0x5818c2(0x1d4)]['createInstance'](e,this['_base'],this['_table'],_0x42adfe['id'],this[_0x5818c2(0x1d4)]);}[_0x166382(0x1c4)](_0x37f79f){const _0x1c2fae=_0x166382;return this[_0x1c2fae(0x1d4)][_0x1c2fae(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0xe2810f['id'],{'unitId':this[_0x1c2fae(0x15b)]['getId'](),'tableId':this[_0x1c2fae(0x1ce)]['getId'](),'recordId':this[_0x1c2fae(0x211)],'orderKey':_0x37f79f});}[_0x166382(0x212)](){const _0x5b1d0b=_0x166382;let _0x361dab=this[_0x5b1d0b(0x1ce)][_0x5b1d0b(0x17d)]()[_0x5b1d0b(0x1dc)][this[_0x5b1d0b(0x211)]];if(!_0x361dab)throw Error(_0x5b1d0b(0x144)+this[_0x5b1d0b(0x211)]+_0x5b1d0b(0x1c2));return _0x361dab;}},q=class{constructor(_0x2ff015,_0x5c0876,_0x53b78e,_0x293b8f){const _0x54c4be=_0x166382;this['_base']=_0x2ff015,this[_0x54c4be(0x1ce)]=_0x5c0876,this[_0x54c4be(0x17e)]=_0x53b78e,this['_injector']=_0x293b8f;}[_0x166382(0x1e9)](){const _0x4a54e3=_0x166382;return this[_0x4a54e3(0x17e)];}[_0x166382(0x197)](){const _0x469191=_0x166382;return this[_0x469191(0x1d0)]();}['getName'](){const _0x5d9647=_0x166382;return this[_0x5d9647(0x1d0)]()[_0x5d9647(0x1d7)];}[_0x166382(0x13f)](){const _0x223738=_0x166382;return this['_getView']()[_0x223738(0x1bd)];}[_0x166382(0x151)](_0x3de1a8){const _0x538707=_0x166382;return this[_0x538707(0x17a)][_0x538707(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x12da68['id'],{'unitId':this[_0x538707(0x15b)][_0x538707(0x1e9)](),'tableId':this[_0x538707(0x1ce)][_0x538707(0x1e9)](),'viewId':this[_0x538707(0x17e)],'name':_0x3de1a8});}[_0x166382(0x165)](){const _0x2220fb=_0x166382;let _0x2ef2bd=this[_0x2220fb(0x13f)](),_0x2b9314=this['_getView']()[_0x2220fb(0x1fb)];switch(_0x2ef2bd){case _0x4f3b2f['Grid']:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x16d)]:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x186)]:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x1a4)]:return _0x2b9314;case _0x4f3b2f[_0x2220fb(0x1b4)]:return _0x2b9314;default:return _0x2b9314;}}[_0x166382(0x1e3)](_0x49fb73){const _0x49ad6d=_0x166382;return this[_0x49ad6d(0x17a)]['get'](_0x1f43ec)[_0x49ad6d(0x182)](_0x1e6de5['id'],{'unitId':this[_0x49ad6d(0x15b)]['getId'](),'tableId':this[_0x49ad6d(0x1ce)][_0x49ad6d(0x1e9)](),'viewId':this[_0x49ad6d(0x17e)],'patch':_0x49fb73});}[_0x166382(0x225)](){const _0x48254e=_0x166382;var _0x1dbda8;return(_0x1dbda8=this[_0x48254e(0x1d0)]()[_0x48254e(0x1be)])==null?null:_0x1dbda8;}[_0x166382(0x156)](_0x264922){const _0x2cfc44=_0x166382;return this[_0x2cfc44(0x17a)][_0x2cfc44(0x1c6)](_0x1f43ec)[_0x2cfc44(0x182)](_0x570bf5['id'],{'unitId':this['_base'][_0x2cfc44(0x1e9)](),'tableId':this[_0x2cfc44(0x1ce)]['getId'](),'viewId':this['_viewId'],'filter':_0x264922});}[_0x166382(0x1fa)](){const _0x65423c=_0x166382;var _0x5be5ca;return(_0x5be5ca=this[_0x65423c(0x1d0)]()[_0x65423c(0x218)])==null?[]:_0x5be5ca;}[_0x166382(0x1ef)](_0x2d6325){const _0x15fc7f=_0x166382;return this[_0x15fc7f(0x17a)][_0x15fc7f(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x5d8b7e['id'],{'unitId':this['_base'][_0x15fc7f(0x1e9)](),'tableId':this['_table'][_0x15fc7f(0x1e9)](),'viewId':this[_0x15fc7f(0x17e)],'sort':_0x2d6325});}[_0x166382(0x19a)](){const _0x27f2d5=_0x166382;var _0x1d1615;return(_0x1d1615=this[_0x27f2d5(0x1d0)]()[_0x27f2d5(0x18b)])==null?[]:_0x1d1615;}[_0x166382(0x217)](_0x889ce9){const _0x7083cc=_0x166382;return this[_0x7083cc(0x17a)][_0x7083cc(0x1c6)](_0x1f43ec)[_0x7083cc(0x182)](_0xf94296['id'],{'unitId':this[_0x7083cc(0x15b)][_0x7083cc(0x1e9)](),'tableId':this['_table'][_0x7083cc(0x1e9)](),'viewId':this[_0x7083cc(0x17e)],'group':_0x889ce9});}[_0x166382(0x1e4)](_0x591c00){const _0x359814=_0x166382;var _0x236eda,_0x4adc1b;return(_0x236eda=(_0x4adc1b=this[_0x359814(0x1d0)]()[_0x359814(0x22f)])==null?void 0x0:_0x4adc1b[_0x591c00])==null?{}:_0x236eda;}['getVisibleFields'](){const _0x42156a=_0x166382;var _0xf14430;let _0x56bb72=this['_table'][_0x42156a(0x17d)](),_0x4f8ee2=this[_0x42156a(0x1d0)]();return((_0xf14430=_0x4f8ee2['fieldOrder'])==null?_0x56bb72[_0x42156a(0x1b8)]:_0xf14430)[_0x42156a(0x1be)](_0xee27a1=>{const _0x265f86=_0x42156a;var _0x1cc853;return _0x56bb72[_0x265f86(0x15f)][_0xee27a1]&&!((_0x1cc853=_0x4f8ee2[_0x265f86(0x22f)])!=null&&(_0x1cc853=_0x1cc853[_0xee27a1])!=null&&_0x1cc853['hidden']);})['map'](_0x1e5baa=>this[_0x42156a(0x17a)][_0x42156a(0x1f6)](V,this[_0x42156a(0x15b)],this[_0x42156a(0x1ce)],_0x1e5baa,this[_0x42156a(0x17a)]));}[_0x166382(0x1ee)](_0x1226a1,_0x3c467c){const _0xb1df09=_0x166382;return this[_0xb1df09(0x17a)][_0xb1df09(0x1c6)](_0x1f43ec)[_0xb1df09(0x182)](_0x5a97a9['id'],{'unitId':this[_0xb1df09(0x15b)]['getId'](),'tableId':this[_0xb1df09(0x1ce)][_0xb1df09(0x1e9)](),'viewId':this[_0xb1df09(0x17e)],'fieldId':_0x1226a1,'visible':_0x3c467c});}[_0x166382(0x169)](_0x2ef19f,_0x3b7b9c){const _0x47b24f=_0x166382;return this[_0x47b24f(0x17a)][_0x47b24f(0x1c6)](_0x1f43ec)[_0x47b24f(0x182)](_0x179732['id'],{'unitId':this[_0x47b24f(0x15b)][_0x47b24f(0x1e9)](),'tableId':this[_0x47b24f(0x1ce)][_0x47b24f(0x1e9)](),'viewId':this[_0x47b24f(0x17e)],'fieldId':_0x2ef19f,'width':_0x3b7b9c});}['moveField'](_0x3b0863,_0x74c33b){const _0x392d8d=_0x166382;return this['_injector'][_0x392d8d(0x1c6)](_0x1f43ec)['syncExecuteCommand'](_0x1d7382['id'],{'unitId':this['_base']['getId'](),'tableId':this['_table'][_0x392d8d(0x1e9)](),'viewId':this['_viewId'],'fieldId':_0x3b0863,'target':_0x74c33b});}['move'](_0x44ec23){const _0x49a0bd=_0x166382;return this['_injector']['get'](_0x1f43ec)['syncExecuteCommand'](_0x168688['id'],{'unitId':this[_0x49a0bd(0x15b)][_0x49a0bd(0x1e9)](),'tableId':this[_0x49a0bd(0x1ce)][_0x49a0bd(0x1e9)](),'viewId':this['_viewId'],'target':_0x44ec23});}[_0x166382(0x228)](){const _0x2900fc=_0x166382;return this[_0x2900fc(0x17a)][_0x2900fc(0x1c6)](_0x1f43ec)[_0x2900fc(0x182)](_0x858461['id'],{'unitId':this['_base'][_0x2900fc(0x1e9)](),'tableId':this[_0x2900fc(0x1ce)]['getId'](),'viewId':this['_viewId']});}[_0x166382(0x205)](){const _0x791126=_0x166382;return this[_0x791126(0x17a)][_0x791126(0x1c6)](_0x5c28f7)[_0x791126(0x205)](this[_0x791126(0x15b)][_0x791126(0x16b)]()[_0x791126(0x1e1)](),this[_0x791126(0x1ce)][_0x791126(0x1e9)](),this[_0x791126(0x17e)]);}[_0x166382(0x1d0)](){const _0x43461c=_0x166382;let _0x365617=this[_0x43461c(0x1ce)]['getTable']()[_0x43461c(0x1a0)][this['_viewId']];if(!_0x365617)throw Error(_0x43461c(0x1af)+this['_viewId']+_0x43461c(0x1c2));return _0x365617;}},J=class{constructor(_0x27e0fe,_0x24aecd,_0xf67b28){const _0x25f81c=_0x166382;this['_base']=_0x27e0fe,this[_0x25f81c(0x187)]=_0x24aecd,this[_0x25f81c(0x17a)]=_0xf67b28;}[_0x166382(0x16b)](){const _0x1ba907=_0x166382;return this[_0x1ba907(0x15b)][_0x1ba907(0x16b)]();}['getTable'](){const _0x59dcae=_0x166382;return this[_0x59dcae(0x162)]();}[_0x166382(0x1e9)](){const _0x2628ba=_0x166382;return this[_0x2628ba(0x187)];}[_0x166382(0x152)](){const _0x16976d=_0x166382;return this[_0x16976d(0x162)]()['name'];}['setName'](_0x1e7b71){const _0x40b37c=_0x166382;return this['_injector'][_0x40b37c(0x1c6)](_0x1f43ec)[_0x40b37c(0x182)](_0x4affdf['id'],{'unitId':this[_0x40b37c(0x15b)][_0x40b37c(0x1e9)](),'tableId':this[_0x40b37c(0x187)],'name':_0x1e7b71});}['search'](_0xf3d1dd,_0x4d8c3b){const _0x5cf07f=_0x166382;var _0x553040;let _0xf7b26c=this['_injector']['get'](_0x5c28f7),_0x573667=this[_0x5cf07f(0x15b)][_0x5cf07f(0x16b)]()[_0x5cf07f(0x1e1)](),_0x4345be=this[_0x5cf07f(0x162)]();if(_0x4d8c3b){var _0x1345f9;let _0x2452e3=_0xf7b26c[_0x5cf07f(0x205)](_0x573667,this[_0x5cf07f(0x187)],_0x4d8c3b),_0x3ba712=_0x4345be[_0x5cf07f(0x1a0)][_0x4d8c3b],_0x317fc0=(_0x1345f9=_0xf3d1dd[_0x5cf07f(0x14b)])==null?ve(_0x4345be,_0x3ba712,_0x2452e3):_0x1345f9,_0x1ec88d=_0x5cf07f(0x22c)in _0x2452e3&&Array[_0x5cf07f(0x185)](_0x2452e3[_0x5cf07f(0x22c)])?_0x2452e3[_0x5cf07f(0x22c)]:[];return _0x5fa93c({..._0xf3d1dd,'table':_0x4345be,'fieldIds':_0x317fc0,'rows':_0x1ec88d});}let _0xa6ee1b=(_0x4345be[_0x5cf07f(0x1fc)]?_0x4345be[_0x5cf07f(0x1fc)]['map'](_0x42ccd3=>_0x4345be[_0x5cf07f(0x1dc)][_0x42ccd3]):Object[_0x5cf07f(0x168)](_0x4345be[_0x5cf07f(0x1dc)])[_0x5cf07f(0x218)]((_0x301771,_0x25ce7b)=>_0x301771['orderKey']['localeCompare'](_0x25ce7b['orderKey'])))['filter'](_0x246e28=>_0x246e28)[_0x5cf07f(0x172)](_0x1b3cb3=>({'recordId':_0x1b3cb3['id'],'values':_0x1b3cb3[_0x5cf07f(0x168)]})),_0x3cb337=(_0x553040=_0xf3d1dd['fieldIds'])==null?_0x4345be['fieldOrder']['filter'](_0x215616=>_0x4345be['fields'][_0x215616]):_0x553040;return _0x5fa93c({..._0xf3d1dd,'table':_0x4345be,'fieldIds':_0x3cb337,'rows':_0xa6ee1b});}[_0x166382(0x191)](){const _0x46a323=_0x166382;return this['_getTable']()[_0x46a323(0x1c7)];}[_0x166382(0x16f)](){const _0x506971=_0x166382;let _0x3680fb=this['_getTable']();return _0x3680fb[_0x506971(0x1b8)][_0x506971(0x172)](_0x370ad7=>_0x3680fb[_0x506971(0x15f)][_0x370ad7])['filter'](_0x271e56=>_0x271e56)[_0x506971(0x172)](_0x422b84=>this[_0x506971(0x17a)][_0x506971(0x1f6)](V,this['_base'],this,_0x422b84['id'],this[_0x506971(0x17a)]));}[_0x166382(0x1e6)](_0x2ae4df){const _0x4a2d14=_0x166382;let _0x2bdc56=this[_0x4a2d14(0x162)]()[_0x4a2d14(0x15f)][_0x2ae4df];return _0x2bdc56?this['_injector'][_0x4a2d14(0x1f6)](V,this['_base'],this,_0x2bdc56['id'],this[_0x4a2d14(0x17a)]):null;}[_0x166382(0x1a3)](_0x37db7c){const _0x4d7978=_0x166382;let _0x1e18cb=this[_0x4d7978(0x162)]()[_0x4d7978(0x15f)],_0x186a79=Object[_0x4d7978(0x168)](_0x1e18cb)[_0x4d7978(0x161)](_0x2138d7=>_0x2138d7[_0x4d7978(0x1d7)]===_0x37db7c);return _0x186a79?this[_0x4d7978(0x17a)]['createInstance'](V,this[_0x4d7978(0x15b)],this,_0x186a79['id'],this[_0x4d7978(0x17a)]):null;}[_0x166382(0x178)](){const _0x54511d=_0x166382;let _0x573c9d=this[_0x54511d(0x162)]()[_0x54511d(0x1c7)];return this[_0x54511d(0x17a)][_0x54511d(0x1f6)](V,this['_base'],this,_0x573c9d,this[_0x54511d(0x17a)]);}[_0x166382(0x1b1)](_0x425c5d,_0x5ac013,_0x3101fb){const _0x339d4a=_0x166382;var _0x5eb436,_0x4e8c9c;let _0x29b6d4=this[_0x339d4a(0x17a)][_0x339d4a(0x1c6)](_0x1f43ec);if(_0x5ac013===_0x7a8503[_0x339d4a(0x142)]){if(!_0x3101fb||!('externalReferences'in _0x3101fb)||!Array[_0x339d4a(0x185)](_0x3101fb['externalReferences']))throw Error('Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.');if(_0x3101fb[_0x339d4a(0x1e2)]['length']>0x0&&!_0x29b6d4[_0x339d4a(0x182)](_0x34373b['id'],{'unitId':this[_0x339d4a(0x15b)][_0x339d4a(0x1e9)](),'references':_0x3101fb[_0x339d4a(0x1e2)]}))throw Error(_0x339d4a(0x167)+_0x425c5d+'\x22');}let _0x46c149={..._0x3101fb==null?void 0x0:_0x3101fb[_0x339d4a(0x145)],'id':_0x2decce(0x6),'name':_0x425c5d,'type':_0x5ac013,'config':(_0x5eb436=_0x3101fb==null||(_0x4e8c9c=_0x3101fb['field'])==null?void 0x0:_0x4e8c9c[_0x339d4a(0x1fb)])==null?{}:_0x5eb436};if(!_0x29b6d4[_0x339d4a(0x182)](_0x12c685['id'],{'unitId':this[_0x339d4a(0x15b)]['getId'](),'tableId':this[_0x339d4a(0x187)],'field':_0x46c149,'index':_0x3101fb==null?void 0x0:_0x3101fb[_0x339d4a(0x21f)]}))throw Error('Failed\x20to\x20add\x20field\x20\x22'+_0x425c5d+'\x22');return this[_0x339d4a(0x17a)]['createInstance'](V,this[_0x339d4a(0x15b)],this,_0x46c149['id'],this['_injector']);}[_0x166382(0x190)](){const _0x574639=_0x166382;return this['_resolveRecordIds']()[_0x574639(0x172)](_0x4d13db=>this[_0x574639(0x17a)]['createInstance'](K,this[_0x574639(0x15b)],this,_0x4d13db,this[_0x574639(0x17a)]));}[_0x166382(0x1dd)](_0x4030f8){const _0x45c6df=_0x166382;return this[_0x45c6df(0x162)]()['records'][_0x4030f8]?this[_0x45c6df(0x17a)][_0x45c6df(0x1f6)](K,this['_base'],this,_0x4030f8,this[_0x45c6df(0x17a)]):null;}[_0x166382(0x200)](_0x30712e={}){const _0x403b1a=_0x166382;var _0x1d45ce;let _0x422aa2=this['_getTable'](),_0x59e7d4=this[_0x403b1a(0x1fe)](_0x30712e),_0x5b0e6e=Math[_0x403b1a(0x1ae)](0x0,(_0x1d45ce=_0x30712e[_0x403b1a(0x1de)])==null?0x0:_0x1d45ce),_0x21b685=_0x30712e[_0x403b1a(0x14f)]==null?null:Math[_0x403b1a(0x1ae)](0x0,_0x30712e['limit']),_0x1490c8=me(_0x59e7d4['map'](_0x5444d1=>_0x422aa2[_0x403b1a(0x1dc)][_0x5444d1])[_0x403b1a(0x1be)](_0x26e060=>he(_0x26e060,_0x422aa2,_0x30712e[_0x403b1a(0x1be)])),_0x422aa2,_0x30712e[_0x403b1a(0x218)]);return{'records':pe(_0x1490c8,_0x30712e)[_0x403b1a(0x172)](_0x59107d=>this[_0x403b1a(0x17a)][_0x403b1a(0x1f6)](K,this[_0x403b1a(0x15b)],this,_0x59107d['id'],this[_0x403b1a(0x17a)])),'total':_0x1490c8[_0x403b1a(0x179)],'offset':_0x5b0e6e,'limit':_0x21b685,'hasMore':_0x21b685!=null&&_0x5b0e6e+_0x21b685<_0x1490c8[_0x403b1a(0x179)]};}[_0x166382(0x1a2)](_0x55856d,_0x363684='id',_0x4af4be){const _0x17e5a8=_0x166382;let _0x270c51=this[_0x17e5a8(0x17a)][_0x17e5a8(0x1c6)](_0x1f43ec),_0x336635=this[_0x17e5a8(0x162)](),_0x1b5240=_0x4af4be==null?{}:_0x4af4be;_0x1b5240['id']=_0x2decce(0x6),_0x1b5240[_0x17e5a8(0x168)]=W(_0x336635,_0x55856d,_0x363684);let _0x95864=Date[_0x17e5a8(0x14a)]();if(_0x1b5240[_0x17e5a8(0x1f5)]||(_0x1b5240[_0x17e5a8(0x1f5)]=''+_0x95864),_0x1b5240[_0x17e5a8(0x21e)]||(_0x1b5240['createdAt']=_0x95864),_0x1b5240[_0x17e5a8(0x154)]||(_0x1b5240[_0x17e5a8(0x154)]=_0x95864),!_0x270c51[_0x17e5a8(0x182)](_0x5d2235['id'],{'unitId':this['_base'][_0x17e5a8(0x1e9)](),'tableId':this['_tableId'],'record':_0x1b5240}))throw Error(_0x17e5a8(0x19d)+_0x1b5240['id']+'\x22');return this['_injector'][_0x17e5a8(0x1f6)](K,this[_0x17e5a8(0x15b)],this,_0x1b5240['id'],this[_0x17e5a8(0x17a)]);}[_0x166382(0x224)](_0x1ca853){const _0x327e00=_0x166382;if(!_0x1ca853[_0x327e00(0x179)])return[];let _0x282e6e=this[_0x327e00(0x17a)][_0x327e00(0x1c6)](_0x1f43ec),_0x25fc2b=this['_getTable'](),_0x28a955=Date[_0x327e00(0x14a)](),_0x487c7b=_0x1ca853[_0x327e00(0x172)]((_0x3a913f,_0x5162b6)=>{const _0x3acef8=_0x327e00;var _0x397d45,_0x3efef1;let _0xd16b8b=(_0x397d45=_0x3a913f[_0x3acef8(0x20d)])==null?{}:_0x397d45;return _0xd16b8b['id']=_0x2decce(0x6),_0xd16b8b[_0x3acef8(0x168)]=W(_0x25fc2b,_0x3a913f[_0x3acef8(0x168)],(_0x3efef1=_0x3a913f['fieldKey'])==null?'id':_0x3efef1),_0xd16b8b[_0x3acef8(0x1f5)]||(_0xd16b8b[_0x3acef8(0x1f5)]=''+(_0x28a955+_0x5162b6)),_0xd16b8b[_0x3acef8(0x21e)]||(_0xd16b8b['createdAt']=_0x28a955),_0xd16b8b[_0x3acef8(0x154)]||(_0xd16b8b['updatedAt']=_0x28a955),_0xd16b8b;});if(!_0x282e6e[_0x327e00(0x182)](_0x328b9a['id'],{'unitId':this[_0x327e00(0x15b)][_0x327e00(0x1e9)](),'tableId':this[_0x327e00(0x187)],'records':_0x487c7b}))throw Error('Failed\x20to\x20add\x20records');return _0x487c7b['map'](_0x2d1d80=>this[_0x327e00(0x17a)][_0x327e00(0x1f6)](K,this[_0x327e00(0x15b)],this,_0x2d1d80['id'],this[_0x327e00(0x17a)]));}['deleteRecords'](_0x13417d){const _0x4006e8=_0x166382;return!_0x13417d[_0x4006e8(0x179)]||this['_injector'][_0x4006e8(0x1c6)](_0x1f43ec)[_0x4006e8(0x182)](_0x41c146['id'],{'unitId':this[_0x4006e8(0x15b)][_0x4006e8(0x1e9)](),'tableId':this['_tableId'],'recordIds':_0x13417d});}[_0x166382(0x1e0)](_0x5841ce,_0x2cfd7e,_0x18a9e0=0x1,_0x4d0bc9=0x1){const _0x3b2e29=_0x166382;return this[_0x3b2e29(0x17a)][_0x3b2e29(0x1f6)](H,this[_0x3b2e29(0x15b)],this,{'startRow':_0x5841ce,'endRow':_0x5841ce+_0x18a9e0-0x1,'startColumn':_0x2cfd7e,'endColumn':_0x2cfd7e+_0x4d0bc9-0x1},this[_0x3b2e29(0x17a)]);}['getDataRange'](){const _0x28dbcc=_0x166382;var _0xdfb445,_0x534d36;let _0x441b2b=_0x31afe7(this[_0x28dbcc(0x162)]()),_0xfa1a24=(_0xdfb445=(_0x534d36=_0x441b2b[_0x28dbcc(0x1fc)])==null?void 0x0:_0x534d36[_0x28dbcc(0x179)])==null?0x0:_0xdfb445,_0x4ff7a3=_0x441b2b[_0x28dbcc(0x1b8)][_0x28dbcc(0x179)];return this[_0x28dbcc(0x1e0)](0x0,0x0,Math[_0x28dbcc(0x1ae)](_0xfa1a24,0x1),Math[_0x28dbcc(0x1ae)](_0x4ff7a3,0x1));}[_0x166382(0x1f3)](){const _0x2585a7=_0x166382;let _0x3fab6b=this['_getTable']();return _0x3fab6b['viewOrder'][_0x2585a7(0x1be)](_0x911631=>_0x3fab6b[_0x2585a7(0x1a0)][_0x911631])[_0x2585a7(0x172)](_0x20048a=>this[_0x2585a7(0x17a)]['createInstance'](q,this[_0x2585a7(0x15b)],this,_0x20048a,this[_0x2585a7(0x17a)]));}[_0x166382(0x1db)](_0x19db15){const _0x450fec=_0x166382;return this['_getTable']()[_0x450fec(0x1a0)][_0x19db15]?this['_injector'][_0x450fec(0x1f6)](q,this['_base'],this,_0x19db15,this[_0x450fec(0x17a)]):null;}[_0x166382(0x206)](_0x11a9bc){const _0x28b2f1=_0x166382;let _0xcb53ca=this[_0x28b2f1(0x162)](),_0x589c0d=Object[_0x28b2f1(0x168)](_0xcb53ca[_0x28b2f1(0x1a0)])[_0x28b2f1(0x161)](_0x444aff=>_0x444aff[_0x28b2f1(0x1d7)]===_0x11a9bc);return _0x589c0d?this[_0x28b2f1(0x17a)][_0x28b2f1(0x1f6)](q,this[_0x28b2f1(0x15b)],this,_0x589c0d['id'],this[_0x28b2f1(0x17a)]):null;}[_0x166382(0x1ff)](_0x2034c1,_0xb96e5c,_0x688080){const _0x5ed320=_0x166382;var _0x410e7e;let _0x2bd7e1=this[_0x5ed320(0x17a)][_0x5ed320(0x1c6)](_0x1f43ec),_0x453d5a=this['_getTable'](),_0xc34387=(_0x410e7e=_0x688080==null?void 0x0:_0x688080[_0x5ed320(0x201)])==null?{}:_0x410e7e;if(_0xc34387['id']=_0x2decce(0x6),_0xc34387[_0x5ed320(0x1d7)]=_0x2034c1,_0xc34387[_0x5ed320(0x1bd)]=_0xb96e5c,_0xc34387['tableId']=this['_tableId'],!_0xc34387[_0x5ed320(0x1bd)])throw Error(_0x5ed320(0x17b));if(_0xc34387[_0x5ed320(0x1fb)]||(_0xc34387[_0x5ed320(0x1fb)]={}),_0xc34387['fieldOrder']||(_0xc34387[_0x5ed320(0x1b8)]=[..._0x453d5a[_0x5ed320(0x1b8)]]),!_0x2bd7e1[_0x5ed320(0x182)](_0x44a3b0['id'],{'unitId':this[_0x5ed320(0x15b)][_0x5ed320(0x1e9)](),'tableId':this[_0x5ed320(0x187)],'view':_0xc34387,'index':_0x688080==null?void 0x0:_0x688080[_0x5ed320(0x21f)]}))throw Error('Failed\x20to\x20create\x20view\x20\x22'+_0x2034c1+'\x22');return this['_injector'][_0x5ed320(0x1f6)](q,this[_0x5ed320(0x15b)],this,_0xc34387['id'],this[_0x5ed320(0x17a)]);}[_0x166382(0x171)](){const _0x388f84=_0x166382;let _0x567ca5=this[_0x388f84(0x162)](),_0x746adb=_0x567ca5[_0x388f84(0x1b8)]['filter'](_0x539c06=>_0x567ca5[_0x388f84(0x15f)][_0x539c06]),_0x18fad8=_0x567ca5[_0x388f84(0x170)][_0x388f84(0x1be)](_0x19d36f=>_0x567ca5[_0x388f84(0x1a0)][_0x19d36f]);return{'id':_0x567ca5['id'],'name':_0x567ca5[_0x388f84(0x1d7)],'primaryFieldId':_0x567ca5[_0x388f84(0x1c7)],'fieldIds':_0x746adb,'viewIds':_0x18fad8,'recordCount':this[_0x388f84(0x1fe)]()[_0x388f84(0x179)],'fields':_0x746adb[_0x388f84(0x172)](_0x23ff04=>{const _0x2f38d6=_0x388f84;let _0x1ecf0e=_0x567ca5[_0x2f38d6(0x15f)][_0x23ff04];return{'id':_0x1ecf0e['id'],'name':_0x1ecf0e['name'],'type':_0x1ecf0e[_0x2f38d6(0x1bd)],'config':_0x1ecf0e[_0x2f38d6(0x1fb)],'readonly':_0x1ecf0e[_0x2f38d6(0x1e7)],'description':_0x1ecf0e[_0x2f38d6(0x209)]};}),'views':_0x18fad8[_0x388f84(0x172)](_0x3fd948=>{const _0x523726=_0x388f84;let _0x1e91f6=_0x567ca5[_0x523726(0x1a0)][_0x3fd948];return{'id':_0x1e91f6['id'],'name':_0x1e91f6[_0x523726(0x1d7)],'type':_0x1e91f6['type']};})};}[_0x166382(0x162)](){const _0x229514=_0x166382;let _0xbac212=this[_0x229514(0x15b)][_0x229514(0x16b)]()[_0x229514(0x1e1)]()[_0x229514(0x1aa)][this['_tableId']];if(!_0xbac212)throw Error('[FTable]:\x20table\x20\x22'+this[_0x229514(0x187)]+_0x229514(0x1c2));return _0xbac212;}[_0x166382(0x1fe)](_0x3f7173={}){const _0x3069a9=_0x166382;let _0x2014cb=this[_0x3069a9(0x17a)][_0x3069a9(0x1c6)](_0x5c28f7),_0xf3fbce=this['_base'][_0x3069a9(0x16b)]()[_0x3069a9(0x1e1)](),_0x326f57=this[_0x3069a9(0x162)]();if(_0x3f7173[_0x3069a9(0x1da)]){let _0x17b640=_0x2014cb[_0x3069a9(0x205)](_0xf3fbce,this[_0x3069a9(0x187)],_0x3f7173[_0x3069a9(0x1da)]);if(_0x3069a9(0x22c)in _0x17b640&&Array['isArray'](_0x17b640['rows']))return _0x17b640[_0x3069a9(0x22c)][_0x3069a9(0x172)](_0x1dc57c=>_0x1dc57c['recordId']);}return(_0x326f57[_0x3069a9(0x1fc)]?_0x326f57['recordOrder'][_0x3069a9(0x172)](_0x3824ad=>_0x326f57[_0x3069a9(0x1dc)][_0x3824ad]):Object[_0x3069a9(0x168)](_0x326f57[_0x3069a9(0x1dc)])['sort']((_0x154a63,_0x38afa5)=>_0x154a63[_0x3069a9(0x1f5)][_0x3069a9(0x183)](_0x38afa5[_0x3069a9(0x1f5)])))['filter'](_0x3f6f7c=>_0x3f6f7c)[_0x3069a9(0x172)](_0x2d696f=>_0x2d696f['id']);}};function pe(_0x4466c6,_0x879a29){const _0x2608ef=_0x166382;var _0x48bca7;let _0x1eac94=Math[_0x2608ef(0x1ae)](0x0,(_0x48bca7=_0x879a29['offset'])==null?0x0:_0x48bca7);return _0x879a29[_0x2608ef(0x14f)]==null?_0x4466c6[_0x2608ef(0x163)](_0x1eac94):_0x4466c6[_0x2608ef(0x163)](_0x1eac94,_0x1eac94+Math[_0x2608ef(0x1ae)](0x0,_0x879a29[_0x2608ef(0x14f)]));}function me(_0x5078b8,_0x1ffcfa,_0x221b3a=[]){const _0x7ca828=_0x166382;return _0x221b3a[_0x7ca828(0x179)]?[..._0x5078b8][_0x7ca828(0x218)]((_0x30e8d1,_0x225189)=>{const _0x148055=_0x7ca828;var _0x2f7e60,_0x4a211f;for(let _0x58fecc of _0x221b3a){var _0x5c6a04;let _0x4c4835=_0x58fecc[_0x148055(0x1ca)]===_0x46203c[_0x148055(0x21d)]?-0x1:0x1,_0x29fac4=Y(_0x30e8d1[_0x148055(0x168)][_0x58fecc['fieldId']],_0x225189[_0x148055(0x168)][_0x58fecc[_0x148055(0x22d)]],(_0x5c6a04=_0x1ffcfa[_0x148055(0x15f)][_0x58fecc['fieldId']])==null?void 0x0:_0x5c6a04[_0x148055(0x1bd)]);if(_0x29fac4!==0x0)return _0x29fac4*_0x4c4835;}return String((_0x2f7e60=_0x30e8d1[_0x148055(0x1f5)])==null?_0x30e8d1['id']:_0x2f7e60)[_0x148055(0x183)](String((_0x4a211f=_0x225189[_0x148055(0x1f5)])==null?_0x225189['id']:_0x4a211f));}):_0x5078b8;}function Y(_0x3073b9,_0x28bbc3,_0x4ce9e3){const _0x3cb209=_0x166382;return _0x3073b9==null&&_0x28bbc3==null?0x0:_0x3073b9==null?-0x1:_0x28bbc3==null?0x1:typeof _0x3073b9=='number'&&typeof _0x28bbc3==_0x3cb209(0x1c1)?_0x3073b9-_0x28bbc3:_0x4ce9e3===_0x7a8503[_0x3cb209(0x160)]?Number(_0x3073b9)-Number(_0x28bbc3):String(_0x3073b9)['localeCompare'](String(_0x28bbc3));}function _0x3df4(){const _0x43487a=['[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.','warn','addRecords','getFilter','conditions','BaseFieldKeyEnum','delete','_initialize','deepClone','table','rows','fieldId','BeforeBaseTableCellValueChange','fieldSettings','29265AzdvEn','fireEvent','hidden','6RzTIen','getType','params','clear','Formula','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','[FRecord]:\x20record\x20\x22','field','decorate','46226xSXKVb','getBaseId','_resourceLoaderService','now','fieldIds','from','56jftNWW','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','limit','indexOf','setName','getName','createBase','updatedAt','operator','setFilter','BaseTableFieldCreated','BeforeBaseTableRecordCreate','9aiVRMB','getDescription','_base','notMatches','BaseFilterOperator','BeforeBaseTableViewCreate','fields','Date','find','_getTable','slice','message','getConfig','191625pnTCLQ','Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22','values','setFieldWidth','_writeFormulaExternalReferences','getBase','visibleCardFieldIds','Kanban','BaseTableCellValueChanged','getFields','viewOrder','getSchema','map','cancel','getDefaultValue','string','setValues','_range','getPrimaryField','length','_injector','View\x20type\x20is\x20required','tableOrder','getTable','_viewId','setAttachments','Auto','Name','syncExecuteCommand','localeCompare','insertTable','isArray','Calendar','_tableId','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','getUnitId','BaseSortDirection','group','extend','endRow','\x20Copy','auto','getRecords','getPrimaryFieldId','flatMap','Failed\x20to\x20duplicate\x20table\x20\x22','value','saveUnit','getTables','getView','_initBaseAfterEvents','BaseFilterConjunction','getGroup','getCurrentUnitOfType','setValue','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','BaseTableRecordCreated','_fieldId','views','getTableByName','addRecord','getFieldByName','Gantt','BaseTableCreated','entries','startRow','hasOwnProperty','disposeWithMe','tables','duplicateTable','getNumColumns','Duplicate\x20Base\x20field\x20name:\x20','max','[FView]:\x20view\x20\x22','prototype','addField','invalid','Event','Gallery','getNumRows','regenerateViewIds','10081nUJelE','fieldOrder','[FBaseRange]:\x20values\x20size\x20','deleteTable','update','some','type','filter','getAllUnitsForType','UNIVER_BASE','number','\x22\x20does\x20not\x20exist.','caseSensitive','setOrderKey','forEach','get','primaryFieldId','every','getColumn','direction','registerEventHandler','getUnit','Failed\x20to\x20delete\x20table\x20\x22','_table','endColumn','_getView','\x20exceeds\x20range\x20size\x20',',\x20max\x20columns:\x20','BaseTableViewCreated','_inject','primaryFieldName','object','name','BeforeBaseTableCreate','getActiveBase','viewId','getViewById','records','getRecordById','offset','includeRecords','getRange','getSnapshot','externalReferences','updateConfig','getFieldSettings','beforeCommandExecuted','getFieldById','readonly','getValue','getId','stringify','setDefaultValue','AND','push','setFieldVisible','setSort',',\x20range:\x20','getRow','startColumn','getViews','1148035CGWcab','orderKey','createInstance','getTableById','getRecord','defaultValue','getSort','config','recordOrder','BeforeBaseTableFieldCreate','_resolveRecordIds','createView','queryRecords','view','duplicate','Failed\x20to\x20create\x20table\x20\x22','Base\x20field\x20not\x20found:\x20','getProjection','getViewByName','changeType','_initBaseBeforeEvents','description','813792lezUXN','[FBaseRange]:\x20table\x20does\x20not\x20exist.','rowId','record','getValues','isReadonly','2602370HSOKwB','_recordId','_getRecord','[FField]:\x20field\x20\x22','getField','_getField','BaseViewType','setGroup','sort','matches','getBases','onCommandExecuted','_assertInBounds','DESC','createdAt','index','move','BaseFieldType'];_0x3df4=function(){return _0x43487a;};return _0x3df4();}function he(_0x54c31c,_0xf4a236,_0x2c117){const _0x44490f=_0x166382;var _0x5c5d0a;if(!_0x2c117||!((_0x5c5d0a=_0x2c117[_0x44490f(0x226)])!=null&&_0x5c5d0a[_0x44490f(0x179)]))return!0x0;let {conjunction:_0x15c44e=_0x3015f0['OR'],conditions:_0x25ef8f}=_0x2c117;return _0x15c44e===_0x3015f0[_0x44490f(0x1ec)]&&_0x25ef8f[_0x44490f(0x179)]>0x1?_0x25ef8f[_0x44490f(0x1c8)](_0x4ba7ea=>X(_0x54c31c,_0xf4a236,_0x4ba7ea)):_0x25ef8f[_0x44490f(0x1bc)](_0xd1b8b9=>X(_0x54c31c,_0xf4a236,_0xd1b8b9));}function X(_0x547ad6,_0xb07039,_0x1678a2){const _0x58a660=_0x166382;let _0x813e63=_0x547ad6[_0x58a660(0x168)][_0x1678a2[_0x58a660(0x22d)]],_0xd53fab=_0xb07039['fields'][_0x1678a2[_0x58a660(0x22d)]];if(ge(_0x1678a2)){let _0x802e01=_e(_0x1678a2)['test'](String(_0x813e63==null?'':_0x813e63));return _0x1678a2[_0x58a660(0x155)]===_0x58a660(0x219)?_0x802e01:!_0x802e01;}return!_0xd53fab||_0x40c801(_0x813e63,_0x1678a2['operator'],_0x1678a2[_0x58a660(0x194)],_0xd53fab);}function _0x4e8a(_0x4b1937,_0xef00ff){_0x4b1937=_0x4b1937-0x13b;const _0x3df467=_0x3df4();let _0x4e8a03=_0x3df467[_0x4b1937];return _0x4e8a03;}function ge(_0x309812){const _0x1db9ac=_0x166382;return _0x309812[_0x1db9ac(0x155)]===_0x1db9ac(0x219)||_0x309812[_0x1db9ac(0x155)]===_0x1db9ac(0x15c);}function _e(_0x786e2b){const _0x2e3f81=_0x166382;var _0x126598;let _0x2d8b36=String((_0x126598=_0x786e2b[_0x2e3f81(0x194)])==null?'':_0x126598);if(_0x2d8b36[_0x2e3f81(0x179)]>0x200)throw Error(_0x2e3f81(0x188));try{return new RegExp(_0x2d8b36,_0x786e2b[_0x2e3f81(0x1c3)]?void 0x0:'i');}catch(_0x515e2c){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x2d8b36+'.\x20'+(_0x515e2c instanceof Error?_0x515e2c[_0x2e3f81(0x164)]:String(_0x515e2c)));}}function ve(_0x3e1932,_0x218e68,_0x557620){const _0x237b1f=_0x166382;if(_0x557620['type']!==_0x237b1f(0x1b2)){var _0x1ccefc;if(_0x557620[_0x237b1f(0x1bd)]===_0x4f3b2f[_0x237b1f(0x16d)]){var _0x1c8d9d,_0x39db6c,_0x173476;let _0x374615=[(_0x1c8d9d=(_0x39db6c=_0x557620[_0x237b1f(0x15f)])==null||(_0x39db6c=_0x39db6c[0x0])==null?void 0x0:_0x39db6c['id'])==null?_0x3e1932[_0x237b1f(0x1c7)]:_0x1c8d9d,...(_0x173476=_0x557620[_0x237b1f(0x16c)])==null?[]:_0x173476];return Array[_0x237b1f(0x14c)](new Set(_0x374615[_0x237b1f(0x1be)](_0x124a2e=>!!_0x3e1932[_0x237b1f(0x15f)][_0x124a2e])));}if((_0x1ccefc=_0x557620['fields'])!=null&&_0x1ccefc[_0x237b1f(0x179)])return _0x557620[_0x237b1f(0x15f)][_0x237b1f(0x172)](_0x2f72a8=>_0x2f72a8['id'])[_0x237b1f(0x1be)](_0x5df5e0=>{const _0x1851b8=_0x237b1f;var _0x45644c;return!!(_0x3e1932[_0x1851b8(0x15f)][_0x5df5e0]&&!(_0x218e68!=null&&(_0x45644c=_0x218e68[_0x1851b8(0x22f)])!=null&&(_0x45644c=_0x45644c[_0x5df5e0])!=null&&_0x45644c[_0x1851b8(0x13d)]));});}return _0x3e1932[_0x237b1f(0x1b8)][_0x237b1f(0x1be)](_0x149b80=>{const _0x31a693=_0x237b1f;var _0x22daf0;return!!(_0x3e1932[_0x31a693(0x15f)][_0x149b80]&&!(_0x218e68!=null&&(_0x22daf0=_0x218e68['fieldSettings'])!=null&&(_0x22daf0=_0x22daf0[_0x149b80])!=null&&_0x22daf0['hidden']));});}function Z(_0x409e95,_0x138f6e){return function(_0x424f66,_0x2a5483){_0x138f6e(_0x424f66,_0x2a5483,_0x409e95);};}function ye(_0x664505,_0x1e07f2,_0x5ab0e0,_0x9ad739){const _0x394e27=_0x166382;var _0x425185=arguments[_0x394e27(0x179)],_0x38265e=_0x425185<0x3?_0x1e07f2:_0x9ad739===null?_0x9ad739=Object['getOwnPropertyDescriptor'](_0x1e07f2,_0x5ab0e0):_0x9ad739,_0x10eb3a;if(typeof Reflect==_0x394e27(0x1d6)&&typeof Reflect[_0x394e27(0x146)]=='function')_0x38265e=Reflect['decorate'](_0x664505,_0x1e07f2,_0x5ab0e0,_0x9ad739);else{for(var _0x12af86=_0x664505[_0x394e27(0x179)]-0x1;_0x12af86>=0x0;_0x12af86--)(_0x10eb3a=_0x664505[_0x12af86])&&(_0x38265e=(_0x425185<0x3?_0x10eb3a(_0x38265e):_0x425185>0x3?_0x10eb3a(_0x1e07f2,_0x5ab0e0,_0x38265e):_0x10eb3a(_0x1e07f2,_0x5ab0e0))||_0x38265e);}return _0x425185>0x3&&_0x38265e&&Object['defineProperty'](_0x1e07f2,_0x5ab0e0,_0x38265e),_0x38265e;}let Q=class{constructor(_0x374bdb,_0x4a5c32,_0x24d0d0){const _0x18f709=_0x166382;this[_0x18f709(0x15b)]=_0x374bdb,this[_0x18f709(0x17a)]=_0x4a5c32,this[_0x18f709(0x149)]=_0x24d0d0;}[_0x166382(0x16b)](){const _0x24cbdc=_0x166382;return this[_0x24cbdc(0x15b)];}['getId'](){const _0x26dd20=_0x166382;return this['_base'][_0x26dd20(0x189)]();}['save'](){const _0x4bed67=_0x166382;var _0x165c93;return(_0x165c93=this[_0x4bed67(0x149)][_0x4bed67(0x195)](this[_0x4bed67(0x1e9)]()))==null?_0x1b13df[_0x4bed67(0x22a)](this['_base'][_0x4bed67(0x1e1)]()):_0x165c93;}['getName'](){const _0x904193=_0x166382;return this['_base'][_0x904193(0x1e1)]()[_0x904193(0x1d7)];}[_0x166382(0x151)](_0x464569){const _0x379668=_0x166382;this[_0x379668(0x17a)][_0x379668(0x1c6)](_0x1f43ec)[_0x379668(0x182)](_0x1e5b21['id'],{'unitId':this['getId'](),'name':_0x464569});}[_0x166382(0x196)](){const _0x2fdc0a=_0x166382;let _0x1c4cc7=this[_0x2fdc0a(0x15b)][_0x2fdc0a(0x1e1)]();return _0x1c4cc7['tableOrder'][_0x2fdc0a(0x172)](_0x556131=>_0x1c4cc7[_0x2fdc0a(0x1aa)][_0x556131])[_0x2fdc0a(0x1be)](_0x2ae733=>_0x2ae733)[_0x2fdc0a(0x172)](_0x1471ba=>this[_0x2fdc0a(0x17a)][_0x2fdc0a(0x1f6)](J,this,_0x1471ba['id'],this[_0x2fdc0a(0x17a)]));}[_0x166382(0x1f7)](_0x2608a0){const _0x1db959=_0x166382;let _0xfc159d=this[_0x1db959(0x15b)][_0x1db959(0x1e1)]()[_0x1db959(0x1aa)][_0x2608a0];return _0xfc159d?this[_0x1db959(0x17a)][_0x1db959(0x1f6)](J,this,_0xfc159d['id'],this[_0x1db959(0x17a)]):null;}[_0x166382(0x1a1)](_0x1cb5da){const _0xe40ebe=_0x166382;let _0x32366a=this[_0xe40ebe(0x15b)][_0xe40ebe(0x1e1)](),_0xb20125=Object[_0xe40ebe(0x168)](_0x32366a['tables'])[_0xe40ebe(0x161)](_0xd528d4=>_0xd528d4[_0xe40ebe(0x1d7)]===_0x1cb5da);return _0xb20125?this['_injector'][_0xe40ebe(0x1f6)](J,this,_0xb20125['id'],this[_0xe40ebe(0x17a)]):null;}[_0x166382(0x184)](_0x47fb68,_0x5539b3){const _0x2ba103=_0x166382;var _0x840a22;let _0x2956f4=this['_injector'][_0x2ba103(0x1c6)](_0x1f43ec),_0x58f883=_0x3f58f9({'id':_0x2decce(),'name':_0x47fb68,..._0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x22b)],'primaryFieldName':_0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x1d5)]}),_0xc20b4a=_0x1b13df['commonExtend'](_0x58f883,(_0x840a22=_0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x22b)])==null?{}:_0x840a22);if(!_0x2956f4['syncExecuteCommand'](_0x4ae76d['id'],{'unitId':this['_base'][_0x2ba103(0x189)](),'table':_0xc20b4a,'index':_0x5539b3==null?void 0x0:_0x5539b3[_0x2ba103(0x21f)]}))throw Error(_0x2ba103(0x203)+_0x47fb68+'\x22.');return this[_0x2ba103(0x17a)]['createInstance'](J,this,_0xc20b4a['id'],this[_0x2ba103(0x17a)]);}[_0x166382(0x1ba)](_0x29aaa3){const _0xbbd388=_0x166382;let _0x5829ae=this[_0xbbd388(0x17a)][_0xbbd388(0x1c6)](_0x1f43ec),_0x9724c7=typeof _0x29aaa3==_0xbbd388(0x175)?_0x29aaa3:_0x29aaa3[_0xbbd388(0x1e9)]();if(!_0x5829ae['syncExecuteCommand'](_0x365fcc['id'],{'unitId':this['_base'][_0xbbd388(0x189)](),'tableId':_0x9724c7}))throw Error(_0xbbd388(0x1cd)+_0x9724c7+'\x22.');return!0x0;}[_0x166382(0x1ab)](_0x2d7008,_0x4410be){const _0x3eeb70=_0x166382;var _0x4ad657,_0x2586fb;let _0x573abe=this[_0x3eeb70(0x17a)]['get'](_0x1f43ec),_0x2b6174=this[_0x3eeb70(0x15b)][_0x3eeb70(0x1e1)](),_0xe27439=typeof _0x2d7008==_0x3eeb70(0x175)?_0x2d7008:_0x2d7008[_0x3eeb70(0x1e9)](),_0x1e8bda=_0x2b6174[_0x3eeb70(0x1aa)][_0xe27439];if(!_0x1e8bda)throw Error('[FBase]:\x20table\x20\x22'+_0xe27439+_0x3eeb70(0x1c2));let _0x27feff=_0x2b6174[_0x3eeb70(0x17c)][_0x3eeb70(0x150)](_0xe27439)+0x1,_0x11111a=_0x457395(_0x1e8bda,{'id':_0x2decce(),'name':_0x1e8bda['name']+_0x3eeb70(0x18e),'includeRecords':(_0x4ad657=_0x4410be==null?void 0x0:_0x4410be[_0x3eeb70(0x1df)])!=null&&_0x4ad657,'regenerateViewIds':(_0x2586fb=_0x4410be==null?void 0x0:_0x4410be[_0x3eeb70(0x1b6)])!=null&&_0x2586fb});if(!_0x573abe[_0x3eeb70(0x182)](_0x4ae76d['id'],{'unitId':this['_base']['getUnitId'](),'table':_0x11111a,'index':_0x27feff}))throw Error(_0x3eeb70(0x193)+_0xe27439+'\x22.');return this[_0x3eeb70(0x17a)][_0x3eeb70(0x1f6)](J,this,_0x11111a['id'],this[_0x3eeb70(0x17a)]);}[_0x166382(0x171)](){const _0x2943e6=_0x166382;let _0x1f7602=this['_base'][_0x2943e6(0x1e1)]();return{'id':_0x1f7602['id'],'name':_0x1f7602[_0x2943e6(0x1d7)],'tables':this[_0x2943e6(0x196)]()['map'](_0x36f466=>_0x36f466[_0x2943e6(0x171)]())};}};Q=ye([Z(0x1,_0x165bb0(_0x5a7aee)),Z(0x2,_0x10705f)],Q);var be=class extends _0x91489c{[_0x166382(0x229)](){const _0x2a1394=_0x166382;this[_0x2a1394(0x208)](),this[_0x2a1394(0x198)]();}[_0x166382(0x153)](_0x696291={},_0xad997a){const _0x80736c=_0x166382;let _0xad92a=this[_0x80736c(0x17a)][_0x80736c(0x1c6)](_0x2d4867)['createUnit'](_0x7905cc[_0x80736c(0x1c0)],_0x696291,_0xad997a);return this['_injector'][_0x80736c(0x1f6)](Q,_0xad92a);}[_0x166382(0x1d9)](){const _0x16d2e1=_0x166382;let _0x23cb5b=this['_injector'][_0x16d2e1(0x1c6)](_0x2d4867)[_0x16d2e1(0x19b)](_0x7905cc['UNIVER_BASE']);return _0x23cb5b?this[_0x16d2e1(0x17a)][_0x16d2e1(0x1f6)](Q,_0x23cb5b):null;}[_0x166382(0x16b)](_0x2e4a9e){const _0x50e40f=_0x166382;let _0xb9c24e=this[_0x50e40f(0x17a)]['get'](_0x2d4867)[_0x50e40f(0x1cc)](_0x2e4a9e,_0x7905cc[_0x50e40f(0x1c0)]);return _0xb9c24e?this['_injector'][_0x50e40f(0x1f6)](Q,_0xb9c24e):null;}[_0x166382(0x21a)](){const _0x2ef7e6=_0x166382;return this[_0x2ef7e6(0x17a)][_0x2ef7e6(0x1c6)](_0x2d4867)[_0x2ef7e6(0x1bf)](_0x7905cc['UNIVER_BASE'])[_0x2ef7e6(0x172)](_0x52bee8=>this[_0x2ef7e6(0x17a)][_0x2ef7e6(0x1f6)](Q,_0x52bee8));}[_0x166382(0x198)](){const _0x2d2171=_0x166382;let _0x20c6f3=this[_0x2d2171(0x17a)][_0x2d2171(0x1c6)](_0x1f43ec);this['disposeWithMe'](this['registerEventHandler'](this[_0x2d2171(0x1b3)][_0x2d2171(0x1a5)],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x556d98=>{const _0x114dc1=_0x2d2171;if(_0x556d98['id']!==_0x4ae76d['id'])return;let {unitId:_0x1ea8e6,table:_0x411b5c,index:_0x509d89}=_0x556d98[_0x114dc1(0x140)],_0x19e5fd=this[_0x114dc1(0x16b)](_0x1ea8e6);if(!_0x19e5fd)return;let _0x29efd8={'base':_0x19e5fd,'table':_0x411b5c,'index':_0x509d89};this[_0x114dc1(0x13c)](this['Event']['BaseTableCreated'],_0x29efd8);}))),this[_0x2d2171(0x1a9)](this['registerEventHandler'](this[_0x2d2171(0x1b3)][_0x2d2171(0x157)],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x1babf4=>{const _0x39b0c8=_0x2d2171;if(_0x1babf4['id']!==_0x12c685['id'])return;let {unitId:_0x241cf7,tableId:_0x26f2fc,field:_0x3d5f4d,index:_0x3f71cd,viewIndexes:_0x247391}=_0x1babf4[_0x39b0c8(0x140)],_0x558b17=this[_0x39b0c8(0x16b)](_0x241cf7);if(!_0x558b17)return;let _0x2f2805=_0x558b17['getTableById'](_0x26f2fc);if(!_0x2f2805)return;let _0x2b5d84={'base':_0x558b17,'table':_0x2f2805,'field':_0x3d5f4d,'index':_0x3f71cd,'viewIndexes':_0x247391};this[_0x39b0c8(0x13c)](this[_0x39b0c8(0x1b3)][_0x39b0c8(0x157)],_0x2b5d84);}))),this[_0x2d2171(0x1a9)](this['registerEventHandler'](this[_0x2d2171(0x1b3)]['BaseTableRecordCreated'],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x2aa9d9=>{const _0x57b880=_0x2d2171;var _0x2a0f6a;if(_0x2aa9d9['id']!==_0x5d2235['id']&&_0x2aa9d9['id']!==_0x328b9a['id'])return;let _0x2c3596=_0x2aa9d9[_0x57b880(0x140)],{unitId:_0x21bf74,tableId:_0x5b4c6d}=_0x2c3596,_0x539142=(_0x2a0f6a=_0x2c3596[_0x57b880(0x1dc)])==null?[_0x2c3596[_0x57b880(0x20d)]]:_0x2a0f6a,_0x3d2c58=this[_0x57b880(0x16b)](_0x21bf74);if(!_0x3d2c58)return;let _0x40ff74=_0x3d2c58[_0x57b880(0x1f7)](_0x5b4c6d);if(!_0x40ff74)return;let _0x52fc1e={'base':_0x3d2c58,'table':_0x40ff74,'records':_0x539142};this[_0x57b880(0x13c)](this[_0x57b880(0x1b3)][_0x57b880(0x19e)],_0x52fc1e);}))),this[_0x2d2171(0x1a9)](this[_0x2d2171(0x1cb)](this[_0x2d2171(0x1b3)][_0x2d2171(0x1d3)],()=>_0x20c6f3['onCommandExecuted'](_0x2fd9dc=>{const _0x27ecf7=_0x2d2171;if(_0x2fd9dc['id']!==_0x44a3b0['id'])return;let {unitId:_0x3a2ca5,tableId:_0x395dac,view:_0x4a1c00,index:_0x3f46d3}=_0x2fd9dc[_0x27ecf7(0x140)],_0x5cc447=this[_0x27ecf7(0x16b)](_0x3a2ca5);if(!_0x5cc447)return;let _0x1f0d0e=_0x5cc447[_0x27ecf7(0x1f7)](_0x395dac);if(!_0x1f0d0e)return;let _0x808c4b={'base':_0x5cc447,'table':_0x1f0d0e,'view':_0x4a1c00,'index':_0x3f46d3};this['fireEvent'](this[_0x27ecf7(0x1b3)][_0x27ecf7(0x1d3)],_0x808c4b);}))),this[_0x2d2171(0x1a9)](this['registerEventHandler'](this[_0x2d2171(0x1b3)][_0x2d2171(0x16e)],()=>_0x20c6f3[_0x2d2171(0x21b)](_0x26ad6e=>{const _0x518fdc=_0x2d2171;if(_0x26ad6e['id']!==_0x5946f1['id'])return;let {unitId:_0x5acad8,tableId:_0x51ad84,recordId:_0x59f6b2,fieldId:_0x579914,value:_0x839738}=_0x26ad6e[_0x518fdc(0x140)],_0x558e70=this[_0x518fdc(0x16b)](_0x5acad8);if(!_0x558e70)return;let _0x4368e1=_0x558e70[_0x518fdc(0x1f7)](_0x51ad84);if(!_0x4368e1)return;let _0x39ad40=_0x4368e1[_0x518fdc(0x1e6)](_0x579914);if(!_0x39ad40)return;let _0x5b3ee8=_0x4368e1['getRecordById'](_0x59f6b2);if(!_0x5b3ee8)return;let _0x34b702={'base':_0x558e70,'table':_0x4368e1,'field':_0x39ad40,'record':_0x5b3ee8,'value':_0x839738};this['fireEvent'](this['Event']['BaseTableCellValueChanged'],_0x34b702);})));}[_0x166382(0x208)](){const _0x3a94c3=_0x166382;let _0x18c452=this[_0x3a94c3(0x17a)][_0x3a94c3(0x1c6)](_0x1f43ec);this[_0x3a94c3(0x1a9)](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x1d8)],()=>_0x18c452['beforeCommandExecuted'](_0x246b9b=>{const _0x48c169=_0x3a94c3;if(_0x246b9b['id']!==_0x4ae76d['id'])return;let {unitId:_0x45cb46,table:_0x3d1b4c,index:_0x22d45e}=_0x246b9b['params'],_0x26fd81=this[_0x48c169(0x16b)](_0x45cb46);if(!_0x26fd81)return;let _0x7a4619={'base':_0x26fd81,'table':_0x3d1b4c,'index':_0x22d45e};if(this['fireEvent'](this['Event']['BeforeBaseTableCreate'],_0x7a4619),_0x7a4619[_0x48c169(0x173)])throw new _0x1dc41b();}))),this['disposeWithMe'](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x1fd)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x10a0c5=>{const _0x809d9=_0x3a94c3;if(_0x10a0c5['id']!==_0x12c685['id'])return;let {unitId:_0x151b01,tableId:_0xcd21f8,field:_0x3a6dc0,index:_0x5bbed1,viewIndexes:_0x2ea2d0}=_0x10a0c5['params'],_0xb1f38f=this[_0x809d9(0x16b)](_0x151b01);if(!_0xb1f38f)return;let _0x12a1bc=_0xb1f38f[_0x809d9(0x1f7)](_0xcd21f8);if(!_0x12a1bc)return;let _0x326e79={'base':_0xb1f38f,'table':_0x12a1bc,'field':_0x3a6dc0,'index':_0x5bbed1,'viewIndexes':_0x2ea2d0};if(this[_0x809d9(0x13c)](this[_0x809d9(0x1b3)][_0x809d9(0x1fd)],_0x326e79),_0x326e79[_0x809d9(0x173)])throw new _0x1dc41b();}))),this[_0x3a94c3(0x1a9)](this['registerEventHandler'](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x158)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x4765c3=>{const _0x5aab2f=_0x3a94c3;var _0x16bf0a;if(_0x4765c3['id']!==_0x5d2235['id']&&_0x4765c3['id']!==_0x328b9a['id'])return;let _0x18eca6=_0x4765c3[_0x5aab2f(0x140)],{unitId:_0x750c8,tableId:_0x18066d}=_0x18eca6,_0x33af1b=(_0x16bf0a=_0x18eca6['records'])==null?[_0x18eca6[_0x5aab2f(0x20d)]]:_0x16bf0a,_0x2baa59=this[_0x5aab2f(0x16b)](_0x750c8);if(!_0x2baa59)return;let _0x205cf6=_0x2baa59[_0x5aab2f(0x1f7)](_0x18066d);if(!_0x205cf6)return;let _0x1c7d7c={'base':_0x2baa59,'table':_0x205cf6,'records':_0x33af1b};if(this[_0x5aab2f(0x13c)](this['Event'][_0x5aab2f(0x158)],_0x1c7d7c),_0x1c7d7c[_0x5aab2f(0x173)])throw new _0x1dc41b();}))),this[_0x3a94c3(0x1a9)](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x15e)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x1921ba=>{const _0x56ba52=_0x3a94c3;if(_0x1921ba['id']!==_0x44a3b0['id'])return;let {unitId:_0x318948,tableId:_0x352d6a,view:_0xcdcbe0,index:_0x493627}=_0x1921ba[_0x56ba52(0x140)],_0x53856e=this[_0x56ba52(0x16b)](_0x318948);if(!_0x53856e)return;let _0x5114f2=_0x53856e[_0x56ba52(0x1f7)](_0x352d6a);if(!_0x5114f2)return;let _0x1caea3={'base':_0x53856e,'table':_0x5114f2,'view':_0xcdcbe0,'index':_0x493627};if(this[_0x56ba52(0x13c)](this[_0x56ba52(0x1b3)][_0x56ba52(0x15e)],_0x1caea3),_0x1caea3['cancel'])throw new _0x1dc41b();}))),this[_0x3a94c3(0x1a9)](this[_0x3a94c3(0x1cb)](this[_0x3a94c3(0x1b3)][_0x3a94c3(0x22e)],()=>_0x18c452[_0x3a94c3(0x1e5)](_0x1022b1=>{const _0x39fcf1=_0x3a94c3;if(_0x1022b1['id']!==_0x5946f1['id'])return;let {unitId:_0x184897,tableId:_0x2ab433,recordId:_0xe45cc0,fieldId:_0x5dc223,value:_0x1f9515}=_0x1022b1[_0x39fcf1(0x140)],_0x61a3df=this['getBase'](_0x184897);if(!_0x61a3df)return;let _0x40ffc9=_0x61a3df[_0x39fcf1(0x1f7)](_0x2ab433);if(!_0x40ffc9)return;let _0x4f1367=_0x40ffc9[_0x39fcf1(0x1e6)](_0x5dc223);if(!_0x4f1367)return;let _0x596585=_0x40ffc9['getRecordById'](_0xe45cc0);if(!_0x596585)return;let _0x418f7d={'base':_0x61a3df,'table':_0x40ffc9,'field':_0x4f1367,'record':_0x596585,'value':_0x1f9515};if(this['fireEvent'](this[_0x39fcf1(0x1b3)][_0x39fcf1(0x22e)],_0x418f7d),_0x418f7d['cancel'])throw new _0x1dc41b();})));}};_0x91489c['extend'](be);var xe=class extends _0x21fd9b{get[_0x166382(0x221)](){return _0x7a8503;}get[_0x166382(0x199)](){return _0x3015f0;}get[_0x166382(0x15d)](){return _0x279e7b;}get[_0x166382(0x227)](){return U;}get[_0x166382(0x216)](){return _0x4f3b2f;}get[_0x166382(0x18a)](){return _0x46203c;}};_0x21fd9b[_0x166382(0x18c)](xe);var $=class extends _0x1edd02{get[_0x166382(0x1a5)](){const _0x218ab8=_0x166382;return _0x218ab8(0x1a5);}get['BeforeBaseTableCreate'](){const _0xb2973b=_0x166382;return _0xb2973b(0x1d8);}get[_0x166382(0x157)](){const _0x1e5ce2=_0x166382;return _0x1e5ce2(0x157);}get[_0x166382(0x1fd)](){const _0x1e482c=_0x166382;return _0x1e482c(0x1fd);}get[_0x166382(0x19e)](){const _0x2060d3=_0x166382;return _0x2060d3(0x19e);}get[_0x166382(0x158)](){const _0x55988b=_0x166382;return _0x55988b(0x158);}get[_0x166382(0x1d3)](){const _0x7c4dd3=_0x166382;return _0x7c4dd3(0x1d3);}get[_0x166382(0x15e)](){const _0x337d1b=_0x166382;return _0x337d1b(0x15e);}get['BaseTableCellValueChanged'](){return'BaseTableCellValueChanged';}get[_0x166382(0x22e)](){return'BeforeBaseTableCellValueChange';}};_0x1edd02['extend']($);export{U as BaseFieldKeyEnum,Q as FBase,J as FBaseTable,V as FBaseTableField,H as FBaseTableRange,K as FBaseTableRecord,q as FBaseTableView,$ as FBasesEventNameMixin,G as resolveBaseFieldKey,W as resolveBaseFieldValues};
1
+ const _0x336728=_0x52e5;(function(_0x416124,_0x15ac91){const _0x216814=_0x52e5,_0x2f7389=_0x416124();while(!![]){try{const _0x3a70e3=-parseInt(_0x216814(0x289))/0x1*(parseInt(_0x216814(0x1be))/0x2)+-parseInt(_0x216814(0x17f))/0x3+parseInt(_0x216814(0x242))/0x4+-parseInt(_0x216814(0x226))/0x5+parseInt(_0x216814(0x202))/0x6+-parseInt(_0x216814(0x20d))/0x7+parseInt(_0x216814(0x294))/0x8*(parseInt(_0x216814(0x2ae))/0x9);if(_0x3a70e3===_0x15ac91)break;else _0x2f7389['push'](_0x2f7389['shift']());}catch(_0x19c6ec){_0x2f7389['push'](_0x2f7389['shift']());}}}(_0xcde0,0x71752));import{ApplyBaseJson1Mutation as _0x5374e3,BaseConditionalColorRuleUpdateType as _0x43286c,BaseEventSource as _0x4fe3fa,BaseHierarchyErrorCode as _0x3d171b,BatchCreateBaseRecordsCommand as _0x144dc8,BatchDeleteBaseRecordsCommand as _0x20826e,ChangeBaseFieldTypeCommand as _0x753b97,CreateBaseChildRecordCommand as _0x5567bd,CreateBaseFieldCommand as _0x1978a1,CreateBaseRecordCommand as _0x22871f,CreateBaseTableCommand as _0x3cc0d1,CreateBaseViewCommand as _0x338c3b,DeleteBaseFieldCommand as _0x41894a,DeleteBaseRecordCommand as _0x384f53,DeleteBaseTableCommand as _0x13a13d,DeleteBaseViewCommand as _0x5d89f8,DuplicateBaseRecordCommand as _0x39fd7f,IBaseProjectionService as _0x460976,MoveBaseFieldCommand as _0x167fd9,MoveBaseHierarchyRecordCommand as _0x241dc3,MoveBaseViewCommand as _0x265b4d,RenameBaseTableCommand as _0x83c0cd,RenameBaseViewCommand as _0x65495d,SetBaseNameCommand as _0x3a2e4a,SetBaseRangeValuesCommand as _0x26fb58,SetBaseRecordValuesCommand as _0x298aea,SetBaseTableHierarchyFieldCommand as _0x3d3845,SetBaseViewFieldOrderCommand as _0x245f1a,SetBaseViewFieldVisibleCommand as _0x113ed1,SetBaseViewFieldWidthCommand as _0x5bb362,SetBaseViewFilterCommand as _0x19bf5c,SetBaseViewGroupCommand as _0x36027b,SetBaseViewSortCommand as _0x411c97,UpdateBaseCellCommand as _0x54f164,UpdateBaseFieldCommand as _0x274ee3,UpdateBaseRecordOrderCommand as _0x3a8712,UpdateBaseViewConditionalColorRulesCommand as _0x3b1b6b,UpdateBaseViewConfigCommand as _0x3cd319,buildBaseHierarchyIndex as _0xdaf857,copyBaseTableSnapshot as _0x5e421d,ensureBaseTableCellLayout as _0x1696cb,getActiveBaseHierarchyFieldIds as _0x12eab2,getBaseCellValue as _0x2904a9,getBaseHierarchyDeletePromotions as _0x3282d7,getRecordLinkFieldConfig as _0x366eec,matchesBaseCondition as _0x5e33be,parseRecordLinkIds as _0x1e19fe,resolveBaseHierarchyFieldId as _0x2ee0b8,resolveBaseRangeHierarchyPatches as _0x34fccc,searchBaseTable as _0xa27dde,serializeRecordLinkIds as _0x4005a5,validateBaseHierarchyRecordCreations as _0x3e5dd7,validateBaseHierarchyRecordPatches as _0x568123,validateRecordLinkValue as _0x107ab8}from'@univerjs-pro/bases';import{BASE_RECORD_ID_FIELD_ID as _0x2b3441,BaseConditionalColorOperator as _0x4e80c8,BaseConditionalColorTarget as _0x46b2d8,BaseConditionalDateMode as _0xd4945d,BaseFieldType as _0x33d599,BaseFilterConjunction as _0x5f2ca0,BaseFilterOperator as _0xf6848f,BaseHierarchyInvalidReason as _0x1c2958,BaseRecordLinkRole as _0x523fee,BaseSortDirection as _0x4baab9,BaseViewType as _0x35b90a,CanceledError as _0x10ac7b,ICommandService as _0x2d81ac,IResourceLoaderService as _0x246509,ImageSourceType as _0x1a211c,Inject as _0x25f6bc,Injector as _0x442045,Tools as _0x5bb98a,UniverInstanceType as _0x874f24,createDefaultBaseTableSnapshot as _0x16a351,generateRandomId as _0x2bd9cf}from'@univerjs/core';import{FEnum as _0x530ba6,FEventName as _0x23c09b,FUniver as _0x7df423}from'@univerjs/core/facade';import{UpsertHostExternalReferencesCommand as _0x46103d}from'@univerjs-pro/engine-formula';function F(_0x51c8be,_0x537c5e){return function(_0x577ffd,_0x3ee880){_0x537c5e(_0x577ffd,_0x3ee880,_0x51c8be);};}function I(_0x3f6a3c,_0x218778,_0x4e1bc4,_0x4f7425){const _0x1bd441=_0x52e5;var _0x57cb92=arguments[_0x1bd441(0x1b5)],_0x2fa42e=_0x57cb92<0x3?_0x218778:_0x4f7425===null?_0x4f7425=Object['getOwnPropertyDescriptor'](_0x218778,_0x4e1bc4):_0x4f7425,_0x3926bf;if(typeof Reflect==_0x1bd441(0x21a)&&typeof Reflect['decorate']==_0x1bd441(0x288))_0x2fa42e=Reflect['decorate'](_0x3f6a3c,_0x218778,_0x4e1bc4,_0x4f7425);else{for(var _0x385c81=_0x3f6a3c[_0x1bd441(0x1b5)]-0x1;_0x385c81>=0x0;_0x385c81--)(_0x3926bf=_0x3f6a3c[_0x385c81])&&(_0x2fa42e=(_0x57cb92<0x3?_0x3926bf(_0x2fa42e):_0x57cb92>0x3?_0x3926bf(_0x218778,_0x4e1bc4,_0x2fa42e):_0x3926bf(_0x218778,_0x4e1bc4))||_0x2fa42e);}return _0x57cb92>0x3&&_0x2fa42e&&Object[_0x1bd441(0x203)](_0x218778,_0x4e1bc4,_0x2fa42e),_0x2fa42e;}function _0xcde0(){const _0xc184eb=['getSort','beforeCommandExecuted','offset','getName','Auto','_fireBeforeHierarchyChange','isFinite','limit',',\x20max\x20columns:\x20','Failed\x20to\x20delete\x20table\x20\x22','getSchema','_getFieldIds','Attachment','UUID','BeforeBaseTableRecordCreate','cancel','createBase','[Base\x20Field\x20Facade]:\x20Formula\x20writes\x20require\x20{\x20externalReferences\x20}.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','AND','moveField','invalid','duplicate',':\x20\x22sourceType\x22\x20must\x20be\x20URL,\x20UUID,\x20or\x20BASE64.','getNumRows','unitId','getViews','deleteTable','getConditionalColorRules','syncExecuteCommand','RecordLink\x20fields\x20require\x20config\x20{\x20targetTableId,\x20multiple\x20}.','BaseFilterOperator','BeforeBaseTableCreate','getRange','_injector','commonExtend','getTable','map','getFieldByName','setFilter',',\x20range:\x20','\x22\x20must\x20be\x20a\x20non-empty\x20string\x20when\x20provided.',':\x20expected\x20an\x20object.','_getHierarchyEventContext','index','_getTable','primaryFieldId','getFieldById','search','addLinkedRecord','update','saveUnit','setName','2415840zLFjnl','defineProperty','deleteRecords','fieldOrder','getViewById','_commandService','Event','getTableById','trim','duplicateTable','getCurrentUnitOfType','4798283FktEtC','BaseSortDirection','_initBaseBeforeEvents','getUnitId','Failed\x20to\x20create\x20table\x20\x22','config','_recordId','hierarchyChanges','BeforeBaseHierarchyChange','URL','getSnapshot','\x20exceeds\x20range\x20size\x20','_collectDescendantIds','object','getVisibleFields','BaseTableCreated','getLinkedRecordIds','getProjection','getBases','BaseTableCellValueChanged','fieldSettings','fieldIds','BeforeBaseTableCellValueChange','_tableId','_viewId','4231720TKZEWs','[FRecord]:\x20record\x20\x22','direction','getRecordById','rules','move','parentByRecordId','orderedRecordIds','disposeWithMe','getRow','fireEvent','call','caseSensitive','_range','localeCompare','setGroup','BaseConditionalDateMode','_initBaseAfterEvents','getParent','BaseTableViewCreated','getId','params','table','endRow','Set','getFields','setValue','deleteProperty','291912JYbKIC','recordOrder','hasOwnProperty','[FRecord]:\x20failed\x20to\x20duplicate\x20record\x20\x22','registerEventHandler','_getRecord','_resourceLoaderService','setConditionalColorRules','records','addChild','_fieldId','includes','getDescendants','getNumColumns','visibleCardFieldIds','Formula\x20fields\x20require\x20options.externalReferences.\x20Use\x20[]\x20only\x20for\x20a\x20Host-local\x20formula.','find','setParent','startColumn','Failed\x20to\x20add\x20records','getTableId','width','deepClone','RecordId','_writeFormulaExternalReferences','BASE64','[FBaseRange]:\x20values\x20size\x20','getField','_resolveRecordIds','Failed\x20to\x20add\x20field\x20\x22','slice','type','Failed\x20to\x20create\x20view\x20\x22','BeforeBaseTableFieldCreate','\x22:\x20expected\x20an\x20array.','Date','mimeType','indexOf','Base\x20regex\x20filter\x20is\x20too\x20long.\x20Maximum\x20length\x20is\x20512.','base','\x22\x20must\x20be\x20a\x20non-negative\x20finite\x20number\x20when\x20provided.','push','getFieldSettings','BaseTableRecordCreated','isReadonly','Formula','fields','getType','description','Duplicate\x20Base\x20field\x20name:\x20','setHierarchyField','Gallery','BeforeBaseTableViewCreate','setValues','setConfig','createInstance','getDataRange','some','view','_table','BaseFilterConjunction','Failed\x20to\x20add\x20record\x20with\x20id\x20\x22','Clear','tableId','setDefaultValue','getValues','number','fromEntries',':\x20\x22','field','function','146469LqAIVu','insertTable','Failed\x20to\x20duplicate\x20table\x20\x22','views','conditions','hidden','conditionalColoring','queryRecords','Grid','primaryFieldName','getHierarchyFieldId','42928flnYSZ','BaseHierarchyChanged','reason','\x20Copy','[FBaseRange]:\x20table\x20does\x20not\x20exist.','\x22\x20has\x20invalid\x20config.','sourceType','addRecords','Kanban','Invalid\x20attachment\x20value\x20for\x20field\x20\x22','_projectionService','\x22\x20is\x20not\x20a\x20RecordLink\x20field.','save','getActiveBase','Name','getBase','flatMap','deleteConditionalColorRule','createdAt','setSort','\x22\x20does\x20not\x20exist.','data:','from','values','subtreeHeightByRecordId','_getHierarchyIndex','4491NDEuXi','setLinkedRecordIds',':\x20\x22url\x22\x20is\x20not\x20supported;\x20use\x20\x22source\x22.','Calendar','UNIVER_BASE','test','_getField','_inject','Facade','getTables','\x22\x20must\x20be\x20a\x20non-empty\x20string.','parentRecordId','2151930wBZgze','BaseFieldType','multiple','clearConditionalColorRules','_getView','startsWith','_base','getAncestors','updateConfig','_getRecordLinkField','tables','source','rowId','BaseConditionalColorOperator','matches','[FBaseRange]:\x20range\x20is\x20out\x20of\x20bounds.\x20Max\x20rows:\x20','RecordLink','recordId','name','getConfig','getFilter','addRecord','prototype','getPrimaryField','viewOrder','getTableByName','operator','getGroup','get','BaseConditionalColorTarget','fromCollab','every','getAllUnitsForType','now','max','valid','filter','createUnit','startRow','createView','childrenByParentId','getValue','setFieldVisible','isArray','getDescription','orderKey','tableOrder','viewId','externalReferences','_univerInstanceService','endColumn','Remote','_assertInBounds','value','length','notMatches','updatedAt','url','getRecords','record','Gantt','warn','BaseViewType','6FhQRnG','delete','[FRecord]:\x20invalid\x20RecordLink\x20value.','onCommandExecuted','BaseTableFieldCreated','fieldId','[FField]:\x20field\x20\x22','fieldKey','_initialize','sort','auto','string','changeType','rows','afterFieldId','system'];_0xcde0=function(){return _0xc184eb;};return _0xcde0();}let L=class{constructor(_0x4e2fb4,_0x1372c7,_0x348dee,_0x38eac8){const _0x21fddb=_0x52e5;this[_0x21fddb(0x185)]=_0x4e2fb4,this[_0x21fddb(0x27d)]=_0x1372c7,this[_0x21fddb(0x24c)]=_0x348dee,this[_0x21fddb(0x207)]=_0x38eac8;}[_0x336728(0x23a)](){const _0x1e1b3a=_0x336728;return this[_0x1e1b3a(0x24c)];}[_0x336728(0x25d)](){const _0x11b820=_0x336728;return this[_0x11b820(0x2b4)]();}[_0x336728(0x1d1)](){const _0x40f0b4=_0x336728;return this[_0x40f0b4(0x2b4)]()[_0x40f0b4(0x191)];}[_0x336728(0x271)](){const _0x499f5f=_0x336728;return this[_0x499f5f(0x2b4)]()['type'];}[_0x336728(0x192)](){const _0x405780=_0x336728;return this['_getField']()[_0x405780(0x212)];}['getDefaultValue'](){const _0x3855eb=_0x336728;return this[_0x3855eb(0x2b4)]()['defaultValue'];}[_0x336728(0x1ab)](){const _0x551eb5=_0x336728;return this[_0x551eb5(0x2b4)]()[_0x551eb5(0x272)];}[_0x336728(0x26e)](){const _0xb210e4=_0x336728;return!!this[_0xb210e4(0x2b4)]()['readonly'];}[_0x336728(0x201)](_0x309d6b){const _0x5711f5=_0x336728;return this[_0x5711f5(0x1ff)]({'name':_0x309d6b});}[_0x336728(0x278)](_0x2f88f4,_0x22bfd6){const _0x2db325=_0x336728;return this[_0x2db325(0x1ff)]({'config':_0x2f88f4},_0x22bfd6);}[_0x336728(0x282)](_0x4b0246){const _0x557ad1=_0x336728;return this[_0x557ad1(0x1ff)]({'defaultValue':_0x4b0246});}[_0x336728(0x1ff)](_0x49159b,_0x1a0b7d){const _0x437828=_0x336728;let _0x1374c0=this[_0x437828(0x2b4)]()[_0x437828(0x261)];return(_0x49159b[_0x437828(0x261)]??_0x1374c0)===_0x33d599['Formula']&&(Object[_0x437828(0x195)][_0x437828(0x244)][_0x437828(0x231)](_0x49159b,_0x437828(0x212))||_0x49159b['type']===_0x33d599[_0x437828(0x26f)])&&!this[_0x437828(0x25a)](_0x1a0b7d)?!0x1:this['_commandService'][_0x437828(0x1ea)](_0x274ee3['id'],{'unitId':this['_base'][_0x437828(0x23a)](),'tableId':this[_0x437828(0x27d)][_0x437828(0x23a)](),'fieldId':this['_fieldId'],'patch':_0x49159b});}[_0x336728(0x1ca)](_0x32ec0a,_0x5d06a9={},_0x49e791){const _0x292a26=_0x336728;return _0x32ec0a===_0x33d599[_0x292a26(0x26f)]&&!this[_0x292a26(0x25a)](_0x49e791)?!0x1:this[_0x292a26(0x207)][_0x292a26(0x1ea)](_0x753b97['id'],{'unitId':this[_0x292a26(0x185)][_0x292a26(0x23a)](),'tableId':this[_0x292a26(0x27d)][_0x292a26(0x23a)](),'fieldId':this[_0x292a26(0x24c)],'input':{'type':_0x32ec0a,'config':_0x5d06a9}});}[_0x336728(0x1bf)](){const _0x17d55a=_0x336728;return this[_0x17d55a(0x207)]['syncExecuteCommand'](_0x41894a['id'],{'unitId':this[_0x17d55a(0x185)]['getId'](),'tableId':this[_0x17d55a(0x27d)]['getId'](),'fieldId':this[_0x17d55a(0x24c)]});}['move'](_0x133438){const _0x454965=_0x336728;return this[_0x454965(0x207)][_0x454965(0x1ea)](_0x167fd9['id'],{'unitId':this[_0x454965(0x185)]['getId'](),'tableId':this[_0x454965(0x27d)][_0x454965(0x23a)](),'fieldId':this[_0x454965(0x24c)],'target':_0x133438});}[_0x336728(0x2b4)](){const _0x2302cc=_0x336728;let _0x34d8e3=this[_0x2302cc(0x27d)]['getTable']()[_0x2302cc(0x270)][this[_0x2302cc(0x24c)]];if(!_0x34d8e3)throw Error(_0x2302cc(0x1c4)+this['_fieldId']+_0x2302cc(0x2a8));return _0x34d8e3;}[_0x336728(0x25a)](_0x5945ee){const _0x29896b=_0x336728;if(!_0x5945ee||!Array[_0x29896b(0x1aa)](_0x5945ee[_0x29896b(0x1af)]))return console[_0x29896b(0x1bc)](_0x29896b(0x1df)),!0x1;if(_0x5945ee[_0x29896b(0x1af)][_0x29896b(0x1b5)]===0x0)return!0x0;let _0x559b67=this[_0x29896b(0x207)][_0x29896b(0x1ea)](_0x46103d['id'],{'unitId':this[_0x29896b(0x185)]['getId'](),'references':_0x5945ee[_0x29896b(0x1af)]});return _0x559b67||console[_0x29896b(0x1bc)]('[Base\x20Field\x20Facade]:\x20Failed\x20to\x20bind\x20External\x20References.'),_0x559b67;}};L=I([F(0x3,_0x2d81ac)],L);let R=function(_0x3a51bd){const _0x570dbd=_0x336728;return _0x3a51bd['Id']='id',_0x3a51bd[_0x570dbd(0x2a2)]='name',_0x3a51bd[_0x570dbd(0x1d2)]=_0x570dbd(0x1c8),_0x3a51bd;}({});function z(_0x55e82c){const _0x39324e=_0x336728;return!!(_0x55e82c&&_0x55e82c[_0x39324e(0x1cd)]!==!0x0&&_0x55e82c[_0x39324e(0x261)]!==_0x33d599[_0x39324e(0x259)]);}function B(_0x27b8c0,_0x36d804,_0x495ca0='id'){if(!_0x36d804)return{};let _0xaa68e9={};return Object['entries'](_0x36d804)['forEach'](([_0x9d5a2e,_0x9d0599])=>{let _0x3b2ef3=H(_0x27b8c0,_0x9d5a2e,_0x495ca0);_0xaa68e9[_0x3b2ef3]=V(_0x27b8c0['fields'][_0x3b2ef3],_0x9d0599);}),_0xaa68e9;}function V(_0x2763bb,_0xbfab5d){const _0x1e7628=_0x336728;if((_0x2763bb==null?void 0x0:_0x2763bb[_0x1e7628(0x261)])!==_0x33d599[_0x1e7628(0x1da)]||_0xbfab5d==null)return _0xbfab5d;if(!Array[_0x1e7628(0x1aa)](_0xbfab5d))throw TypeError(_0x1e7628(0x29d)+_0x2763bb[_0x1e7628(0x191)]+_0x1e7628(0x264));return _0xbfab5d[_0x1e7628(0x1f2)]((_0x4dac29,_0x20b64a)=>We(_0x2763bb,_0x4dac29,_0x20b64a));}function H(_0x4f8a7a,_0x3b45e2,_0x25113f){const _0x10faa2=_0x336728;if(_0x25113f==='id'||_0x25113f===_0x10faa2(0x1c8)&&_0x4f8a7a['fields'][_0x3b45e2])return _0x3b45e2;let _0xdb01f4=Object['values'](_0x4f8a7a[_0x10faa2(0x270)])[_0x10faa2(0x1a3)](_0x2a7aad=>_0x2a7aad[_0x10faa2(0x191)]===_0x3b45e2);if(_0xdb01f4[_0x10faa2(0x1b5)]===0x1)return _0xdb01f4[0x0]['id'];throw _0xdb01f4['length']>0x1?Error(_0x10faa2(0x273)+_0x3b45e2):Error('Base\x20field\x20not\x20found:\x20'+_0x3b45e2);}function We(_0x1ccb83,_0x4bfe73,_0x5454f2){const _0x330d93=_0x336728;let _0xc735b6='Invalid\x20attachment\x20at\x20index\x20'+_0x5454f2+'\x20for\x20field\x20\x22'+_0x1ccb83[_0x330d93(0x191)]+'\x22';if(!Ke(_0x4bfe73))throw TypeError(_0xc735b6+_0x330d93(0x1f7));if(_0x330d93(0x1b8)in _0x4bfe73)throw TypeError(_0xc735b6+_0x330d93(0x2b0));if('type'in _0x4bfe73)throw TypeError(_0xc735b6+':\x20\x22type\x22\x20is\x20not\x20supported;\x20use\x20\x22mimeType\x22.');let _0x5f5654=U(_0x4bfe73['id'],_0xc735b6,'id'),_0x18e2d9=U(_0x4bfe73[_0x330d93(0x191)],_0xc735b6,_0x330d93(0x191)),_0x42a205=U(_0x4bfe73[_0x330d93(0x18a)],_0xc735b6,_0x330d93(0x18a));return{'id':_0x5f5654,'name':_0x18e2d9,'source':_0x42a205,'sourceType':Ge(_0x4bfe73[_0x330d93(0x29a)],_0x42a205,_0xc735b6),...W(_0x4bfe73,_0x330d93(0x266),_0xc735b6),...G(_0x4bfe73,'size',_0xc735b6),...G(_0x4bfe73,_0x330d93(0x257),_0xc735b6),...G(_0x4bfe73,'height',_0xc735b6),...W(_0x4bfe73,'thumbnail',_0xc735b6)};}function Ge(_0x13210a,_0x4c5fb5,_0x218305){const _0x5d852e=_0x336728;if(_0x13210a==null)return _0x4c5fb5[_0x5d852e(0x184)](_0x5d852e(0x2a9))?_0x1a211c[_0x5d852e(0x25b)]:_0x1a211c[_0x5d852e(0x216)];if(_0x13210a===_0x1a211c[_0x5d852e(0x216)]||_0x13210a===_0x1a211c[_0x5d852e(0x1db)]||_0x13210a===_0x1a211c[_0x5d852e(0x25b)])return _0x13210a;throw TypeError(_0x218305+_0x5d852e(0x1e4));}function U(_0x294c8a,_0x11ed20,_0x49c400){const _0x3774de=_0x336728;if(typeof _0x294c8a!='string'||!_0x294c8a[_0x3774de(0x20a)]())throw TypeError(_0x11ed20+':\x20\x22'+_0x49c400+_0x3774de(0x17d));return _0x294c8a;}function W(_0x5ccef6,_0x22dd0c,_0x3e7b19){const _0x377e2a=_0x336728;let _0x207520=_0x5ccef6[_0x22dd0c];if(_0x207520==null)return{};if(typeof _0x207520!='string'||!_0x207520[_0x377e2a(0x20a)]())throw TypeError(_0x3e7b19+_0x377e2a(0x286)+_0x22dd0c+_0x377e2a(0x1f6));return{[_0x22dd0c]:_0x207520};}function G(_0x56b86f,_0x36faad,_0x3a4177){const _0x3b7ade=_0x336728;let _0x152e9a=_0x56b86f[_0x36faad];if(_0x152e9a==null)return{};if(typeof _0x152e9a!=_0x3b7ade(0x284)||!Number[_0x3b7ade(0x1d4)](_0x152e9a)||_0x152e9a<0x0)throw TypeError(_0x3a4177+_0x3b7ade(0x286)+_0x36faad+_0x3b7ade(0x26a));return{[_0x36faad]:_0x152e9a};}function Ke(_0x50ad13){const _0x4aafcc=_0x336728;return typeof _0x50ad13==_0x4aafcc(0x21a)&&!!_0x50ad13&&!Array[_0x4aafcc(0x1aa)](_0x50ad13);}var K;let q=K=class{constructor(_0x2797d9,_0x2e7bb7,_0x198cf8,_0x471d86,_0x490b31){const _0x44fd88=_0x336728;this['_base']=_0x2797d9,this[_0x44fd88(0x27d)]=_0x2e7bb7,this[_0x44fd88(0x233)]=_0x198cf8,this['_inject']=_0x471d86,this[_0x44fd88(0x207)]=_0x490b31,this[_0x44fd88(0x1b3)]();}['getBaseId'](){const _0x38d883=_0x336728;return this[_0x38d883(0x185)][_0x38d883(0x23a)]();}[_0x336728(0x256)](){const _0x15ed3a=_0x336728;return this[_0x15ed3a(0x27d)][_0x15ed3a(0x23a)]();}[_0x336728(0x1ee)](){const _0x426107=_0x336728;return{...this[_0x426107(0x233)]};}[_0x336728(0x22f)](){const _0x3a6811=_0x336728;return this[_0x3a6811(0x233)][_0x3a6811(0x1a5)];}['getColumn'](){const _0x4c6e6d=_0x336728;return this['_range'][_0x4c6e6d(0x254)];}[_0x336728(0x1e5)](){const _0xe06983=_0x336728;return this['_range'][_0xe06983(0x23d)]-this[_0xe06983(0x233)][_0xe06983(0x1a5)]+0x1;}[_0x336728(0x24f)](){const _0x1c3293=_0x336728;return this[_0x1c3293(0x233)][_0x1c3293(0x1b1)]-this['_range'][_0x1c3293(0x254)]+0x1;}[_0x336728(0x283)](){const _0x20501c=_0x336728;let _0x451523=this['_getTable'](),_0x2a3c0d=this[_0x20501c(0x1d9)](_0x451523),_0x55b023=[];for(let _0x483194=this[_0x20501c(0x233)][_0x20501c(0x1a5)];_0x483194<=this[_0x20501c(0x233)][_0x20501c(0x23d)];_0x483194++){var _0x277f0a;let _0x4eb6c0=(_0x277f0a=_0x451523[_0x20501c(0x18b)])==null?void 0x0:_0x277f0a[_0x483194],_0x5aeb43=[];for(let _0x576f90=this[_0x20501c(0x233)]['startColumn'];_0x576f90<=this[_0x20501c(0x233)][_0x20501c(0x1b1)];_0x576f90++){let _0x3f51d8=_0x2a3c0d[_0x576f90];_0x5aeb43['push'](_0x4eb6c0&&_0x3f51d8?_0x2904a9(_0x451523,_0x4eb6c0,_0x3f51d8):null);}_0x55b023['push'](_0x5aeb43);}return _0x55b023;}[_0x336728(0x1a8)](){const _0x5ecda4=_0x336728;var _0x2fd912;return((_0x2fd912=this[_0x5ecda4(0x283)]()[0x0])==null?void 0x0:_0x2fd912[0x0])??null;}[_0x336728(0x240)](_0x239c6c){const _0x238357=_0x336728;return this[_0x238357(0x277)]([[_0x239c6c]]);}['setValues'](_0x2e0a04){const _0x4b1626=_0x336728;let _0x38b4f8=this['getNumRows'](),_0x3dfea3=this[_0x4b1626(0x24f)]();if(_0x2e0a04['length']>_0x38b4f8||_0x2e0a04[_0x4b1626(0x27b)](_0x1b0422=>_0x1b0422[_0x4b1626(0x1b5)]>_0x3dfea3)){var _0x11a10b;throw Error(_0x4b1626(0x25c)+_0x2e0a04[_0x4b1626(0x1b5)]+'x'+(((_0x11a10b=_0x2e0a04[0x0])==null?void 0x0:_0x11a10b[_0x4b1626(0x1b5)])??0x0)+_0x4b1626(0x218)+_0x38b4f8+'x'+_0x3dfea3+'.');}let _0x30c32a=this['_getTable'](),_0x5062e2=this[_0x4b1626(0x1d9)](_0x30c32a),_0x23b380=_0x2e0a04[_0x4b1626(0x2a4)]((_0x377079,_0x1dbf0a)=>_0x377079[_0x4b1626(0x1f2)]((_0x5b8280,_0x2c9f7a)=>{const _0x17d1c4=_0x4b1626;var _0x2fbbc9;let _0x3fcc3e=this['_range'][_0x17d1c4(0x1a5)]+_0x1dbf0a,_0x2c0716=_0x5062e2[this[_0x17d1c4(0x233)][_0x17d1c4(0x254)]+_0x2c9f7a],_0x342631=(_0x2fbbc9=_0x30c32a[_0x17d1c4(0x18b)])==null?void 0x0:_0x2fbbc9[_0x3fcc3e];if(!_0x2c0716||!_0x342631)throw Error('[FBaseRange]:\x20cannot\x20resolve\x20the\x20public\x20Base\x20range\x20address.');return{'recordId':_0x342631,'fieldId':_0x2c0716,'value':_0x5b8280};}));return this[_0x4b1626(0x207)][_0x4b1626(0x1ea)](_0x26fb58['id'],{'unitId':this[_0x4b1626(0x185)]['getId'](),'tableId':this[_0x4b1626(0x27d)][_0x4b1626(0x23a)](),'patches':_0x23b380,'source':_0x4fe3fa[_0x4b1626(0x2b6)]});}['clear'](){const _0xb1744f=_0x336728;return this[_0xb1744f(0x277)](Array[_0xb1744f(0x2aa)]({'length':this[_0xb1744f(0x1e5)]()},()=>Array[_0xb1744f(0x2aa)]({'length':this[_0xb1744f(0x24f)]()},()=>null)));}['offset'](_0xb6dff2,_0x14a086,_0x513fc1=this[_0x336728(0x1e5)](),_0x3d6aec=this[_0x336728(0x24f)]()){const _0xd6ec64=_0x336728;return this[_0xd6ec64(0x2b5)][_0xd6ec64(0x279)](K,this['_base'],this[_0xd6ec64(0x27d)],{'startRow':this[_0xd6ec64(0x233)][_0xd6ec64(0x1a5)]+_0xb6dff2,'startColumn':this['_range'][_0xd6ec64(0x254)]+_0x14a086,'endRow':this[_0xd6ec64(0x233)]['startRow']+_0xb6dff2+_0x513fc1-0x1,'endColumn':this[_0xd6ec64(0x233)][_0xd6ec64(0x254)]+_0x14a086+_0x3d6aec-0x1},this['_inject']);}[_0x336728(0x1fa)](){const _0x4a3ae4=_0x336728;let _0x3f6d16=this[_0x4a3ae4(0x27d)][_0x4a3ae4(0x1f1)]();if(!_0x3f6d16)throw Error(_0x4a3ae4(0x298));return _0x1696cb(_0x3f6d16);}[_0x336728(0x1b3)](){const _0x22df94=_0x336728;var _0x284879;let _0x4484df=this['_getTable'](),_0x4e60c=((_0x284879=_0x4484df[_0x22df94(0x243)])==null?void 0x0:_0x284879[_0x22df94(0x1b5)])??0x0,_0x3fac47=this[_0x22df94(0x1d9)](_0x4484df)[_0x22df94(0x1b5)];if(this[_0x22df94(0x233)]['startRow']<0x0||this[_0x22df94(0x233)]['startColumn']<0x0||this[_0x22df94(0x233)]['endRow']<this[_0x22df94(0x233)]['startRow']||this[_0x22df94(0x233)][_0x22df94(0x1b1)]<this[_0x22df94(0x233)][_0x22df94(0x254)]||this[_0x22df94(0x233)]['endRow']>=Math[_0x22df94(0x1a1)](_0x4e60c,0x1)||this[_0x22df94(0x233)][_0x22df94(0x1b1)]>=Math[_0x22df94(0x1a1)](_0x3fac47,0x1))throw Error(_0x22df94(0x18e)+_0x4e60c+_0x22df94(0x1d6)+_0x3fac47+_0x22df94(0x1f5)+JSON['stringify'](this['_range'])+'.');}[_0x336728(0x1d9)](_0x23c909){const _0x22032a=_0x336728;return _0x23c909[_0x22032a(0x205)][_0x22032a(0x1a3)](_0x494663=>z(_0x23c909[_0x22032a(0x270)][_0x494663]));}};q=K=I([F(0x4,_0x2d81ac)],q);var J;let Y=J=class{constructor(_0x3064f7,_0x471e1f,_0x3a6a27,_0xb3f44c,_0x565e01){const _0x161f7c=_0x336728;this[_0x161f7c(0x185)]=_0x3064f7,this[_0x161f7c(0x27d)]=_0x471e1f,this[_0x161f7c(0x213)]=_0x3a6a27,this[_0x161f7c(0x2b5)]=_0xb3f44c,this['_commandService']=_0x565e01;}[_0x336728(0x23a)](){const _0x4a41fe=_0x336728;return this[_0x4a41fe(0x213)];}['getRecord'](){const _0x4cc80c=_0x336728;return{...this[_0x4cc80c(0x247)](),'values':this['getValues']()};}[_0x336728(0x1a8)](_0x144710){const _0x4ef753=_0x336728;return z(this[_0x4ef753(0x27d)][_0x4ef753(0x1f1)]()[_0x4ef753(0x270)][_0x144710])?this[_0x4ef753(0x247)]()['values'][_0x144710]??null:null;}[_0x336728(0x283)](){const _0x5720f2=_0x336728;let _0x25783d=this[_0x5720f2(0x27d)][_0x5720f2(0x1f1)]();return Object[_0x5720f2(0x285)](Object['entries'](this['_getRecord']()[_0x5720f2(0x2ab)])['filter'](([_0x2a3cb7])=>z(_0x25783d[_0x5720f2(0x270)][_0x2a3cb7])));}['setValue'](_0x5b070a,_0x1d523e){const _0x588582=_0x336728;let _0x3a8924=this[_0x588582(0x27d)][_0x588582(0x1f1)]()[_0x588582(0x270)][_0x5b070a];return this['_commandService'][_0x588582(0x1ea)](_0x54f164['id'],{'unitId':this[_0x588582(0x185)][_0x588582(0x23a)](),'tableId':this[_0x588582(0x27d)][_0x588582(0x23a)](),'recordId':this[_0x588582(0x213)],'fieldId':_0x5b070a,'value':V(_0x3a8924,_0x1d523e),'source':_0x4fe3fa[_0x588582(0x2b6)]});}['setAttachments'](_0x3adab5,_0x44dfdf){const _0x514e45=_0x336728;return this['setValue'](_0x3adab5,_0x44dfdf[_0x514e45(0x1f2)](_0xc90518=>({..._0xc90518})));}[_0x336728(0x277)](_0x41d2ee,_0x3596c0='id'){const _0x4bd61c=_0x336728;let _0x219587=this[_0x4bd61c(0x27d)]['getTable'](),_0x51f0fc=[{'recordId':this[_0x4bd61c(0x213)],'values':B(_0x219587,_0x41d2ee,_0x3596c0)}];return this[_0x4bd61c(0x207)][_0x4bd61c(0x1ea)](_0x298aea['id'],{'unitId':this[_0x4bd61c(0x185)]['getId'](),'tableId':this[_0x4bd61c(0x27d)][_0x4bd61c(0x23a)](),'patches':_0x51f0fc,'source':_0x4fe3fa[_0x4bd61c(0x2b6)]});}['delete'](){const _0x49f0cb=_0x336728;return this[_0x49f0cb(0x207)]['syncExecuteCommand'](_0x384f53['id'],{'unitId':this[_0x49f0cb(0x185)]['getId'](),'tableId':this['_table'][_0x49f0cb(0x23a)](),'recordId':this[_0x49f0cb(0x213)],'source':_0x4fe3fa[_0x49f0cb(0x2b6)]});}[_0x336728(0x1e3)](_0x39f7dd){const _0x236a01=_0x336728;let _0x5059a3={...this['_getRecord'](),..._0x39f7dd,'id':_0x2bd9cf(0x6)};_0x5059a3[_0x236a01(0x2ab)]={..._0x5059a3[_0x236a01(0x2ab)],..._0x39f7dd==null?void 0x0:_0x39f7dd['values']},Reflect[_0x236a01(0x241)](_0x5059a3[_0x236a01(0x2ab)],_0x2b3441);let _0x366d3e=Date[_0x236a01(0x1a0)]();if(_0x5059a3[_0x236a01(0x1ac)]||=''+_0x366d3e,_0x5059a3['createdAt']||=_0x366d3e,_0x5059a3[_0x236a01(0x1b7)]||=_0x366d3e,!this[_0x236a01(0x207)]['syncExecuteCommand'](_0x39fd7f['id'],{'unitId':this[_0x236a01(0x185)][_0x236a01(0x23a)](),'tableId':this[_0x236a01(0x27d)][_0x236a01(0x23a)](),'sourceRecordId':this[_0x236a01(0x213)],'record':_0x5059a3,'source':_0x4fe3fa[_0x236a01(0x2b6)]}))throw Error(_0x236a01(0x245)+this[_0x236a01(0x213)]+'\x22.');return this[_0x236a01(0x2b5)][_0x236a01(0x279)](J,this['_base'],this[_0x236a01(0x27d)],_0x5059a3['id'],this[_0x236a01(0x2b5)]);}['setOrderKey'](_0x3d9d31){const _0x1e89ce=_0x336728;return this[_0x1e89ce(0x207)][_0x1e89ce(0x1ea)](_0x3a8712['id'],{'unitId':this[_0x1e89ce(0x185)]['getId'](),'tableId':this['_table'][_0x1e89ce(0x23a)](),'recordId':this['_recordId'],'orderKey':_0x3d9d31});}['getLinkedRecordIds'](_0x5e8d78){let _0x233a60=this['_getRecordLinkField'](_0x5e8d78);return _0x1e19fe(this['getValue'](_0x233a60['id']));}[_0x336728(0x2af)](_0x45346b,_0x475340){const _0x167a8b=_0x336728;let _0x1a0a3c=this['_getRecordLinkField'](_0x45346b),_0x23ca70=_0x4005a5(_0x475340),_0x2e8af0=_0x107ab8(this[_0x167a8b(0x185)][_0x167a8b(0x2a3)]()[_0x167a8b(0x217)](),_0x1a0a3c,_0x23ca70);if(!_0x2e8af0[_0x167a8b(0x1a2)])throw Error(_0x2e8af0[_0x167a8b(0x296)]??_0x167a8b(0x1c0));return this[_0x167a8b(0x207)][_0x167a8b(0x1ea)](_0x54f164['id'],{'unitId':this[_0x167a8b(0x185)]['getId'](),'tableId':this[_0x167a8b(0x27d)][_0x167a8b(0x23a)](),'recordId':this[_0x167a8b(0x213)],'fieldId':_0x45346b,'value':_0x23ca70,'source':_0x4fe3fa[_0x167a8b(0x2b6)]});}[_0x336728(0x1fe)](_0x28ab5f,_0x52a9ad){const _0xc100=_0x336728;let _0x24639e=_0x366eec(this[_0xc100(0x188)](_0x28ab5f));if(!_0x24639e)throw Error('[FRecord]:\x20RecordLink\x20field\x20\x22'+_0x28ab5f+_0xc100(0x299));let _0xfc5a94=this[_0xc100(0x21d)](_0x28ab5f);return _0x24639e[_0xc100(0x181)]&&_0xfc5a94[_0xc100(0x24d)](_0x52a9ad)?!0x0:this['setLinkedRecordIds'](_0x28ab5f,_0x24639e[_0xc100(0x181)]?[..._0xfc5a94,_0x52a9ad]:[_0x52a9ad]);}['removeLinkedRecord'](_0x24eb43,_0x4c8494){const _0x4b3b5d=_0x336728;let _0x37c997=this[_0x4b3b5d(0x21d)](_0x24eb43);return!_0x37c997[_0x4b3b5d(0x24d)](_0x4c8494)||this[_0x4b3b5d(0x2af)](_0x24eb43,_0x37c997[_0x4b3b5d(0x1a3)](_0x398e84=>_0x398e84!==_0x4c8494));}[_0x336728(0x238)](_0x59011c){const _0x125be7=_0x336728;let _0x536e7=this[_0x125be7(0x2ad)](_0x59011c)[_0x125be7(0x22c)][_0x125be7(0x19b)](this[_0x125be7(0x213)])??null;return _0x536e7?this[_0x125be7(0x27d)][_0x125be7(0x229)](_0x536e7):null;}['getChildren'](_0x3e0257){const _0x41fbbf=_0x336728;return(this['_getHierarchyIndex'](_0x3e0257)[_0x41fbbf(0x1a7)][_0x41fbbf(0x19b)](this[_0x41fbbf(0x213)])??[])[_0x41fbbf(0x2a4)](_0x4ca54b=>{const _0x46c286=_0x41fbbf;let _0x2db3a8=this[_0x46c286(0x27d)][_0x46c286(0x229)](_0x4ca54b);return _0x2db3a8?[_0x2db3a8]:[];});}[_0x336728(0x186)](_0x593157){const _0x5797d5=_0x336728;let _0x37ac8c=this[_0x5797d5(0x2ad)](_0x593157),_0x682111=[],_0xbb4614=_0x37ac8c[_0x5797d5(0x22c)][_0x5797d5(0x19b)](this['_recordId'])??null;for(;_0xbb4614;){let _0x1f6179=this[_0x5797d5(0x27d)]['getRecordById'](_0xbb4614);_0x1f6179&&_0x682111['push'](_0x1f6179),_0xbb4614=_0x37ac8c[_0x5797d5(0x22c)]['get'](_0xbb4614)??null;}return _0x682111;}[_0x336728(0x24e)](_0x2b1bc1){const _0x288d9d=_0x336728;let _0x5596c2=this[_0x288d9d(0x2ad)](_0x2b1bc1),_0xf66e60=_0x5596c2[_0x288d9d(0x22d)][_0x288d9d(0x267)](this['_recordId']),_0x40686b=_0x5596c2[_0x288d9d(0x2ac)]['has'](this[_0x288d9d(0x213)])?this[_0x288d9d(0x219)](_0x5596c2[_0x288d9d(0x1a7)],this[_0x288d9d(0x213)]):[];return _0xf66e60<0x0?[]:_0x40686b['flatMap'](_0x74b6b1=>{const _0x68da72=_0x288d9d;let _0x558ddc=this['_table'][_0x68da72(0x229)](_0x74b6b1);return _0x558ddc?[_0x558ddc]:[];});}[_0x336728(0x253)](_0x1b7c05,_0x5df818,_0x519de7){const _0x2944cf=_0x336728;return this[_0x2944cf(0x207)]['syncExecuteCommand'](_0x241dc3['id'],{'unitId':this[_0x2944cf(0x185)][_0x2944cf(0x23a)](),'tableId':this[_0x2944cf(0x27d)][_0x2944cf(0x23a)](),'fieldId':_0x1b7c05,'recordId':this[_0x2944cf(0x213)],'parentRecordId':_0x5df818,'orderKey':_0x519de7,'source':_0x4fe3fa['Facade']});}[_0x336728(0x24b)](_0x5a01e2,_0x3016b9,_0x59a168='id',_0x5e177e){const _0x5ae890=_0x336728;let _0x1a380c=this['_table'][_0x5ae890(0x1f1)](),_0x5a5b19=Date[_0x5ae890(0x1a0)](),_0x32fda4={..._0x5e177e,'id':_0x2bd9cf(0x6),'values':B(_0x1a380c,_0x3016b9,_0x59a168),'orderKey':(_0x5e177e==null?void 0x0:_0x5e177e[_0x5ae890(0x1ac)])||''+_0x5a5b19,'createdAt':(_0x5e177e==null?void 0x0:_0x5e177e['createdAt'])||_0x5a5b19,'updatedAt':(_0x5e177e==null?void 0x0:_0x5e177e[_0x5ae890(0x1b7)])||_0x5a5b19};if(!this[_0x5ae890(0x207)]['syncExecuteCommand'](_0x5567bd['id'],{'unitId':this[_0x5ae890(0x185)][_0x5ae890(0x23a)](),'tableId':this['_table'][_0x5ae890(0x23a)](),'fieldId':_0x5a01e2,'parentRecordId':this[_0x5ae890(0x213)],'record':_0x32fda4,'source':_0x4fe3fa[_0x5ae890(0x2b6)]}))throw Error('[FRecord]:\x20failed\x20to\x20create\x20child\x20under\x20\x22'+this[_0x5ae890(0x213)]+'\x22.');return this['_inject'][_0x5ae890(0x279)](J,this[_0x5ae890(0x185)],this[_0x5ae890(0x27d)],_0x32fda4['id'],this[_0x5ae890(0x2b5)]);}[_0x336728(0x2ad)](_0x176378){const _0x17fec3=_0x336728;return _0xdaf857(this[_0x17fec3(0x27d)]['getTable'](),_0x176378);}['_collectDescendantIds'](_0xc099e1,_0x20e468){let _0x31c498=[],_0x51364e=_0x29cb27=>{const _0x44eb36=_0x52e5;for(let _0x3cadeb of _0xc099e1[_0x44eb36(0x19b)](_0x29cb27)??[])_0x31c498[_0x44eb36(0x26b)](_0x3cadeb),_0x51364e(_0x3cadeb);};return _0x51364e(_0x20e468),_0x31c498;}[_0x336728(0x247)](){const _0x513e7f=_0x336728;let _0x994a1f=this[_0x513e7f(0x27d)]['getTable']()['records'][this[_0x513e7f(0x213)]];if(!_0x994a1f)throw Error(_0x513e7f(0x227)+this['_recordId']+_0x513e7f(0x2a8));return _0x994a1f;}[_0x336728(0x188)](_0x490015){const _0x1a7fde=_0x336728;let _0x651363=this['_table']['getTable']()[_0x1a7fde(0x270)][_0x490015];if(!_0x651363||_0x651363[_0x1a7fde(0x261)]!==_0x33d599[_0x1a7fde(0x18f)])throw Error('[FRecord]:\x20field\x20\x22'+_0x490015+_0x1a7fde(0x29f));return _0x651363;}};Y=J=I([F(0x4,_0x2d81ac)],Y);let X=class{constructor(_0x25934e,_0xf0f665,_0x4dfa9f,_0x5336c8,_0x5e2cf0,_0x3afd33){const _0x4fe8d7=_0x336728;this['_base']=_0x25934e,this['_table']=_0xf0f665,this[_0x4fe8d7(0x225)]=_0x4dfa9f,this[_0x4fe8d7(0x1ef)]=_0x5336c8,this['_commandService']=_0x5e2cf0,this[_0x4fe8d7(0x29e)]=_0x3afd33;}[_0x336728(0x23a)](){const _0x477aa1=_0x336728;return this[_0x477aa1(0x225)];}['getView'](){const _0x5a6b10=_0x336728;return this[_0x5a6b10(0x183)]();}[_0x336728(0x1d1)](){const _0xc9bdd=_0x336728;return this['_getView']()[_0xc9bdd(0x191)];}['getType'](){const _0x4aeaca=_0x336728;return this['_getView']()[_0x4aeaca(0x261)];}[_0x336728(0x201)](_0x5c1002){const _0x1c2968=_0x336728;return this[_0x1c2968(0x207)][_0x1c2968(0x1ea)](_0x65495d['id'],{'unitId':this[_0x1c2968(0x185)][_0x1c2968(0x23a)](),'tableId':this[_0x1c2968(0x27d)][_0x1c2968(0x23a)](),'viewId':this[_0x1c2968(0x225)],'name':_0x5c1002});}['getConfig'](){const _0x3e20f4=_0x336728;let _0x144ede=this[_0x3e20f4(0x271)](),_0x3e233a=this[_0x3e20f4(0x183)]()[_0x3e20f4(0x212)];switch(_0x144ede){case _0x35b90a[_0x3e20f4(0x291)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x29c)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x2b1)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x1bb)]:return _0x3e233a;case _0x35b90a[_0x3e20f4(0x275)]:return _0x3e233a;default:return _0x3e233a;}}[_0x336728(0x187)](_0x474fe9){const _0x1f5ec2=_0x336728;return this['_commandService']['syncExecuteCommand'](_0x3cd319['id'],{'unitId':this[_0x1f5ec2(0x185)][_0x1f5ec2(0x23a)](),'tableId':this[_0x1f5ec2(0x27d)]['getId'](),'viewId':this[_0x1f5ec2(0x225)],'patch':_0x474fe9});}[_0x336728(0x1e9)](){const _0x248c93=_0x336728;var _0x6816cb;return _0x5bb98a[_0x248c93(0x258)](((_0x6816cb=this['_getView']()['config'][_0x248c93(0x28f)])==null?void 0x0:_0x6816cb[_0x248c93(0x22a)])??[]);}[_0x336728(0x249)](_0x59f4ee){const _0x758966=_0x336728;return this['_commandService']['syncExecuteCommand'](_0x3b1b6b['id'],{'unitId':this[_0x758966(0x185)][_0x758966(0x23a)](),'tableId':this[_0x758966(0x27d)][_0x758966(0x23a)](),'viewId':this['_viewId'],'type':_0x43286c[_0x758966(0x23e)],'rules':_0x59f4ee});}['addConditionalColorRule'](_0x2d74ed){const _0x37ee0f=_0x336728;return this['_commandService'][_0x37ee0f(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x37ee0f(0x185)]['getId'](),'tableId':this[_0x37ee0f(0x27d)][_0x37ee0f(0x23a)](),'viewId':this[_0x37ee0f(0x225)],'type':_0x43286c['Add'],'rule':_0x2d74ed});}[_0x336728(0x2a5)](_0x4ba19a){const _0x208b72=_0x336728;return this['_commandService'][_0x208b72(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x208b72(0x185)][_0x208b72(0x23a)](),'tableId':this[_0x208b72(0x27d)]['getId'](),'viewId':this[_0x208b72(0x225)],'type':_0x43286c['Delete'],'ruleId':_0x4ba19a});}[_0x336728(0x182)](){const _0x2a43a0=_0x336728;return this[_0x2a43a0(0x207)][_0x2a43a0(0x1ea)](_0x3b1b6b['id'],{'unitId':this[_0x2a43a0(0x185)][_0x2a43a0(0x23a)](),'tableId':this[_0x2a43a0(0x27d)]['getId'](),'viewId':this[_0x2a43a0(0x225)],'type':_0x43286c[_0x2a43a0(0x280)]});}[_0x336728(0x193)](){const _0x2b94d2=_0x336728;return this[_0x2b94d2(0x183)]()[_0x2b94d2(0x1a3)]??null;}[_0x336728(0x1f4)](_0x34d574){const _0x27bc20=_0x336728;return this[_0x27bc20(0x207)]['syncExecuteCommand'](_0x19bf5c['id'],{'unitId':this[_0x27bc20(0x185)][_0x27bc20(0x23a)](),'tableId':this[_0x27bc20(0x27d)][_0x27bc20(0x23a)](),'viewId':this[_0x27bc20(0x225)],'filter':_0x34d574});}[_0x336728(0x1ce)](){const _0x1bc956=_0x336728;return this[_0x1bc956(0x183)]()[_0x1bc956(0x1c7)]??[];}[_0x336728(0x2a7)](_0x4b1be1){const _0x217727=_0x336728;return this[_0x217727(0x207)][_0x217727(0x1ea)](_0x411c97['id'],{'unitId':this[_0x217727(0x185)]['getId'](),'tableId':this[_0x217727(0x27d)][_0x217727(0x23a)](),'viewId':this[_0x217727(0x225)],'sort':_0x4b1be1});}[_0x336728(0x19a)](){const _0x3d173a=_0x336728;return this[_0x3d173a(0x183)]()['group']??[];}[_0x336728(0x235)](_0x2436cc){const _0x494227=_0x336728;return this[_0x494227(0x207)][_0x494227(0x1ea)](_0x36027b['id'],{'unitId':this[_0x494227(0x185)][_0x494227(0x23a)](),'tableId':this[_0x494227(0x27d)][_0x494227(0x23a)](),'viewId':this['_viewId'],'group':_0x2436cc});}[_0x336728(0x26c)](_0x1fe371){const _0x3b30b2=_0x336728;var _0x2ec6b3;return z(this[_0x3b30b2(0x27d)][_0x3b30b2(0x1f1)]()['fields'][_0x1fe371])?((_0x2ec6b3=this[_0x3b30b2(0x183)]()['fieldSettings'])==null?void 0x0:_0x2ec6b3[_0x1fe371])??{}:{};}[_0x336728(0x21b)](){const _0x4de605=_0x336728;let _0x33e39d=this['_table'][_0x4de605(0x1f1)](),_0x57b31d=this[_0x4de605(0x183)]();return(_0x57b31d['fieldOrder']??_0x33e39d['fieldOrder'])['filter'](_0x5ae757=>{const _0x4598a3=_0x4de605;var _0xd6f48d;let _0x28d751=_0x33e39d['fields'][_0x5ae757];return z(_0x28d751)&&!((_0xd6f48d=_0x57b31d[_0x4598a3(0x221)])!=null&&(_0xd6f48d=_0xd6f48d[_0x5ae757])!=null&&_0xd6f48d['hidden']);})[_0x4de605(0x1f2)](_0x4fc506=>this[_0x4de605(0x1ef)][_0x4de605(0x279)](L,this['_base'],this[_0x4de605(0x27d)],_0x4fc506));}[_0x336728(0x1a9)](_0x229d43,_0x50dab0){const _0x138dbb=_0x336728;return z(this[_0x138dbb(0x27d)][_0x138dbb(0x1f1)]()['fields'][_0x229d43])?this[_0x138dbb(0x207)][_0x138dbb(0x1ea)](_0x113ed1['id'],{'unitId':this[_0x138dbb(0x185)]['getId'](),'tableId':this[_0x138dbb(0x27d)]['getId'](),'viewId':this[_0x138dbb(0x225)],'fieldId':_0x229d43,'visible':_0x50dab0}):!0x1;}['setFieldWidth'](_0x57961c,_0x2edcf5){const _0x5a92a1=_0x336728;return z(this[_0x5a92a1(0x27d)]['getTable']()[_0x5a92a1(0x270)][_0x57961c])?this[_0x5a92a1(0x207)][_0x5a92a1(0x1ea)](_0x5bb362['id'],{'unitId':this[_0x5a92a1(0x185)][_0x5a92a1(0x23a)](),'tableId':this[_0x5a92a1(0x27d)][_0x5a92a1(0x23a)](),'viewId':this['_viewId'],'fieldId':_0x57961c,'width':_0x2edcf5}):!0x1;}[_0x336728(0x1e1)](_0x391da1,_0x1fffce){const _0x31f4b3=_0x336728;let _0x62411=this[_0x31f4b3(0x27d)][_0x31f4b3(0x1f1)](),_0x168606=_0x1fffce['beforeFieldId']??_0x1fffce[_0x31f4b3(0x1cc)];return!z(_0x62411[_0x31f4b3(0x270)][_0x391da1])||!_0x168606||!z(_0x62411[_0x31f4b3(0x270)][_0x168606])?!0x1:this['_commandService'][_0x31f4b3(0x1ea)](_0x245f1a['id'],{'unitId':this['_base'][_0x31f4b3(0x23a)](),'tableId':this['_table']['getId'](),'viewId':this[_0x31f4b3(0x225)],'fieldId':_0x391da1,'target':_0x1fffce});}[_0x336728(0x22b)](_0x1dfe21){const _0x2e33ef=_0x336728;return this[_0x2e33ef(0x207)]['syncExecuteCommand'](_0x265b4d['id'],{'unitId':this[_0x2e33ef(0x185)][_0x2e33ef(0x23a)](),'tableId':this[_0x2e33ef(0x27d)][_0x2e33ef(0x23a)](),'viewId':this[_0x2e33ef(0x225)],'target':_0x1dfe21});}[_0x336728(0x1bf)](){const _0x1f5881=_0x336728;return this['_commandService'][_0x1f5881(0x1ea)](_0x5d89f8['id'],{'unitId':this['_base'][_0x1f5881(0x23a)](),'tableId':this[_0x1f5881(0x27d)][_0x1f5881(0x23a)](),'viewId':this['_viewId']});}[_0x336728(0x21e)](){const _0x4147a4=_0x336728;return this[_0x4147a4(0x29e)][_0x4147a4(0x21e)](this[_0x4147a4(0x185)][_0x4147a4(0x2a3)]()['getSnapshot'](),this['_table'][_0x4147a4(0x23a)](),this[_0x4147a4(0x225)]);}['_getView'](){const _0x4830d5=_0x336728;let _0x31b139=this[_0x4830d5(0x27d)][_0x4830d5(0x1f1)]()[_0x4830d5(0x28c)][this[_0x4830d5(0x225)]];if(!_0x31b139)throw Error('[FView]:\x20view\x20\x22'+this[_0x4830d5(0x225)]+'\x22\x20does\x20not\x20exist.');return _0x31b139;}};X=I([F(0x4,_0x2d81ac),F(0x5,_0x460976)],X);let Z=class{constructor(_0x3c9271,_0x2fb831,_0xbaeec9,_0x2c91fc,_0x4732e4){const _0x48f981=_0x336728;this['_base']=_0x3c9271,this[_0x48f981(0x224)]=_0x2fb831,this['_injector']=_0xbaeec9,this[_0x48f981(0x207)]=_0x2c91fc,this[_0x48f981(0x29e)]=_0x4732e4;}[_0x336728(0x2a3)](){const _0x2db909=_0x336728;return this[_0x2db909(0x185)][_0x2db909(0x2a3)]();}[_0x336728(0x1f1)](){return this['_getTable']();}[_0x336728(0x23a)](){return this['_tableId'];}[_0x336728(0x293)](){const _0x58b9c9=_0x336728;return _0x2ee0b8(this[_0x58b9c9(0x1fa)]());}[_0x336728(0x274)](_0x4ee2cd){const _0x2983bf=_0x336728;return this[_0x2983bf(0x207)][_0x2983bf(0x1ea)](_0x3d3845['id'],{'unitId':this['_base']['getId'](),'tableId':this[_0x2983bf(0x224)],'fieldId':_0x4ee2cd});}[_0x336728(0x1d1)](){const _0x244e8c=_0x336728;return this[_0x244e8c(0x1fa)]()[_0x244e8c(0x191)];}[_0x336728(0x201)](_0x1cf3ca){const _0x452829=_0x336728;return this[_0x452829(0x207)][_0x452829(0x1ea)](_0x83c0cd['id'],{'unitId':this[_0x452829(0x185)]['getId'](),'tableId':this[_0x452829(0x224)],'name':_0x1cf3ca});}[_0x336728(0x1fd)](_0x5e3f89,_0x4b20e5){const _0x8eafcd=_0x336728;let _0x389e01=this['_base']['getBase']()[_0x8eafcd(0x217)](),_0x5999bf=this['_getTable']();if(_0x4b20e5){let _0x4cee2e=this[_0x8eafcd(0x29e)][_0x8eafcd(0x21e)](_0x389e01,this[_0x8eafcd(0x224)],_0x4b20e5),_0x1b564e=_0x5999bf[_0x8eafcd(0x28c)][_0x4b20e5],_0x5a524b=_0x5e3f89[_0x8eafcd(0x222)]??et(_0x5999bf,_0x1b564e,_0x4cee2e),_0x3e1cff=_0x8eafcd(0x1cb)in _0x4cee2e&&Array['isArray'](_0x4cee2e[_0x8eafcd(0x1cb)])?_0x4cee2e[_0x8eafcd(0x1cb)]:[];return _0xa27dde({..._0x5e3f89,'table':_0x5999bf,'fieldIds':_0x5a524b,'rows':_0x3e1cff});}let _0x40adbb=(_0x5999bf[_0x8eafcd(0x243)]?_0x5999bf[_0x8eafcd(0x243)][_0x8eafcd(0x1f2)](_0x263086=>_0x5999bf['records'][_0x263086]):Object['values'](_0x5999bf[_0x8eafcd(0x24a)])['sort']((_0x2c93ca,_0x5989f5)=>_0x2c93ca[_0x8eafcd(0x1ac)]['localeCompare'](_0x5989f5[_0x8eafcd(0x1ac)])))[_0x8eafcd(0x1a3)](_0x25786b=>_0x25786b)[_0x8eafcd(0x1f2)](_0x25f8a9=>({'recordId':_0x25f8a9['id'],'values':_0x25f8a9['values']})),_0x565326=_0x5e3f89[_0x8eafcd(0x222)]??_0x5999bf[_0x8eafcd(0x205)][_0x8eafcd(0x1a3)](_0x58c020=>z(_0x5999bf[_0x8eafcd(0x270)][_0x58c020]));return _0xa27dde({..._0x5e3f89,'table':_0x5999bf,'fieldIds':_0x565326,'rows':_0x40adbb});}['getPrimaryFieldId'](){const _0x2d8ac4=_0x336728;return this['_getTable']()[_0x2d8ac4(0x1fb)];}[_0x336728(0x23f)](){const _0x30f369=_0x336728;let _0x5bd08f=this[_0x30f369(0x1fa)]();return _0x5bd08f['fieldOrder'][_0x30f369(0x1f2)](_0x415fcf=>_0x5bd08f[_0x30f369(0x270)][_0x415fcf])[_0x30f369(0x1a3)](z)[_0x30f369(0x1f2)](_0x35647a=>this['_injector'][_0x30f369(0x279)](L,this[_0x30f369(0x185)],this,_0x35647a['id']));}['getFieldById'](_0x962171){const _0x2db91d=_0x336728;let _0x2c2aff=this['_getTable']()[_0x2db91d(0x270)][_0x962171];return z(_0x2c2aff)?this[_0x2db91d(0x1ef)][_0x2db91d(0x279)](L,this['_base'],this,_0x2c2aff['id']):null;}[_0x336728(0x1f3)](_0x577e61){const _0x1ed338=_0x336728;let _0x512fb9=this[_0x1ed338(0x1fa)]()[_0x1ed338(0x270)],_0x5dfc77=Object['values'](_0x512fb9)[_0x1ed338(0x252)](_0x389c52=>z(_0x389c52)&&_0x389c52[_0x1ed338(0x191)]===_0x577e61);return _0x5dfc77?this['_injector'][_0x1ed338(0x279)](L,this['_base'],this,_0x5dfc77['id']):null;}[_0x336728(0x196)](){const _0x1e44d5=_0x336728;let _0xb3363a=this[_0x1e44d5(0x1fa)]()[_0x1e44d5(0x1fb)];return this[_0x1e44d5(0x1ef)]['createInstance'](L,this['_base'],this,_0xb3363a);}['addField'](_0x58f44c,_0x367700,_0x584afb){const _0x196d08=_0x336728;var _0x45f7ca,_0x13e314;if(!Object[_0x196d08(0x2ab)](_0x33d599)[_0x196d08(0x27b)](_0x1e49e3=>_0x1e49e3===_0x367700))throw Error('Unsupported\x20Base\x20field\x20type\x20\x22'+String(_0x367700)+'\x22.');if(_0x367700===_0x33d599[_0x196d08(0x26f)]){if(!_0x584afb||!(_0x196d08(0x1af)in _0x584afb)||!Array[_0x196d08(0x1aa)](_0x584afb['externalReferences']))throw Error(_0x196d08(0x251));if(_0x584afb[_0x196d08(0x1af)][_0x196d08(0x1b5)]>0x0&&!this['_commandService'][_0x196d08(0x1ea)](_0x46103d['id'],{'unitId':this[_0x196d08(0x185)]['getId'](),'references':_0x584afb[_0x196d08(0x1af)]}))throw Error('Failed\x20to\x20bind\x20External\x20References\x20for\x20formula\x20field\x20\x22'+_0x58f44c+'\x22');}if(_0x367700===_0x33d599[_0x196d08(0x18f)]&&(typeof(_0x584afb==null||(_0x45f7ca=_0x584afb[_0x196d08(0x287)])==null||(_0x45f7ca=_0x45f7ca[_0x196d08(0x212)])==null?void 0x0:_0x45f7ca['targetTableId'])!='string'||typeof _0x584afb['field'][_0x196d08(0x212)][_0x196d08(0x181)]!='boolean'))throw Error(_0x196d08(0x1eb));let _0x4535d1={..._0x584afb==null?void 0x0:_0x584afb[_0x196d08(0x287)],'id':_0x2bd9cf(0x6),'name':_0x58f44c,'type':_0x367700,'config':(_0x584afb==null||(_0x13e314=_0x584afb[_0x196d08(0x287)])==null?void 0x0:_0x13e314[_0x196d08(0x212)])??{}};if(!this[_0x196d08(0x207)][_0x196d08(0x1ea)](_0x1978a1['id'],{'unitId':this[_0x196d08(0x185)][_0x196d08(0x23a)](),'tableId':this['_tableId'],'field':_0x4535d1,'index':_0x584afb==null?void 0x0:_0x584afb['index']}))throw Error(_0x196d08(0x25f)+_0x58f44c+'\x22');return this[_0x196d08(0x1ef)][_0x196d08(0x279)](L,this[_0x196d08(0x185)],this,_0x4535d1['id']);}[_0x336728(0x1b9)](){const _0x1cd9b2=_0x336728;return this[_0x1cd9b2(0x25e)]()[_0x1cd9b2(0x1f2)](_0x212eec=>this[_0x1cd9b2(0x1ef)][_0x1cd9b2(0x279)](Y,this[_0x1cd9b2(0x185)],this,_0x212eec,this[_0x1cd9b2(0x1ef)]));}[_0x336728(0x229)](_0x5b110c){const _0x4a9764=_0x336728;return this[_0x4a9764(0x1fa)]()[_0x4a9764(0x24a)][_0x5b110c]?this[_0x4a9764(0x1ef)][_0x4a9764(0x279)](Y,this['_base'],this,_0x5b110c,this[_0x4a9764(0x1ef)]):null;}[_0x336728(0x290)](_0x5ecd63={}){const _0x583211=_0x336728;let _0x4c09d1=this[_0x583211(0x1fa)](),_0x3d40ef=this['_resolveRecordIds'](_0x5ecd63),_0xfe65e5=Math[_0x583211(0x1a1)](0x0,_0x5ecd63[_0x583211(0x1d0)]??0x0),_0x1fc62b=_0x5ecd63[_0x583211(0x1d5)]==null?null:Math[_0x583211(0x1a1)](0x0,_0x5ecd63[_0x583211(0x1d5)]),_0x4c65c7=Je(_0x3d40ef[_0x583211(0x1f2)](_0x4e1206=>_0x4c09d1[_0x583211(0x24a)][_0x4e1206])[_0x583211(0x1a3)](_0x32fb86=>Xe(_0x32fb86,_0x4c09d1,_0x5ecd63['filter'])),_0x4c09d1,_0x5ecd63[_0x583211(0x1c7)]);return{'records':qe(_0x4c65c7,_0x5ecd63)[_0x583211(0x1f2)](_0x26e8b4=>this[_0x583211(0x1ef)]['createInstance'](Y,this[_0x583211(0x185)],this,_0x26e8b4['id'],this[_0x583211(0x1ef)])),'total':_0x4c65c7[_0x583211(0x1b5)],'offset':_0xfe65e5,'limit':_0x1fc62b,'hasMore':_0x1fc62b!=null&&_0xfe65e5+_0x1fc62b<_0x4c65c7[_0x583211(0x1b5)]};}[_0x336728(0x194)](_0x1cb415,_0x3a0864='id',_0x27f752){const _0x4081be=_0x336728;let _0x564613=this['_getTable'](),_0x7cfe48=Date['now'](),_0x537f97={..._0x27f752,'id':_0x2bd9cf(0x6),'values':B(_0x564613,_0x1cb415,_0x3a0864),'orderKey':(_0x27f752==null?void 0x0:_0x27f752[_0x4081be(0x1ac)])||''+_0x7cfe48,'createdAt':(_0x27f752==null?void 0x0:_0x27f752['createdAt'])||_0x7cfe48,'updatedAt':(_0x27f752==null?void 0x0:_0x27f752[_0x4081be(0x1b7)])||_0x7cfe48};if(!this[_0x4081be(0x207)][_0x4081be(0x1ea)](_0x22871f['id'],{'unitId':this['_base'][_0x4081be(0x23a)](),'tableId':this[_0x4081be(0x224)],'record':_0x537f97,'source':_0x4fe3fa[_0x4081be(0x2b6)]}))throw Error(_0x4081be(0x27f)+_0x537f97['id']+'\x22');return this[_0x4081be(0x1ef)]['createInstance'](Y,this[_0x4081be(0x185)],this,_0x537f97['id'],this[_0x4081be(0x1ef)]);}[_0x336728(0x29b)](_0x4c1176){const _0x5dff74=_0x336728;if(!_0x4c1176[_0x5dff74(0x1b5)])return[];let _0x12787d=this[_0x5dff74(0x1fa)](),_0x3d16af=Date[_0x5dff74(0x1a0)](),_0x427216=_0x4c1176['map']((_0x163d01,_0x13d3c7)=>{const _0x2898d2=_0x5dff74;var _0x257006,_0x5712ee,_0x4d41a3;return{..._0x163d01[_0x2898d2(0x1ba)],'id':_0x2bd9cf(0x6),'values':B(_0x12787d,_0x163d01['values'],_0x163d01[_0x2898d2(0x1c5)]??'id'),'orderKey':((_0x257006=_0x163d01['record'])==null?void 0x0:_0x257006[_0x2898d2(0x1ac)])||''+(_0x3d16af+_0x13d3c7),'createdAt':((_0x5712ee=_0x163d01[_0x2898d2(0x1ba)])==null?void 0x0:_0x5712ee[_0x2898d2(0x2a6)])||_0x3d16af,'updatedAt':((_0x4d41a3=_0x163d01['record'])==null?void 0x0:_0x4d41a3[_0x2898d2(0x1b7)])||_0x3d16af};});if(!this[_0x5dff74(0x207)][_0x5dff74(0x1ea)](_0x144dc8['id'],{'unitId':this[_0x5dff74(0x185)][_0x5dff74(0x23a)](),'tableId':this['_tableId'],'records':_0x427216,'source':_0x4fe3fa['Facade']}))throw Error(_0x5dff74(0x255));return _0x427216[_0x5dff74(0x1f2)](_0x5aae61=>this[_0x5dff74(0x1ef)][_0x5dff74(0x279)](Y,this['_base'],this,_0x5aae61['id'],this[_0x5dff74(0x1ef)]));}[_0x336728(0x204)](_0x35169c){const _0x4e0c0c=_0x336728;return!_0x35169c['length']||this[_0x4e0c0c(0x207)]['syncExecuteCommand'](_0x20826e['id'],{'unitId':this['_base'][_0x4e0c0c(0x23a)](),'tableId':this['_tableId'],'recordIds':_0x35169c,'source':_0x4fe3fa[_0x4e0c0c(0x2b6)]});}[_0x336728(0x1ee)](_0x42567f,_0x3190ad,_0x2c8232=0x1,_0x2bcc94=0x1){const _0x5ee001=_0x336728;return this[_0x5ee001(0x1ef)]['createInstance'](q,this[_0x5ee001(0x185)],this,{'startRow':_0x42567f,'endRow':_0x42567f+_0x2c8232-0x1,'startColumn':_0x3190ad,'endColumn':_0x3190ad+_0x2bcc94-0x1},this[_0x5ee001(0x1ef)]);}[_0x336728(0x27a)](){const _0x3d0e2a=_0x336728;var _0x43b915;let _0x2b32e8=_0x1696cb(this[_0x3d0e2a(0x1fa)]()),_0xd8fb2b=((_0x43b915=_0x2b32e8['recordOrder'])==null?void 0x0:_0x43b915[_0x3d0e2a(0x1b5)])??0x0,_0x2f7573=_0x2b32e8[_0x3d0e2a(0x205)][_0x3d0e2a(0x1a3)](_0x25a65f=>z(_0x2b32e8['fields'][_0x25a65f]))[_0x3d0e2a(0x1b5)];return this['getRange'](0x0,0x0,Math[_0x3d0e2a(0x1a1)](_0xd8fb2b,0x1),Math[_0x3d0e2a(0x1a1)](_0x2f7573,0x1));}[_0x336728(0x1e7)](){const _0xa9b47a=_0x336728;let _0x3f5651=this[_0xa9b47a(0x1fa)]();return _0x3f5651[_0xa9b47a(0x197)][_0xa9b47a(0x1a3)](_0x52f203=>_0x3f5651[_0xa9b47a(0x28c)][_0x52f203])[_0xa9b47a(0x1f2)](_0x5d0ec8=>this['_injector'][_0xa9b47a(0x279)](X,this[_0xa9b47a(0x185)],this,_0x5d0ec8,this['_injector']));}[_0x336728(0x206)](_0x1b1d83){const _0x5497de=_0x336728;return this[_0x5497de(0x1fa)]()[_0x5497de(0x28c)][_0x1b1d83]?this['_injector'][_0x5497de(0x279)](X,this[_0x5497de(0x185)],this,_0x1b1d83,this['_injector']):null;}['getViewByName'](_0xc208ea){const _0x3d5e8e=_0x336728;let _0x5624ba=this[_0x3d5e8e(0x1fa)](),_0x381c60=Object['values'](_0x5624ba[_0x3d5e8e(0x28c)])[_0x3d5e8e(0x252)](_0x3f867c=>_0x3f867c[_0x3d5e8e(0x191)]===_0xc208ea);return _0x381c60?this[_0x3d5e8e(0x1ef)][_0x3d5e8e(0x279)](X,this[_0x3d5e8e(0x185)],this,_0x381c60['id'],this[_0x3d5e8e(0x1ef)]):null;}[_0x336728(0x1a6)](_0x6e1cb8,_0x2aacd6,_0x598ba4){const _0x2305f3=_0x336728;var _0x2e3c07,_0x126831,_0x3075f0,_0x28aea4;let _0x2ca63a=this[_0x2305f3(0x1fa)](),_0x503182=[_0x2b3441,...((_0x598ba4==null||(_0x2e3c07=_0x598ba4[_0x2305f3(0x27c)])==null?void 0x0:_0x2e3c07[_0x2305f3(0x205)])??_0x2ca63a[_0x2305f3(0x205)])[_0x2305f3(0x1a3)](_0x594c4c=>z(_0x2ca63a['fields'][_0x594c4c]))],_0x532bfb={..._0x598ba4==null?void 0x0:_0x598ba4[_0x2305f3(0x27c)],'id':_0x2bd9cf(0x6),'name':_0x6e1cb8,'type':_0x2aacd6,'tableId':this[_0x2305f3(0x224)],'config':(_0x598ba4==null||(_0x126831=_0x598ba4['view'])==null?void 0x0:_0x126831[_0x2305f3(0x212)])??{},'fieldOrder':_0x503182,'fieldSettings':{..._0x598ba4==null||(_0x3075f0=_0x598ba4[_0x2305f3(0x27c)])==null?void 0x0:_0x3075f0[_0x2305f3(0x221)],[_0x2b3441]:{..._0x598ba4==null||(_0x28aea4=_0x598ba4[_0x2305f3(0x27c)])==null||(_0x28aea4=_0x28aea4['fieldSettings'])==null?void 0x0:_0x28aea4[_0x2b3441],'hidden':!0x0}}};if(!this[_0x2305f3(0x207)][_0x2305f3(0x1ea)](_0x338c3b['id'],{'unitId':this[_0x2305f3(0x185)][_0x2305f3(0x23a)](),'tableId':this['_tableId'],'view':_0x532bfb,'index':_0x598ba4==null?void 0x0:_0x598ba4[_0x2305f3(0x1f9)]}))throw Error(_0x2305f3(0x262)+_0x6e1cb8+'\x22');return this[_0x2305f3(0x1ef)][_0x2305f3(0x279)](X,this[_0x2305f3(0x185)],this,_0x532bfb['id'],this[_0x2305f3(0x1ef)]);}[_0x336728(0x1d8)](){const _0x3e6e4f=_0x336728;let _0x3b4b8c=this[_0x3e6e4f(0x1fa)](),_0x54d37d=_0x3b4b8c[_0x3e6e4f(0x205)][_0x3e6e4f(0x1a3)](_0x49bfc3=>z(_0x3b4b8c[_0x3e6e4f(0x270)][_0x49bfc3])),_0x8f7d0e=_0x3b4b8c[_0x3e6e4f(0x197)]['filter'](_0x2370f5=>_0x3b4b8c[_0x3e6e4f(0x28c)][_0x2370f5]);return{'id':_0x3b4b8c['id'],'name':_0x3b4b8c[_0x3e6e4f(0x191)],'primaryFieldId':_0x3b4b8c[_0x3e6e4f(0x1fb)],'fieldIds':_0x54d37d,'viewIds':_0x8f7d0e,'recordCount':this[_0x3e6e4f(0x25e)]()[_0x3e6e4f(0x1b5)],'fields':_0x54d37d[_0x3e6e4f(0x1f2)](_0xac249e=>{const _0x27b70a=_0x3e6e4f;let _0x12d825=_0x3b4b8c[_0x27b70a(0x270)][_0xac249e];return{'id':_0x12d825['id'],'name':_0x12d825[_0x27b70a(0x191)],'type':_0x12d825[_0x27b70a(0x261)],'config':_0x12d825[_0x27b70a(0x212)],'readonly':_0x12d825['readonly'],'description':_0x12d825[_0x27b70a(0x272)]};}),'views':_0x8f7d0e['map'](_0x4e0209=>{const _0x42b7f2=_0x3e6e4f;let _0x1b13fd=_0x3b4b8c['views'][_0x4e0209];return{'id':_0x1b13fd['id'],'name':_0x1b13fd['name'],'type':_0x1b13fd[_0x42b7f2(0x261)]};})};}[_0x336728(0x1fa)](){const _0x2158ee=_0x336728;let _0x308978=this[_0x2158ee(0x185)][_0x2158ee(0x2a3)]()[_0x2158ee(0x217)]()['tables'][this[_0x2158ee(0x224)]];if(!_0x308978)throw Error('[FTable]:\x20table\x20\x22'+this['_tableId']+_0x2158ee(0x2a8));return _0x308978;}[_0x336728(0x25e)](_0x187f70={}){const _0x1e7f5f=_0x336728;let _0x46813c=this[_0x1e7f5f(0x185)][_0x1e7f5f(0x2a3)]()[_0x1e7f5f(0x217)](),_0x6aafe2=this[_0x1e7f5f(0x1fa)]();if(_0x187f70['viewId']){let _0x1694b4=this[_0x1e7f5f(0x29e)]['getProjection'](_0x46813c,this['_tableId'],_0x187f70[_0x1e7f5f(0x1ae)]);if('rows'in _0x1694b4&&Array[_0x1e7f5f(0x1aa)](_0x1694b4[_0x1e7f5f(0x1cb)]))return _0x1694b4[_0x1e7f5f(0x1cb)][_0x1e7f5f(0x1f2)](_0x27ba5a=>_0x27ba5a['recordId']);}return(_0x6aafe2[_0x1e7f5f(0x243)]?_0x6aafe2[_0x1e7f5f(0x243)]['map'](_0x1fd847=>_0x6aafe2[_0x1e7f5f(0x24a)][_0x1fd847]):Object['values'](_0x6aafe2[_0x1e7f5f(0x24a)])[_0x1e7f5f(0x1c7)]((_0x5f4981,_0x4e291a)=>_0x5f4981[_0x1e7f5f(0x1ac)][_0x1e7f5f(0x234)](_0x4e291a[_0x1e7f5f(0x1ac)])))[_0x1e7f5f(0x1a3)](_0x1d3985=>_0x1d3985)[_0x1e7f5f(0x1f2)](_0x17fee5=>_0x17fee5['id']);}};Z=I([F(0x3,_0x2d81ac),F(0x4,_0x460976)],Z);function _0x52e5(_0x11cead,_0x180fbf){_0x11cead=_0x11cead-0x17d;const _0xcde0e8=_0xcde0();let _0x52e5ef=_0xcde0e8[_0x11cead];return _0x52e5ef;}function qe(_0x492bcf,_0xa23636){const _0x3c7ca6=_0x336728;let _0xbfa501=Math[_0x3c7ca6(0x1a1)](0x0,_0xa23636['offset']??0x0);return _0xa23636['limit']==null?_0x492bcf[_0x3c7ca6(0x260)](_0xbfa501):_0x492bcf[_0x3c7ca6(0x260)](_0xbfa501,_0xbfa501+Math[_0x3c7ca6(0x1a1)](0x0,_0xa23636[_0x3c7ca6(0x1d5)]));}function Je(_0xf0b280,_0x41ae63,_0x454d65=[]){const _0x2feeb5=_0x336728;return _0x454d65[_0x2feeb5(0x1b5)]?[..._0xf0b280][_0x2feeb5(0x1c7)]((_0x563aaf,_0x114fa8)=>{const _0x2d24bd=_0x2feeb5;for(let _0x1845d8 of _0x454d65){var _0x55cd36;let _0x30b153=_0x1845d8[_0x2d24bd(0x228)]===_0x4baab9['DESC']?-0x1:0x1,_0x1e2af2=Ye(_0x563aaf[_0x2d24bd(0x2ab)][_0x1845d8['fieldId']],_0x114fa8[_0x2d24bd(0x2ab)][_0x1845d8['fieldId']],(_0x55cd36=_0x41ae63[_0x2d24bd(0x270)][_0x1845d8['fieldId']])==null?void 0x0:_0x55cd36[_0x2d24bd(0x261)]);if(_0x1e2af2!==0x0)return _0x1e2af2*_0x30b153;}return String(_0x563aaf[_0x2d24bd(0x1ac)]??_0x563aaf['id'])['localeCompare'](String(_0x114fa8['orderKey']??_0x114fa8['id']));}):_0xf0b280;}function Ye(_0x5589ab,_0x35f463,_0x12b60f){const _0x4ba113=_0x336728;return _0x5589ab==null&&_0x35f463==null?0x0:_0x5589ab==null?-0x1:_0x35f463==null?0x1:typeof _0x5589ab=='number'&&typeof _0x35f463==_0x4ba113(0x284)?_0x5589ab-_0x35f463:_0x12b60f===_0x33d599[_0x4ba113(0x265)]?Number(_0x5589ab)-Number(_0x35f463):String(_0x5589ab)[_0x4ba113(0x234)](String(_0x35f463));}function Xe(_0x2d4fd2,_0x56b182,_0x442142){const _0x221362=_0x336728;var _0x3196cd;if(!_0x442142||!((_0x3196cd=_0x442142[_0x221362(0x28d)])!=null&&_0x3196cd[_0x221362(0x1b5)]))return!0x0;let {conjunction:_0x2e0427=_0x5f2ca0['OR'],conditions:_0x18a901}=_0x442142;return _0x2e0427===_0x5f2ca0[_0x221362(0x1e0)]&&_0x18a901[_0x221362(0x1b5)]>0x1?_0x18a901[_0x221362(0x19e)](_0x19cf24=>Ze(_0x2d4fd2,_0x56b182,_0x19cf24)):_0x18a901['some'](_0x391b3c=>Ze(_0x2d4fd2,_0x56b182,_0x391b3c));}function Ze(_0x1de904,_0x2fc691,_0x3a9f73){const _0x8cbec6=_0x336728;let _0x4afabf=_0x1de904[_0x8cbec6(0x2ab)][_0x3a9f73[_0x8cbec6(0x1c3)]],_0xf7e061=_0x2fc691['fields'][_0x3a9f73[_0x8cbec6(0x1c3)]];if(Qe(_0x3a9f73)){let _0x473f1e=$e(_0x3a9f73)[_0x8cbec6(0x2b3)](String(_0x4afabf??''));return _0x3a9f73[_0x8cbec6(0x199)]===_0x8cbec6(0x18d)?_0x473f1e:!_0x473f1e;}return!_0xf7e061||_0x5e33be(_0x4afabf,_0x3a9f73[_0x8cbec6(0x199)],_0x3a9f73['value'],_0xf7e061);}function Qe(_0x5728c5){const _0xeaa0c=_0x336728;return _0x5728c5[_0xeaa0c(0x199)]===_0xeaa0c(0x18d)||_0x5728c5['operator']===_0xeaa0c(0x1b6);}function $e(_0x1065e4){const _0x7f8db=_0x336728;let _0x27a92e=String(_0x1065e4[_0x7f8db(0x1b4)]??'');if(_0x27a92e[_0x7f8db(0x1b5)]>0x200)throw Error(_0x7f8db(0x268));try{return new RegExp(_0x27a92e,_0x1065e4[_0x7f8db(0x232)]?void 0x0:'i');}catch(_0x10167e){throw Error('Invalid\x20Base\x20regex\x20filter:\x20'+_0x27a92e+'.\x20'+(_0x10167e instanceof Error?_0x10167e['message']:String(_0x10167e)));}}function et(_0x12f6c2,_0x401507,_0x6583ae){const _0x37a45a=_0x336728;if(_0x6583ae[_0x37a45a(0x261)]!==_0x37a45a(0x1e2)){var _0x38824e;if(_0x6583ae['type']===_0x35b90a['Kanban']){var _0x1b568b;let _0x5d0aa4=[((_0x1b568b=_0x6583ae[_0x37a45a(0x270)])==null||(_0x1b568b=_0x1b568b[0x0])==null?void 0x0:_0x1b568b['id'])??_0x12f6c2[_0x37a45a(0x1fb)],..._0x6583ae[_0x37a45a(0x250)]??[]];return Array[_0x37a45a(0x2aa)](new Set(_0x5d0aa4[_0x37a45a(0x1a3)](_0x45a9d0=>!!_0x12f6c2['fields'][_0x45a9d0])));}if((_0x38824e=_0x6583ae['fields'])!=null&&_0x38824e[_0x37a45a(0x1b5)])return _0x6583ae[_0x37a45a(0x270)][_0x37a45a(0x1f2)](_0x65ec45=>_0x65ec45['id'])[_0x37a45a(0x1a3)](_0x597b20=>{const _0x46260f=_0x37a45a;var _0x596311;return!!(_0x12f6c2[_0x46260f(0x270)][_0x597b20]&&!(_0x401507!=null&&(_0x596311=_0x401507[_0x46260f(0x221)])!=null&&(_0x596311=_0x596311[_0x597b20])!=null&&_0x596311[_0x46260f(0x28e)]));});}return _0x12f6c2[_0x37a45a(0x205)][_0x37a45a(0x1a3)](_0x3e9a40=>{const _0x4b767a=_0x37a45a;var _0xd6a67;return!!(_0x12f6c2['fields'][_0x3e9a40]&&!(_0x401507!=null&&(_0xd6a67=_0x401507[_0x4b767a(0x221)])!=null&&(_0xd6a67=_0xd6a67[_0x3e9a40])!=null&&_0xd6a67[_0x4b767a(0x28e)]));});}let Q=class{constructor(_0xff975f,_0x26b522,_0x40b831,_0x66acc){const _0x515758=_0x336728;this[_0x515758(0x185)]=_0xff975f,this[_0x515758(0x1ef)]=_0x26b522,this[_0x515758(0x248)]=_0x40b831,this['_commandService']=_0x66acc;}[_0x336728(0x2a3)](){const _0x1dd37c=_0x336728;return this[_0x1dd37c(0x185)];}['getId'](){const _0x37f195=_0x336728;return this['_base'][_0x37f195(0x210)]();}[_0x336728(0x2a0)](){const _0xf9558d=_0x336728;return this[_0xf9558d(0x248)][_0xf9558d(0x200)](this[_0xf9558d(0x23a)]())??_0x5bb98a[_0xf9558d(0x258)](this[_0xf9558d(0x185)][_0xf9558d(0x217)]());}[_0x336728(0x1d1)](){const _0x423e39=_0x336728;return this[_0x423e39(0x185)]['getSnapshot']()[_0x423e39(0x191)];}[_0x336728(0x201)](_0x321516){const _0x1afc6b=_0x336728;this[_0x1afc6b(0x207)][_0x1afc6b(0x1ea)](_0x3a2e4a['id'],{'unitId':this[_0x1afc6b(0x23a)](),'name':_0x321516});}[_0x336728(0x2b7)](){const _0x41aace=_0x336728;let _0xdf513f=this['_base']['getSnapshot']();return _0xdf513f[_0x41aace(0x1ad)][_0x41aace(0x1f2)](_0x1d8615=>_0xdf513f[_0x41aace(0x189)][_0x1d8615])[_0x41aace(0x1a3)](_0x369e96=>_0x369e96)[_0x41aace(0x1f2)](_0x27aef5=>this[_0x41aace(0x1ef)][_0x41aace(0x279)](Z,this,_0x27aef5['id'],this[_0x41aace(0x1ef)]));}['getTableById'](_0x2139b8){const _0xfa961=_0x336728;let _0x5ab081=this['_base'][_0xfa961(0x217)]()[_0xfa961(0x189)][_0x2139b8];return _0x5ab081?this[_0xfa961(0x1ef)][_0xfa961(0x279)](Z,this,_0x5ab081['id'],this[_0xfa961(0x1ef)]):null;}[_0x336728(0x198)](_0x28c671){const _0x3293fd=_0x336728;let _0x49721e=this[_0x3293fd(0x185)][_0x3293fd(0x217)](),_0x1456df=Object[_0x3293fd(0x2ab)](_0x49721e[_0x3293fd(0x189)])[_0x3293fd(0x252)](_0xf52a38=>_0xf52a38[_0x3293fd(0x191)]===_0x28c671);return _0x1456df?this[_0x3293fd(0x1ef)][_0x3293fd(0x279)](Z,this,_0x1456df['id'],this[_0x3293fd(0x1ef)]):null;}[_0x336728(0x28a)](_0x1644a1,_0x3b0af3){const _0x507c97=_0x336728;let _0x3c44af=_0x16a351({'id':_0x2bd9cf(),'name':_0x1644a1,..._0x3b0af3==null?void 0x0:_0x3b0af3[_0x507c97(0x23c)],'primaryFieldName':_0x3b0af3==null?void 0x0:_0x3b0af3[_0x507c97(0x292)]}),_0x21a6dd=_0x5bb98a[_0x507c97(0x1f0)](_0x3c44af,(_0x3b0af3==null?void 0x0:_0x3b0af3['table'])??{});if(!this[_0x507c97(0x207)][_0x507c97(0x1ea)](_0x3cc0d1['id'],{'unitId':this[_0x507c97(0x185)][_0x507c97(0x210)](),'table':_0x21a6dd,'index':_0x3b0af3==null?void 0x0:_0x3b0af3['index']}))throw Error(_0x507c97(0x211)+_0x1644a1+'\x22.');return this['_injector'][_0x507c97(0x279)](Z,this,_0x21a6dd['id'],this[_0x507c97(0x1ef)]);}[_0x336728(0x1e8)](_0x27f639){const _0x2fa9ac=_0x336728;let _0x3ec052=typeof _0x27f639==_0x2fa9ac(0x1c9)?_0x27f639:_0x27f639[_0x2fa9ac(0x23a)]();if(!this['_commandService'][_0x2fa9ac(0x1ea)](_0x13a13d['id'],{'unitId':this[_0x2fa9ac(0x185)]['getUnitId'](),'tableId':_0x3ec052}))throw Error(_0x2fa9ac(0x1d7)+_0x3ec052+'\x22.');return!0x0;}[_0x336728(0x20b)](_0x29c475,_0x168899){const _0x168b73=_0x336728;let _0x36d5a3=this['_base'][_0x168b73(0x217)](),_0x129e70=typeof _0x29c475=='string'?_0x29c475:_0x29c475['getId'](),_0x392e92=_0x36d5a3['tables'][_0x129e70];if(!_0x392e92)throw Error('[FBase]:\x20table\x20\x22'+_0x129e70+_0x168b73(0x2a8));let _0x59050a=_0x36d5a3['tableOrder']['indexOf'](_0x129e70)+0x1,_0x55eb8d=_0x5e421d(_0x392e92,{'id':_0x2bd9cf(),'name':_0x392e92['name']+_0x168b73(0x297),'includeRecords':(_0x168899==null?void 0x0:_0x168899['includeRecords'])??!0x1,'regenerateViewIds':(_0x168899==null?void 0x0:_0x168899['regenerateViewIds'])??!0x1});if(!this['_commandService'][_0x168b73(0x1ea)](_0x3cc0d1['id'],{'unitId':this[_0x168b73(0x185)][_0x168b73(0x210)](),'table':_0x55eb8d,'index':_0x59050a}))throw Error(_0x168b73(0x28b)+_0x129e70+'\x22.');return this[_0x168b73(0x1ef)]['createInstance'](Z,this,_0x55eb8d['id'],this[_0x168b73(0x1ef)]);}[_0x336728(0x1d8)](){const _0x186225=_0x336728;let _0x5e25f1=this[_0x186225(0x185)]['getSnapshot']();return{'id':_0x5e25f1['id'],'name':_0x5e25f1[_0x186225(0x191)],'tables':this[_0x186225(0x2b7)]()['map'](_0x306dac=>_0x306dac[_0x186225(0x1d8)]())};}};Q=I([F(0x1,_0x25f6bc(_0x442045)),F(0x2,_0x246509),F(0x3,_0x2d81ac)],Q);var tt=class extends _0x7df423{[_0x336728(0x1c6)](){const _0x295d31=_0x336728;this[_0x295d31(0x20f)](),this[_0x295d31(0x237)]();}[_0x336728(0x1de)](_0x55a963={},_0x4c6cef){const _0x4bcf77=_0x336728;let _0x408399=this['_univerInstanceService'][_0x4bcf77(0x1a4)](_0x874f24[_0x4bcf77(0x2b2)],_0x55a963,_0x4c6cef);return this[_0x4bcf77(0x1ef)][_0x4bcf77(0x279)](Q,_0x408399);}[_0x336728(0x2a1)](){const _0x34fc51=_0x336728;let _0x290e72=this['_univerInstanceService'][_0x34fc51(0x20c)](_0x874f24['UNIVER_BASE']);return _0x290e72?this['_injector']['createInstance'](Q,_0x290e72):null;}[_0x336728(0x2a3)](_0x618861){const _0x5d0ddd=_0x336728;let _0x11b6cb=this[_0x5d0ddd(0x1b0)]['getUnit'](_0x618861,_0x874f24['UNIVER_BASE']);return _0x11b6cb?this[_0x5d0ddd(0x1ef)][_0x5d0ddd(0x279)](Q,_0x11b6cb):null;}[_0x336728(0x21f)](){const _0x24f4f8=_0x336728;return this['_univerInstanceService'][_0x24f4f8(0x19f)](_0x874f24['UNIVER_BASE'])[_0x24f4f8(0x1f2)](_0x53556f=>this[_0x24f4f8(0x1ef)][_0x24f4f8(0x279)](Q,_0x53556f));}[_0x336728(0x237)](){const _0x4e4d0d=_0x336728;this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x295)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)]((_0x2ee048,_0x1c315f)=>{const _0x371ffb=_0x4e4d0d;var _0x304e38;if(!$(_0x2ee048,_0x5374e3))return;let _0x41eaad=_0x2ee048[_0x371ffb(0x23b)];if(!((_0x304e38=_0x41eaad[_0x371ffb(0x214)])!=null&&_0x304e38[_0x371ffb(0x1b5)]))return;let _0x4ad86b=this[_0x371ffb(0x2a3)](_0x41eaad[_0x371ffb(0x1e6)]),_0x51b85b=_0x4ad86b==null?void 0x0:_0x4ad86b['getTableById'](_0x41eaad[_0x371ffb(0x214)][0x0][_0x371ffb(0x281)]);if(!_0x4ad86b||!_0x51b85b)return;let _0xdce23c={'base':_0x4ad86b,'table':_0x51b85b,'changes':_0x41eaad[_0x371ffb(0x214)],'source':_0x1c315f!=null&&_0x1c315f[_0x371ffb(0x19d)]?_0x4fe3fa[_0x371ffb(0x1b2)]:_0x41eaad['source']??_0x4fe3fa['UI']};this[_0x371ffb(0x230)](this[_0x371ffb(0x208)][_0x371ffb(0x295)],_0xdce23c);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x21c)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x33b529=>{const _0x1d1731=_0x4e4d0d;if(_0x33b529['id']!==_0x3cc0d1['id'])return;let {unitId:_0x151dd8,table:_0x1ce52a,index:_0x372529}=_0x33b529['params'],_0x44d853=this[_0x1d1731(0x2a3)](_0x151dd8);if(!_0x44d853)return;let _0x46036c={'base':_0x44d853,'table':_0x1ce52a,'index':_0x372529};this[_0x1d1731(0x230)](this[_0x1d1731(0x208)][_0x1d1731(0x21c)],_0x46036c);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x1c2)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x31e7ff=>{const _0x592190=_0x4e4d0d;if(_0x31e7ff['id']!==_0x1978a1['id'])return;let {unitId:_0x2eee4c,tableId:_0x4cbd87,field:_0x4671b9,index:_0x3dcc2f,viewIndexes:_0x17441f}=_0x31e7ff[_0x592190(0x23b)],_0x4422c2=this[_0x592190(0x2a3)](_0x2eee4c);if(!_0x4422c2)return;let _0x28be05=_0x4422c2[_0x592190(0x209)](_0x4cbd87);if(!_0x28be05)return;let _0x43a0b7={'base':_0x4422c2,'table':_0x28be05,'field':_0x4671b9,'index':_0x3dcc2f,'viewIndexes':_0x17441f};this[_0x592190(0x230)](this[_0x592190(0x208)][_0x592190(0x1c2)],_0x43a0b7);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)][_0x4e4d0d(0x26d)],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x3c115e=>{const _0x4276d2=_0x4e4d0d;if(_0x3c115e['id']!==_0x22871f['id']&&_0x3c115e['id']!==_0x144dc8['id'])return;let _0x57db75=_0x3c115e[_0x4276d2(0x23b)],{unitId:_0x3a3d93,tableId:_0x47158b}=_0x57db75,_0x554f86=_0x57db75[_0x4276d2(0x24a)]??[_0x57db75[_0x4276d2(0x1ba)]],_0x22b01c=this[_0x4276d2(0x2a3)](_0x3a3d93);if(!_0x22b01c)return;let _0x13ac79=_0x22b01c[_0x4276d2(0x209)](_0x47158b);if(!_0x13ac79)return;let _0x46eccc={'base':_0x22b01c,'table':_0x13ac79,'records':_0x554f86};this[_0x4276d2(0x230)](this[_0x4276d2(0x208)][_0x4276d2(0x26d)],_0x46eccc);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)]['BaseTableViewCreated'],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x513b07=>{const _0x5b137c=_0x4e4d0d;if(_0x513b07['id']!==_0x338c3b['id'])return;let {unitId:_0x3c607e,tableId:_0x4912f5,view:_0x5c4ef7,index:_0x20c451}=_0x513b07[_0x5b137c(0x23b)],_0x586790=this[_0x5b137c(0x2a3)](_0x3c607e);if(!_0x586790)return;let _0x191b23=_0x586790['getTableById'](_0x4912f5);if(!_0x191b23)return;let _0x1289b6={'base':_0x586790,'table':_0x191b23,'view':_0x5c4ef7,'index':_0x20c451};this[_0x5b137c(0x230)](this['Event'][_0x5b137c(0x239)],_0x1289b6);}))),this[_0x4e4d0d(0x22e)](this[_0x4e4d0d(0x246)](this[_0x4e4d0d(0x208)]['BaseTableCellValueChanged'],()=>this[_0x4e4d0d(0x207)][_0x4e4d0d(0x1c1)](_0x225ebe=>{const _0x301a06=_0x4e4d0d;if(_0x225ebe['id']!==_0x54f164['id'])return;let {unitId:_0x4ef4e8,tableId:_0x4c6d23,recordId:_0x37cf48,fieldId:_0x4abd6b,value:_0x4906ef}=_0x225ebe[_0x301a06(0x23b)],_0x4d7494=this['getBase'](_0x4ef4e8);if(!_0x4d7494)return;let _0x5a4de7=_0x4d7494[_0x301a06(0x209)](_0x4c6d23);if(!_0x5a4de7)return;let _0x3b26b8=_0x5a4de7[_0x301a06(0x1fc)](_0x4abd6b);if(!_0x3b26b8)return;let _0x32fda7=_0x5a4de7[_0x301a06(0x229)](_0x37cf48);if(!_0x32fda7)return;let _0x316b02={'base':_0x4d7494,'table':_0x5a4de7,'field':_0x3b26b8,'record':_0x32fda7,'value':_0x4906ef};this['fireEvent'](this[_0x301a06(0x208)][_0x301a06(0x220)],_0x316b02);})));}[_0x336728(0x20f)](){const _0x1e78b0=_0x336728;this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)][_0x1e78b0(0x215)],()=>this[_0x1e78b0(0x207)]['beforeCommandExecuted'](_0x2017bd=>{const _0x11c011=_0x1e78b0;if($(_0x2017bd,_0x298aea)){let {unitId:_0x19d816,tableId:_0x26e5d0,patches:_0x6461e3,source:_0x5b391d=_0x4fe3fa['UI']}=_0x2017bd[_0x11c011(0x23b)],_0x4e5742=this[_0x11c011(0x1f8)](_0x19d816,_0x26e5d0);if(!_0x4e5742)return;this[_0x11c011(0x1d3)](_0x4e5742['base'],_0x4e5742[_0x11c011(0x23c)],_0x568123(_0x4e5742['table'][_0x11c011(0x1f1)](),_0x6461e3),_0x5b391d);return;}if($(_0x2017bd,_0x26fb58)){let {unitId:_0xebfa9d,tableId:_0x2b27ac,patches:_0x32100d,source:_0x396fbb=_0x4fe3fa['UI']}=_0x2017bd['params'],_0x1e0603=this[_0x11c011(0x1f8)](_0xebfa9d,_0x2b27ac);if(!_0x1e0603)return;let _0x14b176=_0x1e0603[_0x11c011(0x23c)]['getTable']();this[_0x11c011(0x1d3)](_0x1e0603[_0x11c011(0x269)],_0x1e0603[_0x11c011(0x23c)],_0x568123(_0x14b176,_0x34fccc(_0x14b176,_0x32100d)),_0x396fbb);return;}if($(_0x2017bd,_0x22871f)){let _0x2ac6b3=_0x2017bd[_0x11c011(0x23b)],_0x397942=this[_0x11c011(0x1f8)](_0x2ac6b3[_0x11c011(0x1e6)],_0x2ac6b3['tableId']);if(!_0x397942)return;this[_0x11c011(0x1d3)](_0x397942['base'],_0x397942['table'],_0x3e5dd7(_0x397942[_0x11c011(0x23c)][_0x11c011(0x1f1)](),[_0x2ac6b3[_0x11c011(0x1ba)]]),_0x2ac6b3[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x144dc8)){let _0x45ccd6=_0x2017bd['params'],_0x17bc73=this['_getHierarchyEventContext'](_0x45ccd6[_0x11c011(0x1e6)],_0x45ccd6[_0x11c011(0x281)]);if(!_0x17bc73)return;this[_0x11c011(0x1d3)](_0x17bc73[_0x11c011(0x269)],_0x17bc73['table'],_0x3e5dd7(_0x17bc73[_0x11c011(0x23c)][_0x11c011(0x1f1)](),_0x45ccd6['records']),_0x45ccd6[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x39fd7f)){let _0x2890c1=_0x2017bd[_0x11c011(0x23b)],_0x2eaaad=this[_0x11c011(0x1f8)](_0x2890c1['unitId'],_0x2890c1[_0x11c011(0x281)]);if(!_0x2eaaad)return;this[_0x11c011(0x1d3)](_0x2eaaad[_0x11c011(0x269)],_0x2eaaad[_0x11c011(0x23c)],_0x3e5dd7(_0x2eaaad[_0x11c011(0x23c)]['getTable'](),[_0x2890c1[_0x11c011(0x1ba)]]),_0x2890c1['source']??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x241dc3)){let _0x12c462=_0x2017bd['params'],_0x3afc22=this[_0x11c011(0x1f8)](_0x12c462[_0x11c011(0x1e6)],_0x12c462['tableId']);if(!_0x3afc22)return;let _0x2d636f=_0x3afc22['table'][_0x11c011(0x1f1)](),_0x27105b=_0x12c462[_0x11c011(0x1c3)]??_0x2ee0b8(_0x2d636f),_0x2f3481=_0xdaf857(_0x2d636f,_0x27105b)[_0x11c011(0x22c)]['get'](_0x12c462[_0x11c011(0x190)])??null;this[_0x11c011(0x1d3)](_0x3afc22['base'],_0x3afc22['table'],[{'tableId':_0x12c462[_0x11c011(0x281)],'fieldId':_0x27105b,'recordId':_0x12c462['recordId'],'oldParentRecordId':_0x2f3481,'parentRecordId':_0x12c462[_0x11c011(0x17e)]}],_0x12c462[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x5567bd)){let _0x4b8c4a=_0x2017bd['params'],_0x10431a=this[_0x11c011(0x1f8)](_0x4b8c4a[_0x11c011(0x1e6)],_0x4b8c4a[_0x11c011(0x281)]);if(!_0x10431a)return;let _0x2ab84a=_0x4b8c4a[_0x11c011(0x1c3)]??_0x2ee0b8(_0x10431a['table']['getTable']());this['_fireBeforeHierarchyChange'](_0x10431a[_0x11c011(0x269)],_0x10431a['table'],[{'tableId':_0x4b8c4a[_0x11c011(0x281)],'fieldId':_0x2ab84a,'recordId':_0x4b8c4a[_0x11c011(0x1ba)]['id'],'oldParentRecordId':null,'parentRecordId':_0x4b8c4a['parentRecordId']}],_0x4b8c4a['source']??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x384f53)){let _0x6a497e=_0x2017bd[_0x11c011(0x23b)],_0x1427c7=this['_getHierarchyEventContext'](_0x6a497e[_0x11c011(0x1e6)],_0x6a497e[_0x11c011(0x281)]);if(!_0x1427c7)return;this[_0x11c011(0x1d3)](_0x1427c7[_0x11c011(0x269)],_0x1427c7[_0x11c011(0x23c)],_0x3282d7(_0x1427c7[_0x11c011(0x23c)][_0x11c011(0x1f1)](),[_0x6a497e[_0x11c011(0x190)]]),_0x6a497e[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if($(_0x2017bd,_0x20826e)){let _0x472afa=_0x2017bd['params'],_0x488776=this[_0x11c011(0x1f8)](_0x472afa[_0x11c011(0x1e6)],_0x472afa['tableId']);if(!_0x488776)return;this['_fireBeforeHierarchyChange'](_0x488776[_0x11c011(0x269)],_0x488776[_0x11c011(0x23c)],_0x3282d7(_0x488776[_0x11c011(0x23c)][_0x11c011(0x1f1)](),_0x472afa['recordIds']),_0x472afa[_0x11c011(0x18a)]??_0x4fe3fa['UI']);return;}if(!$(_0x2017bd,_0x54f164))return;let _0x56bf4d=_0x2017bd[_0x11c011(0x23b)],_0x50ed9c=this[_0x11c011(0x1f8)](_0x56bf4d['unitId'],_0x56bf4d['tableId']);if(!_0x50ed9c)return;let _0x38026d=_0x50ed9c[_0x11c011(0x23c)][_0x11c011(0x1f1)]();if(!_0x12eab2(_0x38026d)[_0x11c011(0x24d)](_0x56bf4d[_0x11c011(0x1c3)]))return;let _0x3965cd=_0xdaf857(_0x38026d,_0x56bf4d[_0x11c011(0x1c3)])[_0x11c011(0x22c)][_0x11c011(0x19b)](_0x56bf4d[_0x11c011(0x190)])??null,_0xe8ecd2=_0x1e19fe(_0x56bf4d[_0x11c011(0x1b4)])[0x0]??null;_0x3965cd!==_0xe8ecd2&&this[_0x11c011(0x1d3)](_0x50ed9c['base'],_0x50ed9c[_0x11c011(0x23c)],[{'tableId':_0x56bf4d[_0x11c011(0x281)],'fieldId':_0x56bf4d[_0x11c011(0x1c3)],'recordId':_0x56bf4d[_0x11c011(0x190)],'oldParentRecordId':_0x3965cd,'parentRecordId':_0xe8ecd2}],_0x56bf4d['source']??_0x4fe3fa['UI']);}))),this['disposeWithMe'](this[_0x1e78b0(0x246)](this['Event'][_0x1e78b0(0x1ed)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x438c4e=>{const _0x2aa364=_0x1e78b0;if(_0x438c4e['id']!==_0x3cc0d1['id'])return;let {unitId:_0x305653,table:_0x5d1dc6,index:_0x37c3d3}=_0x438c4e[_0x2aa364(0x23b)],_0x25b0f4=this[_0x2aa364(0x2a3)](_0x305653);if(!_0x25b0f4)return;let _0x39c981={'base':_0x25b0f4,'table':_0x5d1dc6,'index':_0x37c3d3};if(this[_0x2aa364(0x230)](this[_0x2aa364(0x208)][_0x2aa364(0x1ed)],_0x39c981),_0x39c981[_0x2aa364(0x1dd)])throw new _0x10ac7b();}))),this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)]['BeforeBaseTableFieldCreate'],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x5758e4=>{const _0x2269a0=_0x1e78b0;if(_0x5758e4['id']!==_0x1978a1['id'])return;let {unitId:_0x49980c,tableId:_0x5d9051,field:_0x22a509,index:_0x3cc1ea,viewIndexes:_0x4e9aa3}=_0x5758e4[_0x2269a0(0x23b)],_0x3e4f89=this[_0x2269a0(0x2a3)](_0x49980c);if(!_0x3e4f89)return;let _0x135dbc=_0x3e4f89[_0x2269a0(0x209)](_0x5d9051);if(!_0x135dbc)return;let _0x2434a7={'base':_0x3e4f89,'table':_0x135dbc,'field':_0x22a509,'index':_0x3cc1ea,'viewIndexes':_0x4e9aa3};if(this[_0x2269a0(0x230)](this[_0x2269a0(0x208)]['BeforeBaseTableFieldCreate'],_0x2434a7),_0x2434a7['cancel'])throw new _0x10ac7b();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x1e78b0(0x1dc)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x516690=>{const _0x558958=_0x1e78b0;if(_0x516690['id']!==_0x22871f['id']&&_0x516690['id']!==_0x144dc8['id'])return;let _0xcdfa49=_0x516690['params'],{unitId:_0x502a21,tableId:_0x2d13ad}=_0xcdfa49,_0x1c6fa6=_0xcdfa49[_0x558958(0x24a)]??[_0xcdfa49[_0x558958(0x1ba)]],_0x81af21=this['getBase'](_0x502a21);if(!_0x81af21)return;let _0x11bdc4=_0x81af21[_0x558958(0x209)](_0x2d13ad);if(!_0x11bdc4)return;let _0x2b751a={'base':_0x81af21,'table':_0x11bdc4,'records':_0x1c6fa6};if(this[_0x558958(0x230)](this[_0x558958(0x208)][_0x558958(0x1dc)],_0x2b751a),_0x2b751a['cancel'])throw new _0x10ac7b();}))),this[_0x1e78b0(0x22e)](this[_0x1e78b0(0x246)](this[_0x1e78b0(0x208)][_0x1e78b0(0x276)],()=>this[_0x1e78b0(0x207)]['beforeCommandExecuted'](_0x362d62=>{const _0x59c772=_0x1e78b0;if(_0x362d62['id']!==_0x338c3b['id'])return;let {unitId:_0xc01a34,tableId:_0x47aa6a,view:_0x3bc369,index:_0xb64222}=_0x362d62[_0x59c772(0x23b)],_0x361333=this['getBase'](_0xc01a34);if(!_0x361333)return;let _0xdb0df2=_0x361333['getTableById'](_0x47aa6a);if(!_0xdb0df2)return;let _0x1f56f9={'base':_0x361333,'table':_0xdb0df2,'view':_0x3bc369,'index':_0xb64222};if(this[_0x59c772(0x230)](this[_0x59c772(0x208)][_0x59c772(0x276)],_0x1f56f9),_0x1f56f9[_0x59c772(0x1dd)])throw new _0x10ac7b();}))),this['disposeWithMe'](this['registerEventHandler'](this['Event'][_0x1e78b0(0x223)],()=>this[_0x1e78b0(0x207)][_0x1e78b0(0x1cf)](_0x14ceec=>{const _0x123a60=_0x1e78b0;if(_0x14ceec['id']!==_0x54f164['id'])return;let {unitId:_0x4d75ca,tableId:_0x582119,recordId:_0x5ed89a,fieldId:_0x9eca76,value:_0x243299}=_0x14ceec[_0x123a60(0x23b)],_0x1861a6=this[_0x123a60(0x2a3)](_0x4d75ca);if(!_0x1861a6)return;let _0x5368a6=_0x1861a6[_0x123a60(0x209)](_0x582119);if(!_0x5368a6)return;let _0x24995a=_0x5368a6[_0x123a60(0x1fc)](_0x9eca76);if(!_0x24995a)return;let _0x1b715e=_0x5368a6['getRecordById'](_0x5ed89a);if(!_0x1b715e)return;let _0x46758a={'base':_0x1861a6,'table':_0x5368a6,'field':_0x24995a,'record':_0x1b715e,'value':_0x243299};if(this['fireEvent'](this[_0x123a60(0x208)][_0x123a60(0x223)],_0x46758a),_0x46758a['cancel'])throw new _0x10ac7b();})));}[_0x336728(0x1f8)](_0x3e13e5,_0xeb0d60){const _0x496477=_0x336728;let _0x4b9c5f=this[_0x496477(0x2a3)](_0x3e13e5),_0x25a7e5=_0x4b9c5f==null?void 0x0:_0x4b9c5f[_0x496477(0x209)](_0xeb0d60);return _0x4b9c5f&&_0x25a7e5?{'base':_0x4b9c5f,'table':_0x25a7e5}:null;}[_0x336728(0x1d3)](_0x5b2827,_0x5e2604,_0x70efdc,_0x10abf7){const _0x1bd9b2=_0x336728;if(!_0x70efdc[_0x1bd9b2(0x1b5)])return;let _0x2df0ea={'base':_0x5b2827,'table':_0x5e2604,'changes':_0x70efdc,'source':_0x10abf7};if(this['fireEvent'](this[_0x1bd9b2(0x208)]['BeforeBaseHierarchyChange'],_0x2df0ea),_0x2df0ea['cancel'])throw new _0x10ac7b();}};function $(_0x1055c6,_0x21b291){const _0x4af634=_0x336728;return _0x1055c6['id']===_0x21b291['id']&&_0x1055c6[_0x4af634(0x23b)]!==void 0x0;}_0x7df423['extend'](tt);var nt=class extends _0x530ba6{get[_0x336728(0x180)](){return _0x33d599;}get[_0x336728(0x27e)](){return _0x5f2ca0;}get[_0x336728(0x1ec)](){return _0xf6848f;}get['BaseFieldKeyEnum'](){return R;}get[_0x336728(0x1bd)](){return _0x35b90a;}get[_0x336728(0x19c)](){return _0x46b2d8;}get[_0x336728(0x18c)](){return _0x4e80c8;}get[_0x336728(0x236)](){return _0xd4945d;}get[_0x336728(0x20e)](){return _0x4baab9;}get['BaseEventSource'](){return _0x4fe3fa;}get['BaseHierarchyErrorCode'](){return _0x3d171b;}get['BaseHierarchyInvalidReason'](){return _0x1c2958;}get['BaseRecordLinkRole'](){return _0x523fee;}};_0x530ba6['extend'](nt);var rt=class extends _0x23c09b{get[_0x336728(0x21c)](){const _0x5b38ad=_0x336728;return _0x5b38ad(0x21c);}get[_0x336728(0x1ed)](){const _0x15a6c5=_0x336728;return _0x15a6c5(0x1ed);}get[_0x336728(0x1c2)](){const _0x54c677=_0x336728;return _0x54c677(0x1c2);}get[_0x336728(0x263)](){const _0x3ee009=_0x336728;return _0x3ee009(0x263);}get[_0x336728(0x26d)](){const _0x29d3d9=_0x336728;return _0x29d3d9(0x26d);}get[_0x336728(0x1dc)](){return'BeforeBaseTableRecordCreate';}get[_0x336728(0x239)](){const _0x4dd864=_0x336728;return _0x4dd864(0x239);}get[_0x336728(0x276)](){const _0x3d9a65=_0x336728;return _0x3d9a65(0x276);}get[_0x336728(0x220)](){const _0x42d6c5=_0x336728;return _0x42d6c5(0x220);}get[_0x336728(0x223)](){return'BeforeBaseTableCellValueChange';}get[_0x336728(0x295)](){return'BaseHierarchyChanged';}get[_0x336728(0x215)](){return'BeforeBaseHierarchyChange';}};_0x23c09b['extend'](rt);export{R as BaseFieldKeyEnum,Q as FBase,Z as FBaseTable,L as FBaseTableField,q as FBaseTableRange,Y as FBaseTableRecord,X as FBaseTableView,rt as FBasesEventNameMixin,H as resolveBaseFieldKey,B as resolveBaseFieldValues};