@zensoftbr/zenerpclient 1.0.16 → 1.0.18

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 (608) hide show
  1. package/dist/cjs/I18n.js +9 -75
  2. package/dist/cjs/I18n.js.map +1 -1
  3. package/dist/cjs/api/api.module.js +2 -1
  4. package/dist/cjs/api/api.module.js.map +1 -1
  5. package/dist/cjs/api/auth/ArgsLogin.js +10 -0
  6. package/dist/cjs/api/auth/ArgsLogin.js.map +1 -0
  7. package/dist/cjs/api/auth/ArgsRegister.js +11 -0
  8. package/dist/cjs/api/auth/ArgsRegister.js.map +1 -0
  9. package/dist/cjs/api/auth/AuthService.js +67 -0
  10. package/dist/cjs/api/auth/AuthService.js.map +1 -0
  11. package/dist/cjs/api/auth/TokenResponse.js +9 -0
  12. package/dist/cjs/api/auth/TokenResponse.js.map +1 -0
  13. package/dist/cjs/api/auth/auth.module.js +8 -0
  14. package/dist/cjs/api/auth/auth.module.js.map +1 -0
  15. package/dist/cjs/api/catalog/CatalogService.js +2 -0
  16. package/dist/cjs/api/catalog/CatalogService.js.map +1 -1
  17. package/dist/cjs/api/catalog/company/CompanyService.js +4 -0
  18. package/dist/cjs/api/catalog/company/CompanyService.js.map +1 -1
  19. package/dist/cjs/api/catalog/location/LocationService.js +7 -0
  20. package/dist/cjs/api/catalog/location/LocationService.js.map +1 -1
  21. package/dist/cjs/api/catalog/person/Person.js +2 -0
  22. package/dist/cjs/api/catalog/person/Person.js.map +1 -1
  23. package/dist/cjs/api/catalog/person/PersonService.js +12 -0
  24. package/dist/cjs/api/catalog/person/PersonService.js.map +1 -1
  25. package/dist/cjs/api/catalog/product/ProductProfile.js +1 -0
  26. package/dist/cjs/api/catalog/product/ProductProfile.js.map +1 -1
  27. package/dist/cjs/api/catalog/product/ProductService.js +21 -0
  28. package/dist/cjs/api/catalog/product/ProductService.js.map +1 -1
  29. package/dist/cjs/api/commercial/CommercialService.js +3 -0
  30. package/dist/cjs/api/commercial/CommercialService.js.map +1 -1
  31. package/dist/cjs/api/commercial/contract/ArgsContractBillingOpCreateInvoice.js +9 -0
  32. package/dist/cjs/api/commercial/contract/ArgsContractBillingOpCreateInvoice.js.map +1 -0
  33. package/dist/cjs/api/commercial/contract/ContractService.js +14 -2
  34. package/dist/cjs/api/commercial/contract/ContractService.js.map +1 -1
  35. package/dist/cjs/api/financial/FinancialService.js +17 -0
  36. package/dist/cjs/api/financial/FinancialService.js.map +1 -1
  37. package/dist/cjs/api/financial/accounting/AccountingService.js +24 -0
  38. package/dist/cjs/api/financial/accounting/AccountingService.js.map +1 -1
  39. package/dist/cjs/api/financial/billing/BillingService.js +10 -0
  40. package/dist/cjs/api/financial/billing/BillingService.js.map +1 -1
  41. package/dist/cjs/api/financial/credit/CreditService.js +4 -0
  42. package/dist/cjs/api/financial/credit/CreditService.js.map +1 -1
  43. package/dist/cjs/api/financial/treasury/TreasuryService.js +5 -0
  44. package/dist/cjs/api/financial/treasury/TreasuryService.js.map +1 -1
  45. package/dist/cjs/api/fiscal/FiscalService.js +48 -0
  46. package/dist/cjs/api/fiscal/FiscalService.js.map +1 -1
  47. package/dist/cjs/api/fiscal/br/FiscalBrService.js +9 -0
  48. package/dist/cjs/api/fiscal/br/FiscalBrService.js.map +1 -1
  49. package/dist/cjs/api/fiscal/taxation/TaxationService.js +8 -0
  50. package/dist/cjs/api/fiscal/taxation/TaxationService.js.map +1 -1
  51. package/dist/cjs/api/logistic/LogisticService.js +4 -0
  52. package/dist/cjs/api/logistic/LogisticService.js.map +1 -1
  53. package/dist/cjs/api/material/ArgsIncomingListOpImportFromOutgoingList.js +1 -0
  54. package/dist/cjs/api/material/ArgsIncomingListOpImportFromOutgoingList.js.map +1 -1
  55. package/dist/cjs/api/material/IncomingListItem.js +1 -0
  56. package/dist/cjs/api/material/IncomingListItem.js.map +1 -1
  57. package/dist/cjs/api/material/MaterialService.js +74 -0
  58. package/dist/cjs/api/material/MaterialService.js.map +1 -1
  59. package/dist/cjs/api/material/Volume.js +1 -0
  60. package/dist/cjs/api/material/Volume.js.map +1 -1
  61. package/dist/cjs/api/sale/ArgsSaleOpSplit.js +8 -0
  62. package/dist/cjs/api/sale/ArgsSaleOpSplit.js.map +1 -0
  63. package/dist/cjs/api/sale/QuoteItem.js +0 -1
  64. package/dist/cjs/api/sale/QuoteItem.js.map +1 -1
  65. package/dist/cjs/api/sale/QuoteItemProposal.js +1 -1
  66. package/dist/cjs/api/sale/QuoteItemProposal.js.map +1 -1
  67. package/dist/cjs/api/sale/SaleService.js +80 -14
  68. package/dist/cjs/api/sale/SaleService.js.map +1 -1
  69. package/dist/cjs/api/shipping/ShippingService.js +2 -0
  70. package/dist/cjs/api/shipping/ShippingService.js.map +1 -1
  71. package/dist/cjs/api/supply/production/ProductionService.js +56 -33
  72. package/dist/cjs/api/supply/production/ProductionService.js.map +1 -1
  73. package/dist/cjs/api/supply/production/ProductionStep.js +6 -0
  74. package/dist/cjs/api/supply/production/ProductionStep.js.map +1 -1
  75. package/dist/cjs/api/supply/production/ProductionStepConsumption.js +14 -0
  76. package/dist/cjs/api/supply/production/ProductionStepConsumption.js.map +1 -0
  77. package/dist/cjs/api/supply/production/ProductionStepProduction.js +15 -0
  78. package/dist/cjs/api/supply/production/ProductionStepProduction.js.map +1 -0
  79. package/dist/cjs/api/supply/production/production.module.js +5 -5
  80. package/dist/cjs/api/supply/production/production.module.js.map +1 -1
  81. package/dist/cjs/api/supply/purchase/ArgsPurchaseOpSplit.js +8 -0
  82. package/dist/cjs/api/supply/purchase/ArgsPurchaseOpSplit.js.map +1 -0
  83. package/dist/cjs/api/supply/purchase/PurchaseService.js +52 -0
  84. package/dist/cjs/api/supply/purchase/PurchaseService.js.map +1 -1
  85. package/dist/cjs/api/system/SystemService.js +4 -0
  86. package/dist/cjs/api/system/SystemService.js.map +1 -1
  87. package/dist/cjs/api/system/audit/AuditService.js +3 -0
  88. package/dist/cjs/api/system/audit/AuditService.js.map +1 -1
  89. package/dist/cjs/api/system/automation/AutomationService.js +7 -0
  90. package/dist/cjs/api/system/automation/AutomationService.js.map +1 -1
  91. package/dist/cjs/api/system/data/DataService.js +25 -0
  92. package/dist/cjs/api/system/data/DataService.js.map +1 -1
  93. package/dist/cjs/api/system/data/DataSourceField.js +13 -0
  94. package/dist/cjs/api/system/data/DataSourceField.js.map +1 -0
  95. package/dist/cjs/api/system/data/data.module.js +3 -1
  96. package/dist/cjs/api/system/data/data.module.js.map +1 -1
  97. package/dist/cjs/api/system/file/FileService.js +2 -0
  98. package/dist/cjs/api/system/file/FileService.js.map +1 -1
  99. package/dist/cjs/api/system/frontend/FrontendService.js +3 -0
  100. package/dist/cjs/api/system/frontend/FrontendService.js.map +1 -1
  101. package/dist/cjs/api/system/image/ImageService.js +2 -0
  102. package/dist/cjs/api/system/image/ImageService.js.map +1 -1
  103. package/dist/cjs/api/system/integration/IntegrationService.js +8 -0
  104. package/dist/cjs/api/system/integration/IntegrationService.js.map +1 -1
  105. package/dist/cjs/api/system/mail/MailService.js +3 -0
  106. package/dist/cjs/api/system/mail/MailService.js.map +1 -1
  107. package/dist/cjs/api/system/printing/PrintingService.js +3 -0
  108. package/dist/cjs/api/system/printing/PrintingService.js.map +1 -1
  109. package/dist/cjs/api/system/report/ReportService.js +4 -0
  110. package/dist/cjs/api/system/report/ReportService.js.map +1 -1
  111. package/dist/cjs/api/system/security/SecurityService.js +27 -0
  112. package/dist/cjs/api/system/security/SecurityService.js.map +1 -1
  113. package/dist/cjs/api/system/storage/StorageService.js +2 -0
  114. package/dist/cjs/api/system/storage/StorageService.js.map +1 -1
  115. package/dist/cjs/api/system/workflow/WorkflowService.js +7 -0
  116. package/dist/cjs/api/system/workflow/WorkflowService.js.map +1 -1
  117. package/dist/cjs/components/AsyncIterableZen.js +31 -0
  118. package/dist/cjs/components/AsyncIterableZen.js.map +1 -0
  119. package/dist/cjs/components/AsyncIteratorZen.js +97 -0
  120. package/dist/cjs/components/AsyncIteratorZen.js.map +1 -0
  121. package/dist/cjs/components/ControlCatalogCategory.js +46 -0
  122. package/dist/cjs/components/ControlCatalogCategory.js.map +1 -0
  123. package/dist/cjs/components/ControlCatalogCompanyCompany.js +47 -0
  124. package/dist/cjs/components/ControlCatalogCompanyCompany.js.map +1 -0
  125. package/dist/cjs/components/ControlCatalogCompanySociety.js +47 -0
  126. package/dist/cjs/components/ControlCatalogCompanySociety.js.map +1 -0
  127. package/dist/cjs/components/ControlCatalogLocationCity.js +46 -0
  128. package/dist/cjs/components/ControlCatalogLocationCity.js.map +1 -0
  129. package/dist/cjs/components/ControlCatalogLocationCountry.js +49 -0
  130. package/dist/cjs/components/ControlCatalogLocationCountry.js.map +1 -0
  131. package/dist/cjs/components/ControlCatalogLocationState.js +47 -0
  132. package/dist/cjs/components/ControlCatalogLocationState.js.map +1 -0
  133. package/dist/cjs/components/ControlCatalogPersonPerson.js +55 -0
  134. package/dist/cjs/components/ControlCatalogPersonPerson.js.map +1 -0
  135. package/dist/cjs/components/ControlCatalogPersonPersonAddress.js +66 -0
  136. package/dist/cjs/components/ControlCatalogPersonPersonAddress.js.map +1 -0
  137. package/dist/cjs/components/ControlCatalogPersonPersonGroup.js +46 -0
  138. package/dist/cjs/components/ControlCatalogPersonPersonGroup.js.map +1 -0
  139. package/dist/cjs/components/ControlCatalogProductCodeConversionList.js +46 -0
  140. package/dist/cjs/components/ControlCatalogProductCodeConversionList.js.map +1 -0
  141. package/dist/cjs/components/ControlCatalogProductDimension.js +46 -0
  142. package/dist/cjs/components/ControlCatalogProductDimension.js.map +1 -0
  143. package/dist/cjs/components/ControlCatalogProductProduct.js +58 -0
  144. package/dist/cjs/components/ControlCatalogProductProduct.js.map +1 -0
  145. package/dist/cjs/components/ControlCatalogProductProductPacking.js +81 -0
  146. package/dist/cjs/components/ControlCatalogProductProductPacking.js.map +1 -0
  147. package/dist/cjs/components/ControlCatalogProductProductProfile.js +47 -0
  148. package/dist/cjs/components/ControlCatalogProductProductProfile.js.map +1 -0
  149. package/dist/cjs/components/ControlCatalogProductProductVariant.js +47 -0
  150. package/dist/cjs/components/ControlCatalogProductProductVariant.js.map +1 -0
  151. package/dist/cjs/components/ControlCatalogProductUnit.js +47 -0
  152. package/dist/cjs/components/ControlCatalogProductUnit.js.map +1 -0
  153. package/dist/cjs/components/ControlCheckBox.js +42 -0
  154. package/dist/cjs/components/ControlCheckBox.js.map +1 -0
  155. package/dist/cjs/components/ControlColor.js +56 -0
  156. package/dist/cjs/components/ControlColor.js.map +1 -0
  157. package/dist/cjs/components/ControlCommercialContractContract.js +46 -0
  158. package/dist/cjs/components/ControlCommercialContractContract.js.map +1 -0
  159. package/dist/cjs/components/ControlCommercialContractContractIndex.js +47 -0
  160. package/dist/cjs/components/ControlCommercialContractContractIndex.js.map +1 -0
  161. package/dist/cjs/components/ControlCommercialContractContractItem.js +47 -0
  162. package/dist/cjs/components/ControlCommercialContractContractItem.js.map +1 -0
  163. package/dist/cjs/components/ControlCommercialContractContractProfile.js +47 -0
  164. package/dist/cjs/components/ControlCommercialContractContractProfile.js.map +1 -0
  165. package/dist/cjs/components/ControlCommercialPaymentType.js +46 -0
  166. package/dist/cjs/components/ControlCommercialPaymentType.js.map +1 -0
  167. package/dist/cjs/components/ControlCommercialPriceList.js +47 -0
  168. package/dist/cjs/components/ControlCommercialPriceList.js.map +1 -0
  169. package/dist/cjs/components/ControlDatetime.js +71 -0
  170. package/dist/cjs/components/ControlDatetime.js.map +1 -0
  171. package/dist/cjs/components/ControlFinancialAccountingAccount.js +48 -0
  172. package/dist/cjs/components/ControlFinancialAccountingAccount.js.map +1 -0
  173. package/dist/cjs/components/ControlFinancialAccountingAccountCategory.js +46 -0
  174. package/dist/cjs/components/ControlFinancialAccountingAccountCategory.js.map +1 -0
  175. package/dist/cjs/components/ControlFinancialAccountingAccountChart.js +47 -0
  176. package/dist/cjs/components/ControlFinancialAccountingAccountChart.js.map +1 -0
  177. package/dist/cjs/components/ControlFinancialAccountingAccountFiscalYear.js +52 -0
  178. package/dist/cjs/components/ControlFinancialAccountingAccountFiscalYear.js.map +1 -0
  179. package/dist/cjs/components/ControlFinancialAccountingResultCenter.js +48 -0
  180. package/dist/cjs/components/ControlFinancialAccountingResultCenter.js.map +1 -0
  181. package/dist/cjs/components/ControlFinancialAccountingResultCenterChart.js +47 -0
  182. package/dist/cjs/components/ControlFinancialAccountingResultCenterChart.js.map +1 -0
  183. package/dist/cjs/components/ControlFinancialBillingWallet.js +46 -0
  184. package/dist/cjs/components/ControlFinancialBillingWallet.js.map +1 -0
  185. package/dist/cjs/components/ControlFinancialCreditCreditLine.js +46 -0
  186. package/dist/cjs/components/ControlFinancialCreditCreditLine.js.map +1 -0
  187. package/dist/cjs/components/ControlFinancialCurrency.js +46 -0
  188. package/dist/cjs/components/ControlFinancialCurrency.js.map +1 -0
  189. package/dist/cjs/components/ControlFinancialPayable.js +47 -0
  190. package/dist/cjs/components/ControlFinancialPayable.js.map +1 -0
  191. package/dist/cjs/components/ControlFinancialReceivable.js +47 -0
  192. package/dist/cjs/components/ControlFinancialReceivable.js.map +1 -0
  193. package/dist/cjs/components/ControlFiscalFiscalProfileOperation.js +47 -0
  194. package/dist/cjs/components/ControlFiscalFiscalProfileOperation.js.map +1 -0
  195. package/dist/cjs/components/ControlFiscalFiscalProfilePerson.js +45 -0
  196. package/dist/cjs/components/ControlFiscalFiscalProfilePerson.js.map +1 -0
  197. package/dist/cjs/components/ControlFiscalFiscalProfileProduct.js +47 -0
  198. package/dist/cjs/components/ControlFiscalFiscalProfileProduct.js.map +1 -0
  199. package/dist/cjs/components/ControlFiscalFiscalRegion.js +46 -0
  200. package/dist/cjs/components/ControlFiscalFiscalRegion.js.map +1 -0
  201. package/dist/cjs/components/ControlFiscalIncomingInvoice.js +57 -0
  202. package/dist/cjs/components/ControlFiscalIncomingInvoice.js.map +1 -0
  203. package/dist/cjs/components/ControlFiscalInvoiceSeries.js +46 -0
  204. package/dist/cjs/components/ControlFiscalInvoiceSeries.js.map +1 -0
  205. package/dist/cjs/components/ControlFiscalTaxationTax.js +46 -0
  206. package/dist/cjs/components/ControlFiscalTaxationTax.js.map +1 -0
  207. package/dist/cjs/components/ControlFiscalTaxationTaxationOperation.js +47 -0
  208. package/dist/cjs/components/ControlFiscalTaxationTaxationOperation.js.map +1 -0
  209. package/dist/cjs/components/ControlFiscalVolume.js +46 -0
  210. package/dist/cjs/components/ControlFiscalVolume.js.map +1 -0
  211. package/dist/cjs/components/ControlHideAndSeek.js +60 -0
  212. package/dist/cjs/components/ControlHideAndSeek.js.map +1 -0
  213. package/dist/cjs/components/ControlInput.js +70 -0
  214. package/dist/cjs/components/ControlInput.js.map +1 -0
  215. package/dist/cjs/components/ControlInputBoolean.js +59 -0
  216. package/dist/cjs/components/ControlInputBoolean.js.map +1 -0
  217. package/dist/cjs/components/ControlInputNumber.js +101 -0
  218. package/dist/cjs/components/ControlInputNumber.js.map +1 -0
  219. package/dist/cjs/components/ControlMaterialAddress.js +46 -0
  220. package/dist/cjs/components/ControlMaterialAddress.js.map +1 -0
  221. package/dist/cjs/components/ControlMaterialAddressProfile.js +46 -0
  222. package/dist/cjs/components/ControlMaterialAddressProfile.js.map +1 -0
  223. package/dist/cjs/components/ControlMaterialHandlintUnit.js +46 -0
  224. package/dist/cjs/components/ControlMaterialHandlintUnit.js.map +1 -0
  225. package/dist/cjs/components/ControlMaterialIncomingList.js +50 -0
  226. package/dist/cjs/components/ControlMaterialIncomingList.js.map +1 -0
  227. package/dist/cjs/components/ControlMaterialIncomingRequest.js +50 -0
  228. package/dist/cjs/components/ControlMaterialIncomingRequest.js.map +1 -0
  229. package/dist/cjs/components/ControlMaterialInventory.js +46 -0
  230. package/dist/cjs/components/ControlMaterialInventory.js.map +1 -0
  231. package/dist/cjs/components/ControlMaterialLot.js +46 -0
  232. package/dist/cjs/components/ControlMaterialLot.js.map +1 -0
  233. package/dist/cjs/components/ControlMaterialOutgoingList.js +46 -0
  234. package/dist/cjs/components/ControlMaterialOutgoingList.js.map +1 -0
  235. package/dist/cjs/components/ControlMaterialPickingOrder.js +46 -0
  236. package/dist/cjs/components/ControlMaterialPickingOrder.js.map +1 -0
  237. package/dist/cjs/components/ControlMaterialPickingProfile.js +47 -0
  238. package/dist/cjs/components/ControlMaterialPickingProfile.js.map +1 -0
  239. package/dist/cjs/components/ControlMaterialProductProfile.js +46 -0
  240. package/dist/cjs/components/ControlMaterialProductProfile.js.map +1 -0
  241. package/dist/cjs/components/ControlMaterialQuality.js +46 -0
  242. package/dist/cjs/components/ControlMaterialQuality.js.map +1 -0
  243. package/dist/cjs/components/ControlMaterialReservation.js +46 -0
  244. package/dist/cjs/components/ControlMaterialReservation.js.map +1 -0
  245. package/dist/cjs/components/ControlMaterialReservationTarget.js +48 -0
  246. package/dist/cjs/components/ControlMaterialReservationTarget.js.map +1 -0
  247. package/dist/cjs/components/ControlMaterialSerial.js +46 -0
  248. package/dist/cjs/components/ControlMaterialSerial.js.map +1 -0
  249. package/dist/cjs/components/ControlMaterialStockCluster.js +47 -0
  250. package/dist/cjs/components/ControlMaterialStockCluster.js.map +1 -0
  251. package/dist/cjs/components/ControlMaterialStockType.js +52 -0
  252. package/dist/cjs/components/ControlMaterialStockType.js.map +1 -0
  253. package/dist/cjs/components/ControlMaterialWarehouse.js +46 -0
  254. package/dist/cjs/components/ControlMaterialWarehouse.js.map +1 -0
  255. package/dist/cjs/components/ControlSalePriceFormation.js +47 -0
  256. package/dist/cjs/components/ControlSalePriceFormation.js.map +1 -0
  257. package/dist/cjs/components/ControlSalePriceList.js +47 -0
  258. package/dist/cjs/components/ControlSalePriceList.js.map +1 -0
  259. package/dist/cjs/components/ControlSaleSale.js +50 -0
  260. package/dist/cjs/components/ControlSaleSale.js.map +1 -0
  261. package/dist/cjs/components/ControlSaleSaleProfile.js +47 -0
  262. package/dist/cjs/components/ControlSaleSaleProfile.js.map +1 -0
  263. package/dist/cjs/components/ControlSelect.js +73 -0
  264. package/dist/cjs/components/ControlSelect.js.map +1 -0
  265. package/dist/cjs/components/ControlSelectAbstract.js +500 -0
  266. package/dist/cjs/components/ControlSelectAbstract.js.map +1 -0
  267. package/dist/cjs/components/ControlSelectZen.js +126 -0
  268. package/dist/cjs/components/ControlSelectZen.js.map +1 -0
  269. package/dist/cjs/components/ControlShippingShipment.js +45 -0
  270. package/dist/cjs/components/ControlShippingShipment.js.map +1 -0
  271. package/dist/cjs/components/ControlSupplyProductionOperationType.js +46 -0
  272. package/dist/cjs/components/ControlSupplyProductionOperationType.js.map +1 -0
  273. package/dist/cjs/components/ControlSupplyProductionProductionOrder.js +50 -0
  274. package/dist/cjs/components/ControlSupplyProductionProductionOrder.js.map +1 -0
  275. package/dist/cjs/components/ControlSupplyProductionProductionProfile.js +47 -0
  276. package/dist/cjs/components/ControlSupplyProductionProductionProfile.js.map +1 -0
  277. package/dist/cjs/components/ControlSupplyProductionProductionStep.js +50 -0
  278. package/dist/cjs/components/ControlSupplyProductionProductionStep.js.map +1 -0
  279. package/dist/cjs/components/ControlSupplyPurchasePriceList.js +47 -0
  280. package/dist/cjs/components/ControlSupplyPurchasePriceList.js.map +1 -0
  281. package/dist/cjs/components/ControlSupplyPurchasePurchase.js +60 -0
  282. package/dist/cjs/components/ControlSupplyPurchasePurchase.js.map +1 -0
  283. package/dist/cjs/components/ControlSupplyPurchasePurchaseItem.js +58 -0
  284. package/dist/cjs/components/ControlSupplyPurchasePurchaseItem.js.map +1 -0
  285. package/dist/cjs/components/ControlSupplyPurchasePurchaseProfile.js +47 -0
  286. package/dist/cjs/components/ControlSupplyPurchasePurchaseProfile.js.map +1 -0
  287. package/dist/cjs/components/ControlSupplyPurchaseQuoteItem.js +55 -0
  288. package/dist/cjs/components/ControlSupplyPurchaseQuoteItem.js.map +1 -0
  289. package/dist/cjs/components/ControlSvg.js +31 -0
  290. package/dist/cjs/components/ControlSvg.js.map +1 -0
  291. package/dist/cjs/components/ControlSwitch.js +44 -0
  292. package/dist/cjs/components/ControlSwitch.js.map +1 -0
  293. package/dist/cjs/components/ControlSwitches.js +63 -0
  294. package/dist/cjs/components/ControlSwitches.js.map +1 -0
  295. package/dist/cjs/components/ControlSystemAutomationAgent.js +46 -0
  296. package/dist/cjs/components/ControlSystemAutomationAgent.js.map +1 -0
  297. package/dist/cjs/components/ControlSystemDataDataSource.js +46 -0
  298. package/dist/cjs/components/ControlSystemDataDataSource.js.map +1 -0
  299. package/dist/cjs/components/ControlSystemImageImage.js +47 -0
  300. package/dist/cjs/components/ControlSystemImageImage.js.map +1 -0
  301. package/dist/cjs/components/ControlSystemIntegrationQueue.js +46 -0
  302. package/dist/cjs/components/ControlSystemIntegrationQueue.js.map +1 -0
  303. package/dist/cjs/components/ControlSystemIntegrationTopic.js +46 -0
  304. package/dist/cjs/components/ControlSystemIntegrationTopic.js.map +1 -0
  305. package/dist/cjs/components/ControlSystemMailMailerConfig.js +47 -0
  306. package/dist/cjs/components/ControlSystemMailMailerConfig.js.map +1 -0
  307. package/dist/cjs/components/ControlSystemPrintingPrinter.js +47 -0
  308. package/dist/cjs/components/ControlSystemPrintingPrinter.js.map +1 -0
  309. package/dist/cjs/components/ControlSystemReportReport.js +46 -0
  310. package/dist/cjs/components/ControlSystemReportReport.js.map +1 -0
  311. package/dist/cjs/components/ControlSystemSecurityAccessPoint.js +47 -0
  312. package/dist/cjs/components/ControlSystemSecurityAccessPoint.js.map +1 -0
  313. package/dist/cjs/components/ControlSystemSecurityAccessProfile.js +47 -0
  314. package/dist/cjs/components/ControlSystemSecurityAccessProfile.js.map +1 -0
  315. package/dist/cjs/components/ControlSystemSecurityGroup.js +49 -0
  316. package/dist/cjs/components/ControlSystemSecurityGroup.js.map +1 -0
  317. package/dist/cjs/components/ControlSystemSecurityKeyStore.js +46 -0
  318. package/dist/cjs/components/ControlSystemSecurityKeyStore.js.map +1 -0
  319. package/dist/cjs/components/ControlSystemSecurityRole.js +46 -0
  320. package/dist/cjs/components/ControlSystemSecurityRole.js.map +1 -0
  321. package/dist/cjs/components/ControlSystemSecurityUser.js +46 -0
  322. package/dist/cjs/components/ControlSystemSecurityUser.js.map +1 -0
  323. package/dist/cjs/components/ControlSystemWorkflowWorkflow.js +48 -0
  324. package/dist/cjs/components/ControlSystemWorkflowWorkflow.js.map +1 -0
  325. package/dist/cjs/components/ControlSystemWorkflowWorkflowNode.js +48 -0
  326. package/dist/cjs/components/ControlSystemWorkflowWorkflowNode.js.map +1 -0
  327. package/dist/cjs/components/ControlTag.js +56 -0
  328. package/dist/cjs/components/ControlTag.js.map +1 -0
  329. package/dist/cjs/components/ControlTags.js +109 -0
  330. package/dist/cjs/components/ControlTags.js.map +1 -0
  331. package/dist/cjs/components/ControlTagsView.js +61 -0
  332. package/dist/cjs/components/ControlTagsView.js.map +1 -0
  333. package/dist/cjs/components/ControlTemplate.js +28 -0
  334. package/dist/cjs/components/ControlTemplate.js.map +1 -0
  335. package/dist/cjs/components/ControlTextArea.js +10 -0
  336. package/dist/cjs/components/ControlTextArea.js.map +1 -0
  337. package/dist/cjs/components/StringUtils.js +21 -0
  338. package/dist/cjs/components/StringUtils.js.map +1 -0
  339. package/dist/cjs/components/Tags.js +50 -0
  340. package/dist/cjs/components/Tags.js.map +1 -0
  341. package/dist/cjs/components/components.js +218 -0
  342. package/dist/cjs/components/components.js.map +1 -0
  343. package/dist/cjs/index.js +1 -0
  344. package/dist/cjs/index.js.map +1 -1
  345. package/dist/esm/I18n.js +9 -75
  346. package/dist/esm/I18n.js.map +1 -1
  347. package/dist/esm/api/api.module.js +1 -0
  348. package/dist/esm/api/api.module.js.map +1 -1
  349. package/dist/esm/api/auth/ArgsLogin.js +6 -0
  350. package/dist/esm/api/auth/ArgsLogin.js.map +1 -0
  351. package/dist/esm/api/auth/ArgsRegister.js +7 -0
  352. package/dist/esm/api/auth/ArgsRegister.js.map +1 -0
  353. package/dist/esm/api/auth/AuthService.js +63 -0
  354. package/dist/esm/api/auth/AuthService.js.map +1 -0
  355. package/dist/esm/api/auth/TokenResponse.js +5 -0
  356. package/dist/esm/api/auth/TokenResponse.js.map +1 -0
  357. package/dist/esm/api/auth/auth.module.js +3 -0
  358. package/dist/esm/api/auth/auth.module.js.map +1 -0
  359. package/dist/esm/api/catalog/CatalogService.js +2 -0
  360. package/dist/esm/api/catalog/CatalogService.js.map +1 -1
  361. package/dist/esm/api/catalog/company/CompanyService.js +4 -0
  362. package/dist/esm/api/catalog/company/CompanyService.js.map +1 -1
  363. package/dist/esm/api/catalog/location/LocationService.js +7 -0
  364. package/dist/esm/api/catalog/location/LocationService.js.map +1 -1
  365. package/dist/esm/api/catalog/person/Person.js +2 -0
  366. package/dist/esm/api/catalog/person/Person.js.map +1 -1
  367. package/dist/esm/api/catalog/person/PersonService.js +12 -0
  368. package/dist/esm/api/catalog/person/PersonService.js.map +1 -1
  369. package/dist/esm/api/catalog/product/ProductProfile.js +1 -0
  370. package/dist/esm/api/catalog/product/ProductProfile.js.map +1 -1
  371. package/dist/esm/api/catalog/product/ProductService.js +21 -0
  372. package/dist/esm/api/catalog/product/ProductService.js.map +1 -1
  373. package/dist/esm/api/commercial/CommercialService.js +3 -0
  374. package/dist/esm/api/commercial/CommercialService.js.map +1 -1
  375. package/dist/esm/api/commercial/contract/ArgsContractBillingOpCreateInvoice.js +5 -0
  376. package/dist/esm/api/commercial/contract/ArgsContractBillingOpCreateInvoice.js.map +1 -0
  377. package/dist/esm/api/commercial/contract/ContractService.js +14 -2
  378. package/dist/esm/api/commercial/contract/ContractService.js.map +1 -1
  379. package/dist/esm/api/financial/FinancialService.js +17 -0
  380. package/dist/esm/api/financial/FinancialService.js.map +1 -1
  381. package/dist/esm/api/financial/accounting/AccountingService.js +24 -0
  382. package/dist/esm/api/financial/accounting/AccountingService.js.map +1 -1
  383. package/dist/esm/api/financial/billing/BillingService.js +10 -0
  384. package/dist/esm/api/financial/billing/BillingService.js.map +1 -1
  385. package/dist/esm/api/financial/credit/CreditService.js +4 -0
  386. package/dist/esm/api/financial/credit/CreditService.js.map +1 -1
  387. package/dist/esm/api/financial/treasury/TreasuryService.js +5 -0
  388. package/dist/esm/api/financial/treasury/TreasuryService.js.map +1 -1
  389. package/dist/esm/api/fiscal/FiscalService.js +48 -0
  390. package/dist/esm/api/fiscal/FiscalService.js.map +1 -1
  391. package/dist/esm/api/fiscal/br/FiscalBrService.js +9 -0
  392. package/dist/esm/api/fiscal/br/FiscalBrService.js.map +1 -1
  393. package/dist/esm/api/fiscal/taxation/TaxationService.js +8 -0
  394. package/dist/esm/api/fiscal/taxation/TaxationService.js.map +1 -1
  395. package/dist/esm/api/logistic/LogisticService.js +4 -0
  396. package/dist/esm/api/logistic/LogisticService.js.map +1 -1
  397. package/dist/esm/api/material/ArgsIncomingListOpImportFromOutgoingList.js +1 -0
  398. package/dist/esm/api/material/ArgsIncomingListOpImportFromOutgoingList.js.map +1 -1
  399. package/dist/esm/api/material/IncomingListItem.js +1 -0
  400. package/dist/esm/api/material/IncomingListItem.js.map +1 -1
  401. package/dist/esm/api/material/MaterialService.js +74 -0
  402. package/dist/esm/api/material/MaterialService.js.map +1 -1
  403. package/dist/esm/api/material/Volume.js +1 -0
  404. package/dist/esm/api/material/Volume.js.map +1 -1
  405. package/dist/esm/api/sale/ArgsSaleOpSplit.js +4 -0
  406. package/dist/esm/api/sale/ArgsSaleOpSplit.js.map +1 -0
  407. package/dist/esm/api/sale/QuoteItem.js +0 -1
  408. package/dist/esm/api/sale/QuoteItem.js.map +1 -1
  409. package/dist/esm/api/sale/QuoteItemProposal.js +1 -1
  410. package/dist/esm/api/sale/QuoteItemProposal.js.map +1 -1
  411. package/dist/esm/api/sale/SaleService.js +80 -14
  412. package/dist/esm/api/sale/SaleService.js.map +1 -1
  413. package/dist/esm/api/shipping/ShippingService.js +2 -0
  414. package/dist/esm/api/shipping/ShippingService.js.map +1 -1
  415. package/dist/esm/api/supply/production/ProductionService.js +56 -33
  416. package/dist/esm/api/supply/production/ProductionService.js.map +1 -1
  417. package/dist/esm/api/supply/production/ProductionStep.js +6 -0
  418. package/dist/esm/api/supply/production/ProductionStep.js.map +1 -1
  419. package/dist/esm/api/supply/production/ProductionStepConsumption.js +10 -0
  420. package/dist/esm/api/supply/production/ProductionStepConsumption.js.map +1 -0
  421. package/dist/esm/api/supply/production/ProductionStepProduction.js +11 -0
  422. package/dist/esm/api/supply/production/ProductionStepProduction.js.map +1 -0
  423. package/dist/esm/api/supply/production/production.module.js +2 -2
  424. package/dist/esm/api/supply/production/production.module.js.map +1 -1
  425. package/dist/esm/api/supply/purchase/ArgsPurchaseOpSplit.js +4 -0
  426. package/dist/esm/api/supply/purchase/ArgsPurchaseOpSplit.js.map +1 -0
  427. package/dist/esm/api/supply/purchase/PurchaseService.js +52 -0
  428. package/dist/esm/api/supply/purchase/PurchaseService.js.map +1 -1
  429. package/dist/esm/api/system/SystemService.js +4 -0
  430. package/dist/esm/api/system/SystemService.js.map +1 -1
  431. package/dist/esm/api/system/audit/AuditService.js +3 -0
  432. package/dist/esm/api/system/audit/AuditService.js.map +1 -1
  433. package/dist/esm/api/system/automation/AutomationService.js +7 -0
  434. package/dist/esm/api/system/automation/AutomationService.js.map +1 -1
  435. package/dist/esm/api/system/data/DataService.js +25 -0
  436. package/dist/esm/api/system/data/DataService.js.map +1 -1
  437. package/dist/esm/api/system/data/DataSourceField.js +9 -0
  438. package/dist/esm/api/system/data/DataSourceField.js.map +1 -0
  439. package/dist/esm/api/system/data/data.module.js +1 -0
  440. package/dist/esm/api/system/data/data.module.js.map +1 -1
  441. package/dist/esm/api/system/file/FileService.js +2 -0
  442. package/dist/esm/api/system/file/FileService.js.map +1 -1
  443. package/dist/esm/api/system/frontend/FrontendService.js +3 -0
  444. package/dist/esm/api/system/frontend/FrontendService.js.map +1 -1
  445. package/dist/esm/api/system/image/ImageService.js +2 -0
  446. package/dist/esm/api/system/image/ImageService.js.map +1 -1
  447. package/dist/esm/api/system/integration/IntegrationService.js +8 -0
  448. package/dist/esm/api/system/integration/IntegrationService.js.map +1 -1
  449. package/dist/esm/api/system/mail/MailService.js +3 -0
  450. package/dist/esm/api/system/mail/MailService.js.map +1 -1
  451. package/dist/esm/api/system/printing/PrintingService.js +3 -0
  452. package/dist/esm/api/system/printing/PrintingService.js.map +1 -1
  453. package/dist/esm/api/system/report/ReportService.js +4 -0
  454. package/dist/esm/api/system/report/ReportService.js.map +1 -1
  455. package/dist/esm/api/system/security/SecurityService.js +27 -0
  456. package/dist/esm/api/system/security/SecurityService.js.map +1 -1
  457. package/dist/esm/api/system/storage/StorageService.js +2 -0
  458. package/dist/esm/api/system/storage/StorageService.js.map +1 -1
  459. package/dist/esm/api/system/workflow/WorkflowService.js +7 -0
  460. package/dist/esm/api/system/workflow/WorkflowService.js.map +1 -1
  461. package/dist/esm/index.js +1 -0
  462. package/dist/esm/index.js.map +1 -1
  463. package/dist/iife/zenerpclient.js +1 -1
  464. package/dist/iife/zenerpclient.js.map +1 -1
  465. package/dist/types/I18n.d.ts +18 -83
  466. package/dist/types/api/api.module.d.ts +1 -0
  467. package/dist/types/api/auth/ArgsLogin.d.ts +5 -0
  468. package/dist/types/api/auth/ArgsRegister.d.ts +6 -0
  469. package/dist/types/api/auth/AuthService.d.ts +16 -0
  470. package/dist/types/api/auth/TokenResponse.d.ts +4 -0
  471. package/dist/types/api/auth/auth.module.d.ts +2 -0
  472. package/dist/types/api/catalog/person/Person.d.ts +2 -0
  473. package/dist/types/api/catalog/product/ProductProfile.d.ts +2 -0
  474. package/dist/types/api/commercial/contract/ArgsContractBillingOpCreateInvoice.d.ts +4 -0
  475. package/dist/types/api/commercial/contract/ContractService.d.ts +2 -1
  476. package/dist/types/api/fiscal/FiscalService.d.ts +2 -0
  477. package/dist/types/api/material/ArgsIncomingListOpImportFromOutgoingList.d.ts +1 -0
  478. package/dist/types/api/material/IncomingListItem.d.ts +1 -0
  479. package/dist/types/api/material/MaterialService.d.ts +1 -0
  480. package/dist/types/api/material/Volume.d.ts +2 -0
  481. package/dist/types/api/sale/ArgsSaleOpSplit.d.ts +3 -0
  482. package/dist/types/api/sale/QuoteItem.d.ts +0 -2
  483. package/dist/types/api/sale/QuoteItemProposal.d.ts +1 -1
  484. package/dist/types/api/sale/SaleService.d.ts +10 -4
  485. package/dist/types/api/supply/production/ProductionService.d.ts +13 -13
  486. package/dist/types/api/supply/production/ProductionStep.d.ts +9 -0
  487. package/dist/types/api/supply/production/ProductionStepConsumption.d.ts +11 -0
  488. package/dist/types/api/supply/production/ProductionStepProduction.d.ts +12 -0
  489. package/dist/types/api/supply/production/production.module.d.ts +2 -2
  490. package/dist/types/api/supply/purchase/ArgsPurchaseOpSplit.d.ts +3 -0
  491. package/dist/types/api/supply/purchase/PurchaseService.d.ts +4 -0
  492. package/dist/types/api/system/data/DataService.d.ts +4 -0
  493. package/dist/types/api/system/data/DataSourceField.d.ts +10 -0
  494. package/dist/types/api/system/data/data.module.d.ts +1 -0
  495. package/dist/types/components/AsyncIterableZen.d.ts +7 -0
  496. package/dist/types/components/AsyncIteratorZen.d.ts +17 -0
  497. package/dist/types/components/ControlCatalogCategory.d.ts +6 -0
  498. package/dist/types/components/ControlCatalogCompanyCompany.d.ts +6 -0
  499. package/dist/types/components/ControlCatalogCompanySociety.d.ts +6 -0
  500. package/dist/types/components/ControlCatalogLocationCity.d.ts +6 -0
  501. package/dist/types/components/ControlCatalogLocationCountry.d.ts +6 -0
  502. package/dist/types/components/ControlCatalogLocationState.d.ts +6 -0
  503. package/dist/types/components/ControlCatalogPersonPerson.d.ts +6 -0
  504. package/dist/types/components/ControlCatalogPersonPersonAddress.d.ts +6 -0
  505. package/dist/types/components/ControlCatalogPersonPersonGroup.d.ts +6 -0
  506. package/dist/types/components/ControlCatalogProductCodeConversionList.d.ts +6 -0
  507. package/dist/types/components/ControlCatalogProductDimension.d.ts +6 -0
  508. package/dist/types/components/ControlCatalogProductProduct.d.ts +6 -0
  509. package/dist/types/components/ControlCatalogProductProductPacking.d.ts +6 -0
  510. package/dist/types/components/ControlCatalogProductProductProfile.d.ts +6 -0
  511. package/dist/types/components/ControlCatalogProductProductVariant.d.ts +6 -0
  512. package/dist/types/components/ControlCatalogProductUnit.d.ts +6 -0
  513. package/dist/types/components/ControlCheckBox.d.ts +8 -0
  514. package/dist/types/components/ControlColor.d.ts +10 -0
  515. package/dist/types/components/ControlCommercialContractContract.d.ts +6 -0
  516. package/dist/types/components/ControlCommercialContractContractIndex.d.ts +6 -0
  517. package/dist/types/components/ControlCommercialContractContractItem.d.ts +6 -0
  518. package/dist/types/components/ControlCommercialContractContractProfile.d.ts +6 -0
  519. package/dist/types/components/ControlCommercialPaymentType.d.ts +6 -0
  520. package/dist/types/components/ControlCommercialPriceList.d.ts +6 -0
  521. package/dist/types/components/ControlDatetime.d.ts +11 -0
  522. package/dist/types/components/ControlFinancialAccountingAccount.d.ts +6 -0
  523. package/dist/types/components/ControlFinancialAccountingAccountCategory.d.ts +6 -0
  524. package/dist/types/components/ControlFinancialAccountingAccountChart.d.ts +6 -0
  525. package/dist/types/components/ControlFinancialAccountingAccountFiscalYear.d.ts +6 -0
  526. package/dist/types/components/ControlFinancialAccountingResultCenter.d.ts +6 -0
  527. package/dist/types/components/ControlFinancialAccountingResultCenterChart.d.ts +6 -0
  528. package/dist/types/components/ControlFinancialBillingWallet.d.ts +6 -0
  529. package/dist/types/components/ControlFinancialCreditCreditLine.d.ts +6 -0
  530. package/dist/types/components/ControlFinancialCurrency.d.ts +6 -0
  531. package/dist/types/components/ControlFinancialPayable.d.ts +6 -0
  532. package/dist/types/components/ControlFinancialReceivable.d.ts +6 -0
  533. package/dist/types/components/ControlFiscalFiscalProfileOperation.d.ts +6 -0
  534. package/dist/types/components/ControlFiscalFiscalProfilePerson.d.ts +6 -0
  535. package/dist/types/components/ControlFiscalFiscalProfileProduct.d.ts +6 -0
  536. package/dist/types/components/ControlFiscalFiscalRegion.d.ts +6 -0
  537. package/dist/types/components/ControlFiscalIncomingInvoice.d.ts +6 -0
  538. package/dist/types/components/ControlFiscalInvoiceSeries.d.ts +6 -0
  539. package/dist/types/components/ControlFiscalTaxationTax.d.ts +6 -0
  540. package/dist/types/components/ControlFiscalTaxationTaxationOperation.d.ts +6 -0
  541. package/dist/types/components/ControlFiscalVolume.d.ts +6 -0
  542. package/dist/types/components/ControlHideAndSeek.d.ts +9 -0
  543. package/dist/types/components/ControlInput.d.ts +9 -0
  544. package/dist/types/components/ControlInputBoolean.d.ts +1 -0
  545. package/dist/types/components/ControlInputNumber.d.ts +13 -0
  546. package/dist/types/components/ControlMaterialAddress.d.ts +6 -0
  547. package/dist/types/components/ControlMaterialAddressProfile.d.ts +6 -0
  548. package/dist/types/components/ControlMaterialHandlintUnit.d.ts +6 -0
  549. package/dist/types/components/ControlMaterialIncomingList.d.ts +6 -0
  550. package/dist/types/components/ControlMaterialIncomingRequest.d.ts +6 -0
  551. package/dist/types/components/ControlMaterialInventory.d.ts +6 -0
  552. package/dist/types/components/ControlMaterialLot.d.ts +6 -0
  553. package/dist/types/components/ControlMaterialOutgoingList.d.ts +6 -0
  554. package/dist/types/components/ControlMaterialPickingOrder.d.ts +6 -0
  555. package/dist/types/components/ControlMaterialPickingProfile.d.ts +6 -0
  556. package/dist/types/components/ControlMaterialProductProfile.d.ts +6 -0
  557. package/dist/types/components/ControlMaterialQuality.d.ts +6 -0
  558. package/dist/types/components/ControlMaterialReservation.d.ts +6 -0
  559. package/dist/types/components/ControlMaterialReservationTarget.d.ts +6 -0
  560. package/dist/types/components/ControlMaterialSerial.d.ts +6 -0
  561. package/dist/types/components/ControlMaterialStockCluster.d.ts +6 -0
  562. package/dist/types/components/ControlMaterialStockType.d.ts +6 -0
  563. package/dist/types/components/ControlMaterialWarehouse.d.ts +6 -0
  564. package/dist/types/components/ControlSalePriceFormation.d.ts +6 -0
  565. package/dist/types/components/ControlSalePriceList.d.ts +6 -0
  566. package/dist/types/components/ControlSaleSale.d.ts +6 -0
  567. package/dist/types/components/ControlSaleSaleProfile.d.ts +6 -0
  568. package/dist/types/components/ControlSelect.d.ts +15 -0
  569. package/dist/types/components/ControlSelectAbstract.d.ts +41 -0
  570. package/dist/types/components/ControlSelectZen.d.ts +26 -0
  571. package/dist/types/components/ControlShippingShipment.d.ts +6 -0
  572. package/dist/types/components/ControlSupplyProductionOperationType.d.ts +6 -0
  573. package/dist/types/components/ControlSupplyProductionProductionOrder.d.ts +6 -0
  574. package/dist/types/components/ControlSupplyProductionProductionProfile.d.ts +6 -0
  575. package/dist/types/components/ControlSupplyProductionProductionStep.d.ts +6 -0
  576. package/dist/types/components/ControlSupplyPurchasePriceList.d.ts +6 -0
  577. package/dist/types/components/ControlSupplyPurchasePurchase.d.ts +6 -0
  578. package/dist/types/components/ControlSupplyPurchasePurchaseItem.d.ts +6 -0
  579. package/dist/types/components/ControlSupplyPurchasePurchaseProfile.d.ts +6 -0
  580. package/dist/types/components/ControlSupplyPurchaseQuoteItem.d.ts +6 -0
  581. package/dist/types/components/ControlSvg.d.ts +6 -0
  582. package/dist/types/components/ControlSwitch.d.ts +9 -0
  583. package/dist/types/components/ControlSwitches.d.ts +10 -0
  584. package/dist/types/components/ControlSystemAutomationAgent.d.ts +6 -0
  585. package/dist/types/components/ControlSystemDataDataSource.d.ts +6 -0
  586. package/dist/types/components/ControlSystemImageImage.d.ts +6 -0
  587. package/dist/types/components/ControlSystemIntegrationQueue.d.ts +6 -0
  588. package/dist/types/components/ControlSystemIntegrationTopic.d.ts +6 -0
  589. package/dist/types/components/ControlSystemMailMailerConfig.d.ts +6 -0
  590. package/dist/types/components/ControlSystemPrintingPrinter.d.ts +6 -0
  591. package/dist/types/components/ControlSystemReportReport.d.ts +6 -0
  592. package/dist/types/components/ControlSystemSecurityAccessPoint.d.ts +6 -0
  593. package/dist/types/components/ControlSystemSecurityAccessProfile.d.ts +6 -0
  594. package/dist/types/components/ControlSystemSecurityGroup.d.ts +6 -0
  595. package/dist/types/components/ControlSystemSecurityKeyStore.d.ts +6 -0
  596. package/dist/types/components/ControlSystemSecurityRole.d.ts +6 -0
  597. package/dist/types/components/ControlSystemSecurityUser.d.ts +6 -0
  598. package/dist/types/components/ControlSystemWorkflowWorkflow.d.ts +6 -0
  599. package/dist/types/components/ControlSystemWorkflowWorkflowNode.d.ts +6 -0
  600. package/dist/types/components/ControlTag.d.ts +10 -0
  601. package/dist/types/components/ControlTags.d.ts +15 -0
  602. package/dist/types/components/ControlTagsView.d.ts +11 -0
  603. package/dist/types/components/ControlTemplate.d.ts +7 -0
  604. package/dist/types/components/ControlTextArea.d.ts +3 -0
  605. package/dist/types/components/StringUtils.d.ts +3 -0
  606. package/dist/types/components/Tags.d.ts +10 -0
  607. package/dist/types/components/components.d.ts +1 -0
  608. package/package.json +4 -1
@@ -1,2 +1,2 @@
1
- var zenerpclient=function(e){"use strict";class t extends Error{}class n extends t{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class s extends t{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class i extends t{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class r extends t{}class o extends t{constructor(e){super(`Invalid unit ${e}`)}}class a extends t{}class c extends t{constructor(){super("Zone is an abstract class")}}const l="numeric",h="short",u="long",d={year:l,month:l,day:l},p={year:l,month:h,day:l},y={year:l,month:h,day:l,weekday:h},m={year:l,month:u,day:l},f={year:l,month:u,day:l,weekday:u},g={hour:l,minute:l},b={hour:l,minute:l,second:l},O={hour:l,minute:l,second:l,timeZoneName:h},w={hour:l,minute:l,second:l,timeZoneName:u},S={hour:l,minute:l,hourCycle:"h23"},J={hour:l,minute:l,second:l,hourCycle:"h23"},T={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:h},P={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:u},v={year:l,month:l,day:l,hour:l,minute:l},E={year:l,month:l,day:l,hour:l,minute:l,second:l},R={year:l,month:h,day:l,hour:l,minute:l},$={year:l,month:h,day:l,hour:l,minute:l,second:l},I={year:l,month:h,day:l,weekday:h,hour:l,minute:l},C={year:l,month:u,day:l,hour:l,minute:l,timeZoneName:h},N={year:l,month:u,day:l,hour:l,minute:l,second:l,timeZoneName:h},k={year:l,month:u,day:l,weekday:u,hour:l,minute:l,timeZoneName:u},D={year:l,month:u,day:l,weekday:u,hour:l,minute:l,second:l,timeZoneName:u};class j{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(e,t){throw new c}formatOffset(e,t){throw new c}offset(e){throw new c}equals(e){throw new c}get isValid(){throw new c}}let L=null;class U extends j{static get instance(){return null===L&&(L=new U),L}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n)}formatOffset(e,t){return Xe(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let G={};const q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let A={};class x extends j{static create(e){return A[e]||(A[e]=new x(e)),A[e]}static resetCache(){A={},G={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=x.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n,this.name)}formatOffset(e,t){return Xe(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(s=this.name,G[s]||(G[s]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:s,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),G[s]);var s;let[i,r,o,a,c,l,h]=n.formatToParts?function(e,t){const n=e.formatToParts(t),s=[];for(let e=0;e<n.length;e++){const{type:t,value:i}=n[e],r=q[t];"era"===t?s[r]=i:$e(r)||(s[r]=parseInt(i,10))}return s}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,r,o,a,c,l,h]=s;return[o,i,r,a,c,l,h]}(n,t);"BC"===a&&(i=1-Math.abs(i));let u=+t;const d=u%1e3;return u-=d>=0?d:1e3+d,(_e({year:i,month:r,day:o,hour:24===c?0:c,minute:l,second:h,millisecond:0})-u)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let B={};let F={};function V(e,t={}){const n=JSON.stringify([e,t]);let s=F[n];return s||(s=new Intl.DateTimeFormat(e,t),F[n]=s),s}let M={};let _={};let W=null;let z={};function Z(e,t,n,s){const i=e.listingMode();return"error"===i?null:"en"===i?n(t):s(t)}class Y{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:s,floor:i,...r}=n;if(!t||Object.keys(r).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let s=M[n];return s||(s=new Intl.NumberFormat(e,t),M[n]=s),s}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ge(this.floor?Math.floor(e):Be(e,3),this.padTo)}}class H{constructor(e,t,n){let s;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&x.create(n).valid?(s=n,this.dt=e):(s="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,s=e.zone.name):(s="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const i={...this.opts};i.timeZone=i.timeZone||s,this.dtf=V(t,i)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(e,t,n){this.opts={style:"long",...n},!t&&Ne()&&(this.rtf=function(e,t={}){const{base:n,...s}=t,i=JSON.stringify([e,s]);let r=_[i];return r||(r=new Intl.RelativeTimeFormat(e,t),_[i]=r),r}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",s=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&r){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,a=Math.abs(t),c=1===a,l=i[e],h=s?c?l[1]:l[2]||l[1]:c?i[e][0]:e;return o?`${a} ${h} ago`:`in ${a} ${h}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Q={firstDay:1,minimalDays:4,weekend:[6,7]};class X{static fromOpts(e){return X.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,s,i=!1){const r=e||de.defaultLocale,o=r||(i?"en-US":W||(W=(new Intl.DateTimeFormat).resolvedOptions().locale,W)),a=t||de.defaultNumberingSystem,c=n||de.defaultOutputCalendar,l=Le(s)||de.defaultWeekSettings;return new X(o,a,c,l,r)}static resetCache(){W=null,F={},M={},_={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:s}={}){return X.create(e,t,n,s)}constructor(e,t,n,s,i){const[r,o,a]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,s;try{t=V(e).resolvedOptions(),s=e}catch(i){const r=e.substring(0,n);t=V(r).resolvedOptions(),s=r}const{numberingSystem:i,calendar:r}=t;return[s,i,r]}}(e);this.locale=r,this.numberingSystem=t||o||null,this.outputCalendar=n||a||null,this.weekSettings=s,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?X.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Le(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Z(this,e,it,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},s=t?"format":"standalone";return this.monthsCache[s][e]||(this.monthsCache[s][e]=function(e){const t=[];for(let n=1;n<=12;n++){const s=hs.utc(2009,n,1);t.push(e(s))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[s][e]}))}weekdays(e,t=!1){return Z(this,e,ct,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},s=t?"format":"standalone";return this.weekdaysCache[s][e]||(this.weekdaysCache[s][e]=function(e){const t=[];for(let n=1;n<=7;n++){const s=hs.utc(2016,11,13+n);t.push(e(s))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[s][e]}))}meridiems(){return Z(this,void 0,(()=>lt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[hs.utc(2016,11,13,9),hs.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Z(this,e,pt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[hs.utc(-40,1,1),hs.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const s=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return s?s.value:null}numberFormatter(e={}){return new Y(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new H(e,this.intl,t)}relFormatter(e={}){return new K(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let s=B[n];return s||(s=new Intl.ListFormat(e,t),B[n]=s),s}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:ke()?function(e){let t=z[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,z[e]=t}return t}(this.locale):Q}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ee=null;class te extends j{static get utcInstance(){return null===ee&&(ee=new te(0)),ee}static instance(e){return 0===e?te.utcInstance:new te(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new te(He(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Xe(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Xe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Xe(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class ne extends j{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function se(e,t){if($e(e)||null===e)return t;if(e instanceof j)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?U.instance:"utc"===n||"gmt"===n?te.utcInstance:te.parseSpecifier(n)||x.create(e)}return Ie(e)?te.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ne(e)}let ie,re=()=>Date.now(),oe="system",ae=null,ce=null,le=null,he=60,ue=null;class de{static get now(){return re}static set now(e){re=e}static set defaultZone(e){oe=e}static get defaultZone(){return se(oe,U.instance)}static get defaultLocale(){return ae}static set defaultLocale(e){ae=e}static get defaultNumberingSystem(){return ce}static set defaultNumberingSystem(e){ce=e}static get defaultOutputCalendar(){return le}static set defaultOutputCalendar(e){le=e}static get defaultWeekSettings(){return ue}static set defaultWeekSettings(e){ue=Le(e)}static get twoDigitCutoffYear(){return he}static set twoDigitCutoffYear(e){he=e%100}static get throwOnInvalid(){return ie}static set throwOnInvalid(e){ie=e}static resetCaches(){X.resetCache(),x.resetCache()}}class pe{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ye=[0,31,59,90,120,151,181,212,243,273,304,334],me=[0,31,60,91,121,152,182,213,244,274,305,335];function fe(e,t){return new pe("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ge(e,t,n){const s=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&s.setUTCFullYear(s.getUTCFullYear()-1900);const i=s.getUTCDay();return 0===i?7:i}function be(e,t,n){return n+(Fe(e)?me:ye)[t-1]}function Oe(e,t){const n=Fe(e)?me:ye,s=n.findIndex((e=>e<t));return{month:s+1,day:t-n[s]}}function we(e,t){return(e-t+7)%7+1}function Se(e,t=4,n=1){const{year:s,month:i,day:r}=e,o=be(s,i,r),a=we(ge(s,i,r),n);let c,l=Math.floor((o-a+14-t)/7);return l<1?(c=s-1,l=ze(c,t,n)):l>ze(s,t,n)?(c=s+1,l=1):c=s,{weekYear:c,weekNumber:l,weekday:a,...et(e)}}function Je(e,t=4,n=1){const{weekYear:s,weekNumber:i,weekday:r}=e,o=we(ge(s,1,t),n),a=Ve(s);let c,l=7*i+r-o-7+t;l<1?(c=s-1,l+=Ve(c)):l>a?(c=s+1,l-=Ve(s)):c=s;const{month:h,day:u}=Oe(c,l);return{year:c,month:h,day:u,...et(e)}}function Te(e){const{year:t,month:n,day:s}=e;return{year:t,ordinal:be(t,n,s),...et(e)}}function Pe(e){const{year:t,ordinal:n}=e,{month:s,day:i}=Oe(t,n);return{year:t,month:s,day:i,...et(e)}}function ve(e,t){if(!$e(e.localWeekday)||!$e(e.localWeekNumber)||!$e(e.localWeekYear)){if(!$e(e.weekday)||!$e(e.weekNumber)||!$e(e.weekYear))throw new r("Cannot mix locale-based week fields with ISO-based week fields");return $e(e.localWeekday)||(e.weekday=e.localWeekday),$e(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),$e(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Ee(e){const t=Ce(e.year),n=Ue(e.month,1,12),s=Ue(e.day,1,Me(e.year,e.month));return t?n?!s&&fe("day",e.day):fe("month",e.month):fe("year",e.year)}function Re(e){const{hour:t,minute:n,second:s,millisecond:i}=e,r=Ue(t,0,23)||24===t&&0===n&&0===s&&0===i,o=Ue(n,0,59),a=Ue(s,0,59),c=Ue(i,0,999);return r?o?a?!c&&fe("millisecond",i):fe("second",s):fe("minute",n):fe("hour",t)}function $e(e){return void 0===e}function Ie(e){return"number"==typeof e}function Ce(e){return"number"==typeof e&&e%1==0}function Ne(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function ke(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function De(e,t,n){if(0!==e.length)return e.reduce(((e,s)=>{const i=[t(s),s];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function je(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e){if(null==e)return null;if("object"!=typeof e)throw new a("Week settings must be an object");if(!Ue(e.firstDay,1,7)||!Ue(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Ue(e,1,7))))throw new a("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ue(e,t,n){return Ce(e)&&e>=t&&e<=n}function Ge(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function qe(e){return $e(e)||null===e||""===e?void 0:parseInt(e,10)}function Ae(e){return $e(e)||null===e||""===e?void 0:parseFloat(e)}function xe(e){if(!$e(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Be(e,t,n=!1){const s=10**t;return(n?Math.trunc:Math.round)(e*s)/s}function Fe(e){return e%4==0&&(e%100!=0||e%400==0)}function Ve(e){return Fe(e)?366:365}function Me(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Fe(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function _e(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function We(e,t,n){return-we(ge(e,1,t),n)+t-1}function ze(e,t=4,n=1){const s=We(e,t,n),i=We(e+1,t,n);return(Ve(e)-s+i)/7}function Ze(e){return e>99?e:e>de.twoDigitCutoffYear?1900+e:2e3+e}function Ye(e,t,n,s=null){const i=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(r.timeZone=s);const o={timeZoneName:t,...r},a=new Intl.DateTimeFormat(n,o).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return a?a.value:null}function He(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const s=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-s:s)}function Ke(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new a(`Invalid unit value ${e}`);return t}function Qe(e,t){const n={};for(const s in e)if(je(e,s)){const i=e[s];if(null==i)continue;n[t(s)]=Ke(i)}return n}function Xe(e,t){const n=Math.trunc(Math.abs(e/60)),s=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Ge(n,2)}:${Ge(s,2)}`;case"narrow":return`${i}${n}${s>0?`:${s}`:""}`;case"techie":return`${i}${Ge(n,2)}${Ge(s,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function et(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const tt=["January","February","March","April","May","June","July","August","September","October","November","December"],nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],st=["J","F","M","A","M","J","J","A","S","O","N","D"];function it(e){switch(e){case"narrow":return[...st];case"short":return[...nt];case"long":return[...tt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const rt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ot=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],at=["M","T","W","T","F","S","S"];function ct(e){switch(e){case"narrow":return[...at];case"short":return[...ot];case"long":return[...rt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const lt=["AM","PM"],ht=["Before Christ","Anno Domini"],ut=["BC","AD"],dt=["B","A"];function pt(e){switch(e){case"narrow":return[...dt];case"short":return[...ut];case"long":return[...ht];default:return null}}function yt(e,t){let n="";for(const s of e)s.literal?n+=s.val:n+=t(s.val);return n}const mt={D:d,DD:p,DDD:m,DDDD:f,t:g,tt:b,ttt:O,tttt:w,T:S,TT:J,TTT:T,TTTT:P,f:v,ff:R,fff:C,ffff:k,F:E,FF:$,FFF:N,FFFF:D};class ft{static create(e,t={}){return new ft(e,t)}static parseFormat(e){let t=null,n="",s=!1;const i=[];for(let r=0;r<e.length;r++){const o=e.charAt(r);"'"===o?(n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),t=null,n="",s=!s):s||o===t?n+=o:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=o,t=o)}return n.length>0&&i.push({literal:s||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(e){return mt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ge(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),s=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),r=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>n?function(e){return lt[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(t,s)=>n?function(e,t){return it(t)[e.month-1]}(e,t):i(s?{month:t}:{month:t,day:"numeric"},"month"),c=(t,s)=>n?function(e,t){return ct(t)[e.weekday-1]}(e,t):i(s?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=ft.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},h=t=>n?function(e,t){return pt(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return yt(ft.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return s?i({day:"numeric"},"day"):this.num(e.day);case"dd":return s?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return s?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return s?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return s?i({month:"numeric"},"month"):this.num(e.month);case"MM":return s?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return s?i({year:"numeric"},"year"):this.num(e.year);case"yy":return s?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return s?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return s?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=ft.parseFormat(t),i=s.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return yt(s,(e=>t=>{const s=n(t);return s?this.num(e.get(s),t.length):t})(e.shiftTo(...i.map(n).filter((e=>e)))))}}const gt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bt(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Ot(...e){return t=>e.reduce((([e,n,s],i)=>{const[r,o,a]=i(t,s);return[{...e,...r},o||n,a]}),[{},null,1]).slice(0,2)}function wt(e,...t){if(null==e)return[null,null];for(const[n,s]of t){const t=n.exec(e);if(t)return s(t)}return[null,null]}function St(...e){return(t,n)=>{const s={};let i;for(i=0;i<e.length;i++)s[e[i]]=qe(t[n+i]);return[s,null,n+i]}}const Jt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Tt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Pt=RegExp(`${Tt.source}${`(?:${Jt.source}?(?:\\[(${gt.source})\\])?)?`}`),vt=RegExp(`(?:T${Pt.source})?`),Et=St("weekYear","weekNumber","weekDay"),Rt=St("year","ordinal"),$t=RegExp(`${Tt.source} ?(?:${Jt.source}|(${gt.source}))?`),It=RegExp(`(?: ${$t.source})?`);function Ct(e,t,n){const s=e[t];return $e(s)?n:qe(s)}function Nt(e,t){return[{hours:Ct(e,t,0),minutes:Ct(e,t+1,0),seconds:Ct(e,t+2,0),milliseconds:xe(e[t+3])},null,t+4]}function kt(e,t){const n=!e[t]&&!e[t+1],s=He(e[t+1],e[t+2]);return[{},n?null:te.instance(s),t+3]}function Dt(e,t){return[{},e[t]?x.create(e[t]):null,t+1]}const jt=RegExp(`^T?${Tt.source}$`),Lt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ut(e){const[t,n,s,i,r,o,a,c,l]=e,h="-"===t[0],u=c&&"-"===c[0],d=(e,t=!1)=>void 0!==e&&(t||e&&h)?-e:e;return[{years:d(Ae(n)),months:d(Ae(s)),weeks:d(Ae(i)),days:d(Ae(r)),hours:d(Ae(o)),minutes:d(Ae(a)),seconds:d(Ae(c),"-0"===c),milliseconds:d(xe(l),u)}]}const Gt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qt(e,t,n,s,i,r,o){const a={year:2===t.length?Ze(qe(t)):qe(t),month:nt.indexOf(n)+1,day:qe(s),hour:qe(i),minute:qe(r)};return o&&(a.second=qe(o)),e&&(a.weekday=e.length>3?rt.indexOf(e)+1:ot.indexOf(e)+1),a}const At=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function xt(e){const[,t,n,s,i,r,o,a,c,l,h,u]=e,d=qt(t,i,s,n,r,o,a);let p;return p=c?Gt[c]:l?0:He(h,u),[d,new te(p)]}const Bt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Vt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mt(e){const[,t,n,s,i,r,o,a]=e;return[qt(t,i,s,n,r,o,a),te.utcInstance]}function _t(e){const[,t,n,s,i,r,o,a]=e;return[qt(t,a,n,s,i,r,o),te.utcInstance]}const Wt=bt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vt),zt=bt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,vt),Zt=bt(/(\d{4})-?(\d{3})/,vt),Yt=bt(Pt),Ht=Ot((function(e,t){return[{year:Ct(e,t),month:Ct(e,t+1,1),day:Ct(e,t+2,1)},null,t+3]}),Nt,kt,Dt),Kt=Ot(Et,Nt,kt,Dt),Qt=Ot(Rt,Nt,kt,Dt),Xt=Ot(Nt,kt,Dt);const en=Ot(Nt);const tn=bt(/(\d{4})-(\d\d)-(\d\d)/,It),nn=bt($t),sn=Ot(Nt,kt,Dt);const rn="Invalid Duration",on={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},an={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...on},cn=365.2425,ln=30.436875,hn={years:{quarters:4,months:12,weeks:52.1775,days:cn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:ln,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...on},un=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],dn=un.slice(0).reverse();function pn(e,t,n=!1){const s={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new fn(s)}function yn(e,t){let n=t.milliseconds??0;for(const s of dn.slice(1))t[s]&&(n+=t[s]*e[s].milliseconds);return n}function mn(e,t){const n=yn(e,t)<0?-1:1;un.reduceRight(((s,i)=>{if($e(t[i]))return s;if(s){const r=t[s]*n,o=e[i][s],a=Math.floor(r/o);t[i]+=a*n,t[s]-=a*o*n}return i}),null),un.reduce(((n,s)=>{if($e(t[s]))return n;if(n){const i=t[n]%1;t[n]-=i,t[s]+=i*e[n][s]}return s}),null)}class fn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?hn:an;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||X.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return fn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new a("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new fn({values:Qe(e,fn.normalizeUnit),loc:X.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ie(e))return fn.fromMillis(e);if(fn.isDuration(e))return e;if("object"==typeof e)return fn.fromObject(e);throw new a(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return wt(e,[Lt,Ut])}(e);return n?fn.fromObject(n,t):fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return wt(e,[jt,en])}(e);return n?fn.fromObject(n,t):fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new a("need to specify a reason the Duration is invalid");const n=e instanceof pe?e:new pe(e,t);if(de.throwOnInvalid)throw new i(n);return new fn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new o(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ft.create(this.loc,n).formatDurationFromString(this,e):rn}toHuman(e={}){if(!this.isValid)return rn;const t=un.map((t=>{const n=this.values[t];return $e(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Be(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return hs.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?yn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=fn.fromDurationLike(e),n={};for(const e of un)(je(t.values,e)||je(this.values,e))&&(n[e]=t.get(e)+this.get(e));return pn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=fn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ke(e(this.values[n],n));return pn(this,{values:t},!0)}get(e){return this[fn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return pn(this,{values:{...this.values,...Qe(e,fn.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:s}={}){return pn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:s,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return mn(this.matrix,e),pn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return pn(this,{values:function(e){const t={};for(const[n,s]of Object.entries(e))0!==s&&(t[n]=s);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>fn.normalizeUnit(e)));const t={},n={},s=this.toObject();let i;for(const r of un)if(e.indexOf(r)>=0){i=r;let e=0;for(const t in n)e+=this.matrix[t][r]*n[t],n[t]=0;Ie(s[r])&&(e+=s[r]);const o=Math.trunc(e);t[r]=o,n[r]=(1e3*e-1e3*o)/1e3}else Ie(s[r])&&(n[r]=s[r]);for(const e in n)0!==n[e]&&(t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]);return mn(this.matrix,t),pn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return pn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const s of un)if(t=this.values[s],n=e.values[s],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const gn="Invalid Interval";class bn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new a("need to specify a reason the Interval is invalid");const n=e instanceof pe?e:new pe(e,t);if(de.throwOnInvalid)throw new s(n);return new bn({invalid:n})}static fromDateTimes(e,t){const n=us(e),s=us(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?bn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:bn.invalid("missing or invalid end"):bn.invalid("missing or invalid start")}(n,s);return null==i?new bn({start:n,end:s}):i}static after(e,t){const n=fn.fromDurationLike(t),s=us(e);return bn.fromDateTimes(s,s.plus(n))}static before(e,t){const n=fn.fromDurationLike(t),s=us(e);return bn.fromDateTimes(s.minus(n),s)}static fromISO(e,t){const[n,s]=(e||"").split("/",2);if(n&&s){let e,i,r,o;try{e=hs.fromISO(n,t),i=e.isValid}catch(s){i=!1}try{r=hs.fromISO(s,t),o=r.isValid}catch(s){o=!1}if(i&&o)return bn.fromDateTimes(e,r);if(i){const n=fn.fromISO(s,t);if(n.isValid)return bn.after(e,n)}else if(o){const e=fn.fromISO(n,t);if(e.isValid)return bn.before(r,e)}}return bn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let s;return s=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,s=s.startOf(e,t),Math.floor(s.diff(n,e).get(e))+(s.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?bn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(us).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:s}=this,i=0;for(;s<this.e;){const e=t[i]||this.e,r=+e>+this.e?this.e:e;n.push(bn.fromDateTimes(s,r)),s=r,i+=1}return n}splitBy(e){const t=fn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:s}=this,i=1;const r=[];for(;s<this.e;){const e=this.start.plus(t.mapUnits((e=>e*i)));n=+e>+this.e?this.e:e,r.push(bn.fromDateTimes(s,n)),s=n,i+=1}return r}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:bn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return bn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const s=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),r=Array.prototype.concat(...i).sort(((e,t)=>e.time-t.time));for(const e of r)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&s.push(bn.fromDateTimes(t,e.time)),t=null);return bn.merge(s)}difference(...e){return bn.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:gn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=d,t={}){return this.isValid?ft.create(this.s.loc.clone(t),e).formatInterval(this):gn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:gn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:gn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:gn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):fn.invalid(this.invalidReason)}mapEndpoints(e){return bn.fromDateTimes(e(this.s),e(this.e))}}let On=class{static hasDST(e=de.defaultZone){const t=hs.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return x.isValidZone(e)}static normalizeZone(e){return se(e,de.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||X.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null,outputCalendar:i="gregory"}={}){return(s||X.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||X.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:s=null}={}){return(s||X.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return X.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return X.create(t,null,"gregory").eras(e)}static features(){return{relative:Ne(),localeWeek:ke()}}};function wn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(t)-n(e);return Math.floor(fn.fromMillis(s).as("days"))}function Sn(e,t,n,s){let[i,r,o,a]=function(e,t,n){const s=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=wn(e,t);return(n-n%7)/7}],["days",wn]],i={},r=e;let o,a;for(const[c,l]of s)n.indexOf(c)>=0&&(o=c,i[c]=l(e,t),a=r.plus(i),a>t?(i[c]--,(e=r.plus(i))>t&&(a=e,i[c]--,e=r.plus(i))):e=a);return[e,i,a,o]}(e,t,n);const c=t-i,l=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(o<t&&(o=i.plus({[a]:1})),o!==i&&(r[a]=(r[a]||0)+c/(o-i)));const h=fn.fromObject(r,s);return l.length>0?fn.fromMillis(c,s).shiftTo(...l).plus(h):h}const Jn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Tn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pn=Jn.hanidec.replace(/[\[|\]]/g,"").split("");function vn({numberingSystem:e},t=""){return new RegExp(`${Jn[e||"latn"]}${t}`)}const En="missing Intl.DateTimeFormat.formatToParts support";function Rn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);if(-1!==e[n].search(Jn.hanidec))t+=Pn.indexOf(e[n]);else for(const e in Tn){const[n,i]=Tn[e];s>=n&&s<=i&&(t+=s-n)}}return parseInt(t,10)}return t}(e))}}const $n=`[ ${String.fromCharCode(160)}]`,In=new RegExp($n,"g");function Cn(e){return e.replace(/\./g,"\\.?").replace(In,$n)}function Nn(e){return e.replace(/\./g,"").replace(In," ").toLowerCase()}function kn(e,t){return null===e?null:{regex:RegExp(e.map(Cn).join("|")),deser:([n])=>e.findIndex((e=>Nn(n)===Nn(e)))+t}}function Dn(e,t){return{regex:e,deser:([,e,t])=>He(e,t),groups:t}}function jn(e){return{regex:e,deser:([e])=>e}}const Ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Un=null;function Gn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=An(ft.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function qn(e,t,n){const s=Gn(ft.parseFormat(n),e),i=s.map((t=>function(e,t){const n=vn(t),s=vn(t,"{2}"),i=vn(t,"{3}"),r=vn(t,"{4}"),o=vn(t,"{6}"),a=vn(t,"{1,2}"),c=vn(t,"{1,3}"),l=vn(t,"{1,6}"),h=vn(t,"{1,9}"),u=vn(t,"{2,4}"),d=vn(t,"{4,6}"),p=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},y=(y=>{if(e.literal)return p(y);switch(y.val){case"G":return kn(t.eras("short"),0);case"GG":return kn(t.eras("long"),0);case"y":return Rn(l);case"yy":case"kk":return Rn(u,Ze);case"yyyy":case"kkkk":return Rn(r);case"yyyyy":return Rn(d);case"yyyyyy":return Rn(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Rn(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Rn(s);case"MMM":return kn(t.months("short",!0),1);case"MMMM":return kn(t.months("long",!0),1);case"LLL":return kn(t.months("short",!1),1);case"LLLL":return kn(t.months("long",!1),1);case"o":case"S":return Rn(c);case"ooo":case"SSS":return Rn(i);case"u":return jn(h);case"uu":return jn(a);case"uuu":case"E":case"c":return Rn(n);case"a":return kn(t.meridiems(),0);case"EEE":return kn(t.weekdays("short",!1),1);case"EEEE":return kn(t.weekdays("long",!1),1);case"ccc":return kn(t.weekdays("short",!0),1);case"cccc":return kn(t.weekdays("long",!0),1);case"Z":case"ZZ":return Dn(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return Dn(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return jn(/[a-z_+-/]{1,256}?/i);case" ":return jn(/[^\S\n\r]/);default:return p(y)}})(e)||{invalidReason:En};return y.token=e,y}(t,e))),o=i.find((e=>e.invalidReason));if(o)return{input:t,tokens:s,invalidReason:o.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(i),o=RegExp(e,"i"),[a,c]=function(e,t,n){const s=e.match(t);if(s){const e={};let t=1;for(const i in n)if(je(n,i)){const r=n[i],o=r.groups?r.groups+1:1;!r.literal&&r.token&&(e[r.token.val[0]]=r.deser(s.slice(t,t+o))),t+=o}return[s,e]}return[s,{}]}(t,o,n),[l,h,u]=c?function(e){let t,n=null;return $e(e.z)||(n=x.create(e.z)),$e(e.Z)||(n||(n=new te(e.Z)),t=e.Z),$e(e.q)||(e.M=3*(e.q-1)+1),$e(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),$e(e.u)||(e.S=xe(e.u)),[Object.keys(e).reduce(((t,n)=>{const s=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return s&&(t[s]=e[n]),t}),{}),n,t]}(c):[null,null,void 0];if(je(c,"a")&&je(c,"H"))throw new r("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:s,regex:o,rawMatches:a,matches:c,result:l,zone:h,specificOffset:u}}}function An(e,t){if(!e)return null;const n=ft.create(t,e).dtFormatter((Un||(Un=hs.fromMillis(1555555555555)),Un)),s=n.formatToParts(),i=n.resolvedOptions();return s.map((t=>function(e,t,n){const{type:s,value:i}=e;if("literal"===s){const e=/^\s+$/.test(i);return{literal:!e,val:e?" ":i}}const r=t[s];let o=s;"hour"===s&&(o=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let a=Ln[o];if("object"==typeof a&&(a=a[r]),a)return{literal:!1,val:a}}(t,e,i)))}const xn="Invalid DateTime",Bn=864e13;function Fn(e){return new pe("unsupported zone",`the zone "${e.name}" is not supported`)}function Vn(e){return null===e.weekData&&(e.weekData=Se(e.c)),e.weekData}function Mn(e){return null===e.localWeekData&&(e.localWeekData=Se(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function _n(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new hs({...n,...t,old:n})}function Wn(e,t,n){let s=e-60*t*1e3;const i=n.offset(s);if(t===i)return[s,t];s-=60*(i-t)*1e3;const r=n.offset(s);return i===r?[s,i]:[e-60*Math.min(i,r)*1e3,Math.max(i,r)]}function zn(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Zn(e,t,n){return Wn(_e(e),t,n)}function Yn(e,t){const n=e.o,s=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),r={...e.c,year:s,month:i,day:Math.min(e.c.day,Me(s,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=fn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=_e(r);let[c,l]=Wn(a,n,e.zone);return 0!==o&&(c+=o,l=e.zone.offset(c)),{ts:c,o:l}}function Hn(e,t,n,s,i,r){const{setZone:o,zone:a}=n;if(e&&0!==Object.keys(e).length||t){const s=t||a,i=hs.fromObject(e,{...n,zone:s,specificOffset:r});return o?i:i.setZone(a)}return hs.invalid(new pe("unparsable",`the input "${i}" can't be parsed as ${s}`))}function Kn(e,t,n=!0){return e.isValid?ft.create(X.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){const n=e.c.year>9999||e.c.year<0;let s="";return n&&e.c.year>=0&&(s+="+"),s+=Ge(e.c.year,n?6:4),t?(s+="-",s+=Ge(e.c.month),s+="-",s+=Ge(e.c.day)):(s+=Ge(e.c.month),s+=Ge(e.c.day)),s}function Xn(e,t,n,s,i,r){let o=Ge(e.c.hour);return t?(o+=":",o+=Ge(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=":")):o+=Ge(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(o+=Ge(e.c.second),0===e.c.millisecond&&s||(o+=".",o+=Ge(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!r?o+="Z":e.o<0?(o+="-",o+=Ge(Math.trunc(-e.o/60)),o+=":",o+=Ge(Math.trunc(-e.o%60))):(o+="+",o+=Ge(Math.trunc(e.o/60)),o+=":",o+=Ge(Math.trunc(e.o%60)))),r&&(o+="["+e.zone.ianaName+"]"),o}const es={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ts={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ns={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ss=["year","month","day","hour","minute","second","millisecond"],is=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rs=["year","ordinal","hour","minute","second","millisecond"];function os(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new o(e);return t}(e)}}function as(e,t){const n=se(t.zone,de.defaultZone),s=X.fromObject(t),i=de.now();let r,o;if($e(e.year))r=i;else{for(const t of ss)$e(e[t])&&(e[t]=es[t]);const t=Ee(e)||Re(e);if(t)return hs.invalid(t);const s=n.offset(i);[r,o]=Zn(e,s,n)}return new hs({ts:r,zone:n,loc:s,o:o})}function cs(e,t,n){const s=!!$e(n.round)||n.round,i=(e,i)=>{e=Be(e,s||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,i)},r=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(r(n.unit),n.unit);for(const e of n.units){const t=r(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function ls(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class hs{constructor(e){const t=e.zone||de.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new pe("invalid input"):null)||(t.isValid?null:Fn(t));this.ts=$e(e.ts)?de.now():e.ts;let s=null,i=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[s,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);s=zn(this.ts,e),n=Number.isNaN(s.year)?new pe("invalid input"):null,s=n?null:s,i=n?null:e}}this._zone=t,this.loc=e.loc||X.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=s,this.o=i,this.isLuxonDateTime=!0}static now(){return new hs({})}static local(){const[e,t]=ls(arguments),[n,s,i,r,o,a,c]=t;return as({year:n,month:s,day:i,hour:r,minute:o,second:a,millisecond:c},e)}static utc(){const[e,t]=ls(arguments),[n,s,i,r,o,a,c]=t;return e.zone=te.utcInstance,as({year:n,month:s,day:i,hour:r,minute:o,second:a,millisecond:c},e)}static fromJSDate(e,t={}){const n=(s=e,"[object Date]"===Object.prototype.toString.call(s)?e.valueOf():NaN);var s;if(Number.isNaN(n))return hs.invalid("invalid input");const i=se(t.zone,de.defaultZone);return i.isValid?new hs({ts:n,zone:i,loc:X.fromObject(t)}):hs.invalid(Fn(i))}static fromMillis(e,t={}){if(Ie(e))return e<-Bn||e>Bn?hs.invalid("Timestamp out of range"):new hs({ts:e,zone:se(t.zone,de.defaultZone),loc:X.fromObject(t)});throw new a(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ie(e))return new hs({ts:1e3*e,zone:se(t.zone,de.defaultZone),loc:X.fromObject(t)});throw new a("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=se(t.zone,de.defaultZone);if(!n.isValid)return hs.invalid(Fn(n));const s=X.fromObject(t),i=Qe(e,os),{minDaysInFirstWeek:o,startOfWeek:a}=ve(i,s),c=de.now(),l=$e(t.specificOffset)?n.offset(c):t.specificOffset,h=!$e(i.ordinal),u=!$e(i.year),d=!$e(i.month)||!$e(i.day),p=u||d,y=i.weekYear||i.weekNumber;if((p||h)&&y)throw new r("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(d&&h)throw new r("Can't mix ordinal dates with month/day");const m=y||i.weekday&&!p;let f,g,b=zn(c,l);m?(f=is,g=ts,b=Se(b,o,a)):h?(f=rs,g=ns,b=Te(b)):(f=ss,g=es);let O=!1;for(const e of f){$e(i[e])?i[e]=O?g[e]:b[e]:O=!0}const w=m?function(e,t=4,n=1){const s=Ce(e.weekYear),i=Ue(e.weekNumber,1,ze(e.weekYear,t,n)),r=Ue(e.weekday,1,7);return s?i?!r&&fe("weekday",e.weekday):fe("week",e.weekNumber):fe("weekYear",e.weekYear)}(i,o,a):h?function(e){const t=Ce(e.year),n=Ue(e.ordinal,1,Ve(e.year));return t?!n&&fe("ordinal",e.ordinal):fe("year",e.year)}(i):Ee(i),S=w||Re(i);if(S)return hs.invalid(S);const J=m?Je(i,o,a):h?Pe(i):i,[T,P]=Zn(J,l,n),v=new hs({ts:T,zone:n,o:P,loc:s});return i.weekday&&p&&e.weekday!==v.weekday?hs.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${v.toISO()}`):v}static fromISO(e,t={}){const[n,s]=function(e){return wt(e,[Wt,Ht],[zt,Kt],[Zt,Qt],[Yt,Xt])}(e);return Hn(n,s,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,s]=function(e){return wt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[At,xt])}(e);return Hn(n,s,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,s]=function(e){return wt(e,[Bt,Mt],[Ft,Mt],[Vt,_t])}(e);return Hn(n,s,t,"HTTP",t)}static fromFormat(e,t,n={}){if($e(e)||$e(t))throw new a("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:i=null}=n,r=X.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),[o,c,l,h]=function(e,t,n){const{result:s,zone:i,specificOffset:r,invalidReason:o}=qn(e,t,n);return[s,i,r,o]}(r,e,t);return h?hs.invalid(h):Hn(o,c,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return hs.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,s]=function(e){return wt(e,[tn,Ht],[nn,sn])}(e);return Hn(n,s,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new a("need to specify a reason the DateTime is invalid");const s=e instanceof pe?e:new pe(e,t);if(de.throwOnInvalid)throw new n(s);return new hs({invalid:s})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=An(e,X.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Gn(ft.parseFormat(e),X.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vn(this).weekYear:NaN}get weekNumber(){return this.isValid?Vn(this).weekNumber:NaN}get weekday(){return this.isValid?Vn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Mn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Mn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Mn(this).weekYear:NaN}get ordinal(){return this.isValid?Te(this.c).ordinal:NaN}get monthShort(){return this.isValid?On.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?On.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?On.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?On.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=_e(this.c),s=this.zone.offset(n-e),i=this.zone.offset(n+e),r=this.zone.offset(n-s*t),o=this.zone.offset(n-i*t);if(r===o)return[this];const a=n-r*t,c=n-o*t,l=zn(a,r),h=zn(c,o);return l.hour===h.hour&&l.minute===h.minute&&l.second===h.second&&l.millisecond===h.millisecond?[_n(this,{ts:a}),_n(this,{ts:c})]:[this]}get isInLeapYear(){return Fe(this.year)}get daysInMonth(){return Me(this.year,this.month)}get daysInYear(){return this.isValid?Ve(this.year):NaN}get weeksInWeekYear(){return this.isValid?ze(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ze(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:s}=ft.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:s}}toUTC(e=0,t={}){return this.setZone(te.instance(e),t)}toLocal(){return this.setZone(de.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=se(e,de.defaultZone)).equals(this.zone))return this;if(e.isValid){let s=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[s]=Zn(n,t,e)}return _n(this,{ts:s,zone:e})}return hs.invalid(Fn(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return _n(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Qe(e,os),{minDaysInFirstWeek:n,startOfWeek:s}=ve(t,this.loc),i=!$e(t.weekYear)||!$e(t.weekNumber)||!$e(t.weekday),o=!$e(t.ordinal),a=!$e(t.year),c=!$e(t.month)||!$e(t.day),l=a||c,h=t.weekYear||t.weekNumber;if((l||o)&&h)throw new r("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&o)throw new r("Can't mix ordinal dates with month/day");let u;i?u=Je({...Se(this.c,n,s),...t},n,s):$e(t.ordinal)?(u={...this.toObject(),...t},$e(t.day)&&(u.day=Math.min(Me(u.year,u.month),u.day))):u=Pe({...Te(this.c),...t});const[d,p]=Zn(u,this.o,this.zone);return _n(this,{ts:d,o:p})}plus(e){if(!this.isValid)return this;return _n(this,Yn(this,fn.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return _n(this,Yn(this,fn.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},s=fn.normalizeUnit(e);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===s)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===s){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ft.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):xn}toLocaleString(e=d,t={}){return this.isValid?ft.create(this.loc.clone(t),e).formatDateTime(this):xn}toLocaleParts(e={}){return this.isValid?ft.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:s=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const r="extended"===e;let o=Qn(this,r);return o+="T",o+=Xn(this,r,t,n,s,i),o}toISODate({format:e="extended"}={}){return this.isValid?Qn(this,"extended"===e):null}toISOWeekDate(){return Kn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:s=!1,extendedZone:i=!1,format:r="extended"}={}){if(!this.isValid)return null;return(s?"T":"")+Xn(this,"extended"===r,t,e,n,i)}toRFC2822(){return Kn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Kn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let s="HH:mm:ss.SSS";return(t||e)&&(n&&(s+=" "),t?s+="z":e&&(s+="ZZ")),Kn(this,s,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():xn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return fn.invalid("created by diffing an invalid DateTime");const s={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(a=t,Array.isArray(a)?a:[a]).map(fn.normalizeUnit),r=e.valueOf()>this.valueOf(),o=Sn(r?this:e,r?e:this,i,s);var a;return r?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(hs.now(),e,t)}until(e){return this.isValid?bn.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const s=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,n)<=s&&s<=i.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||hs.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let s=["years","months","days","hours","minutes","seconds"],i=e.unit;return Array.isArray(e.unit)&&(s=e.unit,i=void 0),cs(t,this.plus(n),{...e,numeric:"always",units:s,unit:i})}toRelativeCalendar(e={}){return this.isValid?cs(e.base||hs.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(hs.isDateTime))throw new a("min requires all arguments be DateTimes");return De(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(hs.isDateTime))throw new a("max requires all arguments be DateTimes");return De(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:s=null,numberingSystem:i=null}=n;return qn(X.fromOpts({locale:s,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return hs.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return d}static get DATE_MED(){return p}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return m}static get DATE_HUGE(){return f}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return O}static get TIME_WITH_LONG_OFFSET(){return w}static get TIME_24_SIMPLE(){return S}static get TIME_24_WITH_SECONDS(){return J}static get TIME_24_WITH_SHORT_OFFSET(){return T}static get TIME_24_WITH_LONG_OFFSET(){return P}static get DATETIME_SHORT(){return v}static get DATETIME_SHORT_WITH_SECONDS(){return E}static get DATETIME_MED(){return R}static get DATETIME_MED_WITH_SECONDS(){return $}static get DATETIME_MED_WITH_WEEKDAY(){return I}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return N}static get DATETIME_HUGE(){return k}static get DATETIME_HUGE_WITH_SECONDS(){return D}}function us(e){if(hs.isDateTime(e))return e;if(e&&e.valueOf&&Ie(e.valueOf()))return hs.fromJSDate(e);if(e&&"object"==typeof e)return hs.fromObject(e);throw new a(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class ds{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}get locale(){return this.#e}get timeZone(){return this.#t}getResource(e,t){if(!e)return null;const n=e.startsWith("@@:")?e.substring(3):e,s=t??n,i=this.#n[n];return i||s}format(e,...t){const n=this.getResource(e);if(!n)return"";const s=[],i=n.replace(/\{(\d+)\}/g,((e,n)=>(s[n]=!0,n<t.length?t[n]:e))),r=[];for(let e=0;e<t.length;e++)s[e]||r.push(t[e]);return i+(r.length?` [${r.join(", ")}]`:"")}formatCurrency(e,t=null){if(null==e)return null;try{return new Intl.NumberFormat(this.#e,{style:"currency",currency:t??this.getResource("/@system/default/currency")}).format(e).replace(String.fromCharCode(160)," ")}catch{return e.toString()}}formatDate(e){if(null==e)return null;try{let t;return t=e instanceof Date?hs.fromJSDate(e).setLocale(this.#e):hs.fromISO(e).setLocale(this.#e),t.startOf("day").toLocaleString({year:"2-digit",month:"numeric",day:"numeric"})}catch(t){return e}}formatDateTime(e){if(null==e)return null;try{let t;return t=e instanceof Date?hs.fromJSDate(e).setLocale(this.#e):hs.fromISO(e).setLocale(this.#e),t.toLocaleString({year:"2-digit",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}catch{return e}}formatNumber(e,t){if(null==e)return null;try{return new Intl.NumberFormat(t?.locale??this.#e,{style:"decimal",minimumFractionDigits:t?.digits??t?.minDigits??0,maximumFractionDigits:t?.digits??t?.maxDigits??20}).format(e)||e.toString()}catch{return e.toString()}}formatQuantity(e,t){return this.formatNumber(e,t)}formatTime(e){if(null==e)return null;try{let t;return t=e instanceof Date?hs.fromJSDate(e).setLocale(this.#e):hs.fromISO(e).setLocale(this.#e),t.toLocaleString(hs.TIME_24_WITH_SECONDS)}catch{return e}}formatUnitValue(e){return this.formatNumber(e,{minDigits:2,maxDigits:8})}formatValue(e){return this.formatNumber(e,{digits:2})}formatWeight(e){return this.formatNumber(e,{minDigits:3,maxDigits:6})}localizeNode(e){e instanceof HTMLElement&&Array.from(e.attributes).forEach((t=>{const n=t.value.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,((e,t)=>this.getResource(t)));n!==t.value&&e.setAttribute(t.name,n)}));const t=e instanceof HTMLTemplateElement?e.content:e;for(const e of t.childNodes){if(!e.hasChildNodes()&&e.textContent){const t=e.textContent.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,((e,t)=>this.getResource(t)));t!==e.textContent&&(e.textContent=t)}t.hasChildNodes()&&this.localizeNode(e)}}observeNode(e){this.localizeNode(e);new MutationObserver((e=>{e.forEach((e=>{if("childList"===e.type)for(const t of e.addedNodes)this.localizeNode(t)}))})).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}class ps{#s;constructor(e){this.#s=e}async fetch(e,t){return this.#s.fetch(e,t)}async fetchBlob(e,t){const n=await this.#s.fetch(e,t);return await this.handleResponse(n),n.blob()}async fetchJson(e,t){const n=await this.#s.fetch(e,t);await this.handleResponse(n);const s=await n.text();return null==s||""===s?null:JSON.parse(s)}async fetchJsonRequired(e,t){const n=await this.fetchJson(e,t);if(null==n)throw new Error(`Not found: ${e}`);return n}async fetchOk(e,t){const n=await this.#s.fetch(e,t);return await this.handleResponse(n),n}async fetchText(e,t){const n=await this.#s.fetch(e,t);return await this.handleResponse(n),n.text()}async handleResponse(e){if(!e.ok){const t=await e.text();let n=null;try{const e=JSON.parse(t);n=new Error(e.message??t)}catch(s){n=new Error(`${e.status} ${t}`)}throw n}}}class ys{#i;#r;#o;#a=!1;#c;#l;constructor(e,t){this.#i=e,this.#r=t,this.#o=function(e){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(globalThis.atob(t).split("").map((function(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`})).join(""));return JSON.parse(n)}catch(t){throw new Error("Error parsing token "+e)}}(t)}async close(){}async fetch(e,t){const n=`${this.#i}${e}`,s=t??{},i=`Bearer ${this.#r}`;return s.headers instanceof Headers?s.headers.append("Authorization",i):Array.isArray(s.headers)?s.headers.push(["Authorization",i]):s.headers?s.headers.Authorization=i:s.headers={Authorization:i},this.#a&&console.debug(`${s.method??"GET"} ${e}`),fetch(n,s)}get i18n(){return this.#c||(this.#c=(async()=>async function(e){const t=await e.web.fetchJson("/system/resources");return new ds(e.language,e.timeZone,t)}(this))()),this.#c}get jti(){return this.#o.jti}get jwt(){return this.#r}get language(){return this.#o.locale}get timeZone(){return this.#o.timeZone}get user(){return this.#o.sub}get web(){return this.#l||(this.#l=new ps(this)),this.#l}}function ms(e,t,n){if(!e)throw new Error("Missing argument: host");if(!t)throw new Error("Missing argument: token");return e.toLowerCase().startsWith("http")||(e=`https://${e}.zenerp.app.br:8443`),new ys(e,t)}var fs=Object.freeze({__proto__:null,Company:class{id;code;person;locale;timeZone;society;fiscalRegion;fiscalProfileCompany;currency;stockCluster;warehouse;priceList;image;creditLine;mailerConfig;tags;properties},CompanyService:class{#h;constructor(e){this.#h=e}async companyCreate(e){return this.#h.web.fetchJson("/catalog/company/company",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async companyDelete(e){return this.#h.web.fetchJson(`/catalog/company/company/${e}`,{method:"DELETE"})}async companyOpGetActive(){return this.#h.web.fetchJson("/catalog/company/companyOpGetActive",{method:"POST"})}async companyOpSetActive(e){return this.#h.web.fetchJson(`/catalog/company/companyOpSetActive/${e}`,{method:"POST"})}async companyRead(e){return this.#h.web.fetchJson(`/catalog/company/company?${e}`,{method:"GET"})}async companyReadById(e){return this.#h.web.fetchJson(`/catalog/company/company/${e}`,{method:"GET"})}async companyUpdate(e){return this.#h.web.fetchJson("/catalog/company/company",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async societyCreate(e){return this.#h.web.fetchJson("/catalog/company/society",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async societyDelete(e){return this.#h.web.fetchJson(`/catalog/company/society/${e}`,{method:"DELETE"})}async societyRead(e){return this.#h.web.fetchJson(`/catalog/company/society?${e}`,{method:"GET"})}async societyReadById(e){return this.#h.web.fetchJson(`/catalog/company/society/${e}`,{method:"GET"})}async societyUpdate(e){return this.#h.web.fetchJson("/catalog/company/society",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Society:class{id;code;description;tags;properties}});var gs=Object.freeze({__proto__:null,City:class{id;name;state;tags;properties},CityBasic:class{id;name;stateId;stateCode;stateName;countryId;countryCodeA2;countryCodeA3;countryCodeN;countryName;tags},Country:class{id;name;codeA2;codeA3;codeN;tags;properties},Geocode:class{latitude;longitude},LocationService:class{#h;constructor(e){this.#h=e}async cityCreate(e){return this.#h.web.fetchJson("/catalog/location/city",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async cityDelete(e){return this.#h.web.fetchJson(`/catalog/location/city/${e}`,{method:"DELETE"})}async cityOpFind(e){return this.#h.web.fetchJson("/catalog/location/cityOpFind",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async cityRead(e){return this.#h.web.fetchJson(`/catalog/location/city?${e}`,{method:"GET"})}async cityReadById(e){return this.#h.web.fetchJson(`/catalog/location/city/${e}`,{method:"GET"})}async cityUpdate(e){return this.#h.web.fetchJson("/catalog/location/city",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async countryCreate(e){return this.#h.web.fetchJson("/catalog/location/country",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async countryDelete(e){return this.#h.web.fetchJson(`/catalog/location/country/${e}`,{method:"DELETE"})}async countryRead(e){return this.#h.web.fetchJson(`/catalog/location/country?${e}`,{method:"GET"})}async countryReadById(e){return this.#h.web.fetchJson(`/catalog/location/country/${e}`,{method:"GET"})}async countryUpdate(e){return this.#h.web.fetchJson("/catalog/location/country",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async geocodeRead(e){const t=new URLSearchParams;return e&&t.set("address",String(e)),this.#h.web.fetchJson(`/catalog/location/geocode?${t.toString()}`,{method:"GET"})}async stateCreate(e){return this.#h.web.fetchJson("/catalog/location/state",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stateDelete(e){return this.#h.web.fetchJson(`/catalog/location/state/${e}`,{method:"DELETE"})}async stateRead(e){return this.#h.web.fetchJson(`/catalog/location/state?${e}`,{method:"GET"})}async stateReadById(e){return this.#h.web.fetchJson(`/catalog/location/state/${e}`,{method:"GET"})}async stateUpdate(e){return this.#h.web.fetchJson("/catalog/location/state",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async zipcodeRead(e,t){const n=new URLSearchParams;return e&&n.set("country",String(e)),t&&n.set("zipcode",String(t)),this.#h.web.fetchJson(`/catalog/location/zipcode?${n.toString()}`,{method:"GET"})}},State:class{id;code;name;country;tags;properties},Zipcode:class{zipcode;street;complement;district;city;state;country}});var bs=Object.freeze({__proto__:null,Person:class{id;type;name;fantasyName;nationality;documentType;documentNumber;document2Type;document2Number;zipcode;street;number;complement;district;city;email;phone;comments;codeConversionList;priceListCost;priceListRetail;fiscalProfilePerson;personGroup;category1;category2;category3;category4;category5;tags;properties},PersonAddress:class{id;person;description;zipcode;street;number;complement;district;city;tags;properties},PersonBasic:class{id;type;name;fantasyName;documentType;documentNumber;tags},PersonComment:class{id;person;comments;tags;properties},PersonContact:class{id;person;type;description;tags;properties},PersonDocument:class{id;person;type;number;tags;properties},PersonGroup:class{id;code;description;priceListRetail;tags;properties},PersonService:class{#h;constructor(e){this.#h=e}async personAddressCreate(e){return this.#h.web.fetchJson("/catalog/person/personAddress",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personAddressDelete(e){return this.#h.web.fetchJson(`/catalog/person/personAddress/${e}`,{method:"DELETE"})}async personAddressOpSetDefault(e){return this.#h.web.fetchJson(`/catalog/person/personAddressOpSetDefault/${e}`,{method:"POST"})}async personAddressRead(e){return this.#h.web.fetchJson(`/catalog/person/personAddress?${e}`,{method:"GET"})}async personAddressReadById(e){return this.#h.web.fetchJson(`/catalog/person/personAddress/${e}`,{method:"GET"})}async personAddressUpdate(e){return this.#h.web.fetchJson("/catalog/person/personAddress",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personBasicRead(e){return this.#h.web.fetchJson(`/catalog/person/personBasic?${e}`,{method:"GET"})}async personBasicReadById(e){return this.#h.web.fetchJson(`/catalog/person/personBasic/${e}`,{method:"GET"})}async personCommentCreate(e){return this.#h.web.fetchJson("/catalog/person/personComment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personCommentDelete(e){return this.#h.web.fetchJson(`/catalog/person/personComment/${e}`,{method:"DELETE"})}async personCommentRead(e){return this.#h.web.fetchJson(`/catalog/person/personComment?${e}`,{method:"GET"})}async personCommentReadById(e){return this.#h.web.fetchJson(`/catalog/person/personComment/${e}`,{method:"GET"})}async personCommentUpdate(e){return this.#h.web.fetchJson("/catalog/person/personComment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personContactCreate(e){return this.#h.web.fetchJson("/catalog/person/personContact",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personContactDelete(e){return this.#h.web.fetchJson(`/catalog/person/personContact/${e}`,{method:"DELETE"})}async personContactRead(e){return this.#h.web.fetchJson(`/catalog/person/personContact?${e}`,{method:"GET"})}async personContactReadById(e){return this.#h.web.fetchJson(`/catalog/person/personContact/${e}`,{method:"GET"})}async personContactUpdate(e){return this.#h.web.fetchJson("/catalog/person/personContact",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personCreate(e){return this.#h.web.fetchJson("/catalog/person/person",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personDelete(e){return this.#h.web.fetchJson(`/catalog/person/person/${e}`,{method:"DELETE"})}async personDocumentCreate(e){return this.#h.web.fetchJson("/catalog/person/personDocument",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personDocumentDelete(e){return this.#h.web.fetchJson(`/catalog/person/personDocument/${e}`,{method:"DELETE"})}async personDocumentRead(e){return this.#h.web.fetchJson(`/catalog/person/personDocument?${e}`,{method:"GET"})}async personDocumentReadById(e){return this.#h.web.fetchJson(`/catalog/person/personDocument/${e}`,{method:"GET"})}async personDocumentUpdate(e){return this.#h.web.fetchJson("/catalog/person/personDocument",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personGroupCreate(e){return this.#h.web.fetchJson("/catalog/person/personGroup",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personGroupDelete(e){return this.#h.web.fetchJson(`/catalog/person/personGroup/${e}`,{method:"DELETE"})}async personGroupRead(e){return this.#h.web.fetchJson(`/catalog/person/personGroup?${e}`,{method:"GET"})}async personGroupReadById(e){return this.#h.web.fetchJson(`/catalog/person/personGroup/${e}`,{method:"GET"})}async personGroupUpdate(e){return this.#h.web.fetchJson("/catalog/person/personGroup",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async personOpReadFromPersonDirectory(e,t){const n=new URLSearchParams;return e&&n.set("documentType",String(e)),t&&n.set("documentNumber",String(t)),this.#h.web.fetchJson(`/catalog/person/personOpReadFromPersonDirectory?${n.toString()}`,{method:"POST"})}async personRead(e){return this.#h.web.fetchJson(`/catalog/person/person?${e}`,{method:"GET"})}async personReadById(e){return this.#h.web.fetchJson(`/catalog/person/person/${e}`,{method:"GET"})}async personUpdate(e){return this.#h.web.fetchJson("/catalog/person/person",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Os=Object.freeze({__proto__:null,CodeConversion:class{id;codeConversionList;productPacking;unit;code;tags;properties},CodeConversionList:class{id;code;description;tags;properties},Dimension:class{id;code;description;standardUnit;tags},Product:class{id;productProfile;type;code;description;complement;keywords;unit;fiscalProfileProduct;variant;barcode;lengthCm;widthCm;heightCm;volumeM3;netWeightKg;grossWeightKg;category1;category2;category3;category4;category5;tags;properties},ProductKitComponent:class{id;product;productPacking;quantity;tags;properties},ProductPacking:class{id;product;variant;code;complement;barcode;units;lengthCm;widthCm;heightCm;volumeM3;netWeightKg;grossWeightKg;tags;properties},ProductProfile:class{id;code;description;tags;properties},ProductService:class{#h;constructor(e){this.#h=e}async codeConversionCreate(e){return this.#h.web.fetchJson("/catalog/product/codeConversion",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async codeConversionDelete(e){return this.#h.web.fetchJson(`/catalog/product/codeConversion/${e}`,{method:"DELETE"})}async codeConversionListCreate(e){return this.#h.web.fetchJson("/catalog/product/codeConversionList",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async codeConversionListDelete(e){return this.#h.web.fetchJson(`/catalog/product/codeConversionList/${e}`,{method:"DELETE"})}async codeConversionListRead(e){return this.#h.web.fetchJson(`/catalog/product/codeConversionList?${e}`,{method:"GET"})}async codeConversionListReadById(e){return this.#h.web.fetchJson(`/catalog/product/codeConversionList/${e}`,{method:"GET"})}async codeConversionListUpdate(e){return this.#h.web.fetchJson("/catalog/product/codeConversionList",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async codeConversionRead(e){return this.#h.web.fetchJson(`/catalog/product/codeConversion?${e}`,{method:"GET"})}async codeConversionReadById(e){return this.#h.web.fetchJson(`/catalog/product/codeConversion/${e}`,{method:"GET"})}async codeConversionUpdate(e){return this.#h.web.fetchJson("/catalog/product/codeConversion",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dimensionCreate(e){return this.#h.web.fetchJson("/catalog/product/dimension",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dimensionDelete(e){return this.#h.web.fetchJson(`/catalog/product/dimension/${e}`,{method:"DELETE"})}async dimensionRead(e){return this.#h.web.fetchJson(`/catalog/product/dimension?${e}`,{method:"GET"})}async dimensionReadById(e){return this.#h.web.fetchJson(`/catalog/product/dimension/${e}`,{method:"GET"})}async dimensionUpdate(e){return this.#h.web.fetchJson("/catalog/product/dimension",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productCreate(e){return this.#h.web.fetchJson("/catalog/product/product",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productDelete(e){return this.#h.web.fetchJson(`/catalog/product/product/${e}`,{method:"DELETE"})}async productKitComponentCreate(e){return this.#h.web.fetchJson("/catalog/product/productKitComponent",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productKitComponentDelete(e){return this.#h.web.fetchJson(`/catalog/product/productKitComponent/${e}`,{method:"DELETE"})}async productKitComponentRead(e){return this.#h.web.fetchJson(`/catalog/product/productKitComponent?${e}`,{method:"GET"})}async productKitComponentReadById(e){return this.#h.web.fetchJson(`/catalog/product/productKitComponent/${e}`,{method:"GET"})}async productKitComponentUpdate(e){return this.#h.web.fetchJson("/catalog/product/productKitComponent",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productOpClone(e,t){return this.#h.web.fetchJson(`/catalog/product/productOpClone/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async productOpConvertToUnit(e,t,n){const s=new URLSearchParams;return t&&s.set("unitId",String(t)),n&&s.set("quantity",String(n)),this.#h.web.fetchJson(`/catalog/product/productOpConvertToUnit/${e}?${s.toString()}`,{method:"POST"})}async productPackingCreate(e){return this.#h.web.fetchJson("/catalog/product/productPacking",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productPackingDelete(e){return this.#h.web.fetchJson(`/catalog/product/productPacking/${e}`,{method:"DELETE"})}async productPackingOpConvertToUnit(e,t,n){const s=new URLSearchParams;return t&&s.set("unitId",String(t)),n&&s.set("quantity",String(n)),this.#h.web.fetchJson(`/catalog/product/productPackingOpConvertToUnit/${e}?${s.toString()}`,{method:"POST"})}async productPackingRead(e){return this.#h.web.fetchJson(`/catalog/product/productPacking?${e}`,{method:"GET"})}async productPackingReadById(e){return this.#h.web.fetchJson(`/catalog/product/productPacking/${e}`,{method:"GET"})}async productPackingUpdate(e){return this.#h.web.fetchJson("/catalog/product/productPacking",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productProfileCreate(e){return this.#h.web.fetchJson("/catalog/product/productProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productProfileDelete(e){return this.#h.web.fetchJson(`/catalog/product/productProfile/${e}`,{method:"DELETE"})}async productProfileRead(e){return this.#h.web.fetchJson(`/catalog/product/productProfile?${e}`,{method:"GET"})}async productProfileReadById(e){return this.#h.web.fetchJson(`/catalog/product/productProfile/${e}`,{method:"GET"})}async productProfileUpdate(e){return this.#h.web.fetchJson("/catalog/product/productProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productRead(e){return this.#h.web.fetchJson(`/catalog/product/product?${e}`,{method:"GET"})}async productReadById(e){return this.#h.web.fetchJson(`/catalog/product/product/${e}`,{method:"GET"})}async productUnitConversionCreate(e){return this.#h.web.fetchJson("/catalog/product/productUnitConversion",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productUnitConversionDelete(e){return this.#h.web.fetchJson(`/catalog/product/productUnitConversion/${e}`,{method:"DELETE"})}async productUnitConversionRead(e){return this.#h.web.fetchJson(`/catalog/product/productUnitConversion?${e}`,{method:"GET"})}async productUnitConversionReadById(e){return this.#h.web.fetchJson(`/catalog/product/productUnitConversion/${e}`,{method:"GET"})}async productUnitConversionUpdate(e){return this.#h.web.fetchJson("/catalog/product/productUnitConversion",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productUpdate(e){return this.#h.web.fetchJson("/catalog/product/product",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productVariantCreate(e){return this.#h.web.fetchJson("/catalog/product/productVariant",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productVariantDelete(e){return this.#h.web.fetchJson(`/catalog/product/productVariant/${e}`,{method:"DELETE"})}async productVariantRead(e){return this.#h.web.fetchJson(`/catalog/product/productVariant?${e}`,{method:"GET"})}async productVariantReadById(e){return this.#h.web.fetchJson(`/catalog/product/productVariant/${e}`,{method:"GET"})}async productVariantUpdate(e){return this.#h.web.fetchJson("/catalog/product/productVariant",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async unitCreate(e){return this.#h.web.fetchJson("/catalog/product/unit",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async unitDelete(e){return this.#h.web.fetchJson(`/catalog/product/unit/${e}`,{method:"DELETE"})}async unitRead(e){return this.#h.web.fetchJson(`/catalog/product/unit?${e}`,{method:"GET"})}async unitReadById(e){return this.#h.web.fetchJson(`/catalog/product/unit/${e}`,{method:"GET"})}async unitUpdate(e){return this.#h.web.fetchJson("/catalog/product/unit",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},ProductUnitConversion:class{id;product;productPacking;unit;conversionFactor;scale;tags;properties},ProductVariant:class{id;code;description;tags;properties},Unit:class{id;dimension;code;description;conversionFactor;tags}});var ws=Object.freeze({__proto__:null,CatalogService:class{#h;constructor(e){this.#h=e}async categoryCreate(e){return this.#h.web.fetchJson("/catalog/category",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async categoryDelete(e){return this.#h.web.fetchJson(`/catalog/category/${e}`,{method:"DELETE"})}async categoryRead(e){return this.#h.web.fetchJson(`/catalog/category?${e}`,{method:"GET"})}async categoryReadById(e){return this.#h.web.fetchJson(`/catalog/category/${e}`,{method:"GET"})}async categoryUpdate(e){return this.#h.web.fetchJson("/catalog/category",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Category:class{id;category;code;description;tags;properties},company:fs,location:gs,person:bs,product:Os});var Ss=Object.freeze({__proto__:null,Contract:class{id;status;company;contractProfile;workflow;workpiece;person;code;dateStart;dateEnd;billingCycle;billingInterval;billingGraceDays;billingLastDate;billingNextDate;contractIndex;contractIndexValue;adjustmentCycle;adjustmentInterval;adjustmentLastDate;adjustmentNextDate;totalValue;tags;properties},ContractBilling:class{id;status;contractItem;date;value;tags;properties},ContractIndex:class{id;code;description;value;tags;properties},ContractItem:class{id;contract;description;quantity;unitValue;totalValue;tags;properties},ContractProfile:class{id;code;description;workflow;tags;properties},ContractService:class{#h;constructor(e){this.#h=e}async contractBillingCreate(e){return this.#h.web.fetchJson("/commercial/contract/contractBilling",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractBillingDelete(e){return this.#h.web.fetchJson(`/commercial/contract/contractBilling/${e}`,{method:"DELETE"})}async contractBillingOpApprove(e){return this.#h.web.fetchJson(`/commercial/contract/contractBillingOpApprove/${e}`,{method:"POST"})}async contractBillingOpApproveRevert(e){return this.#h.web.fetchJson(`/commercial/contract/contractBillingOpApproveRevert/${e}`,{method:"POST"})}async contractBillingOpCreate(e){const t=new URLSearchParams;return e&&t.set("contractId",String(e)),this.#h.web.fetchJson(`/commercial/contract/contractBillingOpCreate?${t.toString()}`,{method:"POST"})}async contractBillingOpCreateInvoice(e){return this.#h.web.fetchJson("/commercial/contract/contractBillingOpCreateInvoice",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractBillingOpCreateRevert(e){const t=new URLSearchParams;return e&&t.set("contractId",String(e)),this.#h.web.fetchJson(`/commercial/contract/contractBillingOpCreateRevert?${t.toString()}`,{method:"POST"})}async contractBillingOpPrepare(e){return this.#h.web.fetchJson(`/commercial/contract/contractBillingOpPrepare/${e}`,{method:"POST"})}async contractBillingOpPrepareRevert(e){return this.#h.web.fetchJson(`/commercial/contract/contractBillingOpPrepareRevert/${e}`,{method:"POST"})}async contractBillingRead(e){return this.#h.web.fetchJson(`/commercial/contract/contractBilling?${e}`,{method:"GET"})}async contractBillingReadById(e){return this.#h.web.fetchJson(`/commercial/contract/contractBilling/${e}`,{method:"GET"})}async contractBillingUpdate(e){return this.#h.web.fetchJson("/commercial/contract/contractBilling",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractCreate(e){return this.#h.web.fetchJson("/commercial/contract/contract",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractDelete(e){return this.#h.web.fetchJson(`/commercial/contract/contract/${e}`,{method:"DELETE"})}async contractIndexCreate(e){return this.#h.web.fetchJson("/commercial/contract/contractIndex",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractIndexDelete(e){return this.#h.web.fetchJson(`/commercial/contract/contractIndex/${e}`,{method:"DELETE"})}async contractIndexRead(e){return this.#h.web.fetchJson(`/commercial/contract/contractIndex?${e}`,{method:"GET"})}async contractIndexReadById(e){return this.#h.web.fetchJson(`/commercial/contract/contractIndex/${e}`,{method:"GET"})}async contractIndexUpdate(e){return this.#h.web.fetchJson("/commercial/contract/contractIndex",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractItemCreate(e){return this.#h.web.fetchJson("/commercial/contract/contractItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractItemDelete(e){return this.#h.web.fetchJson(`/commercial/contract/contractItem/${e}`,{method:"DELETE"})}async contractItemRead(e){return this.#h.web.fetchJson(`/commercial/contract/contractItem?${e}`,{method:"GET"})}async contractItemReadById(e){return this.#h.web.fetchJson(`/commercial/contract/contractItem/${e}`,{method:"GET"})}async contractItemUpdate(e){return this.#h.web.fetchJson("/commercial/contract/contractItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractOpAdjust(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpAdjust/${e}`,{method:"POST"})}async contractOpApprove(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpApprove/${e}`,{method:"POST"})}async contractOpApproveRevert(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpApproveRevert/${e}`,{method:"POST"})}async contractOpCancel(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpCancel/${e}`,{method:"POST"})}async contractOpCancelRevert(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpCancelRevert/${e}`,{method:"POST"})}async contractOpCreate(e){return this.#h.web.fetchJson("/commercial/contract/contractOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractOpPrepare(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpPrepare/${e}`,{method:"POST"})}async contractOpPrepareRevert(e){return this.#h.web.fetchJson(`/commercial/contract/contractOpPrepareRevert/${e}`,{method:"POST"})}async contractProfileCreate(e){return this.#h.web.fetchJson("/commercial/contract/contractProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractProfileDelete(e){return this.#h.web.fetchJson(`/commercial/contract/contractProfile/${e}`,{method:"DELETE"})}async contractProfileRead(e){return this.#h.web.fetchJson(`/commercial/contract/contractProfile?${e}`,{method:"GET"})}async contractProfileReadById(e){return this.#h.web.fetchJson(`/commercial/contract/contractProfile/${e}`,{method:"GET"})}async contractProfileUpdate(e){return this.#h.web.fetchJson("/commercial/contract/contractProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async contractRead(e){return this.#h.web.fetchJson(`/commercial/contract/contract?${e}`,{method:"GET"})}async contractReadById(e){return this.#h.web.fetchJson(`/commercial/contract/contract/${e}`,{method:"GET"})}async contractUpdate(e){return this.#h.web.fetchJson("/commercial/contract/contract",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Js=Object.freeze({__proto__:null,CommercialService:class{#h;constructor(e){this.#h=e}async priceListChangeRequestCreate(e){return this.#h.web.fetchJson("/commercial/priceListChangeRequest",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListChangeRequestDelete(e){return this.#h.web.fetchJson(`/commercial/priceListChangeRequest/${e}`,{method:"DELETE"})}async priceListChangeRequestOpApprove(e){return this.#h.web.fetchJson(`/commercial/priceListChangeRequestOpApprove/${e}`,{method:"POST"})}async priceListChangeRequestOpReject(e){return this.#h.web.fetchJson(`/commercial/priceListChangeRequestOpReject/${e}`,{method:"POST"})}async priceListChangeRequestRead(e){return this.#h.web.fetchJson(`/commercial/priceListChangeRequest?${e}`,{method:"GET"})}async priceListChangeRequestReadById(e){return this.#h.web.fetchJson(`/commercial/priceListChangeRequest/${e}`,{method:"GET"})}async priceListOpFind(e,t,n,s){const i=new URLSearchParams;return t&&i.set("productId",String(t)),n&&i.set("productPackingId",String(n)),s&&i.set("currencyId",String(s)),this.#h.web.fetchJson(`/commercial/priceListOpFind/${e}?${i.toString()}`,{method:"POST"})}async priceListTransformationCreate(e){return this.#h.web.fetchJson("/commercial/priceListTransformation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListTransformationDelete(e){return this.#h.web.fetchJson(`/commercial/priceListTransformation/${e}`,{method:"DELETE"})}async priceListTransformationOpCalculate(e){return this.#h.web.fetchJson(`/commercial/priceListTransformationOpCalculate/${e}`,{method:"POST"})}async priceListTransformationRead(e){return this.#h.web.fetchJson(`/commercial/priceListTransformation?${e}`,{method:"GET"})}async priceListTransformationReadById(e){return this.#h.web.fetchJson(`/commercial/priceListTransformation/${e}`,{method:"GET"})}async priceListTransformationUpdate(e){return this.#h.web.fetchJson("/commercial/priceListTransformation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},PriceList:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListChangeRequest:class{id;status;date;priceList;product;productPacking;currency;unitValue;tags;properties},PriceListItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},PriceListTransformation:class{id;priceListSource;priceListDestination;priceFormation;tags;properties},contract:Ss});var Ts=Object.freeze({__proto__:null,Account:class{id;accountChart;code;level;type;description;fullDescription;tags;properties},AccountCategory:class{id;code;description;tags;properties},AccountChart:class{id;code;description;mask;tags;properties},AccountComplement:class{id;resultCenter;person},AccountConversion:class{id;accountConversionChart;accountSource;accountDestination},AccountConversionChart:class{id;accountChartSource;accountChartDestination;tags},AccountDefault:class{id;accountChart;accountCategory;person;product;tax;channelCode;wallet;account;tags;properties},AccountFiscalYear:class{fiscalYear;id;accountChart;code;level;type;description;fullDescription;tags;properties},AccountingService:class{#h;constructor(e){this.#h=e}async accountCategoryCreate(e){return this.#h.web.fetchJson("/financial/accounting/accountCategory",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountCategoryDelete(e){return this.#h.web.fetchJson(`/financial/accounting/accountCategory/${e}`,{method:"DELETE"})}async accountCategoryRead(e){return this.#h.web.fetchJson(`/financial/accounting/accountCategory?${e}`,{method:"GET"})}async accountCategoryReadById(e){return this.#h.web.fetchJson(`/financial/accounting/accountCategory/${e}`,{method:"GET"})}async accountCategoryUpdate(e){return this.#h.web.fetchJson("/financial/accounting/accountCategory",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountChartCreate(e){return this.#h.web.fetchJson("/financial/accounting/accountChart",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountChartDelete(e){return this.#h.web.fetchJson(`/financial/accounting/accountChart/${e}`,{method:"DELETE"})}async accountChartOpClone(e){return this.#h.web.fetchJson(`/financial/accounting/accountChartOpClone/${e}`,{method:"POST"})}async accountChartOpImport(e,t){return this.#h.web.fetchJson(`/financial/accounting/accountChartOpImport/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async accountChartOpLevelCreate(e,t,n){const s=new URLSearchParams;return t&&s.set("level",String(t)),n&&s.set("digits",String(n)),this.#h.web.fetchJson(`/financial/accounting/accountChartOpLevelCreate/${e}?${s.toString()}`,{method:"POST"})}async accountChartOpLevelDelete(e,t){const n=new URLSearchParams;return t&&n.set("level",String(t)),this.#h.web.fetchJson(`/financial/accounting/accountChartOpLevelDelete/${e}?${n.toString()}`,{method:"POST"})}async accountChartOpLevelUpdate(e,t,n){const s=new URLSearchParams;return t&&s.set("level",String(t)),n&&s.set("digits",String(n)),this.#h.web.fetchJson(`/financial/accounting/accountChartOpLevelUpdate/${e}?${s.toString()}`,{method:"POST"})}async accountChartOpNextShortCode(e){return this.#h.web.fetchJson(`/financial/accounting/accountChartOpNextShortCode/${e}`,{method:"POST"})}async accountChartRead(e){return this.#h.web.fetchJson(`/financial/accounting/accountChart?${e}`,{method:"GET"})}async accountChartReadById(e){return this.#h.web.fetchJson(`/financial/accounting/accountChart/${e}`,{method:"GET"})}async accountChartUpdate(e){return this.#h.web.fetchJson("/financial/accounting/accountChart",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountConversionChartCreate(e){return this.#h.web.fetchJson("/financial/accounting/accountConversionChart",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountConversionChartDelete(e){return this.#h.web.fetchJson(`/financial/accounting/accountConversionChart/${e}`,{method:"DELETE"})}async accountConversionChartRead(e){return this.#h.web.fetchJson(`/financial/accounting/accountConversionChart?${e}`,{method:"GET"})}async accountConversionChartReadById(e){return this.#h.web.fetchJson(`/financial/accounting/accountConversionChart/${e}`,{method:"GET"})}async accountConversionChartUpdate(e){return this.#h.web.fetchJson("/financial/accounting/accountConversionChart",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountConversionCreate(e){return this.#h.web.fetchJson("/financial/accounting/accountConversion",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountConversionDelete(e){return this.#h.web.fetchJson(`/financial/accounting/accountConversion/${e}`,{method:"DELETE"})}async accountConversionRead(e){return this.#h.web.fetchJson(`/financial/accounting/accountConversion?${e}`,{method:"GET"})}async accountConversionReadById(e){return this.#h.web.fetchJson(`/financial/accounting/accountConversion/${e}`,{method:"GET"})}async accountConversionUpdate(e){return this.#h.web.fetchJson("/financial/accounting/accountConversion",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountCreate(e){return this.#h.web.fetchJson("/financial/accounting/account",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountDefaultCreate(e){return this.#h.web.fetchJson("/financial/accounting/accountDefault",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountDefaultDelete(e){return this.#h.web.fetchJson(`/financial/accounting/accountDefault/${e}`,{method:"DELETE"})}async accountDefaultOpRead(e){return this.#h.web.fetchJson("/financial/accounting/accountDefaultOpRead",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountDefaultRead(e){return this.#h.web.fetchJson(`/financial/accounting/accountDefault?${e}`,{method:"GET"})}async accountDefaultReadById(e){return this.#h.web.fetchJson(`/financial/accounting/accountDefault/${e}`,{method:"GET"})}async accountDefaultUpdate(e){return this.#h.web.fetchJson("/financial/accounting/accountDefault",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountDelete(e){return this.#h.web.fetchJson(`/financial/accounting/account/${e}`,{method:"DELETE"})}async accountFiscalYearRead(e){return this.#h.web.fetchJson(`/financial/accounting/accountFiscalYear?${e}`,{method:"GET"})}async accountRead(e){return this.#h.web.fetchJson(`/financial/accounting/account?${e}`,{method:"GET"})}async accountReadById(e){return this.#h.web.fetchJson(`/financial/accounting/account/${e}`,{method:"GET"})}async accountUpdate(e){return this.#h.web.fetchJson("/financial/accounting/account",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async assetInventoryCurrentRead(e){return this.#h.web.fetchJson(`/financial/accounting/assetInventoryCurrent?${e}`,{method:"GET"})}async assetInventoryRead(e){return this.#h.web.fetchJson(`/financial/accounting/assetInventory?${e}`,{method:"GET"})}async assetTagRead(e){return this.#h.web.fetchJson(`/financial/accounting/assetTag?${e}`,{method:"GET"})}async assetTagReadById(e){return this.#h.web.fetchJson(`/financial/accounting/assetTag/${e}`,{method:"GET"})}async fiscalYearOpClose(e){return this.#h.web.fetchJson(`/financial/accounting/fiscalYearOpClose/${e}`,{method:"POST"})}async journalEntryCreate(e){return this.#h.web.fetchJson("/financial/accounting/journalEntry",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async journalEntryDelete(e){return this.#h.web.fetchJson(`/financial/accounting/journalEntry/${e}`,{method:"DELETE"})}async journalEntryOpCreate(e){return this.#h.web.fetchJson("/financial/accounting/journalEntryOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async journalEntryOpPublish(e){return this.#h.web.fetchJson(`/financial/accounting/journalEntryOpPublish/${e}`,{method:"POST"})}async journalEntryOpPublishRevert(e){return this.#h.web.fetchJson(`/financial/accounting/journalEntryOpPublishRevert/${e}`,{method:"POST"})}async journalEntryOpUpdate(e){return this.#h.web.fetchJson("/financial/accounting/journalEntryOpUpdate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async journalEntryRead(e){return this.#h.web.fetchJson(`/financial/accounting/journalEntry?${e}`,{method:"GET"})}async journalEntryReadById(e){return this.#h.web.fetchJson(`/financial/accounting/journalEntry/${e}`,{method:"GET"})}async journalEntryUpdate(e){return this.#h.web.fetchJson("/financial/accounting/journalEntry",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async journalItemCreate(e){return this.#h.web.fetchJson("/financial/accounting/journalItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async journalItemDelete(e){return this.#h.web.fetchJson(`/financial/accounting/journalItem/${e}`,{method:"DELETE"})}async journalItemRead(e){return this.#h.web.fetchJson(`/financial/accounting/journalItem?${e}`,{method:"GET"})}async journalItemReadById(e){return this.#h.web.fetchJson(`/financial/accounting/journalItem/${e}`,{method:"GET"})}async journalItemUpdate(e){return this.#h.web.fetchJson("/financial/accounting/journalItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async ledgerItemBalanceRead(e){return this.#h.web.fetchJson(`/financial/accounting/ledgerItemBalance?${e}`,{method:"GET"})}async ledgerItemRead(e){return this.#h.web.fetchJson(`/financial/accounting/ledgerItem?${e}`,{method:"GET"})}async ledgerItemReadById(e){return this.#h.web.fetchJson(`/financial/accounting/ledgerItem/${e}`,{method:"GET"})}async resultCenterChartCreate(e){return this.#h.web.fetchJson("/financial/accounting/resultCenterChart",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async resultCenterChartDelete(e){return this.#h.web.fetchJson(`/financial/accounting/resultCenterChart/${e}`,{method:"DELETE"})}async resultCenterChartOpLevelCreate(e,t,n){const s=new URLSearchParams;return t&&s.set("level",String(t)),n&&s.set("digits",String(n)),this.#h.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelCreate/${e}?${s.toString()}`,{method:"POST"})}async resultCenterChartOpLevelDelete(e,t){const n=new URLSearchParams;return t&&n.set("level",String(t)),this.#h.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelDelete/${e}?${n.toString()}`,{method:"POST"})}async resultCenterChartOpLevelUpdate(e,t,n){const s=new URLSearchParams;return t&&s.set("level",String(t)),n&&s.set("digits",String(n)),this.#h.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelUpdate/${e}?${s.toString()}`,{method:"POST"})}async resultCenterChartRead(e){return this.#h.web.fetchJson(`/financial/accounting/resultCenterChart?${e}`,{method:"GET"})}async resultCenterChartReadById(e){return this.#h.web.fetchJson(`/financial/accounting/resultCenterChart/${e}`,{method:"GET"})}async resultCenterChartUpdate(e){return this.#h.web.fetchJson("/financial/accounting/resultCenterChart",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async resultCenterCreate(e){return this.#h.web.fetchJson("/financial/accounting/resultCenter",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async resultCenterDelete(e){return this.#h.web.fetchJson(`/financial/accounting/resultCenter/${e}`,{method:"DELETE"})}async resultCenterRead(e){return this.#h.web.fetchJson(`/financial/accounting/resultCenter?${e}`,{method:"GET"})}async resultCenterReadById(e){return this.#h.web.fetchJson(`/financial/accounting/resultCenter/${e}`,{method:"GET"})}async resultCenterUpdate(e){return this.#h.web.fetchJson("/financial/accounting/resultCenter",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},AssetInventory:class{id;stockCluster;productPacking;assetTag;lotId;transactionId;dateTime;description;quantity;totalValue;quantityBalance;totalValueBalance},AssetInventoryCurrent:class{id;stockCluster;productPacking;assetTag;lotId;transactionId;dateTime;description;quantity;totalValue;quantityBalance;totalValueBalance},AssetTag:class{id;fiscalProfileProduct;account;accountComplement},JournalEntry:class{id;company;status;date;source;description;tags;properties;credits;debits;value},JournalItem:class{id;journalEntry;account;accountComplement;value;sign;description},LedgerItem:class{id;journalEntry;company;fiscalYear;date;account;accountComplement;accountCounterpart;value;sign;description;previousBalance;balance},LedgerItemBalance:class{company;fiscalYear;account;accountComplement;value},ResultCenter:class{id;resultCenterChart;code;level;type;description;fullDescription;tags},ResultCenterChart:class{id;code;description;mask;tags}});var Ps=Object.freeze({__proto__:null,Batch:class{id;datetime;quantity;file;tags;properties},BatchRequest:class{status;wallet;id;datetime;quantity;file;tags;properties},BatchResponse:class{status;wallet;id;datetime;quantity;file;tags;properties},BillingService:class{#h;constructor(e){this.#h=e}async batchRequestCreate(e){return this.#h.web.fetchJson("/financial/billing/batchRequest",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async batchRequestDelete(e){return this.#h.web.fetchJson(`/financial/billing/batchRequest/${e}`,{method:"DELETE"})}async batchRequestOpAddInstructions(e,t){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpAddInstructions/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async batchRequestOpApprove(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpApprove/${e}`,{method:"POST"})}async batchRequestOpApproveRevert(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpApproveRevert/${e}`,{method:"POST"})}async batchRequestOpCreateFile(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpCreateFile/${e}`,{method:"POST"})}async batchRequestOpPrepare(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpPrepare/${e}`,{method:"POST"})}async batchRequestOpPrepareRevert(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpPrepareRevert/${e}`,{method:"POST"})}async batchRequestOpSend(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpSend/${e}`,{method:"POST"})}async batchRequestOpSendRevert(e){return this.#h.web.fetchJson(`/financial/billing/batchRequestOpSendRevert/${e}`,{method:"POST"})}async batchRequestRead(e){return this.#h.web.fetchJson(`/financial/billing/batchRequest?${e}`,{method:"GET"})}async batchRequestReadById(e){return this.#h.web.fetchJson(`/financial/billing/batchRequest/${e}`,{method:"GET"})}async batchRequestUpdate(e){return this.#h.web.fetchJson("/financial/billing/batchRequest",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async batchResponseDelete(e){return this.#h.web.fetchJson(`/financial/billing/batchResponse/${e}`,{method:"DELETE"})}async batchResponseOpApprove(e){return this.#h.web.fetchJson(`/financial/billing/batchResponseOpApprove/${e}`,{method:"POST"})}async batchResponseOpApproveRevert(e){return this.#h.web.fetchJson(`/financial/billing/batchResponseOpApproveRevert/${e}`,{method:"POST"})}async batchResponseOpCreate(e){return this.#h.web.fetchJson("/financial/billing/batchResponseOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async batchResponseOpPrepare(e){return this.#h.web.fetchJson(`/financial/billing/batchResponseOpPrepare/${e}`,{method:"POST"})}async batchResponseOpPrepareRevert(e){return this.#h.web.fetchJson(`/financial/billing/batchResponseOpPrepareRevert/${e}`,{method:"POST"})}async batchResponseOpProcess(e){return this.#h.web.fetchJson(`/financial/billing/batchResponseOpProcess/${e}`,{method:"POST"})}async batchResponseRead(e){return this.#h.web.fetchJson(`/financial/billing/batchResponse?${e}`,{method:"GET"})}async batchResponseReadById(e){return this.#h.web.fetchJson(`/financial/billing/batchResponse/${e}`,{method:"GET"})}async instructionRequestDelete(e){return this.#h.web.fetchJson(`/financial/billing/instructionRequest/${e}`,{method:"DELETE"})}async instructionRequestOpAddToBatch(e,t){const n=new URLSearchParams;return t&&n.set("batchId",String(t)),this.#h.web.fetchJson(`/financial/billing/instructionRequestOpAddToBatch/${e}?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreate(e){return this.#h.web.fetchJson("/financial/billing/instructionRequestOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async instructionRequestOpCreateChangeDueDate(e,t){const n=new URLSearchParams;return e&&n.set("billingTitleId",String(e)),t&&n.set("dueDate",String(t)),this.#h.web.fetchJson(`/financial/billing/instructionRequestOpCreateChangeDueDate?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreateRegister(e,t){const n=new URLSearchParams;return e&&n.set("billingTitleId",String(e)),t&&n.set("walletId",String(t)),this.#h.web.fetchJson(`/financial/billing/instructionRequestOpCreateRegister?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreateUnregister(e){const t=new URLSearchParams;return e&&t.set("billingTitleId",String(e)),this.#h.web.fetchJson(`/financial/billing/instructionRequestOpCreateUnregister?${t.toString()}`,{method:"POST"})}async instructionRequestOpRemoveFromBatch(e){return this.#h.web.fetchJson(`/financial/billing/instructionRequestOpRemoveFromBatch/${e}`,{method:"POST"})}async instructionRequestRead(e){return this.#h.web.fetchJson(`/financial/billing/instructionRequest?${e}`,{method:"GET"})}async instructionRequestReadById(e){return this.#h.web.fetchJson(`/financial/billing/instructionRequest/${e}`,{method:"GET"})}async instructionRequestUpdate(e){return this.#h.web.fetchJson("/financial/billing/instructionRequest",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async instructionResponseCreate(e){return this.#h.web.fetchJson("/financial/billing/instructionResponse",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async instructionResponseDelete(e){return this.#h.web.fetchJson(`/financial/billing/instructionResponse/${e}`,{method:"DELETE"})}async instructionResponseOpIgnore(e){return this.#h.web.fetchJson(`/financial/billing/instructionResponseOpIgnore/${e}`,{method:"POST"})}async instructionResponseOpIgnoreRevert(e){return this.#h.web.fetchJson(`/financial/billing/instructionResponseOpIgnoreRevert/${e}`,{method:"POST"})}async instructionResponseOpProcess(e){return this.#h.web.fetchJson(`/financial/billing/instructionResponseOpProcess/${e}`,{method:"POST"})}async instructionResponseRead(e){return this.#h.web.fetchJson(`/financial/billing/instructionResponse?${e}`,{method:"GET"})}async instructionResponseReadById(e){return this.#h.web.fetchJson(`/financial/billing/instructionResponse/${e}`,{method:"GET"})}async instructionResponseUpdate(e){return this.#h.web.fetchJson("/financial/billing/instructionResponse",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async walletCreate(e){return this.#h.web.fetchJson("/financial/billing/wallet",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async walletDelete(e){return this.#h.web.fetchJson(`/financial/billing/wallet/${e}`,{method:"DELETE"})}async walletOpGetSequence(e){return this.#h.web.fetchJson(`/financial/billing/walletOpGetSequence/${e}`,{method:"POST"})}async walletRead(e){return this.#h.web.fetchJson(`/financial/billing/wallet?${e}`,{method:"GET"})}async walletReadById(e){return this.#h.web.fetchJson(`/financial/billing/wallet/${e}`,{method:"GET"})}async walletUpdate(e){return this.#h.web.fetchJson("/financial/billing/wallet",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Instruction:class{id;billingTitle;wallet;date;tags;properties},InstructionRequest:class{status;type;batch;id;billingTitle;wallet;date;tags;properties},InstructionResponse:class{status;type;batch;id;billingTitle;wallet;date;tags;properties},Wallet:class{id;company;code;description;type;batchLastSequence;bankNumberLastSequence;interestRateMonth;lateFee;tags;properties}});var vs=Object.freeze({__proto__:null,CreditLine:class{id;code;description;tags;properties},CreditLineItem:class{id;creditLine;personGroup;person;value;tags;properties},CreditService:class{#h;constructor(e){this.#h=e}async creditLineCreate(e){return this.#h.web.fetchJson("/financial/credit/creditLine",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async creditLineDelete(e){return this.#h.web.fetchJson(`/financial/credit/creditLine/${e}`,{method:"DELETE"})}async creditLineItemCreate(e){return this.#h.web.fetchJson("/financial/credit/creditLineItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async creditLineItemDelete(e){return this.#h.web.fetchJson(`/financial/credit/creditLineItem/${e}`,{method:"DELETE"})}async creditLineItemRead(e){return this.#h.web.fetchJson(`/financial/credit/creditLineItem?${e}`,{method:"GET"})}async creditLineItemReadById(e){return this.#h.web.fetchJson(`/financial/credit/creditLineItem/${e}`,{method:"GET"})}async creditLineItemUpdate(e){return this.#h.web.fetchJson("/financial/credit/creditLineItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async creditLineRead(e){return this.#h.web.fetchJson(`/financial/credit/creditLine?${e}`,{method:"GET"})}async creditLineReadById(e){return this.#h.web.fetchJson(`/financial/credit/creditLine/${e}`,{method:"GET"})}async creditLineUpdate(e){return this.#h.web.fetchJson("/financial/credit/creditLine",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Es=Object.freeze({__proto__:null,AccountStatement:class{id;status;company;account;fitid;date;description;value;tags;properties},TreasuryService:class{#h;constructor(e){this.#h=e}async accountStatementCreate(e){return this.#h.web.fetchJson("/financial/treasury/accountStatement",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accountStatementDelete(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatement/${e}`,{method:"DELETE"})}async accountStatementOpConsolidate(e,t){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpConsolidate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async accountStatementOpConsolidateRevert(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpConsolidateRevert/${e}`,{method:"POST"})}async accountStatementOpIdentify(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpIdentify/${e}`,{method:"POST"})}async accountStatementOpIdentifyRevert(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpIdentifyRevert/${e}`,{method:"POST"})}async accountStatementOpIgnore(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpIgnore/${e}`,{method:"POST"})}async accountStatementOpIgnoreRevert(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpIgnoreRevert/${e}`,{method:"POST"})}async accountStatementOpSettle(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpSettle/${e}`,{method:"POST"})}async accountStatementOpSettleRevert(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatementOpSettleRevert/${e}`,{method:"POST"})}async accountStatementRead(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatement?${e}`,{method:"GET"})}async accountStatementReadById(e){return this.#h.web.fetchJson(`/financial/treasury/accountStatement/${e}`,{method:"GET"})}async accountStatementUpdate(e){return this.#h.web.fetchJson("/financial/treasury/accountStatement",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async expenseOpCreate(e){return this.#h.web.fetchJson("/financial/treasury/expenseOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async revenueOpCreate(e){return this.#h.web.fetchJson("/financial/treasury/revenueOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Rs=Object.freeze({__proto__:null,BillingTitle:class{id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},Currency:class{id;code;symbol;tags},CurrencyExchangeRate:class{id;source;destination;date;exchangeRate},FinancialService:class{#h;constructor(e){this.#h=e}async currencyCreate(e){return this.#h.web.fetchJson("/financial/currency",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async currencyDelete(e){return this.#h.web.fetchJson(`/financial/currency/${e}`,{method:"DELETE"})}async currencyExchangeRateCreate(e){return this.#h.web.fetchJson("/financial/currencyExchangeRate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async currencyExchangeRateDelete(e){return this.#h.web.fetchJson(`/financial/currencyExchangeRate/${e}`,{method:"DELETE"})}async currencyExchangeRateOpConvert(e,t,n,s){const i=new URLSearchParams;return e&&i.set("sourceId",String(e)),t&&i.set("destinationId",String(t)),n&&i.set("date",String(n)),s&&i.set("value",String(s)),this.#h.web.fetchJson(`/financial/currencyExchangeRateOpConvert?${i.toString()}`,{method:"POST"})}async currencyExchangeRateOpGetExchangeRate(e,t,n){const s=new URLSearchParams;return e&&s.set("sourceId",String(e)),t&&s.set("destinationId",String(t)),n&&s.set("date",String(n)),this.#h.web.fetchJson(`/financial/currencyExchangeRateOpGetExchangeRate?${s.toString()}`,{method:"POST"})}async currencyExchangeRateRead(e){return this.#h.web.fetchJson(`/financial/currencyExchangeRate?${e}`,{method:"GET"})}async currencyExchangeRateReadById(e){return this.#h.web.fetchJson(`/financial/currencyExchangeRate/${e}`,{method:"GET"})}async currencyExchangeRateUpdate(e){return this.#h.web.fetchJson("/financial/currencyExchangeRate",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async currencyOpReadByCode(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#h.web.fetchJson(`/financial/currencyOpReadByCode?${t.toString()}`,{method:"POST"})}async currencyRead(e){return this.#h.web.fetchJson(`/financial/currency?${e}`,{method:"GET"})}async currencyReadById(e){return this.#h.web.fetchJson(`/financial/currency/${e}`,{method:"GET"})}async currencyUpdate(e){return this.#h.web.fetchJson("/financial/currency",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async payableCreate(e){return this.#h.web.fetchJson("/financial/payable",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async payableDelete(e){return this.#h.web.fetchJson(`/financial/payable/${e}`,{method:"DELETE"})}async payableOpApprove(e){return this.#h.web.fetchJson(`/financial/payableOpApprove/${e}`,{method:"POST"})}async payableOpApproveRevert(e){return this.#h.web.fetchJson(`/financial/payableOpApproveRevert/${e}`,{method:"POST"})}async payableOpRepeat(e,t){return this.#h.web.fetchJson(`/financial/payableOpRepeat/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async payableOpSettle(e){return this.#h.web.fetchJson("/financial/payableOpSettle",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async payableOpUpdate(e,t){return this.#h.web.fetchJson(`/financial/payableOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async payableOpUpdatePrepared(e){return this.#h.web.fetchJson("/financial/payableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async payableRead(e){return this.#h.web.fetchJson(`/financial/payable?${e}`,{method:"GET"})}async payableReadById(e){return this.#h.web.fetchJson(`/financial/payable/${e}`,{method:"GET"})}async payableSettlementBillingTitleRead(e){return this.#h.web.fetchJson(`/financial/payableSettlementBillingTitle?${e}`,{method:"GET"})}async payableSettlementBillingTitleReadById(e){return this.#h.web.fetchJson(`/financial/payableSettlementBillingTitle/${e}`,{method:"GET"})}async payableSettlementDelete(e){return this.#h.web.fetchJson(`/financial/payableSettlement/${e}`,{method:"DELETE"})}async payableSettlementMethodRead(e){return this.#h.web.fetchJson(`/financial/payableSettlementMethod?${e}`,{method:"GET"})}async payableSettlementMethodReadById(e){return this.#h.web.fetchJson(`/financial/payableSettlementMethod/${e}`,{method:"GET"})}async payableSettlementRead(e){return this.#h.web.fetchJson(`/financial/payableSettlement?${e}`,{method:"GET"})}async payableSettlementReadById(e){return this.#h.web.fetchJson(`/financial/payableSettlement/${e}`,{method:"GET"})}async payableUpdate(e){return this.#h.web.fetchJson("/financial/payable",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async receivableCreate(e){return this.#h.web.fetchJson("/financial/receivable",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async receivableDelete(e){return this.#h.web.fetchJson(`/financial/receivable/${e}`,{method:"DELETE"})}async receivableOpApprove(e){return this.#h.web.fetchJson(`/financial/receivableOpApprove/${e}`,{method:"POST"})}async receivableOpApproveRevert(e){return this.#h.web.fetchJson(`/financial/receivableOpApproveRevert/${e}`,{method:"POST"})}async receivableOpRepeat(e,t){return this.#h.web.fetchJson(`/financial/receivableOpRepeat/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async receivableOpSend(e){return this.#h.web.fetchJson("/financial/receivableOpSend",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async receivableOpSettle(e){return this.#h.web.fetchJson("/financial/receivableOpSettle",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async receivableOpUpdate(e,t){return this.#h.web.fetchJson(`/financial/receivableOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async receivableOpUpdatePrepared(e){return this.#h.web.fetchJson("/financial/receivableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async receivableRead(e){return this.#h.web.fetchJson(`/financial/receivable?${e}`,{method:"GET"})}async receivableReadById(e){return this.#h.web.fetchJson(`/financial/receivable/${e}`,{method:"GET"})}async receivableSettlementBillingTitleRead(e){return this.#h.web.fetchJson(`/financial/receivableSettlementBillingTitle?${e}`,{method:"GET"})}async receivableSettlementBillingTitleReadById(e){return this.#h.web.fetchJson(`/financial/receivableSettlementBillingTitle/${e}`,{method:"GET"})}async receivableSettlementDelete(e){return this.#h.web.fetchJson(`/financial/receivableSettlement/${e}`,{method:"DELETE"})}async receivableSettlementMethodRead(e){return this.#h.web.fetchJson(`/financial/receivableSettlementMethod?${e}`,{method:"GET"})}async receivableSettlementMethodReadById(e){return this.#h.web.fetchJson(`/financial/receivableSettlementMethod/${e}`,{method:"GET"})}async receivableSettlementRead(e){return this.#h.web.fetchJson(`/financial/receivableSettlement?${e}`,{method:"GET"})}async receivableSettlementReadById(e){return this.#h.web.fetchJson(`/financial/receivableSettlement/${e}`,{method:"GET"})}async receivableUpdate(e){return this.#h.web.fetchJson("/financial/receivable",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Payable:class{incomingInvoice;id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},PayableSettlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},PayableSettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},PayableSettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},Receivable:class{outgoingInvoice;id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},ReceivableSettlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},ReceivableSettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},ReceivableSettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},Settlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},SettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},SettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},accounting:Ts,billing:Ps,credit:vs,treasury:Es});var $s=Object.freeze({__proto__:null,Dfe:class{id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeNfeProcIn:class{status;incomingInvoice;number;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeNfeProcOut:class{status;outgoingInvoice;number;fileDanfe;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcEventoNFeIn:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcEventoNFeOut:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcInutNFe:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeResEvento:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeResNFeIn:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},FiscalBrService:class{#h;constructor(e){this.#h=e}async dfeNfeProcInCreate(e){return this.#h.web.fetchJson("/fiscal/br/dfeNfeProcIn",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dfeNfeProcInDelete(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcIn/${e}`,{method:"DELETE"})}async dfeNfeProcInOpIncomingInvoiceCreate(e,t){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async dfeNfeProcInOpIncomingInvoiceCreateRevert(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreateRevert/${e}`,{method:"POST"})}async dfeNfeProcInRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcIn?${e}`,{method:"GET"})}async dfeNfeProcInReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcIn/${e}`,{method:"GET"})}async dfeNfeProcOutDelete(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOut/${e}`,{method:"DELETE"})}async dfeNfeProcOutOpCancel(e,t){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpConfirm(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpConfirm/${e}`,{method:"POST"})}async dfeNfeProcOutOpCorrect(e,t){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCorrect/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpCreate(e){const t=new URLSearchParams;return e&&t.set("invoiceId",String(e)),this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCreate?${t.toString()}`,{method:"POST"})}async dfeNfeProcOutOpDownload(e){return this.#h.web.fetchBlob("/fiscal/br/dfeNfeProcOutOpDownload",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dfeNfeProcOutOpOutgoingInvoiceCreate(e,t){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpOutgoingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpSign(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpSign/${e}`,{method:"POST"})}async dfeNfeProcOutOpSignRevert(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpSignRevert/${e}`,{method:"POST"})}async dfeNfeProcOutOpTransmit(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpTransmit/${e}`,{method:"POST"})}async dfeNfeProcOutOpUpload(e){return this.#h.web.fetchJson("/fiscal/br/dfeNfeProcOutOpUpload",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dfeNfeProcOutRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOut?${e}`,{method:"GET"})}async dfeNfeProcOutReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeNfeProcOut/${e}`,{method:"GET"})}async dfeOpReadContent(e){return this.#h.web.fetchBlob(`/fiscal/br/dfeOpReadContent/${e}`,{method:"POST"})}async dfeProcEventoNFeInRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeProcEventoNFeIn?${e}`,{method:"GET"})}async dfeProcEventoNFeInReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeProcEventoNFeIn/${e}`,{method:"GET"})}async dfeProcEventoNFeOutRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeProcEventoNFeOut?${e}`,{method:"GET"})}async dfeProcEventoNFeOutReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeProcEventoNFeOut/${e}`,{method:"GET"})}async dfeProcInutNFeCreate(e){return this.#h.web.fetchJson("/fiscal/br/dfeProcInutNFe",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dfeProcInutNFeRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeProcInutNFe?${e}`,{method:"GET"})}async dfeProcInutNFeReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeProcInutNFe/${e}`,{method:"GET"})}async dfeRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfe?${e}`,{method:"GET"})}async dfeReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfe/${e}`,{method:"GET"})}async dfeResEventoRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeResEvento?${e}`,{method:"GET"})}async dfeResEventoReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeResEvento/${e}`,{method:"GET"})}async dfeResNFeInOpManifest(e,t){const n=new URLSearchParams;return t&&n.set("status",String(t)),this.#h.web.fetchJson(`/fiscal/br/dfeResNFeInOpManifest/${e}?${n.toString()}`,{method:"POST"})}async dfeResNFeInRead(e){return this.#h.web.fetchJson(`/fiscal/br/dfeResNFeIn?${e}`,{method:"GET"})}async dfeResNFeInReadById(e){return this.#h.web.fetchJson(`/fiscal/br/dfeResNFeIn/${e}`,{method:"GET"})}async documentSefazOpFetch(e){return this.#h.web.fetchJson("/fiscal/br/documentSefazOpFetch",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async spedOpExport(e){return this.#h.web.fetchBlob("/fiscal/br/spedOpExport",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},TaxIBPT:class{id;uf;codigo;ex;tipo;nacionalfederal;importadosfederal;estadual;municipal}});var Is=Object.freeze({__proto__:null,Tax:class{id;fiscalRegion;code;type;tags;properties},Taxation:class{id;source;tax;taxType;grossBaseValueExpression;grossBaseValue;grossBaseValueVariationRate;baseValue;taxRate;grossTaxValue;taxAdjustmentExpression;taxAdjustmentValue;taxValue;compensationRate;compensationValue;tags;properties},TaxationOperation:class{id;fiscalRegion;flow;code;description;tags;properties},TaxationRule:class{id;flow;fiscalProfileCompany;fiscalProfilePerson;fiscalProfileProduct;fiscalProfileOperation;taxationOperation;tags;properties},TaxationService:class{#h;constructor(e){this.#h=e}async taxCreate(e){return this.#h.web.fetchJson("/fiscal/taxation/tax",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxDelete(e){return this.#h.web.fetchJson(`/fiscal/taxation/tax/${e}`,{method:"DELETE"})}async taxOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#h.web.fetchJson(`/fiscal/taxation/taxOpReadByCode?${n.toString()}`,{method:"POST"})}async taxRead(e){return this.#h.web.fetchJson(`/fiscal/taxation/tax?${e}`,{method:"GET"})}async taxReadById(e){return this.#h.web.fetchJson(`/fiscal/taxation/tax/${e}`,{method:"GET"})}async taxUpdate(e){return this.#h.web.fetchJson("/fiscal/taxation/tax",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxationCreate(e){return this.#h.web.fetchJson("/fiscal/taxation/taxation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxationDelete(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxation/${e}`,{method:"DELETE"})}async taxationOperationCreate(e){return this.#h.web.fetchJson("/fiscal/taxation/taxationOperation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxationOperationDelete(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxationOperation/${e}`,{method:"DELETE"})}async taxationOperationOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#h.web.fetchJson(`/fiscal/taxation/taxationOperationOpReadByCode?${n.toString()}`,{method:"POST"})}async taxationOperationRead(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxationOperation?${e}`,{method:"GET"})}async taxationOperationReadById(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxationOperation/${e}`,{method:"GET"})}async taxationOperationUpdate(e){return this.#h.web.fetchJson("/fiscal/taxation/taxationOperation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxationRead(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxation?${e}`,{method:"GET"})}async taxationReadById(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxation/${e}`,{method:"GET"})}async taxationRuleCreate(e){return this.#h.web.fetchJson("/fiscal/taxation/taxationRule",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxationRuleDelete(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxationRule/${e}`,{method:"DELETE"})}async taxationRuleRead(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxationRule?${e}`,{method:"GET"})}async taxationRuleReadById(e){return this.#h.web.fetchJson(`/fiscal/taxation/taxationRule/${e}`,{method:"GET"})}async taxationRuleUpdate(e){return this.#h.web.fetchJson("/fiscal/taxation/taxationRule",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async taxationUpdate(e){return this.#h.web.fetchJson("/fiscal/taxation/taxation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Cs=Object.freeze({__proto__:null,FiscalProfileOperation:class{id;fiscalRegion;code;description;tags;properties},FiscalProfilePerson:class{id;fiscalRegion;description;tags;properties},FiscalProfileProduct:class{id;fiscalRegion;description;tags;properties},FiscalRegion:class{id;code;tags},FiscalService:class{#h;constructor(e){this.#h=e}async fiscalProfileOperationCreate(e){return this.#h.web.fetchJson("/fiscal/fiscalProfileOperation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalProfileOperationDelete(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfileOperation/${e}`,{method:"DELETE"})}async fiscalProfileOperationOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#h.web.fetchJson(`/fiscal/fiscalProfileOperationOpReadByCode?${n.toString()}`,{method:"POST"})}async fiscalProfileOperationRead(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfileOperation?${e}`,{method:"GET"})}async fiscalProfileOperationReadById(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfileOperation/${e}`,{method:"GET"})}async fiscalProfileOperationUpdate(e){return this.#h.web.fetchJson("/fiscal/fiscalProfileOperation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalProfilePersonCreate(e){return this.#h.web.fetchJson("/fiscal/fiscalProfilePerson",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalProfilePersonDelete(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfilePerson/${e}`,{method:"DELETE"})}async fiscalProfilePersonRead(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfilePerson?${e}`,{method:"GET"})}async fiscalProfilePersonReadById(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfilePerson/${e}`,{method:"GET"})}async fiscalProfilePersonUpdate(e){return this.#h.web.fetchJson("/fiscal/fiscalProfilePerson",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalProfileProductCreate(e){return this.#h.web.fetchJson("/fiscal/fiscalProfileProduct",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalProfileProductDelete(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfileProduct/${e}`,{method:"DELETE"})}async fiscalProfileProductRead(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfileProduct?${e}`,{method:"GET"})}async fiscalProfileProductReadById(e){return this.#h.web.fetchJson(`/fiscal/fiscalProfileProduct/${e}`,{method:"GET"})}async fiscalProfileProductUpdate(e){return this.#h.web.fetchJson("/fiscal/fiscalProfileProduct",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalRegionCreate(e){return this.#h.web.fetchJson("/fiscal/fiscalRegion",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalRegionDelete(e){return this.#h.web.fetchJson(`/fiscal/fiscalRegion/${e}`,{method:"DELETE"})}async fiscalRegionOpReadByCode(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#h.web.fetchJson(`/fiscal/fiscalRegionOpReadByCode?${t.toString()}`,{method:"POST"})}async fiscalRegionRead(e){return this.#h.web.fetchJson(`/fiscal/fiscalRegion?${e}`,{method:"GET"})}async fiscalRegionReadById(e){return this.#h.web.fetchJson(`/fiscal/fiscalRegion/${e}`,{method:"GET"})}async fiscalRegionUpdate(e){return this.#h.web.fetchJson("/fiscal/fiscalRegion",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalYearCreate(e){return this.#h.web.fetchJson("/fiscal/fiscalYear",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fiscalYearDelete(e){return this.#h.web.fetchJson(`/fiscal/fiscalYear/${e}`,{method:"DELETE"})}async fiscalYearOpPartialClosure(e,t){const n=new URLSearchParams;return t&&n.set("date",String(t)),this.#h.web.fetchJson(`/fiscal/fiscalYearOpPartialClosure/${e}?${n.toString()}`,{method:"POST"})}async fiscalYearOpPartialClosureRevert(e,t){const n=new URLSearchParams;return t&&n.set("date",String(t)),this.#h.web.fetchJson(`/fiscal/fiscalYearOpPartialClosureRevert/${e}?${n.toString()}`,{method:"POST"})}async fiscalYearOpPublish(e){return this.#h.web.fetchJson(`/fiscal/fiscalYearOpPublish/${e}`,{method:"POST"})}async fiscalYearOpPublishRevert(e){return this.#h.web.fetchJson(`/fiscal/fiscalYearOpPublishRevert/${e}`,{method:"POST"})}async fiscalYearOpRead(e,t){const n=new URLSearchParams;return e&&n.set("companyId",String(e)),t&&n.set("date",String(t)),this.#h.web.fetchJson(`/fiscal/fiscalYearOpRead?${n.toString()}`,{method:"POST"})}async fiscalYearRead(e){return this.#h.web.fetchJson(`/fiscal/fiscalYear?${e}`,{method:"GET"})}async fiscalYearReadById(e){return this.#h.web.fetchJson(`/fiscal/fiscalYear/${e}`,{method:"GET"})}async fiscalYearUpdate(e){return this.#h.web.fetchJson("/fiscal/fiscalYear",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceCreate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoice",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceDelete(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoice/${e}`,{method:"DELETE"})}async incomingInvoiceItemCreate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoiceItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceItemDelete(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceItem/${e}`,{method:"DELETE"})}async incomingInvoiceItemRead(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceItem?${e}`,{method:"GET"})}async incomingInvoiceItemReadById(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceItem/${e}`,{method:"GET"})}async incomingInvoiceItemUpdate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpApprove(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpApprove/${e}`,{method:"POST"})}async incomingInvoiceOpApproveDivergences(e,t){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpApproveDivergences/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async incomingInvoiceOpApproveRevert(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpApproveRevert/${e}`,{method:"POST"})}async incomingInvoiceOpCreate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpCreateFromIncomingList(e){return this.#h.web.fetchJson("/fiscal/incomingInvoiceOpCreateFromIncomingList",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpPrepare(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpPrepare/${e}`,{method:"POST"})}async incomingInvoiceOpPrepareRevert(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpPrepareRevert/${e}`,{method:"POST"})}async incomingInvoiceOpReject(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpReject/${e}`,{method:"POST"})}async incomingInvoiceOpRejectRevert(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpRejectRevert/${e}`,{method:"POST"})}async incomingInvoiceOpReturn(e,t){return this.#h.web.fetchJson(`/fiscal/incomingInvoiceOpReturn/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async incomingInvoiceOpUpdatePrepared(e){return this.#h.web.fetchJson("/fiscal/incomingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoicePaymentCreate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoicePayment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoicePaymentDelete(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoicePayment/${e}`,{method:"DELETE"})}async incomingInvoicePaymentRead(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoicePayment?${e}`,{method:"GET"})}async incomingInvoicePaymentReadById(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoicePayment/${e}`,{method:"GET"})}async incomingInvoicePaymentUpdate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingInvoiceRead(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoice?${e}`,{method:"GET"})}async incomingInvoiceReadById(e){return this.#h.web.fetchJson(`/fiscal/incomingInvoice/${e}`,{method:"GET"})}async incomingInvoiceUpdate(e){return this.#h.web.fetchJson("/fiscal/incomingInvoice",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async invoiceItemAccountingCreate(e){return this.#h.web.fetchJson("/fiscal/invoiceItemAccounting",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async invoiceItemAccountingDelete(e){return this.#h.web.fetchJson(`/fiscal/invoiceItemAccounting/${e}`,{method:"DELETE"})}async invoiceItemAccountingRead(e){return this.#h.web.fetchJson(`/fiscal/invoiceItemAccounting?${e}`,{method:"GET"})}async invoiceItemAccountingReadById(e){return this.#h.web.fetchJson(`/fiscal/invoiceItemAccounting/${e}`,{method:"GET"})}async invoiceItemAccountingUpdate(e){return this.#h.web.fetchJson("/fiscal/invoiceItemAccounting",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async invoiceReferenceCreate(e){return this.#h.web.fetchJson("/fiscal/invoiceReference",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async invoiceReferenceDelete(e){return this.#h.web.fetchJson(`/fiscal/invoiceReference/${e}`,{method:"DELETE"})}async invoiceReferenceRead(e){return this.#h.web.fetchJson(`/fiscal/invoiceReference?${e}`,{method:"GET"})}async invoiceReferenceReadById(e){return this.#h.web.fetchJson(`/fiscal/invoiceReference/${e}`,{method:"GET"})}async invoiceReferenceUpdate(e){return this.#h.web.fetchJson("/fiscal/invoiceReference",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async invoiceSeriesCreate(e){return this.#h.web.fetchJson("/fiscal/invoiceSeries",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async invoiceSeriesDelete(e){return this.#h.web.fetchJson(`/fiscal/invoiceSeries/${e}`,{method:"DELETE"})}async invoiceSeriesOpGetNextNumber(e){return this.#h.web.fetchJson(`/fiscal/invoiceSeriesOpGetNextNumber/${e}`,{method:"POST"})}async invoiceSeriesOpUpdateLastNumber(e,t){const n=new URLSearchParams;return t&&n.set("lastNumber",String(t)),this.#h.web.fetchJson(`/fiscal/invoiceSeriesOpUpdateLastNumber/${e}?${n.toString()}`,{method:"POST"})}async invoiceSeriesRead(e){return this.#h.web.fetchJson(`/fiscal/invoiceSeries?${e}`,{method:"GET"})}async invoiceSeriesReadById(e){return this.#h.web.fetchJson(`/fiscal/invoiceSeries/${e}`,{method:"GET"})}async invoiceSeriesUpdate(e){return this.#h.web.fetchJson("/fiscal/invoiceSeries",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceCreate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoice",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceDelete(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoice/${e}`,{method:"DELETE"})}async outgoingInvoiceItemCreate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceItemDelete(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceItem/${e}`,{method:"DELETE"})}async outgoingInvoiceItemRead(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceItem?${e}`,{method:"GET"})}async outgoingInvoiceItemReadById(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceItem/${e}`,{method:"GET"})}async outgoingInvoiceItemUpdate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceOpApprove(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpApprove/${e}`,{method:"POST"})}async outgoingInvoiceOpApproveRevert(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpApproveRevert/${e}`,{method:"POST"})}async outgoingInvoiceOpCancel(e,t){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpCreate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceOpDiscount(e,t){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpDiscount/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpPrepare(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpPrepare/${e}`,{method:"POST"})}async outgoingInvoiceOpPrepareRevert(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpPrepareRevert/${e}`,{method:"POST"})}async outgoingInvoiceOpReturn(e,t){return this.#h.web.fetchJson(`/fiscal/outgoingInvoiceOpReturn/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpUpdatePrepared(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoicePaymentCreate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoicePaymentDelete(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoicePayment/${e}`,{method:"DELETE"})}async outgoingInvoicePaymentRead(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoicePayment?${e}`,{method:"GET"})}async outgoingInvoicePaymentReadById(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoicePayment/${e}`,{method:"GET"})}async outgoingInvoicePaymentUpdate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceRead(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoice?${e}`,{method:"GET"})}async outgoingInvoiceReadById(e){return this.#h.web.fetchJson(`/fiscal/outgoingInvoice/${e}`,{method:"GET"})}async outgoingInvoiceUpdate(e){return this.#h.web.fetchJson("/fiscal/outgoingInvoice",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},FiscalYear:class{id;company;description;dateStart;dateEnd;notBefore;accountChart;resultCenterChart;status},IncomingInvoice:class{status;incomingList;id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},IncomingInvoiceItem:class{incomingInvoice;incomingRequest;OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},IncomingInvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},Invoice:class{id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},InvoiceItem:class{OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},InvoiceItemAccounting:class{id;invoiceItem;type;sign;account;accountComplement;value;tags;properties},InvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},InvoiceReference:class{id;invoice;invoiceReference},InvoiceSeries:class{id;company;code;description;tags;properties;lastNumber},OutgoingInvoice:class{status;outgoingList;shipment;id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},OutgoingInvoiceItem:class{outgoingInvoice;OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},OutgoingInvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},br:$s,taxation:Is});var Ns=Object.freeze({__proto__:null,IncomingShipping:class{id;company;date;tags;status;comments},LogisticService:class{#h;constructor(e){this.#h=e}async shippingCreate(e){return this.#h.web.fetchJson("/logistic/shipping",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async shippingDelete(e){return this.#h.web.fetchJson(`/logistic/shipping/${e}`,{method:"DELETE"})}async shippingItemCreate(e){return this.#h.web.fetchJson("/logistic/shippingItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async shippingItemDelete(e){return this.#h.web.fetchJson(`/logistic/shippingItem/${e}`,{method:"DELETE"})}async shippingItemRead(e){return this.#h.web.fetchJson(`/logistic/shippingItem?${e}`,{method:"GET"})}async shippingItemReadById(e){return this.#h.web.fetchJson(`/logistic/shippingItem/${e}`,{method:"GET"})}async shippingItemUpdate(e){return this.#h.web.fetchJson("/logistic/shippingItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async shippingOpApprove(e){return this.#h.web.fetchJson(`/logistic/shippingOpApprove/${e}`,{method:"POST"})}async shippingRead(e){return this.#h.web.fetchJson(`/logistic/shipping?${e}`,{method:"GET"})}async shippingReadById(e){return this.#h.web.fetchJson(`/logistic/shipping/${e}`,{method:"GET"})}async shippingUpdate(e){return this.#h.web.fetchJson("/logistic/shipping",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},ShippingItem:class{id;shipping;purchaseItem;quantity}});var ks=Object.freeze({__proto__:null,Address:class{id;warehouse;addressProfile;code;status;tags;properties},AddressProfile:class{id;code;tags;properties},HandlingUnit:class{id;code;tags;properties},IncomingList:class{id;company;status;person;date;tags;properties},IncomingListItem:class{id;incomingList;stockCluster;address;depositor;productPacking;quality;lot;serial;expirationDate;handlingUnit;quantity;netWeightKg;grossWeightKg;volumeM3;productPackingInvoice;tags;properties},IncomingRequest:class{id;company;warehouse;status;person;date;code;description;netWeightKg;grossWeightKg;volumeM3;tags;properties},IncomingRequestItem:class{id;status;incomingRequest;productPacking;quantity;netWeightKg;grossWeightKg;volumeM3;servedQuantity;reservedQuantity},Inventory:class{id;company;status;date;description;pointInTime;journalEntry;tags;properties},InventoryAdjustment:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},InventoryCheck:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},InventoryStock:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},Lot:class{id;code;date;tags;properties},MaterialService:class{#h;constructor(e){this.#h=e}async addressCreate(e){return this.#h.web.fetchJson("/material/address",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async addressDelete(e){return this.#h.web.fetchJson(`/material/address/${e}`,{method:"DELETE"})}async addressProfileCreate(e){return this.#h.web.fetchJson("/material/addressProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async addressProfileDelete(e){return this.#h.web.fetchJson(`/material/addressProfile/${e}`,{method:"DELETE"})}async addressProfileRead(e){return this.#h.web.fetchJson(`/material/addressProfile?${e}`,{method:"GET"})}async addressProfileReadById(e){return this.#h.web.fetchJson(`/material/addressProfile/${e}`,{method:"GET"})}async addressProfileUpdate(e){return this.#h.web.fetchJson("/material/addressProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async addressRead(e){return this.#h.web.fetchJson(`/material/address?${e}`,{method:"GET"})}async addressReadById(e){return this.#h.web.fetchJson(`/material/address/${e}`,{method:"GET"})}async addressUpdate(e){return this.#h.web.fetchJson("/material/address",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async handlingUnitCreate(e){return this.#h.web.fetchJson("/material/handlingUnit",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async handlingUnitDelete(e){return this.#h.web.fetchJson(`/material/handlingUnit/${e}`,{method:"DELETE"})}async handlingUnitRead(e){return this.#h.web.fetchJson(`/material/handlingUnit?${e}`,{method:"GET"})}async handlingUnitReadById(e){return this.#h.web.fetchJson(`/material/handlingUnit/${e}`,{method:"GET"})}async handlingUnitUpdate(e){return this.#h.web.fetchJson("/material/handlingUnit",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingListCreate(e){return this.#h.web.fetchJson("/material/incomingList",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingListDelete(e){return this.#h.web.fetchJson(`/material/incomingList/${e}`,{method:"DELETE"})}async incomingListItemCreate(e){return this.#h.web.fetchJson("/material/incomingListItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingListItemDelete(e){return this.#h.web.fetchJson(`/material/incomingListItem/${e}`,{method:"DELETE"})}async incomingListItemRead(e){return this.#h.web.fetchJson(`/material/incomingListItem?${e}`,{method:"GET"})}async incomingListItemReadById(e){return this.#h.web.fetchJson(`/material/incomingListItem/${e}`,{method:"GET"})}async incomingListItemUpdate(e){return this.#h.web.fetchJson("/material/incomingListItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingListOpImportFromOutgoingList(e,t){return this.#h.web.fetchJson(`/material/incomingListOpImportFromOutgoingList/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async incomingListOpPrepare(e){return this.#h.web.fetchJson(`/material/incomingListOpPrepare/${e}`,{method:"POST"})}async incomingListOpPrepareRevert(e){return this.#h.web.fetchJson(`/material/incomingListOpPrepareRevert/${e}`,{method:"POST"})}async incomingListRead(e){return this.#h.web.fetchJson(`/material/incomingList?${e}`,{method:"GET"})}async incomingListReadById(e){return this.#h.web.fetchJson(`/material/incomingList/${e}`,{method:"GET"})}async incomingListUpdate(e){return this.#h.web.fetchJson("/material/incomingList",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async incomingRequestItemRead(e){return this.#h.web.fetchJson(`/material/incomingRequestItem?${e}`,{method:"GET"})}async incomingRequestItemReadById(e){return this.#h.web.fetchJson(`/material/incomingRequestItem/${e}`,{method:"GET"})}async incomingRequestRead(e){return this.#h.web.fetchJson(`/material/incomingRequest?${e}`,{method:"GET"})}async incomingRequestReadById(e){return this.#h.web.fetchJson(`/material/incomingRequest/${e}`,{method:"GET"})}async inventoryAdjustmentCreate(e){return this.#h.web.fetchJson("/material/inventoryAdjustment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryAdjustmentDelete(e){return this.#h.web.fetchJson(`/material/inventoryAdjustment/${e}`,{method:"DELETE"})}async inventoryAdjustmentOpCreate(e,t,n){const s=new URLSearchParams;return t&&s.set("stockId",String(t)),n&&s.set("quantity",String(n)),this.#h.web.fetchJson(`/material/inventoryAdjustmentOpCreate/${e}?${s.toString()}`,{method:"POST"})}async inventoryAdjustmentRead(e){return this.#h.web.fetchJson(`/material/inventoryAdjustment?${e}`,{method:"GET"})}async inventoryAdjustmentReadById(e){return this.#h.web.fetchJson(`/material/inventoryAdjustment/${e}`,{method:"GET"})}async inventoryAdjustmentUpdate(e){return this.#h.web.fetchJson("/material/inventoryAdjustment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryCheckCreate(e){return this.#h.web.fetchJson("/material/inventoryCheck",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryCheckDelete(e){return this.#h.web.fetchJson(`/material/inventoryCheck/${e}`,{method:"DELETE"})}async inventoryCheckRead(e){return this.#h.web.fetchJson(`/material/inventoryCheck?${e}`,{method:"GET"})}async inventoryCheckReadById(e){return this.#h.web.fetchJson(`/material/inventoryCheck/${e}`,{method:"GET"})}async inventoryCheckUpdate(e){return this.#h.web.fetchJson("/material/inventoryCheck",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryCreate(e){return this.#h.web.fetchJson("/material/inventory",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryDelete(e){return this.#h.web.fetchJson(`/material/inventory/${e}`,{method:"DELETE"})}async inventoryOpApprove(e){return this.#h.web.fetchJson(`/material/inventoryOpApprove/${e}`,{method:"POST"})}async inventoryOpApproveRevert(e){return this.#h.web.fetchJson(`/material/inventoryOpApproveRevert/${e}`,{method:"POST"})}async inventoryOpFinish(e){return this.#h.web.fetchJson(`/material/inventoryOpFinish/${e}`,{method:"POST"})}async inventoryOpFinishRevert(e){return this.#h.web.fetchJson(`/material/inventoryOpFinishRevert/${e}`,{method:"POST"})}async inventoryOpPrepare(e){return this.#h.web.fetchJson(`/material/inventoryOpPrepare/${e}`,{method:"POST"})}async inventoryOpPrepareRevert(e){return this.#h.web.fetchJson(`/material/inventoryOpPrepareRevert/${e}`,{method:"POST"})}async inventoryOpProcess(e){return this.#h.web.fetchJson(`/material/inventoryOpProcess/${e}`,{method:"POST"})}async inventoryOpProcessRevert(e){return this.#h.web.fetchJson(`/material/inventoryOpProcessRevert/${e}`,{method:"POST"})}async inventoryOpStart(e){return this.#h.web.fetchJson(`/material/inventoryOpStart/${e}`,{method:"POST"})}async inventoryOpStartRevert(e){return this.#h.web.fetchJson(`/material/inventoryOpStartRevert/${e}`,{method:"POST"})}async inventoryRead(e){return this.#h.web.fetchJson(`/material/inventory?${e}`,{method:"GET"})}async inventoryReadById(e){return this.#h.web.fetchJson(`/material/inventory/${e}`,{method:"GET"})}async inventoryStockCreate(e){return this.#h.web.fetchJson("/material/inventoryStock",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryStockDelete(e){return this.#h.web.fetchJson(`/material/inventoryStock/${e}`,{method:"DELETE"})}async inventoryStockOpCreate(e,t){const n=new URLSearchParams;return t&&n.set("stockId",String(t)),this.#h.web.fetchJson(`/material/inventoryStockOpCreate/${e}?${n.toString()}`,{method:"POST"})}async inventoryStockRead(e){return this.#h.web.fetchJson(`/material/inventoryStock?${e}`,{method:"GET"})}async inventoryStockReadById(e){return this.#h.web.fetchJson(`/material/inventoryStock/${e}`,{method:"GET"})}async inventoryStockUpdate(e){return this.#h.web.fetchJson("/material/inventoryStock",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async inventoryUpdate(e){return this.#h.web.fetchJson("/material/inventory",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async lotCreate(e){return this.#h.web.fetchJson("/material/lot",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async lotDelete(e){return this.#h.web.fetchJson(`/material/lot/${e}`,{method:"DELETE"})}async lotRead(e){return this.#h.web.fetchJson(`/material/lot?${e}`,{method:"GET"})}async lotReadById(e){return this.#h.web.fetchJson(`/material/lot/${e}`,{method:"GET"})}async lotUpdate(e){return this.#h.web.fetchJson("/material/lot",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async movingOrderCreate(e){return this.#h.web.fetchJson("/material/movingOrder",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async movingOrderDelete(e){return this.#h.web.fetchJson(`/material/movingOrder/${e}`,{method:"DELETE"})}async movingOrderItemDelete(e){return this.#h.web.fetchJson(`/material/movingOrderItem/${e}`,{method:"DELETE"})}async movingOrderItemOpFinish(e){return this.#h.web.fetchJson(`/material/movingOrderItemOpFinish/${e}`,{method:"POST"})}async movingOrderItemOpLoad(e,t){return this.#h.web.fetchJson(`/material/movingOrderItemOpLoad/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async movingOrderItemOpStart(e){return this.#h.web.fetchJson(`/material/movingOrderItemOpStart/${e}`,{method:"POST"})}async movingOrderItemOpStartRevert(e){return this.#h.web.fetchJson(`/material/movingOrderItemOpStartRevert/${e}`,{method:"POST"})}async movingOrderItemRead(e){return this.#h.web.fetchJson(`/material/movingOrderItem?${e}`,{method:"GET"})}async movingOrderItemReadById(e){return this.#h.web.fetchJson(`/material/movingOrderItem/${e}`,{method:"GET"})}async movingOrderItemUpdate(e){return this.#h.web.fetchJson("/material/movingOrderItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async movingOrderOpAllocateStock(e,t){return this.#h.web.fetchJson(`/material/movingOrderOpAllocateStock/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async movingOrderOpApprove(e){return this.#h.web.fetchJson(`/material/movingOrderOpApprove/${e}`,{method:"POST"})}async movingOrderOpApproveRevert(e){return this.#h.web.fetchJson(`/material/movingOrderOpApproveRevert/${e}`,{method:"POST"})}async movingOrderOpFinish(e){return this.#h.web.fetchJson(`/material/movingOrderOpFinish/${e}`,{method:"POST"})}async movingOrderOpPrepare(e){return this.#h.web.fetchJson(`/material/movingOrderOpPrepare/${e}`,{method:"POST"})}async movingOrderOpPrepareRevert(e){return this.#h.web.fetchJson(`/material/movingOrderOpPrepareRevert/${e}`,{method:"POST"})}async movingOrderOpStart(e){return this.#h.web.fetchJson(`/material/movingOrderOpStart/${e}`,{method:"POST"})}async movingOrderOpStartRevert(e){return this.#h.web.fetchJson(`/material/movingOrderOpStartRevert/${e}`,{method:"POST"})}async movingOrderOpUnload(e,t){const n=new URLSearchParams;return t&&n.set("userId",String(t)),this.#h.web.fetchJson(`/material/movingOrderOpUnload/${e}?${n.toString()}`,{method:"POST"})}async movingOrderRead(e){return this.#h.web.fetchJson(`/material/movingOrder?${e}`,{method:"GET"})}async movingOrderReadById(e){return this.#h.web.fetchJson(`/material/movingOrder/${e}`,{method:"GET"})}async movingOrderUpdate(e){return this.#h.web.fetchJson("/material/movingOrder",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingListDelete(e){return this.#h.web.fetchJson(`/material/outgoingList/${e}`,{method:"DELETE"})}async outgoingListOpCreateFromReservation(e,t){return this.#h.web.fetchJson(`/material/outgoingListOpCreateFromReservation/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async outgoingListOpMerge(e){return this.#h.web.fetchJson("/material/outgoingListOpMerge",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async outgoingListOpOutgoingInvoiceCreate(e,t){return this.#h.web.fetchJson(`/material/outgoingListOpOutgoingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async outgoingListOpOutgoingInvoiceCreateRevert(e){return this.#h.web.fetchJson(`/material/outgoingListOpOutgoingInvoiceCreateRevert/${e}`,{method:"POST"})}async outgoingListOpPacked(e){return this.#h.web.fetchJson(`/material/outgoingListOpPacked/${e}`,{method:"POST"})}async outgoingListOpPackedRevert(e){return this.#h.web.fetchJson(`/material/outgoingListOpPackedRevert/${e}`,{method:"POST"})}async outgoingListOpVolumeCreateAuto(e,t){return this.#h.web.fetchJson(`/material/outgoingListOpVolumeCreateAuto/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async outgoingListRead(e){return this.#h.web.fetchJson(`/material/outgoingList?${e}`,{method:"GET"})}async outgoingListReadById(e){return this.#h.web.fetchJson(`/material/outgoingList/${e}`,{method:"GET"})}async pickingOrderCreate(e){return this.#h.web.fetchJson("/material/pickingOrder",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingOrderDelete(e){return this.#h.web.fetchJson(`/material/pickingOrder/${e}`,{method:"DELETE"})}async pickingOrderItemCreate(e){return this.#h.web.fetchJson("/material/pickingOrderItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingOrderItemDelete(e){return this.#h.web.fetchJson(`/material/pickingOrderItem/${e}`,{method:"DELETE"})}async pickingOrderItemRead(e){return this.#h.web.fetchJson(`/material/pickingOrderItem?${e}`,{method:"GET"})}async pickingOrderItemReadById(e){return this.#h.web.fetchJson(`/material/pickingOrderItem/${e}`,{method:"GET"})}async pickingOrderItemUpdate(e){return this.#h.web.fetchJson("/material/pickingOrderItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingOrderOpApprove(e){return this.#h.web.fetchJson(`/material/pickingOrderOpApprove/${e}`,{method:"POST"})}async pickingOrderOpApproveRevert(e){return this.#h.web.fetchJson(`/material/pickingOrderOpApproveRevert/${e}`,{method:"POST"})}async pickingOrderOpCreate(e){return this.#h.web.fetchJson("/material/pickingOrderOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingOrderOpDistribute(e,t,n,s){const i=new URLSearchParams;return t&&i.set("outgoingListId",String(t)),n&&i.set("stockId",String(n)),s&&i.set("quantity",String(s)),this.#h.web.fetchJson(`/material/pickingOrderOpDistribute/${e}?${i.toString()}`,{method:"POST"})}async pickingOrderOpDistributeAuto(e){return this.#h.web.fetchJson(`/material/pickingOrderOpDistributeAuto/${e}`,{method:"POST"})}async pickingOrderOpDistributeRevert(e){return this.#h.web.fetchJson(`/material/pickingOrderOpDistributeRevert/${e}`,{method:"POST"})}async pickingOrderOpFinish(e){return this.#h.web.fetchJson(`/material/pickingOrderOpFinish/${e}`,{method:"POST"})}async pickingOrderOpGroup(e){return this.#h.web.fetchJson("/material/pickingOrderOpGroup",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingOrderOpGroupRevert(e){return this.#h.web.fetchJson(`/material/pickingOrderOpGroupRevert/${e}`,{method:"POST"})}async pickingOrderOpPrepare(e){return this.#h.web.fetchJson(`/material/pickingOrderOpPrepare/${e}`,{method:"POST"})}async pickingOrderOpPrepareRevert(e){return this.#h.web.fetchJson(`/material/pickingOrderOpPrepareRevert/${e}`,{method:"POST"})}async pickingOrderOpReservationFinish(e){return this.#h.web.fetchJson(`/material/pickingOrderOpReservationFinish/${e}`,{method:"POST"})}async pickingOrderOpReservationFinishRevert(e){return this.#h.web.fetchJson(`/material/pickingOrderOpReservationFinishRevert/${e}`,{method:"POST"})}async pickingOrderOpUngroup(e){return this.#h.web.fetchJson(`/material/pickingOrderOpUngroup/${e}`,{method:"POST"})}async pickingOrderOpUngroupDivergent(e){return this.#h.web.fetchJson(`/material/pickingOrderOpUngroupDivergent/${e}`,{method:"POST"})}async pickingOrderOpUngroupRevert(e){return this.#h.web.fetchJson(`/material/pickingOrderOpUngroupRevert/${e}`,{method:"POST"})}async pickingOrderRead(e){return this.#h.web.fetchJson(`/material/pickingOrder?${e}`,{method:"GET"})}async pickingOrderReadById(e){return this.#h.web.fetchJson(`/material/pickingOrder/${e}`,{method:"GET"})}async pickingOrderUpdate(e){return this.#h.web.fetchJson("/material/pickingOrder",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingProfileCreate(e){return this.#h.web.fetchJson("/material/pickingProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async pickingProfileDelete(e){return this.#h.web.fetchJson(`/material/pickingProfile/${e}`,{method:"DELETE"})}async pickingProfileRead(e){return this.#h.web.fetchJson(`/material/pickingProfile?${e}`,{method:"GET"})}async pickingProfileReadById(e){return this.#h.web.fetchJson(`/material/pickingProfile/${e}`,{method:"GET"})}async pickingProfileUpdate(e){return this.#h.web.fetchJson("/material/pickingProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async qualityCreate(e){return this.#h.web.fetchJson("/material/quality",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async qualityDelete(e){return this.#h.web.fetchJson(`/material/quality/${e}`,{method:"DELETE"})}async qualityRead(e){return this.#h.web.fetchJson(`/material/quality?${e}`,{method:"GET"})}async qualityReadById(e){return this.#h.web.fetchJson(`/material/quality/${e}`,{method:"GET"})}async qualityUpdate(e){return this.#h.web.fetchJson("/material/quality",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reservationCreate(e){return this.#h.web.fetchJson("/material/reservation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reservationDelete(e){return this.#h.web.fetchJson(`/material/reservation/${e}`,{method:"DELETE"})}async reservationItemRead(e){return this.#h.web.fetchJson(`/material/reservationItem?${e}`,{method:"GET"})}async reservationItemReadById(e){return this.#h.web.fetchJson(`/material/reservationItem/${e}`,{method:"GET"})}async reservationOpAllocate(e,t){return this.#h.web.fetchJson(`/material/reservationOpAllocate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async reservationOpAllocateAuto(e){return this.#h.web.fetchJson(`/material/reservationOpAllocateAuto/${e}`,{method:"POST"})}async reservationOpAllocateAutoRevert(e){return this.#h.web.fetchJson(`/material/reservationOpAllocateAutoRevert/${e}`,{method:"POST"})}async reservationOpAllocateRevert(e,t){return this.#h.web.fetchJson(`/material/reservationOpAllocateRevert/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async reservationOpAllocateStock(e,t,n){const s=new URLSearchParams;return t&&s.set("stockId",String(t)),n&&s.set("quantity",String(n)),this.#h.web.fetchJson(`/material/reservationOpAllocateStock/${e}?${s.toString()}`,{method:"POST"})}async reservationOpAllocateStockRevert(e,t,n){const s=new URLSearchParams;return t&&s.set("stockId",String(t)),n&&s.set("quantity",String(n)),this.#h.web.fetchJson(`/material/reservationOpAllocateStockRevert/${e}?${s.toString()}`,{method:"POST"})}async reservationOpApprove(e){return this.#h.web.fetchJson(`/material/reservationOpApprove/${e}`,{method:"POST"})}async reservationOpApproveRevert(e){return this.#h.web.fetchJson(`/material/reservationOpApproveRevert/${e}`,{method:"POST"})}async reservationOpFinish(e){return this.#h.web.fetchJson(`/material/reservationOpFinish/${e}`,{method:"POST"})}async reservationOpFinishDivergent(e){return this.#h.web.fetchJson(`/material/reservationOpFinishDivergent/${e}`,{method:"POST"})}async reservationOpFinishRevert(e){return this.#h.web.fetchJson(`/material/reservationOpFinishRevert/${e}`,{method:"POST"})}async reservationOpPrepare(e){return this.#h.web.fetchJson(`/material/reservationOpPrepare/${e}`,{method:"POST"})}async reservationOpPrepareRevert(e){return this.#h.web.fetchJson(`/material/reservationOpPrepareRevert/${e}`,{method:"POST"})}async reservationOpStart(e){return this.#h.web.fetchJson(`/material/reservationOpStart/${e}`,{method:"POST"})}async reservationOpStartRevert(e){return this.#h.web.fetchJson(`/material/reservationOpStartRevert/${e}`,{method:"POST"})}async reservationRead(e){return this.#h.web.fetchJson(`/material/reservation?${e}`,{method:"GET"})}async reservationReadById(e){return this.#h.web.fetchJson(`/material/reservation/${e}`,{method:"GET"})}async reservationTargetCreate(e){return this.#h.web.fetchJson("/material/reservationTarget",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reservationTargetDelete(e){return this.#h.web.fetchJson(`/material/reservationTarget/${e}`,{method:"DELETE"})}async reservationTargetRead(e){return this.#h.web.fetchJson(`/material/reservationTarget?${e}`,{method:"GET"})}async reservationTargetReadById(e){return this.#h.web.fetchJson(`/material/reservationTarget/${e}`,{method:"GET"})}async reservationTargetUpdate(e){return this.#h.web.fetchJson("/material/reservationTarget",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reservationUpdate(e){return this.#h.web.fetchJson("/material/reservation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async serialCreate(e){return this.#h.web.fetchJson("/material/serial",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async serialDelete(e){return this.#h.web.fetchJson(`/material/serial/${e}`,{method:"DELETE"})}async serialRead(e){return this.#h.web.fetchJson(`/material/serial?${e}`,{method:"GET"})}async serialReadById(e){return this.#h.web.fetchJson(`/material/serial/${e}`,{method:"GET"})}async serialUpdate(e){return this.#h.web.fetchJson("/material/serial",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockAvailabilityRead(e){return this.#h.web.fetchJson(`/material/stockAvailability?${e}`,{method:"GET"})}async stockClusterCreate(e){return this.#h.web.fetchJson("/material/stockCluster",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockClusterDelete(e){return this.#h.web.fetchJson(`/material/stockCluster/${e}`,{method:"DELETE"})}async stockClusterRead(e){return this.#h.web.fetchJson(`/material/stockCluster?${e}`,{method:"GET"})}async stockClusterReadById(e){return this.#h.web.fetchJson(`/material/stockCluster/${e}`,{method:"GET"})}async stockClusterUpdate(e){return this.#h.web.fetchJson("/material/stockCluster",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockManagementCreate(e){return this.#h.web.fetchJson("/material/stockManagement",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockManagementDelete(e){return this.#h.web.fetchJson(`/material/stockManagement/${e}`,{method:"DELETE"})}async stockManagementItemCreate(e){return this.#h.web.fetchJson("/material/stockManagementItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockManagementItemDelete(e){return this.#h.web.fetchJson(`/material/stockManagementItem/${e}`,{method:"DELETE"})}async stockManagementItemRead(e){return this.#h.web.fetchJson(`/material/stockManagementItem?${e}`,{method:"GET"})}async stockManagementItemReadById(e){return this.#h.web.fetchJson(`/material/stockManagementItem/${e}`,{method:"GET"})}async stockManagementItemUpdate(e){return this.#h.web.fetchJson("/material/stockManagementItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockManagementOpImport(e){return this.#h.web.fetchJson("/material/stockManagementOpImport",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockManagementOpUpdateAverageDailyConsumption(e){return this.#h.web.fetchJson("/material/stockManagementOpUpdateAverageDailyConsumption",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockManagementRead(e){return this.#h.web.fetchJson(`/material/stockManagement?${e}`,{method:"GET"})}async stockManagementReadById(e){return this.#h.web.fetchJson(`/material/stockManagement/${e}`,{method:"GET"})}async stockManagementUpdate(e){return this.#h.web.fetchJson("/material/stockManagement",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async stockOpUpdate(e,t){return this.#h.web.fetchJson(`/material/stockOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async stockPointRead(e,t){const n=new URLSearchParams;return e&&n.set("dateTime",String(e)),this.#h.web.fetchJson(`/material/stockPoint?${t}?${n.toString()}`,{method:"GET"})}async stockRead(e){return this.#h.web.fetchJson(`/material/stock?${e}`,{method:"GET"})}async stockReadById(e){return this.#h.web.fetchJson(`/material/stock/${e}`,{method:"GET"})}async stockTransactionOpRevert(e){return this.#h.web.fetchJson(`/material/stockTransactionOpRevert/${e}`,{method:"POST"})}async stockTransactionRead(e){return this.#h.web.fetchJson(`/material/stockTransaction?${e}`,{method:"GET"})}async stockTransactionReadById(e){return this.#h.web.fetchJson(`/material/stockTransaction/${e}`,{method:"GET"})}async volumeCreate(e){return this.#h.web.fetchJson("/material/volume",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async volumeDelete(e){return this.#h.web.fetchJson(`/material/volume/${e}`,{method:"DELETE"})}async volumeItemCreate(e){return this.#h.web.fetchJson("/material/volumeItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async volumeItemDelete(e){return this.#h.web.fetchJson(`/material/volumeItem/${e}`,{method:"DELETE"})}async volumeItemRead(e){return this.#h.web.fetchJson(`/material/volumeItem?${e}`,{method:"GET"})}async volumeItemReadById(e){return this.#h.web.fetchJson(`/material/volumeItem/${e}`,{method:"GET"})}async volumeOpCheck(e,t){return this.#h.web.fetchJson(`/material/volumeOpCheck/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async volumeOpCheckRevert(e){return this.#h.web.fetchJson(`/material/volumeOpCheckRevert/${e}`,{method:"POST"})}async volumeOpCreate(e){return this.#h.web.fetchJson("/material/volumeOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async volumeOpHandlingUnitSet(e,t){const n=new URLSearchParams;return t&&n.set("handlingUnitId",String(t)),this.#h.web.fetchJson(`/material/volumeOpHandlingUnitSet/${e}?${n.toString()}`,{method:"POST"})}async volumeRead(e){return this.#h.web.fetchJson(`/material/volume?${e}`,{method:"GET"})}async volumeReadById(e){return this.#h.web.fetchJson(`/material/volume/${e}`,{method:"GET"})}async volumeUpdate(e){return this.#h.web.fetchJson("/material/volume",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async warehouseCreate(e){return this.#h.web.fetchJson("/material/warehouse",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async warehouseDelete(e){return this.#h.web.fetchJson(`/material/warehouse/${e}`,{method:"DELETE"})}async warehouseRead(e){return this.#h.web.fetchJson(`/material/warehouse?${e}`,{method:"GET"})}async warehouseReadById(e){return this.#h.web.fetchJson(`/material/warehouse/${e}`,{method:"GET"})}async warehouseUpdate(e){return this.#h.web.fetchJson("/material/warehouse",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},MovingOrder:class{id;company;status;date;tags;properties},MovingOrderItem:class{id;movingOrder;status;address;stock;quantity;quantityLoaded;quantityUnloaded;user;tags;properties},OutgoingList:class{id;company;status;source;date;person;reservation;shipment;invoiceSeries;number;tags;properties},PickingOrder:class{id;company;status;source;pickingProfile;person;reservation;outgoingList;movingOrder;date;description;netWeightKg;grossWeightKg;volumeM3;shipment;pickingOrderGroup;tags;properties},PickingOrderItem:class{id;pickingOrder;stockCluster;productPacking;quantity},PickingProfile:class{id;code;description;tags;properties},Quality:class{id;code;description;punctuation;tags;properties},Reservation:class{id;company;status;person;code;date;tags;properties},ReservationItem:class{id;reservation;stockCluster;warehouse;address;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;value},ReservationTarget:class{id;reservation;stockCluster;productPacking;quantity;reservedQuantity},Schedule:class{id},Serial:class{id;code;tags;properties},Stock:class{id;stockCluster;warehouse;address;code;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},StockAvailability:class{id;type;subtype;stockCluster;company;productPacking;date;schedule;quantity},StockCluster:class{id;code;description;assetValuationMethod;priceListCost;priceListRetail;tags;properties},StockData:class{id;stockCluster;address;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},StockManagement:class{id;code;tags;properties},StockManagementItem:class{id;stockManagement;productPacking;averageDailyConsumption;replenishmentTimeDays;safetyStockPercentage;minimumStock;replenishmentMinimum;replenishmentBatch;acquisitionType;person;tags;properties},StockTransaction:class{dateTime;sourceId;transaction;flow;reversal;description;balance;id;stockCluster;warehouse;address;code;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},Volume:class{id;outgoingList;code;lengthCm;widthCm;heightCm;netWeightKg;grossWeightKg;volumeM3;handlingUnit;checked;loaded;tags;properties},VolumeItem:class{id;volume;productPacking;quantity},Warehouse:class{id;code;tags;properties}});var Ds=Object.freeze({__proto__:null,PriceFormation:class{id;code;description;tags;properties},PriceFormationItem:class{id;priceFormation;code;description;type;expression;tags;properties},PriceFormationSimulation:class{id;value;items},PriceFormationSimulationItem:class{id;code;description;type;expression;value},PriceListRetail:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListRetailItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},Quote:class{id;status;company;saleProfile;workflow;workpiece;person;fiscalProfilePerson;code;date;availabilityDate;personSalesperson;totalValue;tags;properties},QuoteItem:class{id;status;quote;productPacking;quantity;currency;tags;properties},QuoteItemProposal:class{id;status;quoteItem;productPacking;quantity;currency;unitValue;totalValue;approvedQuantity;tags;properties},Sale:class{id;status;company;saleProfile;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;code;date;availabilityDate;personSalesperson;freightType;personShipping;priceList;currency;totalValue;pickingOrder;shipment;outgoingInvoice;quote;tags;properties},SaleItem:class{id;sale;productPacking;fiscalProfileProduct;taxationRule;taxationOperation;priceListValue;quantity;servedQuantity;unitValue;currency;costUnitValue;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;account;accountComplement;schedule;tags;properties},SalePayment:class{id;sale;type;account;accountComplement;term;value;tags;properties},SaleProfile:class{id;code;description;fiscalProfileOperation;workflow;warehouse;invoiceSeriesTag;pickingProfile;tags;properties},SaleService:class{#h;constructor(e){this.#h=e}async priceFormationCreate(e){return this.#h.web.fetchJson("/sale/priceFormation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceFormationDelete(e){return this.#h.web.fetchJson(`/sale/priceFormation/${e}`,{method:"DELETE"})}async priceFormationItemCreate(e){return this.#h.web.fetchJson("/sale/priceFormationItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceFormationItemDelete(e){return this.#h.web.fetchJson(`/sale/priceFormationItem/${e}`,{method:"DELETE"})}async priceFormationItemRead(e){return this.#h.web.fetchJson(`/sale/priceFormationItem?${e}`,{method:"GET"})}async priceFormationItemReadById(e){return this.#h.web.fetchJson(`/sale/priceFormationItem/${e}`,{method:"GET"})}async priceFormationItemUpdate(e){return this.#h.web.fetchJson("/sale/priceFormationItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceFormationOpCalculate(e,t){return this.#h.web.fetchJson(`/sale/priceFormationOpCalculate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async priceFormationOpClone(e){return this.#h.web.fetchJson(`/sale/priceFormationOpClone/${e}`,{method:"POST"})}async priceFormationOpSimulation(e,t){return this.#h.web.fetchJson(`/sale/priceFormationOpSimulation/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async priceFormationRead(e){return this.#h.web.fetchJson(`/sale/priceFormation?${e}`,{method:"GET"})}async priceFormationReadById(e){return this.#h.web.fetchJson(`/sale/priceFormation/${e}`,{method:"GET"})}async priceFormationUpdate(e){return this.#h.web.fetchJson("/sale/priceFormation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListCreate(e){return this.#h.web.fetchJson("/sale/priceList",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListDelete(e){return this.#h.web.fetchJson(`/sale/priceList/${e}`,{method:"DELETE"})}async priceListItemCreate(e){return this.#h.web.fetchJson("/sale/priceListItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListItemDelete(e){return this.#h.web.fetchJson(`/sale/priceListItem/${e}`,{method:"DELETE"})}async priceListItemRead(e){return this.#h.web.fetchJson(`/sale/priceListItem?${e}`,{method:"GET"})}async priceListItemReadById(e){return this.#h.web.fetchJson(`/sale/priceListItem/${e}`,{method:"GET"})}async priceListItemUpdate(e){return this.#h.web.fetchJson("/sale/priceListItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListRead(e){return this.#h.web.fetchJson(`/sale/priceList?${e}`,{method:"GET"})}async priceListReadById(e){return this.#h.web.fetchJson(`/sale/priceList/${e}`,{method:"GET"})}async priceListUpdate(e){return this.#h.web.fetchJson("/sale/priceList",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteCreate(e){return this.#h.web.fetchJson("/sale/quote",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteDelete(e){return this.#h.web.fetchJson(`/sale/quote/${e}`,{method:"DELETE"})}async quoteItemCreate(e){return this.#h.web.fetchJson("/sale/quoteItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteItemDelete(e){return this.#h.web.fetchJson(`/sale/quoteItem/${e}`,{method:"DELETE"})}async quoteItemOpFill(e){return this.#h.web.fetchJson(`/sale/quoteItemOpFill/${e}`,{method:"POST"})}async quoteItemOpFillRevert(e){return this.#h.web.fetchJson(`/sale/quoteItemOpFillRevert/${e}`,{method:"POST"})}async quoteItemOpRefuse(e){return this.#h.web.fetchJson(`/sale/quoteItemOpRefuse/${e}`,{method:"POST"})}async quoteItemOpRefuseRevert(e){return this.#h.web.fetchJson(`/sale/quoteItemOpRefuseRevert/${e}`,{method:"POST"})}async quoteItemProposalCreate(e){return this.#h.web.fetchJson("/sale/quoteItemProposal",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteItemProposalDelete(e){return this.#h.web.fetchJson(`/sale/quoteItemProposal/${e}`,{method:"DELETE"})}async quoteItemProposalRead(e){return this.#h.web.fetchJson(`/sale/quoteItemProposal?${e}`,{method:"GET"})}async quoteItemProposalReadById(e){return this.#h.web.fetchJson(`/sale/quoteItemProposal/${e}`,{method:"GET"})}async quoteItemProposalUpdate(e){return this.#h.web.fetchJson("/sale/quoteItemProposal",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteItemRead(e){return this.#h.web.fetchJson(`/sale/quoteItem?${e}`,{method:"GET"})}async quoteItemReadById(e){return this.#h.web.fetchJson(`/sale/quoteItem/${e}`,{method:"GET"})}async quoteItemUpdate(e){return this.#h.web.fetchJson("/sale/quoteItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteOpApprove(e){return this.#h.web.fetchJson(`/sale/quoteOpApprove/${e}`,{method:"POST"})}async quoteOpApproveRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpApproveRevert/${e}`,{method:"POST"})}async quoteOpCancel(e){return this.#h.web.fetchJson(`/sale/quoteOpCancel/${e}`,{method:"POST"})}async quoteOpCancelRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpCancelRevert/${e}`,{method:"POST"})}async quoteOpCreate(e){return this.#h.web.fetchJson("/sale/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteOpFill(e){return this.#h.web.fetchJson(`/sale/quoteOpFill/${e}`,{method:"POST"})}async quoteOpFillRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpFillRevert/${e}`,{method:"POST"})}async quoteOpPrepare(e){return this.#h.web.fetchJson(`/sale/quoteOpPrepare/${e}`,{method:"POST"})}async quoteOpPrepareRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpPrepareRevert/${e}`,{method:"POST"})}async quoteOpReject(e){return this.#h.web.fetchJson(`/sale/quoteOpReject/${e}`,{method:"POST"})}async quoteOpRejectRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpRejectRevert/${e}`,{method:"POST"})}async quoteOpStart(e){return this.#h.web.fetchJson(`/sale/quoteOpStart/${e}`,{method:"POST"})}async quoteOpStartRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpStartRevert/${e}`,{method:"POST"})}async quoteOpSubmit(e){return this.#h.web.fetchJson(`/sale/quoteOpSubmit/${e}`,{method:"POST"})}async quoteOpSubmitRevert(e){return this.#h.web.fetchJson(`/sale/quoteOpSubmitRevert/${e}`,{method:"POST"})}async quoteRead(e){return this.#h.web.fetchJson(`/sale/quote?${e}`,{method:"GET"})}async quoteReadById(e){return this.#h.web.fetchJson(`/sale/quote/${e}`,{method:"GET"})}async quoteUpdate(e){return this.#h.web.fetchJson("/sale/quote",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleCreate(e){return this.#h.web.fetchJson("/sale/sale",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleDelete(e){return this.#h.web.fetchJson(`/sale/sale/${e}`,{method:"DELETE"})}async saleItemCreate(e){return this.#h.web.fetchJson("/sale/saleItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleItemDelete(e){return this.#h.web.fetchJson(`/sale/saleItem/${e}`,{method:"DELETE"})}async saleItemRead(e){return this.#h.web.fetchJson(`/sale/saleItem?${e}`,{method:"GET"})}async saleItemReadById(e){return this.#h.web.fetchJson(`/sale/saleItem/${e}`,{method:"GET"})}async saleItemUpdate(e){return this.#h.web.fetchJson("/sale/saleItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleOpApprove(e){return this.#h.web.fetchJson(`/sale/saleOpApprove/${e}`,{method:"POST"})}async saleOpApproveRevert(e){return this.#h.web.fetchJson(`/sale/saleOpApproveRevert/${e}`,{method:"POST"})}async saleOpApproveUnconditionally(e){return this.#h.web.fetchJson(`/sale/saleOpApproveUnconditionally/${e}`,{method:"POST"})}async saleOpCancel(e,t){return this.#h.web.fetchJson(`/sale/saleOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async saleOpCancelRevert(e){return this.#h.web.fetchJson(`/sale/saleOpCancelRevert/${e}`,{method:"POST"})}async saleOpClone(e){return this.#h.web.fetchJson(`/sale/saleOpClone/${e}`,{method:"POST"})}async saleOpCreate(e){return this.#h.web.fetchJson("/sale/saleOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleOpFinishRevert(e){return this.#h.web.fetchJson(`/sale/saleOpFinishRevert/${e}`,{method:"POST"})}async saleOpForwardAuto(e,t){return this.#h.web.fetchJson(`/sale/saleOpForwardAuto/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async saleOpMerge(e){return this.#h.web.fetchJson("/sale/saleOpMerge",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleOpMergeRevert(e){return this.#h.web.fetchJson(`/sale/saleOpMergeRevert/${e}`,{method:"POST"})}async saleOpPickingOrderCreate(e,t){return this.#h.web.fetchJson(`/sale/saleOpPickingOrderCreate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async saleOpPickingOrderCreateRevert(e,t){const n=new URLSearchParams;return t&&n.set("pickingOrderId",String(t)),this.#h.web.fetchJson(`/sale/saleOpPickingOrderCreateRevert/${e}?${n.toString()}`,{method:"POST"})}async saleOpPrepare(e){return this.#h.web.fetchJson(`/sale/saleOpPrepare/${e}`,{method:"POST"})}async saleOpPrepareRevert(e){return this.#h.web.fetchJson(`/sale/saleOpPrepareRevert/${e}`,{method:"POST"})}async saleOpShipmentAssign(e,t){const n=new URLSearchParams;return t&&n.set("shipmentId",String(t)),this.#h.web.fetchJson(`/sale/saleOpShipmentAssign/${e}?${n.toString()}`,{method:"POST"})}async saleOpShipmentAssignRevert(e){return this.#h.web.fetchJson(`/sale/saleOpShipmentAssignRevert/${e}`,{method:"POST"})}async saleOpUpdatePrepared(e){return this.#h.web.fetchJson("/sale/saleOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async salePaymentCreate(e){return this.#h.web.fetchJson("/sale/salePayment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async salePaymentDelete(e){return this.#h.web.fetchJson(`/sale/salePayment/${e}`,{method:"DELETE"})}async salePaymentRead(e){return this.#h.web.fetchJson(`/sale/salePayment?${e}`,{method:"GET"})}async salePaymentReadById(e){return this.#h.web.fetchJson(`/sale/salePayment/${e}`,{method:"GET"})}async salePaymentUpdate(e){return this.#h.web.fetchJson("/sale/salePayment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleProfileCreate(e){return this.#h.web.fetchJson("/sale/saleProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleProfileDelete(e){return this.#h.web.fetchJson(`/sale/saleProfile/${e}`,{method:"DELETE"})}async saleProfileRead(e){return this.#h.web.fetchJson(`/sale/saleProfile?${e}`,{method:"GET"})}async saleProfileReadById(e){return this.#h.web.fetchJson(`/sale/saleProfile/${e}`,{method:"GET"})}async saleProfileUpdate(e){return this.#h.web.fetchJson("/sale/saleProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async saleRead(e){return this.#h.web.fetchJson(`/sale/sale?${e}`,{method:"GET"})}async saleReadById(e){return this.#h.web.fetchJson(`/sale/sale/${e}`,{method:"GET"})}async saleUpdate(e){return this.#h.web.fetchJson("/sale/sale",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var js=Object.freeze({__proto__:null,Shipment:class{id;company;status;person;date;netWeightKg;grossWeightKg;volumeM3;tags;properties},ShippingService:class{#h;constructor(e){this.#h=e}async shipmentCreate(e){return this.#h.web.fetchJson("/shipping/shipment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async shipmentDelete(e){return this.#h.web.fetchJson(`/shipping/shipment/${e}`,{method:"DELETE"})}async shipmentOpApprove(e){return this.#h.web.fetchJson(`/shipping/shipmentOpApprove/${e}`,{method:"POST"})}async shipmentOpApproveRevert(e){return this.#h.web.fetchJson(`/shipping/shipmentOpApproveRevert/${e}`,{method:"POST"})}async shipmentOpCheckFinish(e){return this.#h.web.fetchJson(`/shipping/shipmentOpCheckFinish/${e}`,{method:"POST"})}async shipmentOpCheckFinishRevert(e){return this.#h.web.fetchJson(`/shipping/shipmentOpCheckFinishRevert/${e}`,{method:"POST"})}async shipmentOpCheckIgnore(e){return this.#h.web.fetchJson(`/shipping/shipmentOpCheckIgnore/${e}`,{method:"POST"})}async shipmentOpCheckStart(e){return this.#h.web.fetchJson(`/shipping/shipmentOpCheckStart/${e}`,{method:"POST"})}async shipmentOpCheckStartRevert(e){return this.#h.web.fetchJson(`/shipping/shipmentOpCheckStartRevert/${e}`,{method:"POST"})}async shipmentOpFinish(e){return this.#h.web.fetchJson(`/shipping/shipmentOpFinish/${e}`,{method:"POST"})}async shipmentOpFinishRevert(e){return this.#h.web.fetchJson(`/shipping/shipmentOpFinishRevert/${e}`,{method:"POST"})}async shipmentOpLoadIgnore(e){return this.#h.web.fetchJson(`/shipping/shipmentOpLoadIgnore/${e}`,{method:"POST"})}async shipmentOpLoadStart(e){return this.#h.web.fetchJson(`/shipping/shipmentOpLoadStart/${e}`,{method:"POST"})}async shipmentOpLoadStartRevert(e){return this.#h.web.fetchJson(`/shipping/shipmentOpLoadStartRevert/${e}`,{method:"POST"})}async shipmentOpLoadVolume(e,t){const n=new URLSearchParams;return t&&n.set("volumeId",String(t)),this.#h.web.fetchJson(`/shipping/shipmentOpLoadVolume/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpOutgoingInvoiceBind(e,t){const n=new URLSearchParams;return t&&n.set("outgoingInvoiceId",String(t)),this.#h.web.fetchJson(`/shipping/shipmentOpOutgoingInvoiceBind/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpOutgoingInvoiceBindRevert(e,t){const n=new URLSearchParams;return t&&n.set("outgoingInvoiceId",String(t)),this.#h.web.fetchJson(`/shipping/shipmentOpOutgoingInvoiceBindRevert/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpPrepare(e){return this.#h.web.fetchJson(`/shipping/shipmentOpPrepare/${e}`,{method:"POST"})}async shipmentOpPrepareRevert(e){return this.#h.web.fetchJson(`/shipping/shipmentOpPrepareRevert/${e}`,{method:"POST"})}async shipmentRead(e){return this.#h.web.fetchJson(`/shipping/shipment?${e}`,{method:"GET"})}async shipmentReadById(e){return this.#h.web.fetchJson(`/shipping/shipment/${e}`,{method:"GET"})}async shipmentUpdate(e){return this.#h.web.fetchJson("/shipping/shipment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Ls=Object.freeze({__proto__:null,Bom:class{id;code;description;productPacking;quantity;tags;properties},BomItem:class{id;bom;productPacking;lotQuantity;type;quantity;tags;properties},Operation:class{id;productionOrder;operationType;quantity;unitValue;totalValue;tags;properties},OperationType:class{id;productionProfile;code;tags;properties},OperationTypeAccount:class{id;operationType;accountChart;account},ProductionBatch:class{id;status;productionStep;date;reservation;incomingList;journalEntry;tags;properties},ProductionOrder:class{id;status;productionProfile;company;workflow;workpiece;date;availabilityDate;productPacking;quantity;servedQuantity;tags;properties},ProductionProfile:class{id;code;tags;properties},ProductionService:class{#h;constructor(e){this.#h=e}async bomCreate(e){return this.#h.web.fetchJson("/supply/production/bom",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async bomDelete(e){return this.#h.web.fetchJson(`/supply/production/bom/${e}`,{method:"DELETE"})}async bomItemCreate(e){return this.#h.web.fetchJson("/supply/production/bomItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async bomItemDelete(e){return this.#h.web.fetchJson(`/supply/production/bomItem/${e}`,{method:"DELETE"})}async bomItemRead(e){return this.#h.web.fetchJson(`/supply/production/bomItem?${e}`,{method:"GET"})}async bomItemReadById(e){return this.#h.web.fetchJson(`/supply/production/bomItem/${e}`,{method:"GET"})}async bomItemUpdate(e){return this.#h.web.fetchJson("/supply/production/bomItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async bomOpClone(e){return this.#h.web.fetchJson(`/supply/production/bomOpClone/${e}`,{method:"POST"})}async bomRead(e){return this.#h.web.fetchJson(`/supply/production/bom?${e}`,{method:"GET"})}async bomReadById(e){return this.#h.web.fetchJson(`/supply/production/bom/${e}`,{method:"GET"})}async bomUpdate(e){return this.#h.web.fetchJson("/supply/production/bom",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async operationCreate(e){return this.#h.web.fetchJson("/supply/production/operation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async operationDelete(e){return this.#h.web.fetchJson(`/supply/production/operation/${e}`,{method:"DELETE"})}async operationRead(e){return this.#h.web.fetchJson(`/supply/production/operation?${e}`,{method:"GET"})}async operationReadById(e){return this.#h.web.fetchJson(`/supply/production/operation/${e}`,{method:"GET"})}async operationTypeAccountCreate(e){return this.#h.web.fetchJson("/supply/production/operationTypeAccount",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async operationTypeAccountDelete(e){return this.#h.web.fetchJson(`/supply/production/operationTypeAccount/${e}`,{method:"DELETE"})}async operationTypeAccountRead(e){return this.#h.web.fetchJson(`/supply/production/operationTypeAccount?${e}`,{method:"GET"})}async operationTypeAccountReadById(e){return this.#h.web.fetchJson(`/supply/production/operationTypeAccount/${e}`,{method:"GET"})}async operationTypeAccountUpdate(e){return this.#h.web.fetchJson("/supply/production/operationTypeAccount",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async operationTypeCreate(e){return this.#h.web.fetchJson("/supply/production/operationType",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async operationTypeDelete(e){return this.#h.web.fetchJson(`/supply/production/operationType/${e}`,{method:"DELETE"})}async operationTypeRead(e){return this.#h.web.fetchJson(`/supply/production/operationType?${e}`,{method:"GET"})}async operationTypeReadById(e){return this.#h.web.fetchJson(`/supply/production/operationType/${e}`,{method:"GET"})}async operationTypeUpdate(e){return this.#h.web.fetchJson("/supply/production/operationType",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async operationUpdate(e){return this.#h.web.fetchJson("/supply/production/operation",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionBatchCreate(e){return this.#h.web.fetchJson("/supply/production/productionBatch",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionBatchDelete(e){return this.#h.web.fetchJson(`/supply/production/productionBatch/${e}`,{method:"DELETE"})}async productionBatchOpApprove(e){return this.#h.web.fetchJson(`/supply/production/productionBatchOpApprove/${e}`,{method:"POST"})}async productionBatchOpApproveRevert(e){return this.#h.web.fetchJson(`/supply/production/productionBatchOpApproveRevert/${e}`,{method:"POST"})}async productionBatchOpPrepare(e){return this.#h.web.fetchJson(`/supply/production/productionBatchOpPrepare/${e}`,{method:"POST"})}async productionBatchOpPrepareRevert(e){return this.#h.web.fetchJson(`/supply/production/productionBatchOpPrepareRevert/${e}`,{method:"POST"})}async productionBatchRead(e){return this.#h.web.fetchJson(`/supply/production/productionBatch?${e}`,{method:"GET"})}async productionBatchReadById(e){return this.#h.web.fetchJson(`/supply/production/productionBatch/${e}`,{method:"GET"})}async productionBatchUpdate(e){return this.#h.web.fetchJson("/supply/production/productionBatch",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionOrderCreate(e){return this.#h.web.fetchJson("/supply/production/productionOrder",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionOrderDelete(e){return this.#h.web.fetchJson(`/supply/production/productionOrder/${e}`,{method:"DELETE"})}async productionOrderOpApprove(e){return this.#h.web.fetchJson(`/supply/production/productionOrderOpApprove/${e}`,{method:"POST"})}async productionOrderOpApproveRevert(e){return this.#h.web.fetchJson(`/supply/production/productionOrderOpApproveRevert/${e}`,{method:"POST"})}async productionOrderOpCreate(e){return this.#h.web.fetchJson("/supply/production/productionOrderOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionOrderOpFinish(e){return this.#h.web.fetchJson(`/supply/production/productionOrderOpFinish/${e}`,{method:"POST"})}async productionOrderOpFinishRevert(e){return this.#h.web.fetchJson(`/supply/production/productionOrderOpFinishRevert/${e}`,{method:"POST"})}async productionOrderOpPrepare(e){return this.#h.web.fetchJson(`/supply/production/productionOrderOpPrepare/${e}`,{method:"POST"})}async productionOrderOpPrepareRevert(e){return this.#h.web.fetchJson(`/supply/production/productionOrderOpPrepareRevert/${e}`,{method:"POST"})}async productionOrderRead(e){return this.#h.web.fetchJson(`/supply/production/productionOrder?${e}`,{method:"GET"})}async productionOrderReadById(e){return this.#h.web.fetchJson(`/supply/production/productionOrder/${e}`,{method:"GET"})}async productionOrderUpdate(e){return this.#h.web.fetchJson("/supply/production/productionOrder",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionProfileCreate(e){return this.#h.web.fetchJson("/supply/production/productionProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionProfileDelete(e){return this.#h.web.fetchJson(`/supply/production/productionProfile/${e}`,{method:"DELETE"})}async productionProfileRead(e){return this.#h.web.fetchJson(`/supply/production/productionProfile?${e}`,{method:"GET"})}async productionProfileReadById(e){return this.#h.web.fetchJson(`/supply/production/productionProfile/${e}`,{method:"GET"})}async productionProfileUpdate(e){return this.#h.web.fetchJson("/supply/production/productionProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionStepCreate(e){return this.#h.web.fetchJson("/supply/production/productionStep",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionStepDelete(e){return this.#h.web.fetchJson(`/supply/production/productionStep/${e}`,{method:"DELETE"})}async productionStepInputCreate(e){return this.#h.web.fetchJson("/supply/production/productionStepInput",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionStepInputDelete(e){return this.#h.web.fetchJson(`/supply/production/productionStepInput/${e}`,{method:"DELETE"})}async productionStepInputRead(e){return this.#h.web.fetchJson(`/supply/production/productionStepInput?${e}`,{method:"GET"})}async productionStepInputReadById(e){return this.#h.web.fetchJson(`/supply/production/productionStepInput/${e}`,{method:"GET"})}async productionStepInputUpdate(e){return this.#h.web.fetchJson("/supply/production/productionStepInput",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionStepOpCalculateInput(e){return this.#h.web.fetchJson(`/supply/production/productionStepOpCalculateInput/${e}`,{method:"POST"})}async productionStepOutputCreate(e){return this.#h.web.fetchJson("/supply/production/productionStepOutput",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionStepOutputDelete(e){return this.#h.web.fetchJson(`/supply/production/productionStepOutput/${e}`,{method:"DELETE"})}async productionStepOutputRead(e){return this.#h.web.fetchJson(`/supply/production/productionStepOutput?${e}`,{method:"GET"})}async productionStepOutputReadById(e){return this.#h.web.fetchJson(`/supply/production/productionStepOutput/${e}`,{method:"GET"})}async productionStepOutputUpdate(e){return this.#h.web.fetchJson("/supply/production/productionStepOutput",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async productionStepRead(e){return this.#h.web.fetchJson(`/supply/production/productionStep?${e}`,{method:"GET"})}async productionStepReadById(e){return this.#h.web.fetchJson(`/supply/production/productionStep/${e}`,{method:"GET"})}async productionStepUpdate(e){return this.#h.web.fetchJson("/supply/production/productionStep",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},ProductionStep:class{id;productionOrder;tags;properties},ProductionStepInput:class{id;productionStep;productPacking;quantity;servedQuantity;tags;properties},ProductionStepOutput:class{id;productionStep;productPacking;quantity;weight;servedQuantity;tags;properties}});var Us=Object.freeze({__proto__:null,PriceListCost:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListCostItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},Proposal:class{id;status;quote;person;date;totalValue;tags;properties},ProposalItem:class{id;status;proposal;quoteItem;availabilityDate;productPacking;fiscalProfileProduct;unit;quantity;internalQuantity;approvedQuantity;currency;unitValue;taxationRule;taxationOperation;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;tags;properties},Purchase:class{id;status;company;purchaseProfile;fiscalProfileOperation;workflow;workpiece;warehouse;person;personAddressShipping;code;date;availabilityDate;freightType;priceList;currency;totalValue;incomingRequest;quote;purchaseSource;tags;properties},PurchaseItem:class{id;purchase;productPacking;fiscalProfileProduct;taxationRule;taxationOperation;priceListValue;unit;quantity;internalQuantity;servedQuantity;unitValue;currency;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;account;accountComplement;tags;properties},PurchasePayment:class{id;purchase;type;account;accountComplement;term;value;tags;properties},PurchaseProfile:class{id;code;description;fiscalProfileOperation;workflow;tags;properties},PurchaseService:class{#h;constructor(e){this.#h=e}async priceListCreate(e){return this.#h.web.fetchJson("/supply/purchase/priceList",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListDelete(e){return this.#h.web.fetchJson(`/supply/purchase/priceList/${e}`,{method:"DELETE"})}async priceListItemCreate(e){return this.#h.web.fetchJson("/supply/purchase/priceListItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListItemDelete(e){return this.#h.web.fetchJson(`/supply/purchase/priceListItem/${e}`,{method:"DELETE"})}async priceListItemRead(e){return this.#h.web.fetchJson(`/supply/purchase/priceListItem?${e}`,{method:"GET"})}async priceListItemReadById(e){return this.#h.web.fetchJson(`/supply/purchase/priceListItem/${e}`,{method:"GET"})}async priceListItemUpdate(e){return this.#h.web.fetchJson("/supply/purchase/priceListItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async priceListRead(e){return this.#h.web.fetchJson(`/supply/purchase/priceList?${e}`,{method:"GET"})}async priceListReadById(e){return this.#h.web.fetchJson(`/supply/purchase/priceList/${e}`,{method:"GET"})}async priceListUpdate(e){return this.#h.web.fetchJson("/supply/purchase/priceList",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async proposalCreate(e){return this.#h.web.fetchJson("/supply/purchase/proposal",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async proposalDelete(e){return this.#h.web.fetchJson(`/supply/purchase/proposal/${e}`,{method:"DELETE"})}async proposalItemCreate(e){return this.#h.web.fetchJson("/supply/purchase/proposalItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async proposalItemDelete(e){return this.#h.web.fetchJson(`/supply/purchase/proposalItem/${e}`,{method:"DELETE"})}async proposalItemOpApprove(e,t){return this.#h.web.fetchJson(`/supply/purchase/proposalItemOpApprove/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async proposalItemOpApproveRevert(e){return this.#h.web.fetchJson(`/supply/purchase/proposalItemOpApproveRevert/${e}`,{method:"POST"})}async proposalItemOpDisapprove(e,t){return this.#h.web.fetchJson(`/supply/purchase/proposalItemOpDisapprove/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async proposalItemOpDisapproveRevert(e){return this.#h.web.fetchJson(`/supply/purchase/proposalItemOpDisapproveRevert/${e}`,{method:"POST"})}async proposalItemRead(e){return this.#h.web.fetchJson(`/supply/purchase/proposalItem?${e}`,{method:"GET"})}async proposalItemReadById(e){return this.#h.web.fetchJson(`/supply/purchase/proposalItem/${e}`,{method:"GET"})}async proposalItemUpdate(e){return this.#h.web.fetchJson("/supply/purchase/proposalItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async proposalOpCancel(e){return this.#h.web.fetchJson(`/supply/purchase/proposalOpCancel/${e}`,{method:"POST"})}async proposalOpCancelRevert(e){return this.#h.web.fetchJson(`/supply/purchase/proposalOpCancelRevert/${e}`,{method:"POST"})}async proposalOpPrepare(e){return this.#h.web.fetchJson(`/supply/purchase/proposalOpPrepare/${e}`,{method:"POST"})}async proposalOpPrepareRevert(e){return this.#h.web.fetchJson(`/supply/purchase/proposalOpPrepareRevert/${e}`,{method:"POST"})}async proposalRead(e){return this.#h.web.fetchJson(`/supply/purchase/proposal?${e}`,{method:"GET"})}async proposalReadById(e){return this.#h.web.fetchJson(`/supply/purchase/proposal/${e}`,{method:"GET"})}async proposalUpdate(e){return this.#h.web.fetchJson("/supply/purchase/proposal",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseCreate(e){return this.#h.web.fetchJson("/supply/purchase/purchase",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseDelete(e){return this.#h.web.fetchJson(`/supply/purchase/purchase/${e}`,{method:"DELETE"})}async purchaseItemCreate(e){return this.#h.web.fetchJson("/supply/purchase/purchaseItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseItemDelete(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseItem/${e}`,{method:"DELETE"})}async purchaseItemRead(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseItem?${e}`,{method:"GET"})}async purchaseItemReadById(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseItem/${e}`,{method:"GET"})}async purchaseItemUpdate(e){return this.#h.web.fetchJson("/supply/purchase/purchaseItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseOpApprove(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpApprove/${e}`,{method:"POST"})}async purchaseOpApproveRevert(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpApproveRevert/${e}`,{method:"POST"})}async purchaseOpApproveUnconditionally(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpApproveUnconditionally/${e}`,{method:"POST"})}async purchaseOpCancel(e,t){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async purchaseOpCancelRevert(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpCancelRevert/${e}`,{method:"POST"})}async purchaseOpClone(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpClone/${e}`,{method:"POST"})}async purchaseOpCreate(e){return this.#h.web.fetchJson("/supply/purchase/purchaseOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseOpFinish(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpFinish/${e}`,{method:"POST"})}async purchaseOpFinishRevert(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpFinishRevert/${e}`,{method:"POST"})}async purchaseOpPrepare(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpPrepare/${e}`,{method:"POST"})}async purchaseOpPrepareRevert(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseOpPrepareRevert/${e}`,{method:"POST"})}async purchaseOpUpdatePrepared(e){return this.#h.web.fetchJson("/supply/purchase/purchaseOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchasePaymentCreate(e){return this.#h.web.fetchJson("/supply/purchase/purchasePayment",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchasePaymentDelete(e){return this.#h.web.fetchJson(`/supply/purchase/purchasePayment/${e}`,{method:"DELETE"})}async purchasePaymentRead(e){return this.#h.web.fetchJson(`/supply/purchase/purchasePayment?${e}`,{method:"GET"})}async purchasePaymentReadById(e){return this.#h.web.fetchJson(`/supply/purchase/purchasePayment/${e}`,{method:"GET"})}async purchasePaymentUpdate(e){return this.#h.web.fetchJson("/supply/purchase/purchasePayment",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseProfileCreate(e){return this.#h.web.fetchJson("/supply/purchase/purchaseProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseProfileDelete(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseProfile/${e}`,{method:"DELETE"})}async purchaseProfileRead(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseProfile?${e}`,{method:"GET"})}async purchaseProfileReadById(e){return this.#h.web.fetchJson(`/supply/purchase/purchaseProfile/${e}`,{method:"GET"})}async purchaseProfileUpdate(e){return this.#h.web.fetchJson("/supply/purchase/purchaseProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async purchaseRead(e){return this.#h.web.fetchJson(`/supply/purchase/purchase?${e}`,{method:"GET"})}async purchaseReadById(e){return this.#h.web.fetchJson(`/supply/purchase/purchase/${e}`,{method:"GET"})}async purchaseUpdate(e){return this.#h.web.fetchJson("/supply/purchase/purchase",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteCreate(e){return this.#h.web.fetchJson("/supply/purchase/quote",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteDelete(e){return this.#h.web.fetchJson(`/supply/purchase/quote/${e}`,{method:"DELETE"})}async quoteItemCreate(e){return this.#h.web.fetchJson("/supply/purchase/quoteItem",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteItemDelete(e){return this.#h.web.fetchJson(`/supply/purchase/quoteItem/${e}`,{method:"DELETE"})}async quoteItemRead(e){return this.#h.web.fetchJson(`/supply/purchase/quoteItem?${e}`,{method:"GET"})}async quoteItemReadById(e){return this.#h.web.fetchJson(`/supply/purchase/quoteItem/${e}`,{method:"GET"})}async quoteItemUpdate(e){return this.#h.web.fetchJson("/supply/purchase/quoteItem",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteOpApprove(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpApprove/${e}`,{method:"POST"})}async quoteOpApproveRevert(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpApproveRevert/${e}`,{method:"POST"})}async quoteOpCancel(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpCancel/${e}`,{method:"POST"})}async quoteOpCancelRevert(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpCancelRevert/${e}`,{method:"POST"})}async quoteOpCreate(e){return this.#h.web.fetchJson("/supply/purchase/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async quoteOpFinish(e,t){return this.#h.web.fetchJson(`/supply/purchase/quoteOpFinish/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async quoteOpFinishRevert(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpFinishRevert/${e}`,{method:"POST"})}async quoteOpPrepare(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpPrepare/${e}`,{method:"POST"})}async quoteOpPrepareRevert(e){return this.#h.web.fetchJson(`/supply/purchase/quoteOpPrepareRevert/${e}`,{method:"POST"})}async quoteRead(e){return this.#h.web.fetchJson(`/supply/purchase/quote?${e}`,{method:"GET"})}async quoteReadById(e){return this.#h.web.fetchJson(`/supply/purchase/quote/${e}`,{method:"GET"})}async quoteUpdate(e){return this.#h.web.fetchJson("/supply/purchase/quote",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Quote:class{id;status;company;fiscalProfileOperation;workflow;workpiece;code;date;availabilityDate;tags;properties},QuoteItem:class{id;quote;productPacking;unit;quantity;internalQuantity;approvedQuantity;tags;properties}}),Gs=Object.freeze({__proto__:null,production:Ls,purchase:Us});var qs=Object.freeze({__proto__:null,AuditService:class{#h;constructor(e){this.#h=e}async logCreate(e){return this.#h.web.fetchJson("/system/audit/log",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async logOpDeleteExpired(){return this.#h.web.fetchJson("/system/audit/logOpDeleteExpired",{method:"POST"})}async logRead(e){return this.#h.web.fetchJson(`/system/audit/log?${e}`,{method:"GET"})}async logReadById(e){return this.#h.web.fetchJson(`/system/audit/log/${e}`,{method:"GET"})}async sourceOpReadByEntity(e,t){const n=new URLSearchParams;return e&&n.set("entity",String(e)),t&&n.set("entityId",String(t)),this.#h.web.fetchJson(`/system/audit/sourceOpReadByEntity?${n.toString()}`,{method:"POST"})}async sourceRead(e){return this.#h.web.fetchJson(`/system/audit/source?${e}`,{method:"GET"})}async sourceReadById(e){return this.#h.web.fetchJson(`/system/audit/source/${e}`,{method:"GET"})}async userLogCreate(e){return this.#h.web.fetchJson("/system/audit/userLog",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userLogDelete(e){return this.#h.web.fetchJson(`/system/audit/userLog/${e}`,{method:"DELETE"})}async userLogRead(e){return this.#h.web.fetchJson(`/system/audit/userLog?${e}`,{method:"GET"})}async userLogReadById(e){return this.#h.web.fetchJson(`/system/audit/userLog/${e}`,{method:"GET"})}async userLogUpdate(e){return this.#h.web.fetchJson("/system/audit/userLog",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Log:class{id;session;dateTime;level;operation;source;contentType;content;expiration;system;tags;properties},Source:class{id;entity;entityId;dateTime;session}});var As=Object.freeze({__proto__:null,Agent:class{id;description;uri;tags;properties},AutomationService:class{#h;constructor(e){this.#h=e}async agentCreate(e){return this.#h.web.fetchJson("/system/automation/agent",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async agentDelete(e){return this.#h.web.fetchJson(`/system/automation/agent/${e}`,{method:"DELETE"})}async agentOpExecute(e,t){return this.#h.web.fetchJson(`/system/automation/agentOpExecute/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async agentRead(e){return this.#h.web.fetchJson(`/system/automation/agent?${e}`,{method:"GET"})}async agentReadById(e){return this.#h.web.fetchJson(`/system/automation/agent/${e}`,{method:"GET"})}async agentUpdate(e){return this.#h.web.fetchJson("/system/automation/agent",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async scheduleCreate(e){return this.#h.web.fetchJson("/system/automation/schedule",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async scheduleDelete(e){return this.#h.web.fetchJson(`/system/automation/schedule/${e}`,{method:"DELETE"})}async scheduleOpExecute(e){return this.#h.web.fetchJson(`/system/automation/scheduleOpExecute/${e}`,{method:"POST"})}async scheduleRead(e){return this.#h.web.fetchJson(`/system/automation/schedule?${e}`,{method:"GET"})}async scheduleReadById(e){return this.#h.web.fetchJson(`/system/automation/schedule/${e}`,{method:"GET"})}async scheduleUpdate(e){return this.#h.web.fetchJson("/system/automation/schedule",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async watcherCreate(e){return this.#h.web.fetchJson("/system/automation/watcher",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async watcherDelete(e){return this.#h.web.fetchJson(`/system/automation/watcher/${e}`,{method:"DELETE"})}async watcherRead(e){return this.#h.web.fetchJson(`/system/automation/watcher?${e}`,{method:"GET"})}async watcherReadById(e){return this.#h.web.fetchJson(`/system/automation/watcher/${e}`,{method:"GET"})}async watcherUpdate(e){return this.#h.web.fetchJson("/system/automation/watcher",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Schedule:class{id;code;description;type;expression;nextRun;lastRun;agent;tags;properties},Watcher:class{id;event;uri;tags;properties}});var xs=Object.freeze({__proto__:null,DataService:class{#h;constructor(e){this.#h=e}async dataSourceCreate(e){return this.#h.web.fetchJson("/system/data/dataSource",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dataSourceDelete(e){return this.#h.web.fetchJson(`/system/data/dataSource/${e}`,{method:"DELETE"})}async dataSourceOpRead(e){return this.#h.web.fetchJson("/system/data/dataSourceOpRead",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dataSourceParameterCreate(e){return this.#h.web.fetchJson("/system/data/dataSourceParameter",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dataSourceParameterDelete(e){return this.#h.web.fetchJson(`/system/data/dataSourceParameter/${e}`,{method:"DELETE"})}async dataSourceParameterRead(e){return this.#h.web.fetchJson(`/system/data/dataSourceParameter?${e}`,{method:"GET"})}async dataSourceParameterReadById(e){return this.#h.web.fetchJson(`/system/data/dataSourceParameter/${e}`,{method:"GET"})}async dataSourceParameterUpdate(e){return this.#h.web.fetchJson("/system/data/dataSourceParameter",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dataSourceRead(e){return this.#h.web.fetchJson(`/system/data/dataSource?${e}`,{method:"GET"})}async dataSourceReadById(e){return this.#h.web.fetchJson(`/system/data/dataSource/${e}`,{method:"GET"})}async dataSourceUpdate(e){return this.#h.web.fetchJson("/system/data/dataSource",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},DataSource:class{id;code;type;sql;accessPoint;tags;properties},DataSourceParameter:class{id;dataSource;name;type;tags;properties}});var Bs=Object.freeze({__proto__:null,File:class{id;source;code;description;content;contentType;url;size;accessible;tags;properties},FileService:class{#h;constructor(e){this.#h=e}async fileCreate(e){return this.#h.web.fetchJson("/system/file/file",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async fileDelete(e){return this.#h.web.fetchJson(`/system/file/file/${e}`,{method:"DELETE"})}async fileOpReadContent(e){return this.#h.web.fetchBlob(`/system/file/fileOpReadContent/${e}`,{method:"POST"})}async fileRead(e){return this.#h.web.fetchJson(`/system/file/file?${e}`,{method:"GET"})}async fileReadById(e){return this.#h.web.fetchJson(`/system/file/file/${e}`,{method:"GET"})}async fileUpdate(e){return this.#h.web.fetchJson("/system/file/file",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Fs=Object.freeze({__proto__:null,FrontendService:class{#h;constructor(e){this.#h=e}async injectsRead(){return this.#h.web.fetchJson("/system/frontend/injects",{method:"GET"})}async injectsUpdate(e){return this.#h.web.fetchJson("/system/frontend/injects",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async menuRead(){return this.#h.web.fetchJson("/system/frontend/menu",{method:"GET"})}async menuUpdate(e){return this.#h.web.fetchJson("/system/frontend/menu",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async resourcesRead(){return this.#h.web.fetchJson("/system/frontend/resources",{method:"GET"})}async resourcesUpdate(e){return this.#h.web.fetchJson("/system/frontend/resources",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Inject:class{key;selector;position;uri},Menu:class{label;accessPoint;icon;path;tags;children}});var Vs=Object.freeze({__proto__:null,Image:class{id;source;code;description;content;contentType;url;size;width;height;tags;properties},ImageService:class{#h;constructor(e){this.#h=e}async imageCreate(e){return this.#h.web.fetchJson("/system/image/image",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async imageDelete(e){return this.#h.web.fetchJson(`/system/image/image/${e}`,{method:"DELETE"})}async imageRead(e){return this.#h.web.fetchJson(`/system/image/image?${e}`,{method:"GET"})}async imageReadById(e){return this.#h.web.fetchJson(`/system/image/image/${e}`,{method:"GET"})}async imageUpdate(e){return this.#h.web.fetchJson("/system/image/image",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var Ms=Object.freeze({__proto__:null,IntegrationService:class{#h;constructor(e){this.#h=e}async messageDelete(e){return this.#h.web.fetchJson(`/system/integration/message/${e}`,{method:"DELETE"})}async messageOpPost(e){return this.#h.web.fetchJson("/system/integration/messageOpPost",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async messageOpTransfer(e,t){const n=new URLSearchParams;return t&&n.set("queueCode",String(t)),this.#h.web.fetchJson(`/system/integration/messageOpTransfer/${e}?${n.toString()}`,{method:"POST"})}async messageRead(e){return this.#h.web.fetchJson(`/system/integration/message?${e}`,{method:"GET"})}async messageReadById(e){return this.#h.web.fetchJson(`/system/integration/message/${e}`,{method:"GET"})}async queueCreate(e){return this.#h.web.fetchJson("/system/integration/queue",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async queueDelete(e){return this.#h.web.fetchJson(`/system/integration/queue/${e}`,{method:"DELETE"})}async queueOpDeleteExpiredMessages(e){const t=new URLSearchParams;return e&&t.set("queueCode",String(e)),this.#h.web.fetchJson(`/system/integration/queueOpDeleteExpiredMessages?${t.toString()}`,{method:"POST"})}async queueOpReadMessage(e,t){const n=new URLSearchParams;return e&&n.set("queueCode",String(e)),t&&n.set("maxMessages",String(t)),this.#h.web.fetchJson(`/system/integration/queueOpReadMessage?${n.toString()}`,{method:"POST"})}async queueOpReadMessageTimeout(e,t,n){const s=new URLSearchParams;return e&&s.set("queueCode",String(e)),t&&s.set("maxMessages",String(t)),n&&s.set("timeoutS",String(n)),this.#h.web.fetchJson(`/system/integration/queueOpReadMessageTimeout?${s.toString()}`,{method:"POST"})}async queueRead(e){return this.#h.web.fetchJson(`/system/integration/queue?${e}`,{method:"GET"})}async queueReadById(e){return this.#h.web.fetchJson(`/system/integration/queue/${e}`,{method:"GET"})}async queueUpdate(e){return this.#h.web.fetchJson("/system/integration/queue",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async subscriptionCreate(e){return this.#h.web.fetchJson("/system/integration/subscription",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async subscriptionDelete(e){return this.#h.web.fetchJson(`/system/integration/subscription/${e}`,{method:"DELETE"})}async subscriptionRead(e){return this.#h.web.fetchJson(`/system/integration/subscription?${e}`,{method:"GET"})}async subscriptionReadById(e){return this.#h.web.fetchJson(`/system/integration/subscription/${e}`,{method:"GET"})}async subscriptionUpdate(e){return this.#h.web.fetchJson("/system/integration/subscription",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async topicCreate(e){return this.#h.web.fetchJson("/system/integration/topic",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async topicDelete(e){return this.#h.web.fetchJson(`/system/integration/topic/${e}`,{method:"DELETE"})}async topicOpPublish(e){return this.#h.web.fetchJson("/system/integration/topicOpPublish",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async topicRead(e){return this.#h.web.fetchJson(`/system/integration/topic?${e}`,{method:"GET"})}async topicReadById(e){return this.#h.web.fetchJson(`/system/integration/topic/${e}`,{method:"GET"})}async topicUpdate(e){return this.#h.web.fetchJson("/system/integration/topic",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Message:class{id;queue;subject;content;dateTime;size;exclusivityExpiration;reads},Publication:class{dateTime;operation;contentType;content;tags;properties},Queue:class{id;code;exclusivityTimeS;retentionPeriodS;maxSizeKB;longReadWaitS;maxReads;deadQueue;tags;properties},Subscription:class{id;topic;protocol;target;queue;agent;tags;properties},Topic:class{id;code;tags;properties}});var _s=Object.freeze({__proto__:null,Address:class{address;description},Attachment:class{identifier;bytes;mimeType},MailService:class{#h;constructor(e){this.#h=e}async mailerConfigCreate(e){return this.#h.web.fetchJson("/system/mail/mailerConfig",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async mailerConfigDelete(e){return this.#h.web.fetchJson(`/system/mail/mailerConfig/${e}`,{method:"DELETE"})}async mailerConfigRead(e){return this.#h.web.fetchJson(`/system/mail/mailerConfig?${e}`,{method:"GET"})}async mailerConfigReadById(e){return this.#h.web.fetchJson(`/system/mail/mailerConfig/${e}`,{method:"GET"})}async mailerConfigUpdate(e){return this.#h.web.fetchJson("/system/mail/mailerConfig",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async messageOpSend(e,t,n){const s=new URLSearchParams;return e&&s.set("mailerConfigId",String(e)),t&&s.set("mailerConfigCode",String(t)),this.#h.web.fetchJson(`/system/mail/messageOpSend?${s.toString()}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(n)})}},MailerConfig:class{id;code;description;tags;properties},Message:class{from;repplyTo;to;cc;bcc;subject;content;mimeType;attachments;source}});var Ws=Object.freeze({__proto__:null,Printer:class{id;status;code;description;jobs;tags;properties},PrinterJob:class{id;printer;status;dateTime;description;type;tags;properties},PrinterJobData:class{data;id;printer;status;dateTime;description;type;tags;properties},PrintingService:class{#h;constructor(e){this.#h=e}async printerCreate(e){return this.#h.web.fetchJson("/system/printing/printer",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async printerDelete(e){return this.#h.web.fetchJson(`/system/printing/printer/${e}`,{method:"DELETE"})}async printerJobCreate(e){return this.#h.web.fetchJson("/system/printing/printerJob",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async printerJobDataReadById(e){return this.#h.web.fetchJson(`/system/printing/printerJobData/${e}`,{method:"GET"})}async printerJobDelete(e){return this.#h.web.fetchJson(`/system/printing/printerJob/${e}`,{method:"DELETE"})}async printerJobOpFetch(e){return this.#h.web.fetchJson(`/system/printing/printerJobOpFetch/${e}`,{method:"POST"})}async printerJobOpPrinted(e){return this.#h.web.fetchJson(`/system/printing/printerJobOpPrinted/${e}`,{method:"POST"})}async printerJobOpUnlock(e){return this.#h.web.fetchJson(`/system/printing/printerJobOpUnlock/${e}`,{method:"POST"})}async printerJobRead(e){return this.#h.web.fetchJson(`/system/printing/printerJob?${e}`,{method:"GET"})}async printerJobReadById(e){return this.#h.web.fetchJson(`/system/printing/printerJob/${e}`,{method:"GET"})}async printerOpPause(e){return this.#h.web.fetchJson(`/system/printing/printerOpPause/${e}`,{method:"POST"})}async printerOpPauseRevert(e){return this.#h.web.fetchJson(`/system/printing/printerOpPauseRevert/${e}`,{method:"POST"})}async printerOpPrintTestPage(e){return this.#h.web.fetchJson(`/system/printing/printerOpPrintTestPage/${e}`,{method:"POST"})}async printerOpPrinterJobFetch(e){return this.#h.web.fetchJson(`/system/printing/printerOpPrinterJobFetch/${e}`,{method:"POST"})}async printerRead(e){return this.#h.web.fetchJson(`/system/printing/printer?${e}`,{method:"GET"})}async printerReadById(e){return this.#h.web.fetchJson(`/system/printing/printer/${e}`,{method:"GET"})}async printerUpdate(e){return this.#h.web.fetchJson("/system/printing/printer",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}}});var zs=Object.freeze({__proto__:null,Report:class{id;code;type;delegate;tags;properties},ReportService:class{#h;constructor(e){this.#h=e}async reportCreate(e){return this.#h.web.fetchJson("/system/report/report",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reportDelete(e){return this.#h.web.fetchJson(`/system/report/report/${e}`,{method:"DELETE"})}async reportOpClone(e,t){const n=new URLSearchParams;return t&&n.set("newCode",String(t)),this.#h.web.fetchJson(`/system/report/reportOpClone/${e}?${n.toString()}`,{method:"POST"})}async reportOpGenerate(e){return this.#h.web.fetchBlob("/system/report/reportOpGenerate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reportOpPrint(e){return this.#h.web.fetchJson("/system/report/reportOpPrint",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reportRead(e){return this.#h.web.fetchJson(`/system/report/report?${e}`,{method:"GET"})}async reportReadById(e){return this.#h.web.fetchJson(`/system/report/report/${e}`,{method:"GET"})}async reportTemplateOpUpdate(e,t){return this.#h.web.fetchJson(`/system/report/reportTemplateOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async reportTemplateRead(e){return this.#h.web.fetchJson(`/system/report/reportTemplate?${e}`,{method:"GET"})}async reportTemplateReadById(e){return this.#h.web.fetchJson(`/system/report/reportTemplate/${e}`,{method:"GET"})}async reportUpdate(e){return this.#h.web.fetchJson("/system/report/report",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},ReportTemplate:class{id;code;type;template;tags;properties}});var Zs=Object.freeze({__proto__:null,AccessPoint:class{id;code;description;tags;properties},AccessProfile:class{id;code;description;tags;properties},Grant:class{id;grantor;recipient},Group:class{status;id;type;code;description;tags;properties},KeyStore:class{id;type;description;content;password;tags;properties},Role:class{id;type;code;description;tags;properties},RoleAccessPoint:class{id;role;accessPoint},SecurityService:class{#h;constructor(e){this.#h=e}async accessPointCreate(e){return this.#h.web.fetchJson("/system/security/accessPoint",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accessPointDelete(e){return this.#h.web.fetchJson(`/system/security/accessPoint/${e}`,{method:"DELETE"})}async accessPointOpValidate(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#h.web.fetchJson(`/system/security/accessPointOpValidate?${t.toString()}`,{method:"POST"})}async accessPointRead(e){return this.#h.web.fetchJson(`/system/security/accessPoint?${e}`,{method:"GET"})}async accessPointReadById(e){return this.#h.web.fetchJson(`/system/security/accessPoint/${e}`,{method:"GET"})}async accessPointUpdate(e){return this.#h.web.fetchJson("/system/security/accessPoint",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accessProfileCreate(e){return this.#h.web.fetchJson("/system/security/accessProfile",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async accessProfileDelete(e){return this.#h.web.fetchJson(`/system/security/accessProfile/${e}`,{method:"DELETE"})}async accessProfileRead(e){return this.#h.web.fetchJson(`/system/security/accessProfile?${e}`,{method:"GET"})}async accessProfileReadById(e){return this.#h.web.fetchJson(`/system/security/accessProfile/${e}`,{method:"GET"})}async accessProfileUpdate(e){return this.#h.web.fetchJson("/system/security/accessProfile",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async grantCreate(e){return this.#h.web.fetchJson("/system/security/grant",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async grantDelete(e){return this.#h.web.fetchJson(`/system/security/grant/${e}`,{method:"DELETE"})}async grantRead(e){return this.#h.web.fetchJson(`/system/security/grant?${e}`,{method:"GET"})}async grantReadById(e){return this.#h.web.fetchJson(`/system/security/grant/${e}`,{method:"GET"})}async groupCreate(e){return this.#h.web.fetchJson("/system/security/group",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async groupDelete(e){return this.#h.web.fetchJson(`/system/security/group/${e}`,{method:"DELETE"})}async groupOpClone(e,t){return this.#h.web.fetchJson(`/system/security/groupOpClone/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async groupRead(e){return this.#h.web.fetchJson(`/system/security/group?${e}`,{method:"GET"})}async groupReadById(e){return this.#h.web.fetchJson(`/system/security/group/${e}`,{method:"GET"})}async groupUpdate(e){return this.#h.web.fetchJson("/system/security/group",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async keyStoreCreate(e){return this.#h.web.fetchJson("/system/security/keyStore",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async keyStoreDelete(e){return this.#h.web.fetchJson(`/system/security/keyStore/${e}`,{method:"DELETE"})}async keyStoreOpReadContent(e){return this.#h.web.fetchBlob(`/system/security/keyStoreOpReadContent/${e}`,{method:"POST"})}async keyStoreRead(e){return this.#h.web.fetchJson(`/system/security/keyStore?${e}`,{method:"GET"})}async keyStoreReadById(e){return this.#h.web.fetchJson(`/system/security/keyStore/${e}`,{method:"GET"})}async keyStoreUpdate(e){return this.#h.web.fetchJson("/system/security/keyStore",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async roleAccessPointCreate(e){return this.#h.web.fetchJson("/system/security/roleAccessPoint",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async roleAccessPointDelete(e){return this.#h.web.fetchJson(`/system/security/roleAccessPoint/${e}`,{method:"DELETE"})}async roleAccessPointRead(e){return this.#h.web.fetchJson(`/system/security/roleAccessPoint?${e}`,{method:"GET"})}async roleAccessPointReadById(e){return this.#h.web.fetchJson(`/system/security/roleAccessPoint/${e}`,{method:"GET"})}async roleRead(e){return this.#h.web.fetchJson(`/system/security/role?${e}`,{method:"GET"})}async roleReadById(e){return this.#h.web.fetchJson(`/system/security/role/${e}`,{method:"GET"})}async sessionContext(){return this.#h.web.fetchJson("/system/security/sessionContext",{method:"GET"})}async sessionDelete(e){return this.#h.web.fetchJson(`/system/security/session/${e}`,{method:"DELETE"})}async sessionOpGetCurrent(){return this.#h.web.fetchJson("/system/security/sessionOpGetCurrent",{method:"GET"})}async sessionRead(e){return this.#h.web.fetchJson(`/system/security/session?${e}`,{method:"GET"})}async sessionReadById(e){return this.#h.web.fetchJson(`/system/security/session/${e}`,{method:"GET"})}async tokenOpInvalidate(e){return this.#h.web.fetchJson("/system/security/tokenOpInvalidate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async tokenOpInvalidateCurrent(){return this.#h.web.fetchJson("/system/security/tokenOpInvalidateCurrent",{method:"POST"})}async tokenOpRenew(){return this.#h.web.fetchJson("/system/security/tokenOpRenew",{method:"POST"})}async tokenOpRequest(e){return this.#h.web.fetchJson("/system/security/tokenOpRequest",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async tokenOpRequestPermanent(e){return this.#h.web.fetchJson("/system/security/tokenOpRequestPermanent",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userCreate(e){return this.#h.web.fetchJson("/system/security/user",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userDelete(e){return this.#h.web.fetchJson(`/system/security/user/${e}`,{method:"DELETE"})}async userOpActivate(e){return this.#h.web.fetchJson(`/system/security/userOpActivate/${e}`,{method:"POST"})}async userOpAuthenticate(e){return this.#h.web.fetchJson("/system/security/userOpAuthenticate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpChangeEmail(e){return this.#h.web.fetchJson("/system/security/userOpChangeEmail",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpChangeEmailConfirmation(e){return this.#h.web.fetchJson("/system/security/userOpChangeEmailConfirmation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpChangePassword(e){return this.#h.web.fetchJson("/system/security/userOpChangePassword",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpChangePasswordThird(e,t){return this.#h.web.fetchJson(`/system/security/userOpChangePasswordThird/${e}`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async userOpCreate(e){return this.#h.web.fetchJson("/system/security/userOpCreate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpCreateConfirmation(e){return this.#h.web.fetchJson("/system/security/userOpCreateConfirmation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpCreateResend(e){return this.#h.web.fetchJson("/system/security/userOpCreateResend",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpGrantOptionAdd(e){return this.#h.web.fetchJson(`/system/security/userOpGrantOptionAdd/${e}`,{method:"POST"})}async userOpGrantOptionRemove(e){return this.#h.web.fetchJson(`/system/security/userOpGrantOptionRemove/${e}`,{method:"POST"})}async userOpInactivate(e){return this.#h.web.fetchJson(`/system/security/userOpInactivate/${e}`,{method:"POST"})}async userOpResetPassword(e){return this.#h.web.fetchJson("/system/security/userOpResetPassword",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpResetPasswordConfirmation(e){return this.#h.web.fetchJson("/system/security/userOpResetPasswordConfirmation",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userOpUnlock(e){return this.#h.web.fetchJson(`/system/security/userOpUnlock/${e}`,{method:"POST"})}async userOpUpdate(e){return this.#h.web.fetchJson("/system/security/userOpUpdate",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async userPermissionRead(e){return this.#h.web.fetchJson(`/system/security/userPermission?${e}`,{method:"GET"})}async userRead(e){return this.#h.web.fetchJson(`/system/security/user?${e}`,{method:"GET"})}async userReadById(e){return this.#h.web.fetchJson(`/system/security/user/${e}`,{method:"GET"})}async userUpdate(e){return this.#h.web.fetchJson("/system/security/user",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}},Session:class{id;status;user;dateTime;expiration;properties},SessionContext:class{session;company},User:class{status;accessProfile;id;type;code;description;tags;properties},UserPermission:class{user;accessPoint;access}});var Ys=Object.freeze({__proto__:null,StorageService:class{#h;constructor(e){this.#h=e}async get(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/?${t.toString()}`,{method:"GET"})}async getNumber(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/number?${t.toString()}`,{method:"GET"})}async getString(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/string?${t.toString()}`,{method:"GET"})}async put(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/?${n.toString()}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async putNumber(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#h.web.fetchJson(`/system/storage/number?${n.toString()}`,{method:"PUT"})}async putString(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#h.web.fetchJson(`/system/storage/string?${n.toString()}`,{method:"PUT"})}async remove(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/?${t.toString()}`,{method:"DELETE"})}async userGet(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/user?${t.toString()}`,{method:"GET"})}async userGetNumber(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/user/number?${t.toString()}`,{method:"GET"})}async userGetString(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/user/string?${t.toString()}`,{method:"GET"})}async userPut(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/user?${n.toString()}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(t)})}async userPutNumber(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#h.web.fetchJson(`/system/storage/user/number?${n.toString()}`,{method:"PUT"})}async userPutString(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#h.web.fetchJson(`/system/storage/user/string?${n.toString()}`,{method:"PUT"})}async userRemove(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#h.web.fetchJson(`/system/storage/user?${t.toString()}`,{method:"DELETE"})}}});var Hs=Object.freeze({__proto__:null,Workflow:class{id;status;code;description;tags;properties},WorkflowConnector:class{id;workflowNode;type;workflowNodeTarget;accessPoint;tags;properties},WorkflowNode:class{id;workflow;type;code;description;tags;properties},WorkflowService:class{#h;constructor(e){this.#h=e}async workflowConnectorCreate(e){return this.#h.web.fetchJson("/system/workflow/workflowConnector",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workflowConnectorDelete(e){return this.#h.web.fetchJson(`/system/workflow/workflowConnector/${e}`,{method:"DELETE"})}async workflowConnectorRead(e){return this.#h.web.fetchJson(`/system/workflow/workflowConnector?${e}`,{method:"GET"})}async workflowConnectorReadById(e){return this.#h.web.fetchJson(`/system/workflow/workflowConnector/${e}`,{method:"GET"})}async workflowConnectorUpdate(e){return this.#h.web.fetchJson("/system/workflow/workflowConnector",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workflowCreate(e){return this.#h.web.fetchJson("/system/workflow/workflow",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workflowDelete(e){return this.#h.web.fetchJson(`/system/workflow/workflow/${e}`,{method:"DELETE"})}async workflowNodeCreate(e){return this.#h.web.fetchJson("/system/workflow/workflowNode",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workflowNodeDelete(e){return this.#h.web.fetchJson(`/system/workflow/workflowNode/${e}`,{method:"DELETE"})}async workflowNodeRead(e){return this.#h.web.fetchJson(`/system/workflow/workflowNode?${e}`,{method:"GET"})}async workflowNodeReadById(e){return this.#h.web.fetchJson(`/system/workflow/workflowNode/${e}`,{method:"GET"})}async workflowNodeUpdate(e){return this.#h.web.fetchJson("/system/workflow/workflowNode",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workflowOpApprove(e){return this.#h.web.fetchJson(`/system/workflow/workflowOpApprove/${e}`,{method:"POST"})}async workflowOpApproveRevert(e){return this.#h.web.fetchJson(`/system/workflow/workflowOpApproveRevert/${e}`,{method:"POST"})}async workflowOpCreateOrUpdate(e){return this.#h.web.fetchJson("/system/workflow/workflowOpCreateOrUpdate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workflowOpDisable(e){return this.#h.web.fetchJson(`/system/workflow/workflowOpDisable/${e}`,{method:"POST"})}async workflowOpDisableRevert(e){return this.#h.web.fetchJson(`/system/workflow/workflowOpDisableRevert/${e}`,{method:"POST"})}async workflowOpPrepare(e){return this.#h.web.fetchJson(`/system/workflow/workflowOpPrepare/${e}`,{method:"POST"})}async workflowOpPrepareRevert(e){return this.#h.web.fetchJson(`/system/workflow/workflowOpPrepareRevert/${e}`,{method:"POST"})}async workflowRead(e){return this.#h.web.fetchJson(`/system/workflow/workflow?${e}`,{method:"GET"})}async workflowReadById(e){return this.#h.web.fetchJson(`/system/workflow/workflow/${e}`,{method:"GET"})}async workflowUpdate(e){return this.#h.web.fetchJson("/system/workflow/workflow",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async workpieceNodeRead(e){return this.#h.web.fetchJson(`/system/workflow/workpieceNode?${e}`,{method:"GET"})}async workpieceNodeReadById(e){return this.#h.web.fetchJson(`/system/workflow/workpieceNode/${e}`,{method:"GET"})}async workpieceOpForward(e,t){const n=new URLSearchParams;return t&&n.set("workflowNodeId",String(t)),this.#h.web.fetchJson(`/system/workflow/workpieceOpForward/${e}?${n.toString()}`,{method:"POST"})}async workpieceOpRevert(e,t){const n=new URLSearchParams;return t&&n.set("workflowNodeId",String(t)),this.#h.web.fetchJson(`/system/workflow/workpieceOpRevert/${e}?${n.toString()}`,{method:"POST"})}async workpieceRead(e){return this.#h.web.fetchJson(`/system/workflow/workpiece?${e}`,{method:"GET"})}async workpieceReadById(e){return this.#h.web.fetchJson(`/system/workflow/workpiece/${e}`,{method:"GET"})}},Workpiece:class{id;source;status;workflow;workflowNode;tags;properties},WorkpieceNode:class{id;workpiece;workflowNode;dateTimeStart;dateTimeEnd;status;user;tags;properties}});var Ks=Object.freeze({__proto__:null,Info:class{dateTime;identity;status;version},Status:class{id;entity;code;description;accessPoint;tags;properties},SystemService:class{#h;constructor(e){this.#h=e}async checkAuth(){return this.#h.web.fetchJson("/system/checkAuth",{method:"GET"})}async customPropertiesOpSet(e){return this.#h.web.fetchJson("/system/customPropertiesOpSet",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async customTagsOpSet(e,t){const n=new URLSearchParams;return e&&n.set("entity",String(e)),t&&n.set("tag",String(t)),this.#h.web.fetchJson(`/system/customTagsOpSet?${n.toString()}`,{method:"POST"})}async databaseOpOptimize(){return this.#h.web.fetchJson("/system/databaseOpOptimize",{method:"POST"})}async infoRead(){return this.#h.web.fetchJson("/system/info",{method:"GET"})}async lockOpAcquire(e,t,n){const s=new URLSearchParams;return e&&s.set("id",String(e)),t&&s.set("waitTime",String(t)),n&&s.set("leaseTime",String(n)),this.#h.web.fetchJson(`/system/lockOpAcquire?${s.toString()}`,{method:"POST"})}async lockOpExtend(e,t,n){const s=new URLSearchParams;return e&&s.set("id",String(e)),t&&s.set("lockToken",String(t)),n&&s.set("leaseTime",String(n)),this.#h.web.fetchJson(`/system/lockOpExtend?${s.toString()}`,{method:"POST"})}async lockOpRelease(e,t){const n=new URLSearchParams;return e&&n.set("id",String(e)),t&&n.set("lockToken",String(t)),this.#h.web.fetchJson(`/system/lockOpRelease?${n.toString()}`,{method:"POST"})}async metricsRead(){return this.#h.web.fetchJson("/system/metrics",{method:"GET"})}async resourcesRead(){return this.#h.web.fetchJson("/system/resources",{method:"GET"})}async statusCreate(e){return this.#h.web.fetchJson("/system/status",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async statusDelete(e){return this.#h.web.fetchJson(`/system/status/${e}`,{method:"DELETE"})}async statusRead(e){return this.#h.web.fetchJson(`/system/status?${e}`,{method:"GET"})}async statusReadById(e){return this.#h.web.fetchJson(`/system/status/${e}`,{method:"GET"})}async statusUpdate(e){return this.#h.web.fetchJson("/system/status",{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async testCreate(e){return this.#h.web.fetchJson("/system/test",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async testRead(){return this.#h.web.fetchJson("/system/test",{method:"GET"})}},Test:class{bigDecimalProp;booleanProp;byteArrayProp;integerProp;localDateProp;localDateTimeProp;longProp;stringProp;zonedDateTimeProp},audit:qs,automation:As,data:xs,file:Bs,frontend:Fs,image:Vs,integration:Ms,mail:_s,printing:Ws,report:zs,security:Zs,storage:Ys,workflow:Hs}),Qs=Object.freeze({__proto__:null,catalog:ws,commercial:Js,financial:Rs,fiscal:Cs,logistic:Ns,material:ks,sale:Ds,shipping:js,supply:Gs,system:Ks});return e.api=Qs,e.connect=async function(e,t,n,s){if(!e)throw new Error("Missing argument: host");if(!t)throw new Error("Missing argument: user");e.toLowerCase().startsWith("http")||(e=`https://${e}.zenerp.app.br:8443`);const i=await fetch(`${e}/system/security/tokenOpRequest`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,password:n,properties:s})});if(!i.ok){const e=await i.json(),t=new Error(e.message);throw t.stackTrace=e.stackTrace,t}return ms(e,await i.text())},e.createFromToken=ms,e}({});
1
+ var zenerpclient=function(e){"use strict";class t extends Error{}class n extends t{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class i extends t{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class s extends t{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class o extends t{}class a extends t{constructor(e){super(`Invalid unit ${e}`)}}class r extends t{}class c extends t{constructor(){super("Zone is an abstract class")}}const l="numeric",p="short",h="long",u={year:l,month:l,day:l},d={year:l,month:p,day:l},y={year:l,month:p,day:l,weekday:p},m={year:l,month:h,day:l},f={year:l,month:h,day:l,weekday:h},g={hour:l,minute:l},b={hour:l,minute:l,second:l},O={hour:l,minute:l,second:l,timeZoneName:p},w={hour:l,minute:l,second:l,timeZoneName:h},S={hour:l,minute:l,hourCycle:"h23"},T={hour:l,minute:l,second:l,hourCycle:"h23"},J={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:p},P={hour:l,minute:l,second:l,hourCycle:"h23",timeZoneName:h},v={year:l,month:l,day:l,hour:l,minute:l},E={year:l,month:l,day:l,hour:l,minute:l,second:l},R={year:l,month:p,day:l,hour:l,minute:l},j={year:l,month:p,day:l,hour:l,minute:l,second:l},$={year:l,month:p,day:l,weekday:p,hour:l,minute:l},I={year:l,month:h,day:l,hour:l,minute:l,timeZoneName:p},C={year:l,month:h,day:l,hour:l,minute:l,second:l,timeZoneName:p},N={year:l,month:h,day:l,weekday:h,hour:l,minute:l,timeZoneName:h},k={year:l,month:h,day:l,weekday:h,hour:l,minute:l,second:l,timeZoneName:h};class D{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(e,t){throw new c}formatOffset(e,t){throw new c}offset(e){throw new c}equals(e){throw new c}get isValid(){throw new c}}let L=null;class U extends D{static get instance(){return null===L&&(L=new U),L}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n)}formatOffset(e,t){return Xe(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let G={};const q={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let x={};class A extends D{static create(e){return x[e]||(x[e]=new A(e)),x[e]}static resetCache(){x={},G={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=A.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return Ye(e,t,n,this.name)}formatOffset(e,t){return Xe(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(i=this.name,G[i]||(G[i]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:i,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),G[i]);var i;let[s,o,a,r,c,l,p]=n.formatToParts?function(e,t){const n=e.formatToParts(t),i=[];for(let e=0;e<n.length;e++){const{type:t,value:s}=n[e],o=q[t];"era"===t?i[o]=s:je(o)||(i[o]=parseInt(s,10))}return i}(n,t):function(e,t){const n=e.format(t).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,o,a,r,c,l,p]=i;return[a,s,o,r,c,l,p]}(n,t);"BC"===r&&(s=1-Math.abs(s));let h=+t;const u=h%1e3;return h-=u>=0?u:1e3+u,(_e({year:s,month:o,day:a,hour:24===c?0:c,minute:l,second:p,millisecond:0})-h)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let B={};let F={};function V(e,t={}){const n=JSON.stringify([e,t]);let i=F[n];return i||(i=new Intl.DateTimeFormat(e,t),F[n]=i),i}let M={};let _={};let W=null;let z={};function Z(e,t,n,i){const s=e.listingMode();return"error"===s?null:"en"===s?n(t):i(t)}class Y{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:i,floor:s,...o}=n;if(!t||Object.keys(o).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let i=M[n];return i||(i=new Intl.NumberFormat(e,t),M[n]=i),i}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Ge(this.floor?Math.floor(e):Be(e,3),this.padTo)}}class H{constructor(e,t,n){let i;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){const t=e.offset/60*-1,n=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&A.create(n).valid?(i=n,this.dt=e):(i="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);const s={...this.opts};s.timeZone=s.timeZone||i,this.dtf=V(t,s)}format(){return this.originalZone?this.formatToParts().map((({value:e})=>e)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map((e=>{if("timeZoneName"===e.type){const t=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...e,value:t}}return e})):e}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(e,t,n){this.opts={style:"long",...n},!t&&Ce()&&(this.rtf=function(e,t={}){const{base:n,...i}=t,s=JSON.stringify([e,i]);let o=_[s];return o||(o=new Intl.RelativeTimeFormat(e,t),_[s]=o),o}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",i=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&o){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${s[e][0]}`;case-1:return n?"yesterday":`last ${s[e][0]}`;case 0:return n?"today":`this ${s[e][0]}`}}const a=Object.is(t,-0)||t<0,r=Math.abs(t),c=1===r,l=s[e],p=i?c?l[1]:l[2]||l[1]:c?s[e][0]:e;return a?`${r} ${p} ago`:`in ${r} ${p}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}const Q={firstDay:1,minimalDays:4,weekend:[6,7]};class X{static fromOpts(e){return X.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,s=!1){const o=e||ue.defaultLocale,a=o||(s?"en-US":W||(W=(new Intl.DateTimeFormat).resolvedOptions().locale,W)),r=t||ue.defaultNumberingSystem,c=n||ue.defaultOutputCalendar,l=Le(i)||ue.defaultWeekSettings;return new X(a,r,c,l,o)}static resetCache(){W=null,F={},M={},_={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return X.create(e,t,n,i)}constructor(e,t,n,i,s){const[o,a,r]=function(e){const t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(-1===n)return[e];{let t,i;try{t=V(e).resolvedOptions(),i=e}catch(s){const o=e.substring(0,n);t=V(o).resolvedOptions(),i=o}const{numberingSystem:s,calendar:o}=t;return[i,s,o]}}(e);this.locale=o,this.numberingSystem=t||a||null,this.outputCalendar=n||r||null,this.weekSettings=i,this.intl=function(e,t,n){return n||t?(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?X.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Le(e.weekSettings)||this.weekSettings,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Z(this,e,st,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=function(e){const t=[];for(let n=1;n<=12;n++){const i=pi.utc(2009,n,1);t.push(e(i))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[i][e]}))}weekdays(e,t=!1){return Z(this,e,ct,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=function(e){const t=[];for(let n=1;n<=7;n++){const i=pi.utc(2016,11,13+n);t.push(e(i))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[i][e]}))}meridiems(){return Z(this,void 0,(()=>lt),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[pi.utc(2016,11,13,9),pi.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e){return Z(this,e,dt,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[pi.utc(-40,1,1),pi.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const i=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return i?i.value:null}numberFormatter(e={}){return new Y(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new H(e,this.intl,t)}relFormatter(e={}){return new K(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let i=B[n];return i||(i=new Intl.ListFormat(e,t),B[n]=i),i}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Ne()?function(e){let t=z[e];if(!t){const n=new Intl.Locale(e);t="getWeekInfo"in n?n.getWeekInfo():n.weekInfo,z[e]=t}return t}(this.locale):Q}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}let ee=null;class te extends D{static get utcInstance(){return null===ee&&(ee=new te(0)),ee}static instance(e){return 0===e?te.utcInstance:new te(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new te(He(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Xe(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Xe(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Xe(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class ne extends D{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function ie(e,t){if(je(e)||null===e)return t;if(e instanceof D)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?U.instance:"utc"===n||"gmt"===n?te.utcInstance:te.parseSpecifier(n)||A.create(e)}return $e(e)?te.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new ne(e)}let se,oe=()=>Date.now(),ae="system",re=null,ce=null,le=null,pe=60,he=null;class ue{static get now(){return oe}static set now(e){oe=e}static set defaultZone(e){ae=e}static get defaultZone(){return ie(ae,U.instance)}static get defaultLocale(){return re}static set defaultLocale(e){re=e}static get defaultNumberingSystem(){return ce}static set defaultNumberingSystem(e){ce=e}static get defaultOutputCalendar(){return le}static set defaultOutputCalendar(e){le=e}static get defaultWeekSettings(){return he}static set defaultWeekSettings(e){he=Le(e)}static get twoDigitCutoffYear(){return pe}static set twoDigitCutoffYear(e){pe=e%100}static get throwOnInvalid(){return se}static set throwOnInvalid(e){se=e}static resetCaches(){X.resetCache(),A.resetCache()}}class de{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const ye=[0,31,59,90,120,151,181,212,243,273,304,334],me=[0,31,60,91,121,152,182,213,244,274,305,335];function fe(e,t){return new de("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ge(e,t,n){const i=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&i.setUTCFullYear(i.getUTCFullYear()-1900);const s=i.getUTCDay();return 0===s?7:s}function be(e,t,n){return n+(Fe(e)?me:ye)[t-1]}function Oe(e,t){const n=Fe(e)?me:ye,i=n.findIndex((e=>e<t));return{month:i+1,day:t-n[i]}}function we(e,t){return(e-t+7)%7+1}function Se(e,t=4,n=1){const{year:i,month:s,day:o}=e,a=be(i,s,o),r=we(ge(i,s,o),n);let c,l=Math.floor((a-r+14-t)/7);return l<1?(c=i-1,l=ze(c,t,n)):l>ze(i,t,n)?(c=i+1,l=1):c=i,{weekYear:c,weekNumber:l,weekday:r,...et(e)}}function Te(e,t=4,n=1){const{weekYear:i,weekNumber:s,weekday:o}=e,a=we(ge(i,1,t),n),r=Ve(i);let c,l=7*s+o-a-7+t;l<1?(c=i-1,l+=Ve(c)):l>r?(c=i+1,l-=Ve(i)):c=i;const{month:p,day:h}=Oe(c,l);return{year:c,month:p,day:h,...et(e)}}function Je(e){const{year:t,month:n,day:i}=e;return{year:t,ordinal:be(t,n,i),...et(e)}}function Pe(e){const{year:t,ordinal:n}=e,{month:i,day:s}=Oe(t,n);return{year:t,month:i,day:s,...et(e)}}function ve(e,t){if(!je(e.localWeekday)||!je(e.localWeekNumber)||!je(e.localWeekYear)){if(!je(e.weekday)||!je(e.weekNumber)||!je(e.weekYear))throw new o("Cannot mix locale-based week fields with ISO-based week fields");return je(e.localWeekday)||(e.weekday=e.localWeekday),je(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),je(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}return{minDaysInFirstWeek:4,startOfWeek:1}}function Ee(e){const t=Ie(e.year),n=Ue(e.month,1,12),i=Ue(e.day,1,Me(e.year,e.month));return t?n?!i&&fe("day",e.day):fe("month",e.month):fe("year",e.year)}function Re(e){const{hour:t,minute:n,second:i,millisecond:s}=e,o=Ue(t,0,23)||24===t&&0===n&&0===i&&0===s,a=Ue(n,0,59),r=Ue(i,0,59),c=Ue(s,0,999);return o?a?r?!c&&fe("millisecond",s):fe("second",i):fe("minute",n):fe("hour",t)}function je(e){return void 0===e}function $e(e){return"number"==typeof e}function Ie(e){return"number"==typeof e&&e%1==0}function Ce(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Ne(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function ke(e,t,n){if(0!==e.length)return e.reduce(((e,i)=>{const s=[t(i),i];return e&&n(e[0],s[0])===e[0]?e:s}),null)[1]}function De(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Le(e){if(null==e)return null;if("object"!=typeof e)throw new r("Week settings must be an object");if(!Ue(e.firstDay,1,7)||!Ue(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some((e=>!Ue(e,1,7))))throw new r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ue(e,t,n){return Ie(e)&&e>=t&&e<=n}function Ge(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function qe(e){return je(e)||null===e||""===e?void 0:parseInt(e,10)}function xe(e){return je(e)||null===e||""===e?void 0:parseFloat(e)}function Ae(e){if(!je(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Be(e,t,n=!1){const i=10**t;return(n?Math.trunc:Math.round)(e*i)/i}function Fe(e){return e%4==0&&(e%100!=0||e%400==0)}function Ve(e){return Fe(e)?366:365}function Me(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?Fe(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function _e(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function We(e,t,n){return-we(ge(e,1,t),n)+t-1}function ze(e,t=4,n=1){const i=We(e,t,n),s=We(e+1,t,n);return(Ve(e)-i+s)/7}function Ze(e){return e>99?e:e>ue.twoDigitCutoffYear?1900+e:2e3+e}function Ye(e,t,n,i=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(o.timeZone=i);const a={timeZoneName:t,...o},r=new Intl.DateTimeFormat(n,a).formatToParts(s).find((e=>"timezonename"===e.type.toLowerCase()));return r?r.value:null}function He(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const i=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-i:i)}function Ke(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new r(`Invalid unit value ${e}`);return t}function Qe(e,t){const n={};for(const i in e)if(De(e,i)){const s=e[i];if(null==s)continue;n[t(i)]=Ke(s)}return n}function Xe(e,t){const n=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${Ge(n,2)}:${Ge(i,2)}`;case"narrow":return`${s}${n}${i>0?`:${i}`:""}`;case"techie":return`${s}${Ge(n,2)}${Ge(i,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function et(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const tt=["January","February","March","April","May","June","July","August","September","October","November","December"],nt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],it=["J","F","M","A","M","J","J","A","S","O","N","D"];function st(e){switch(e){case"narrow":return[...it];case"short":return[...nt];case"long":return[...tt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ot=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],at=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],rt=["M","T","W","T","F","S","S"];function ct(e){switch(e){case"narrow":return[...rt];case"short":return[...at];case"long":return[...ot];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const lt=["AM","PM"],pt=["Before Christ","Anno Domini"],ht=["BC","AD"],ut=["B","A"];function dt(e){switch(e){case"narrow":return[...ut];case"short":return[...ht];case"long":return[...pt];default:return null}}function yt(e,t){let n="";for(const i of e)i.literal?n+=i.val:n+=t(i.val);return n}const mt={D:u,DD:d,DDD:m,DDDD:f,t:g,tt:b,ttt:O,tttt:w,T:S,TT:T,TTT:J,TTTT:P,f:v,ff:R,fff:I,ffff:N,F:E,FF:j,FFF:C,FFFF:k};class ft{static create(e,t={}){return new ft(e,t)}static parseFormat(e){let t=null,n="",i=!1;const s=[];for(let o=0;o<e.length;o++){const a=e.charAt(o);"'"===a?(n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),t=null,n="",i=!i):i||a===t?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,t=a)}return n.length>0&&s.push({literal:i||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(e){return mt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Ge(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),i=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(t,n)=>this.loc.extract(e,t,n),o=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",a=()=>n?function(e){return lt[e.hour<12?0:1]}(e):s({hour:"numeric",hourCycle:"h12"},"dayperiod"),r=(t,i)=>n?function(e,t){return st(t)[e.month-1]}(e,t):s(i?{month:t}:{month:t,day:"numeric"},"month"),c=(t,i)=>n?function(e,t){return ct(t)[e.weekday-1]}(e,t):s(i?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=ft.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},p=t=>n?function(e,t){return dt(t)[e.year<0?0:1]}(e,t):s({era:t},"era");return yt(ft.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return a();case"d":return i?s({day:"numeric"},"day"):this.num(e.day);case"dd":return i?s({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?s({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?s({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return r("short",!0);case"LLLL":return r("long",!0);case"LLLLL":return r("narrow",!0);case"M":return i?s({month:"numeric"},"month"):this.num(e.month);case"MM":return i?s({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return r("short",!1);case"MMMM":return r("long",!1);case"MMMMM":return r("narrow",!1);case"y":return i?s({year:"numeric"},"year"):this.num(e.year);case"yy":return i?s({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?s({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?s({year:"numeric"},"year"):this.num(e.year,6);case"G":return p("short");case"GG":return p("long");case"GGGGG":return p("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=ft.parseFormat(t),s=i.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return yt(i,(e=>t=>{const i=n(t);return i?this.num(e.get(i),t.length):t})(e.shiftTo(...s.map(n).filter((e=>e)))))}}const gt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function bt(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Ot(...e){return t=>e.reduce((([e,n,i],s)=>{const[o,a,r]=s(t,i);return[{...e,...o},a||n,r]}),[{},null,1]).slice(0,2)}function wt(e,...t){if(null==e)return[null,null];for(const[n,i]of t){const t=n.exec(e);if(t)return i(t)}return[null,null]}function St(...e){return(t,n)=>{const i={};let s;for(s=0;s<e.length;s++)i[e[s]]=qe(t[n+s]);return[i,null,n+s]}}const Tt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Jt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Pt=RegExp(`${Jt.source}${`(?:${Tt.source}?(?:\\[(${gt.source})\\])?)?`}`),vt=RegExp(`(?:T${Pt.source})?`),Et=St("weekYear","weekNumber","weekDay"),Rt=St("year","ordinal"),jt=RegExp(`${Jt.source} ?(?:${Tt.source}|(${gt.source}))?`),$t=RegExp(`(?: ${jt.source})?`);function It(e,t,n){const i=e[t];return je(i)?n:qe(i)}function Ct(e,t){return[{hours:It(e,t,0),minutes:It(e,t+1,0),seconds:It(e,t+2,0),milliseconds:Ae(e[t+3])},null,t+4]}function Nt(e,t){const n=!e[t]&&!e[t+1],i=He(e[t+1],e[t+2]);return[{},n?null:te.instance(i),t+3]}function kt(e,t){return[{},e[t]?A.create(e[t]):null,t+1]}const Dt=RegExp(`^T?${Jt.source}$`),Lt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ut(e){const[t,n,i,s,o,a,r,c,l]=e,p="-"===t[0],h=c&&"-"===c[0],u=(e,t=!1)=>void 0!==e&&(t||e&&p)?-e:e;return[{years:u(xe(n)),months:u(xe(i)),weeks:u(xe(s)),days:u(xe(o)),hours:u(xe(a)),minutes:u(xe(r)),seconds:u(xe(c),"-0"===c),milliseconds:u(Ae(l),h)}]}const Gt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function qt(e,t,n,i,s,o,a){const r={year:2===t.length?Ze(qe(t)):qe(t),month:nt.indexOf(n)+1,day:qe(i),hour:qe(s),minute:qe(o)};return a&&(r.second=qe(a)),e&&(r.weekday=e.length>3?ot.indexOf(e)+1:at.indexOf(e)+1),r}const xt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function At(e){const[,t,n,i,s,o,a,r,c,l,p,h]=e,u=qt(t,s,i,n,o,a,r);let d;return d=c?Gt[c]:l?0:He(p,h),[u,new te(d)]}const Bt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Vt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Mt(e){const[,t,n,i,s,o,a,r]=e;return[qt(t,s,i,n,o,a,r),te.utcInstance]}function _t(e){const[,t,n,i,s,o,a,r]=e;return[qt(t,r,n,i,s,o,a),te.utcInstance]}const Wt=bt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,vt),zt=bt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,vt),Zt=bt(/(\d{4})-?(\d{3})/,vt),Yt=bt(Pt),Ht=Ot((function(e,t){return[{year:It(e,t),month:It(e,t+1,1),day:It(e,t+2,1)},null,t+3]}),Ct,Nt,kt),Kt=Ot(Et,Ct,Nt,kt),Qt=Ot(Rt,Ct,Nt,kt),Xt=Ot(Ct,Nt,kt);const en=Ot(Ct);const tn=bt(/(\d{4})-(\d\d)-(\d\d)/,$t),nn=bt(jt),sn=Ot(Ct,Nt,kt);const on="Invalid Duration",an={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},rn={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...an},cn=365.2425,ln=30.436875,pn={years:{quarters:4,months:12,weeks:52.1775,days:cn,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:ln,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...an},hn=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],un=hn.slice(0).reverse();function dn(e,t,n=!1){const i={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new fn(i)}function yn(e,t){let n=t.milliseconds??0;for(const i of un.slice(1))t[i]&&(n+=t[i]*e[i].milliseconds);return n}function mn(e,t){const n=yn(e,t)<0?-1:1;hn.reduceRight(((i,s)=>{if(je(t[s]))return i;if(i){const o=t[i]*n,a=e[s][i],r=Math.floor(o/a);t[s]+=r*n,t[i]-=r*a*n}return s}),null),hn.reduce(((n,i)=>{if(je(t[i]))return n;if(n){const s=t[n]%1;t[n]-=s,t[i]+=s*e[n][i]}return i}),null)}class fn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?pn:rn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||X.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return fn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new r("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new fn({values:Qe(e,fn.normalizeUnit),loc:X.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if($e(e))return fn.fromMillis(e);if(fn.isDuration(e))return e;if("object"==typeof e)return fn.fromObject(e);throw new r(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return wt(e,[Lt,Ut])}(e);return n?fn.fromObject(n,t):fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return wt(e,[Dt,en])}(e);return n?fn.fromObject(n,t):fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new r("need to specify a reason the Duration is invalid");const n=e instanceof de?e:new de(e,t);if(ue.throwOnInvalid)throw new s(n);return new fn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new a(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ft.create(this.loc,n).formatDurationFromString(this,e):on}toHuman(e={}){if(!this.isValid)return on;const t=hn.map((t=>{const n=this.values[t];return je(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Be(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1};return pi.fromMillis(t,{zone:"UTC"}).toISOTime(e)}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?yn(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=fn.fromDurationLike(e),n={};for(const e of hn)(De(t.values,e)||De(this.values,e))&&(n[e]=t.get(e)+this.get(e));return dn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=fn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Ke(e(this.values[n],n));return dn(this,{values:t},!0)}get(e){return this[fn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return dn(this,{values:{...this.values,...Qe(e,fn.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){return dn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return mn(this.matrix,e),dn(this,{values:e},!0)}rescale(){if(!this.isValid)return this;return dn(this,{values:function(e){const t={};for(const[n,i]of Object.entries(e))0!==i&&(t[n]=i);return t}(this.normalize().shiftToAll().toObject())},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>fn.normalizeUnit(e)));const t={},n={},i=this.toObject();let s;for(const o of hn)if(e.indexOf(o)>=0){s=o;let e=0;for(const t in n)e+=this.matrix[t][o]*n[t],n[t]=0;$e(i[o])&&(e+=i[o]);const a=Math.trunc(e);t[o]=a,n[o]=(1e3*e-1e3*a)/1e3}else $e(i[o])&&(n[o]=i[o]);for(const e in n)0!==n[e]&&(t[s]+=e===s?n[e]:n[e]/this.matrix[s][e]);return mn(this.matrix,t),dn(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return dn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const i of hn)if(t=this.values[i],n=e.values[i],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const gn="Invalid Interval";class bn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new r("need to specify a reason the Interval is invalid");const n=e instanceof de?e:new de(e,t);if(ue.throwOnInvalid)throw new i(n);return new bn({invalid:n})}static fromDateTimes(e,t){const n=hi(e),i=hi(t),s=function(e,t){return e&&e.isValid?t&&t.isValid?t<e?bn.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null:bn.invalid("missing or invalid end"):bn.invalid("missing or invalid start")}(n,i);return null==s?new bn({start:n,end:i}):s}static after(e,t){const n=fn.fromDurationLike(t),i=hi(e);return bn.fromDateTimes(i,i.plus(n))}static before(e,t){const n=fn.fromDurationLike(t),i=hi(e);return bn.fromDateTimes(i.minus(n),i)}static fromISO(e,t){const[n,i]=(e||"").split("/",2);if(n&&i){let e,s,o,a;try{e=pi.fromISO(n,t),s=e.isValid}catch(i){s=!1}try{o=pi.fromISO(i,t),a=o.isValid}catch(i){a=!1}if(s&&a)return bn.fromDateTimes(e,o);if(s){const n=fn.fromISO(i,t);if(n.isValid)return bn.after(e,n)}else if(a){const e=fn.fromISO(n,t);if(e.isValid)return bn.before(o,e)}}return bn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;const n=this.start.startOf(e,t);let i;return i=t?.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return!!this.isValid&&this.s>e}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?bn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(hi).filter((e=>this.contains(e))).sort(((e,t)=>e.toMillis()-t.toMillis())),n=[];let{s:i}=this,s=0;for(;i<this.e;){const e=t[s]||this.e,o=+e>+this.e?this.e:e;n.push(bn.fromDateTimes(i,o)),i=o,s+=1}return n}splitBy(e){const t=fn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:i}=this,s=1;const o=[];for(;i<this.e;){const e=this.start.plus(t.mapUnits((e=>e*s)));n=+e>+this.e?this.e:e,o.push(bn.fromDateTimes(i,n)),i=n,s+=1}return o}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return!!this.isValid&&+this.e==+e.s}abutsEnd(e){return!!this.isValid&&+e.e==+this.s}engulfs(e){return!!this.isValid&&(this.s<=e.s&&this.e>=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:bn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return bn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const i=[],s=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),o=Array.prototype.concat(...s).sort(((e,t)=>e.time-t.time));for(const e of o)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&i.push(bn.fromDateTimes(t,e.time)),t=null);return bn.merge(i)}difference(...e){return bn.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:gn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=u,t={}){return this.isValid?ft.create(this.s.loc.clone(t),e).formatInterval(this):gn}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:gn}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gn}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:gn}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:gn}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):fn.invalid(this.invalidReason)}mapEndpoints(e){return bn.fromDateTimes(e(this.s),e(this.e))}}let On=class{static hasDST(e=ue.defaultZone){const t=pi.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return A.isValidZone(e)}static normalizeZone(e){return ie(e,ue.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||X.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||X.create(t,n,s)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:s="gregory"}={}){return(i||X.create(t,n,s)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||X.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||X.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return X.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return X.create(t,null,"gregory").eras(e)}static features(){return{relative:Ce(),localeWeek:Ne()}}};function wn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),i=n(t)-n(e);return Math.floor(fn.fromMillis(i).as("days"))}function Sn(e,t,n,i){let[s,o,a,r]=function(e,t,n){const i=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=wn(e,t);return(n-n%7)/7}],["days",wn]],s={},o=e;let a,r;for(const[c,l]of i)n.indexOf(c)>=0&&(a=c,s[c]=l(e,t),r=o.plus(s),r>t?(s[c]--,(e=o.plus(s))>t&&(r=e,s[c]--,e=o.plus(s))):e=r);return[e,s,r,a]}(e,t,n);const c=t-s,l=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(a<t&&(a=s.plus({[r]:1})),a!==s&&(o[r]=(o[r]||0)+c/(a-s)));const p=fn.fromObject(o,i);return l.length>0?fn.fromMillis(c,i).shiftTo(...l).plus(p):p}const Tn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Jn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pn=Tn.hanidec.replace(/[\[|\]]/g,"").split("");function vn({numberingSystem:e},t=""){return new RegExp(`${Tn[e||"latn"]}${t}`)}const En="missing Intl.DateTimeFormat.formatToParts support";function Rn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);if(-1!==e[n].search(Tn.hanidec))t+=Pn.indexOf(e[n]);else for(const e in Jn){const[n,s]=Jn[e];i>=n&&i<=s&&(t+=i-n)}}return parseInt(t,10)}return t}(e))}}const jn=`[ ${String.fromCharCode(160)}]`,$n=new RegExp(jn,"g");function In(e){return e.replace(/\./g,"\\.?").replace($n,jn)}function Cn(e){return e.replace(/\./g,"").replace($n," ").toLowerCase()}function Nn(e,t){return null===e?null:{regex:RegExp(e.map(In).join("|")),deser:([n])=>e.findIndex((e=>Cn(n)===Cn(e)))+t}}function kn(e,t){return{regex:e,deser:([,e,t])=>He(e,t),groups:t}}function Dn(e){return{regex:e,deser:([e])=>e}}const Ln={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Un=null;function Gn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=xn(ft.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function qn(e,t,n){const i=Gn(ft.parseFormat(n),e),s=i.map((t=>function(e,t){const n=vn(t),i=vn(t,"{2}"),s=vn(t,"{3}"),o=vn(t,"{4}"),a=vn(t,"{6}"),r=vn(t,"{1,2}"),c=vn(t,"{1,3}"),l=vn(t,"{1,6}"),p=vn(t,"{1,9}"),h=vn(t,"{2,4}"),u=vn(t,"{4,6}"),d=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},y=(y=>{if(e.literal)return d(y);switch(y.val){case"G":return Nn(t.eras("short"),0);case"GG":return Nn(t.eras("long"),0);case"y":return Rn(l);case"yy":case"kk":return Rn(h,Ze);case"yyyy":case"kkkk":return Rn(o);case"yyyyy":return Rn(u);case"yyyyyy":return Rn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Rn(r);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Rn(i);case"MMM":return Nn(t.months("short",!0),1);case"MMMM":return Nn(t.months("long",!0),1);case"LLL":return Nn(t.months("short",!1),1);case"LLLL":return Nn(t.months("long",!1),1);case"o":case"S":return Rn(c);case"ooo":case"SSS":return Rn(s);case"u":return Dn(p);case"uu":return Dn(r);case"uuu":case"E":case"c":return Rn(n);case"a":return Nn(t.meridiems(),0);case"EEE":return Nn(t.weekdays("short",!1),1);case"EEEE":return Nn(t.weekdays("long",!1),1);case"ccc":return Nn(t.weekdays("short",!0),1);case"cccc":return Nn(t.weekdays("long",!0),1);case"Z":case"ZZ":return kn(new RegExp(`([+-]${r.source})(?::(${i.source}))?`),2);case"ZZZ":return kn(new RegExp(`([+-]${r.source})(${i.source})?`),2);case"z":return Dn(/[a-z_+-/]{1,256}?/i);case" ":return Dn(/[^\S\n\r]/);default:return d(y)}})(e)||{invalidReason:En};return y.token=e,y}(t,e))),a=s.find((e=>e.invalidReason));if(a)return{input:t,tokens:i,invalidReason:a.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(s),a=RegExp(e,"i"),[r,c]=function(e,t,n){const i=e.match(t);if(i){const e={};let t=1;for(const s in n)if(De(n,s)){const o=n[s],a=o.groups?o.groups+1:1;!o.literal&&o.token&&(e[o.token.val[0]]=o.deser(i.slice(t,t+a))),t+=a}return[i,e]}return[i,{}]}(t,a,n),[l,p,h]=c?function(e){let t,n=null;return je(e.z)||(n=A.create(e.z)),je(e.Z)||(n||(n=new te(e.Z)),t=e.Z),je(e.q)||(e.M=3*(e.q-1)+1),je(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),je(e.u)||(e.S=Ae(e.u)),[Object.keys(e).reduce(((t,n)=>{const i=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return i&&(t[i]=e[n]),t}),{}),n,t]}(c):[null,null,void 0];if(De(c,"a")&&De(c,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:i,regex:a,rawMatches:r,matches:c,result:l,zone:p,specificOffset:h}}}function xn(e,t){if(!e)return null;const n=ft.create(t,e).dtFormatter((Un||(Un=pi.fromMillis(1555555555555)),Un)),i=n.formatToParts(),s=n.resolvedOptions();return i.map((t=>function(e,t,n){const{type:i,value:s}=e;if("literal"===i){const e=/^\s+$/.test(s);return{literal:!e,val:e?" ":s}}const o=t[i];let a=i;"hour"===i&&(a=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let r=Ln[a];if("object"==typeof r&&(r=r[o]),r)return{literal:!1,val:r}}(t,e,s)))}const An="Invalid DateTime",Bn=864e13;function Fn(e){return new de("unsupported zone",`the zone "${e.name}" is not supported`)}function Vn(e){return null===e.weekData&&(e.weekData=Se(e.c)),e.weekData}function Mn(e){return null===e.localWeekData&&(e.localWeekData=Se(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function _n(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new pi({...n,...t,old:n})}function Wn(e,t,n){let i=e-60*t*1e3;const s=n.offset(i);if(t===s)return[i,t];i-=60*(s-t)*1e3;const o=n.offset(i);return s===o?[i,s]:[e-60*Math.min(s,o)*1e3,Math.max(s,o)]}function zn(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Zn(e,t,n){return Wn(_e(e),t,n)}function Yn(e,t){const n=e.o,i=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o={...e.c,year:i,month:s,day:Math.min(e.c.day,Me(i,s))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},a=fn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),r=_e(o);let[c,l]=Wn(r,n,e.zone);return 0!==a&&(c+=a,l=e.zone.offset(c)),{ts:c,o:l}}function Hn(e,t,n,i,s,o){const{setZone:a,zone:r}=n;if(e&&0!==Object.keys(e).length||t){const i=t||r,s=pi.fromObject(e,{...n,zone:i,specificOffset:o});return a?s:s.setZone(r)}return pi.invalid(new de("unparsable",`the input "${s}" can't be parsed as ${i}`))}function Kn(e,t,n=!0){return e.isValid?ft.create(X.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function Qn(e,t){const n=e.c.year>9999||e.c.year<0;let i="";return n&&e.c.year>=0&&(i+="+"),i+=Ge(e.c.year,n?6:4),t?(i+="-",i+=Ge(e.c.month),i+="-",i+=Ge(e.c.day)):(i+=Ge(e.c.month),i+=Ge(e.c.day)),i}function Xn(e,t,n,i,s,o){let a=Ge(e.c.hour);return t?(a+=":",a+=Ge(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=":")):a+=Ge(e.c.minute),0===e.c.millisecond&&0===e.c.second&&n||(a+=Ge(e.c.second),0===e.c.millisecond&&i||(a+=".",a+=Ge(e.c.millisecond,3))),s&&(e.isOffsetFixed&&0===e.offset&&!o?a+="Z":e.o<0?(a+="-",a+=Ge(Math.trunc(-e.o/60)),a+=":",a+=Ge(Math.trunc(-e.o%60))):(a+="+",a+=Ge(Math.trunc(e.o/60)),a+=":",a+=Ge(Math.trunc(e.o%60)))),o&&(a+="["+e.zone.ianaName+"]"),a}const ei={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},ti={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ni={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ii=["year","month","day","hour","minute","second","millisecond"],si=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],oi=["year","ordinal","hour","minute","second","millisecond"];function ai(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new a(e);return t}(e)}}function ri(e,t){const n=ie(t.zone,ue.defaultZone),i=X.fromObject(t),s=ue.now();let o,a;if(je(e.year))o=s;else{for(const t of ii)je(e[t])&&(e[t]=ei[t]);const t=Ee(e)||Re(e);if(t)return pi.invalid(t);const i=n.offset(s);[o,a]=Zn(e,i,n)}return new pi({ts:o,zone:n,loc:i,o:a})}function ci(e,t,n){const i=!!je(n.round)||n.round,s=(e,s)=>{e=Be(e,i||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,s)},o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return s(o(n.unit),n.unit);for(const e of n.units){const t=o(e);if(Math.abs(t)>=1)return s(t,e)}return s(e>t?-0:0,n.units[n.units.length-1])}function li(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class pi{constructor(e){const t=e.zone||ue.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new de("invalid input"):null)||(t.isValid?null:Fn(t));this.ts=je(e.ts)?ue.now():e.ts;let i=null,s=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,s]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);i=zn(this.ts,e),n=Number.isNaN(i.year)?new de("invalid input"):null,i=n?null:i,s=n?null:e}}this._zone=t,this.loc=e.loc||X.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=s,this.isLuxonDateTime=!0}static now(){return new pi({})}static local(){const[e,t]=li(arguments),[n,i,s,o,a,r,c]=t;return ri({year:n,month:i,day:s,hour:o,minute:a,second:r,millisecond:c},e)}static utc(){const[e,t]=li(arguments),[n,i,s,o,a,r,c]=t;return e.zone=te.utcInstance,ri({year:n,month:i,day:s,hour:o,minute:a,second:r,millisecond:c},e)}static fromJSDate(e,t={}){const n=(i=e,"[object Date]"===Object.prototype.toString.call(i)?e.valueOf():NaN);var i;if(Number.isNaN(n))return pi.invalid("invalid input");const s=ie(t.zone,ue.defaultZone);return s.isValid?new pi({ts:n,zone:s,loc:X.fromObject(t)}):pi.invalid(Fn(s))}static fromMillis(e,t={}){if($e(e))return e<-Bn||e>Bn?pi.invalid("Timestamp out of range"):new pi({ts:e,zone:ie(t.zone,ue.defaultZone),loc:X.fromObject(t)});throw new r(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if($e(e))return new pi({ts:1e3*e,zone:ie(t.zone,ue.defaultZone),loc:X.fromObject(t)});throw new r("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=ie(t.zone,ue.defaultZone);if(!n.isValid)return pi.invalid(Fn(n));const i=X.fromObject(t),s=Qe(e,ai),{minDaysInFirstWeek:a,startOfWeek:r}=ve(s,i),c=ue.now(),l=je(t.specificOffset)?n.offset(c):t.specificOffset,p=!je(s.ordinal),h=!je(s.year),u=!je(s.month)||!je(s.day),d=h||u,y=s.weekYear||s.weekNumber;if((d||p)&&y)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&p)throw new o("Can't mix ordinal dates with month/day");const m=y||s.weekday&&!d;let f,g,b=zn(c,l);m?(f=si,g=ti,b=Se(b,a,r)):p?(f=oi,g=ni,b=Je(b)):(f=ii,g=ei);let O=!1;for(const e of f){je(s[e])?s[e]=O?g[e]:b[e]:O=!0}const w=m?function(e,t=4,n=1){const i=Ie(e.weekYear),s=Ue(e.weekNumber,1,ze(e.weekYear,t,n)),o=Ue(e.weekday,1,7);return i?s?!o&&fe("weekday",e.weekday):fe("week",e.weekNumber):fe("weekYear",e.weekYear)}(s,a,r):p?function(e){const t=Ie(e.year),n=Ue(e.ordinal,1,Ve(e.year));return t?!n&&fe("ordinal",e.ordinal):fe("year",e.year)}(s):Ee(s),S=w||Re(s);if(S)return pi.invalid(S);const T=m?Te(s,a,r):p?Pe(s):s,[J,P]=Zn(T,l,n),v=new pi({ts:J,zone:n,o:P,loc:i});return s.weekday&&d&&e.weekday!==v.weekday?pi.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${v.toISO()}`):v}static fromISO(e,t={}){const[n,i]=function(e){return wt(e,[Wt,Ht],[zt,Kt],[Zt,Qt],[Yt,Xt])}(e);return Hn(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,i]=function(e){return wt(function(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[xt,At])}(e);return Hn(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,i]=function(e){return wt(e,[Bt,Mt],[Ft,Mt],[Vt,_t])}(e);return Hn(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(je(e)||je(t))throw new r("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:s=null}=n,o=X.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),[a,c,l,p]=function(e,t,n){const{result:i,zone:s,specificOffset:o,invalidReason:a}=qn(e,t,n);return[i,s,o,a]}(o,e,t);return p?pi.invalid(p):Hn(a,c,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return pi.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,i]=function(e){return wt(e,[tn,Ht],[nn,sn])}(e);return Hn(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new r("need to specify a reason the DateTime is invalid");const i=e instanceof de?e:new de(e,t);if(ue.throwOnInvalid)throw new n(i);return new pi({invalid:i})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=xn(e,X.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return Gn(ft.parseFormat(e),X.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vn(this).weekYear:NaN}get weekNumber(){return this.isValid?Vn(this).weekNumber:NaN}get weekday(){return this.isValid?Vn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?Mn(this).weekday:NaN}get localWeekNumber(){return this.isValid?Mn(this).weekNumber:NaN}get localWeekYear(){return this.isValid?Mn(this).weekYear:NaN}get ordinal(){return this.isValid?Je(this.c).ordinal:NaN}get monthShort(){return this.isValid?On.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?On.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?On.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?On.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const e=864e5,t=6e4,n=_e(this.c),i=this.zone.offset(n-e),s=this.zone.offset(n+e),o=this.zone.offset(n-i*t),a=this.zone.offset(n-s*t);if(o===a)return[this];const r=n-o*t,c=n-a*t,l=zn(r,o),p=zn(c,a);return l.hour===p.hour&&l.minute===p.minute&&l.second===p.second&&l.millisecond===p.millisecond?[_n(this,{ts:r}),_n(this,{ts:c})]:[this]}get isInLeapYear(){return Fe(this.year)}get daysInMonth(){return Me(this.year,this.month)}get daysInYear(){return this.isValid?Ve(this.year):NaN}get weeksInWeekYear(){return this.isValid?ze(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?ze(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:i}=ft.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(te.instance(e),t)}toLocal(){return this.setZone(ue.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=ie(e,ue.defaultZone)).equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[i]=Zn(n,t,e)}return _n(this,{ts:i,zone:e})}return pi.invalid(Fn(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return _n(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Qe(e,ai),{minDaysInFirstWeek:n,startOfWeek:i}=ve(t,this.loc),s=!je(t.weekYear)||!je(t.weekNumber)||!je(t.weekday),a=!je(t.ordinal),r=!je(t.year),c=!je(t.month)||!je(t.day),l=r||c,p=t.weekYear||t.weekNumber;if((l||a)&&p)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new o("Can't mix ordinal dates with month/day");let h;s?h=Te({...Se(this.c,n,i),...t},n,i):je(t.ordinal)?(h={...this.toObject(),...t},je(t.day)&&(h.day=Math.min(Me(h.year,h.month),h.day))):h=Pe({...Je(this.c),...t});const[u,d]=Zn(h,this.o,this.zone);return _n(this,{ts:u,o:d})}plus(e){if(!this.isValid)return this;return _n(this,Yn(this,fn.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return _n(this,Yn(this,fn.fromDurationLike(e).negate()))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;const n={},i=fn.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i)if(t){const e=this.loc.getStartOfWeek(),{weekday:t}=this;t<e&&(n.weekNumber=this.weekNumber-1),n.weekday=e}else n.weekday=1;if("quarters"===i){const e=Math.ceil(this.month/3);n.month=3*(e-1)+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ft.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):An}toLocaleString(e=u,t={}){return this.isValid?ft.create(this.loc.clone(t),e).formatDateTime(this):An}toLocaleParts(e={}){return this.isValid?ft.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const o="extended"===e;let a=Qn(this,o);return a+="T",a+=Xn(this,o,t,n,i,s),a}toISODate({format:e="extended"}={}){return this.isValid?Qn(this,"extended"===e):null}toISOWeekDate(){return Kn(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:s=!1,format:o="extended"}={}){if(!this.isValid)return null;return(i?"T":"")+Xn(this,"extended"===o,t,e,n,s)}toRFC2822(){return Kn(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Kn(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Qn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),Kn(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():An}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return fn.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(r=t,Array.isArray(r)?r:[r]).map(fn.normalizeUnit),o=e.valueOf()>this.valueOf(),a=Sn(o?this:e,o?e:this,s,i);var r;return o?a.negate():a}diffNow(e="milliseconds",t={}){return this.diff(pi.now(),e,t)}until(e){return this.isValid?bn.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;const i=e.valueOf(),s=this.setZone(e.zone,{keepLocalTime:!0});return s.startOf(t,n)<=i&&i<=s.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||pi.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0;let i=["years","months","days","hours","minutes","seconds"],s=e.unit;return Array.isArray(e.unit)&&(i=e.unit,s=void 0),ci(t,this.plus(n),{...e,numeric:"always",units:i,unit:s})}toRelativeCalendar(e={}){return this.isValid?ci(e.base||pi.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(pi.isDateTime))throw new r("min requires all arguments be DateTimes");return ke(e,(e=>e.valueOf()),Math.min)}static max(...e){if(!e.every(pi.isDateTime))throw new r("max requires all arguments be DateTimes");return ke(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:i=null,numberingSystem:s=null}=n;return qn(X.fromOpts({locale:i,numberingSystem:s,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return pi.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return u}static get DATE_MED(){return d}static get DATE_MED_WITH_WEEKDAY(){return y}static get DATE_FULL(){return m}static get DATE_HUGE(){return f}static get TIME_SIMPLE(){return g}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return O}static get TIME_WITH_LONG_OFFSET(){return w}static get TIME_24_SIMPLE(){return S}static get TIME_24_WITH_SECONDS(){return T}static get TIME_24_WITH_SHORT_OFFSET(){return J}static get TIME_24_WITH_LONG_OFFSET(){return P}static get DATETIME_SHORT(){return v}static get DATETIME_SHORT_WITH_SECONDS(){return E}static get DATETIME_MED(){return R}static get DATETIME_MED_WITH_SECONDS(){return j}static get DATETIME_MED_WITH_WEEKDAY(){return $}static get DATETIME_FULL(){return I}static get DATETIME_FULL_WITH_SECONDS(){return C}static get DATETIME_HUGE(){return N}static get DATETIME_HUGE_WITH_SECONDS(){return k}}function hi(e){if(pi.isDateTime(e))return e;if(e&&e.valueOf&&$e(e.valueOf()))return pi.fromJSDate(e);if(e&&"object"==typeof e)return pi.fromObject(e);throw new r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}class ui{#e;#t;#n;constructor(e,t,n){this.#e=e,this.#t=t,this.#n=n}get locale(){return this.#e}get timeZone(){return this.#t}getResource(e,t){if(!e)return null;const n=e.startsWith("@@:")?e.substring(3):e,i=t??n,s=this.#n[n];return s||i}format(e,...t){const n=this.getResource(e);if(!n)return"";const i=[],s=n.replace(/\{(\d+)\}/g,((e,n)=>(i[n]=!0,n<t.length?t[n]:e))),o=[];for(let e=0;e<t.length;e++)i[e]||o.push(t[e]);return s+(o.length?` [${o.join(", ")}]`:"")}formatCurrency(e,t){if(null==e)return null;try{return new Intl.NumberFormat(this.#e,{style:"currency",currency:t??this.getResource("/@system/default/currency")??void 0}).format(e).replace(String.fromCharCode(160)," ")}catch{return e.toString()}}formatDate(e){if(!e)return null;try{let t;return t=e instanceof Date?pi.fromJSDate(e).setLocale(this.#e):pi.fromISO(e).setLocale(this.#e),t.startOf("day").toLocaleString({year:"2-digit",month:"numeric",day:"numeric"})}catch(t){return e.toString()}}formatDateTime(e){if(!e)return null;try{let t;return t=e instanceof Date?pi.fromJSDate(e).setLocale(this.#e):pi.fromISO(e).setLocale(this.#e),t.toLocaleString({year:"2-digit",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"})}catch{return e.toString()}}formatNumber(e,t){if(null==e)return null;try{return new Intl.NumberFormat(t?.locale??this.#e,{style:"decimal",minimumFractionDigits:t?.digits??t?.minDigits??0,maximumFractionDigits:t?.digits??t?.maxDigits??20}).format(e)||e.toString()}catch{return e.toString()}}formatQuantity(e,t){return this.formatNumber(e,t)}formatTime(e){if(null==e)return null;try{let t;return t=e instanceof Date?pi.fromJSDate(e).setLocale(this.#e):pi.fromISO(e).setLocale(this.#e),t.toLocaleString(pi.TIME_24_WITH_SECONDS)}catch{return e.toString()}}formatUnitValue(e){return this.formatNumber(e,{minDigits:2,maxDigits:8})}formatValue(e){return this.formatNumber(e,{digits:2})}formatWeight(e){return this.formatNumber(e,{minDigits:3,maxDigits:6})}localizeNode(e){e instanceof HTMLElement&&Array.from(e.attributes).forEach((t=>{const n=t.value.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,((e,t)=>this.getResource(t)??""));n!==t.value&&e.setAttribute(t.name,n)}));const t=e instanceof HTMLTemplateElement?e.content:e;for(const e of t.childNodes){if(!e.hasChildNodes()&&e.textContent){const t=e.textContent.replace(/@@:([\\/@\\.\\-\\+\\#\w]+)/g,((e,t)=>this.getResource(t)??""));t!==e.textContent&&(e.textContent=t)}t.hasChildNodes()&&this.localizeNode(e)}}observeNode(e){this.localizeNode(e);new MutationObserver((e=>{e.forEach((e=>{if("childList"===e.type)for(const t of e.addedNodes)this.localizeNode(t)}))})).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}class di{#i;constructor(e){this.#i=e}async fetch(e,t){return this.#i.fetch(e,t)}async fetchBlob(e,t){const n=await this.#i.fetch(e,t);return await this.handleResponse(n),n.blob()}async fetchJson(e,t){const n=await this.#i.fetch(e,t);await this.handleResponse(n);const i=await n.text();return null==i||""===i?null:JSON.parse(i)}async fetchJsonRequired(e,t){const n=await this.fetchJson(e,t);if(null==n)throw new Error(`Not found: ${e}`);return n}async fetchOk(e,t){const n=await this.#i.fetch(e,t);return await this.handleResponse(n),n}async fetchText(e,t){const n=await this.#i.fetch(e,t);return await this.handleResponse(n),n.text()}async handleResponse(e){if(!e.ok){const t=await e.text();let n=null;try{const e=JSON.parse(t);n=new Error(e.message??t)}catch(i){n=new Error(`${e.status} ${t}`)}throw n}}}class yi{#s;#o;#a;#r=!1;#c;#l;constructor(e,t){this.#s=e,this.#o=t,this.#a=function(e){try{var t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),n=decodeURIComponent(globalThis.atob(t).split("").map((function(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`})).join(""));return JSON.parse(n)}catch(t){throw new Error("Error parsing token "+e)}}(t)}async close(){}async fetch(e,t){const n=`${this.#s}${e}`,i=t??{},s=`Bearer ${this.#o}`;return i.headers instanceof Headers?i.headers.append("Authorization",s):Array.isArray(i.headers)?i.headers.push(["Authorization",s]):i.headers?i.headers.Authorization=s:i.headers={Authorization:s},this.#r&&console.debug(`${i.method??"GET"} ${e}`),fetch(n,i)}get i18n(){return this.#c||(this.#c=(async()=>async function(e){const t=await e.web.fetchJson("/system/resources");return new ui(e.language,e.timeZone,t)}(this))()),this.#c}get jti(){return this.#a.jti}get jwt(){return this.#o}get language(){return this.#a.locale}get timeZone(){return this.#a.timeZone}get user(){return this.#a.sub}get web(){return this.#l||(this.#l=new di(this)),this.#l}}function mi(e,t,n){if(!e)throw new Error("Missing argument: host");if(!t)throw new Error("Missing argument: token");return e.toLowerCase().startsWith("http")||(e=`https://${e}.zenerp.app.br:8443`),new yi(e,t)}var fi=Object.freeze({__proto__:null,AuthService:class{#p;constructor(e){this.#p=e}async login(e){return this.#p.web.fetchJson("/auth/login",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async logout(){return this.#p.web.fetchJson("/auth/logout",{method:"POST"})}async me(){return this.#p.web.fetchJson("/auth/me",{method:"GET"})}async passwordRecover(e){const t=new URLSearchParams;return e&&t.set("username",String(e)),this.#p.web.fetchJson(`/auth/passwordRecover?${t.toString()}`,{method:"POST"})}async passwordReset(e,t){const n=new URLSearchParams;return e&&n.set("resetToken",String(e)),t&&n.set("newPassword",String(t)),this.#p.web.fetchJson(`/auth/passwordReset?${n.toString()}`,{method:"POST"})}async refresh(e){const t=new URLSearchParams;return e&&t.set("refreshToken",String(e)),this.#p.web.fetchJson(`/auth/refresh?${t.toString()}`,{method:"POST"})}async register(e){return this.#p.web.fetchJson("/auth/register",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},TokenResponse:class{accessToken;refreshToken}});var gi=Object.freeze({__proto__:null,Company:class{id;code;person;locale;timeZone;society;fiscalRegion;fiscalProfileCompany;currency;stockCluster;warehouse;priceList;image;creditLine;mailerConfig;tags;properties},CompanyService:class{#p;constructor(e){this.#p=e}async companyCreate(e){return this.#p.web.fetchJson("/catalog/company/company",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async companyDelete(e){return this.#p.web.fetchJson(`/catalog/company/company/${e}`,{method:"DELETE"})}async companyOpGetActive(){return this.#p.web.fetchJson("/catalog/company/companyOpGetActive",{method:"POST"})}async companyOpSetActive(e){return this.#p.web.fetchJson(`/catalog/company/companyOpSetActive/${e}`,{method:"POST"})}async companyRead(e){return this.#p.web.fetchJson(`/catalog/company/company?${e}`,{method:"GET"})}async companyReadById(e){return this.#p.web.fetchJson(`/catalog/company/company/${e}`,{method:"GET"})}async companyUpdate(e){return this.#p.web.fetchJson("/catalog/company/company",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async societyCreate(e){return this.#p.web.fetchJson("/catalog/company/society",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async societyDelete(e){return this.#p.web.fetchJson(`/catalog/company/society/${e}`,{method:"DELETE"})}async societyRead(e){return this.#p.web.fetchJson(`/catalog/company/society?${e}`,{method:"GET"})}async societyReadById(e){return this.#p.web.fetchJson(`/catalog/company/society/${e}`,{method:"GET"})}async societyUpdate(e){return this.#p.web.fetchJson("/catalog/company/society",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Society:class{id;code;description;tags;properties}});var bi=Object.freeze({__proto__:null,City:class{id;name;state;tags;properties},CityBasic:class{id;name;stateId;stateCode;stateName;countryId;countryCodeA2;countryCodeA3;countryCodeN;countryName;tags},Country:class{id;name;codeA2;codeA3;codeN;tags;properties},Geocode:class{latitude;longitude},LocationService:class{#p;constructor(e){this.#p=e}async cityCreate(e){return this.#p.web.fetchJson("/catalog/location/city",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async cityDelete(e){return this.#p.web.fetchJson(`/catalog/location/city/${e}`,{method:"DELETE"})}async cityOpFind(e){return this.#p.web.fetchJson("/catalog/location/cityOpFind",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async cityRead(e){return this.#p.web.fetchJson(`/catalog/location/city?${e}`,{method:"GET"})}async cityReadById(e){return this.#p.web.fetchJson(`/catalog/location/city/${e}`,{method:"GET"})}async cityUpdate(e){return this.#p.web.fetchJson("/catalog/location/city",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async countryCreate(e){return this.#p.web.fetchJson("/catalog/location/country",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async countryDelete(e){return this.#p.web.fetchJson(`/catalog/location/country/${e}`,{method:"DELETE"})}async countryRead(e){return this.#p.web.fetchJson(`/catalog/location/country?${e}`,{method:"GET"})}async countryReadById(e){return this.#p.web.fetchJson(`/catalog/location/country/${e}`,{method:"GET"})}async countryUpdate(e){return this.#p.web.fetchJson("/catalog/location/country",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async geocodeRead(e){const t=new URLSearchParams;return e&&t.set("address",String(e)),this.#p.web.fetchJson(`/catalog/location/geocode?${t.toString()}`,{method:"GET"})}async stateCreate(e){return this.#p.web.fetchJson("/catalog/location/state",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stateDelete(e){return this.#p.web.fetchJson(`/catalog/location/state/${e}`,{method:"DELETE"})}async stateRead(e){return this.#p.web.fetchJson(`/catalog/location/state?${e}`,{method:"GET"})}async stateReadById(e){return this.#p.web.fetchJson(`/catalog/location/state/${e}`,{method:"GET"})}async stateUpdate(e){return this.#p.web.fetchJson("/catalog/location/state",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async zipcodeRead(e,t){const n=new URLSearchParams;return e&&n.set("country",String(e)),t&&n.set("zipcode",String(t)),this.#p.web.fetchJson(`/catalog/location/zipcode?${n.toString()}`,{method:"GET"})}},State:class{id;code;name;country;tags;properties},Zipcode:class{zipcode;street;complement;district;city;state;country}});var Oi=Object.freeze({__proto__:null,Person:class{id;type;name;fantasyName;nationality;documentType;documentNumber;document2Type;document2Number;zipcode;street;number;complement;district;city;email;phone;comments;codeConversionList;priceListCost;priceListRetail;fiscalProfilePerson;personGroup;category1;category2;category3;category4;category5;personSalesperson;personShipping;tags;properties},PersonAddress:class{id;person;description;zipcode;street;number;complement;district;city;tags;properties},PersonBasic:class{id;type;name;fantasyName;documentType;documentNumber;tags},PersonComment:class{id;person;comments;tags;properties},PersonContact:class{id;person;type;description;tags;properties},PersonDocument:class{id;person;type;number;tags;properties},PersonGroup:class{id;code;description;priceListRetail;tags;properties},PersonService:class{#p;constructor(e){this.#p=e}async personAddressCreate(e){return this.#p.web.fetchJson("/catalog/person/personAddress",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personAddressDelete(e){return this.#p.web.fetchJson(`/catalog/person/personAddress/${e}`,{method:"DELETE"})}async personAddressOpSetDefault(e){return this.#p.web.fetchJson(`/catalog/person/personAddressOpSetDefault/${e}`,{method:"POST"})}async personAddressRead(e){return this.#p.web.fetchJson(`/catalog/person/personAddress?${e}`,{method:"GET"})}async personAddressReadById(e){return this.#p.web.fetchJson(`/catalog/person/personAddress/${e}`,{method:"GET"})}async personAddressUpdate(e){return this.#p.web.fetchJson("/catalog/person/personAddress",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personBasicRead(e){return this.#p.web.fetchJson(`/catalog/person/personBasic?${e}`,{method:"GET"})}async personBasicReadById(e){return this.#p.web.fetchJson(`/catalog/person/personBasic/${e}`,{method:"GET"})}async personCommentCreate(e){return this.#p.web.fetchJson("/catalog/person/personComment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personCommentDelete(e){return this.#p.web.fetchJson(`/catalog/person/personComment/${e}`,{method:"DELETE"})}async personCommentRead(e){return this.#p.web.fetchJson(`/catalog/person/personComment?${e}`,{method:"GET"})}async personCommentReadById(e){return this.#p.web.fetchJson(`/catalog/person/personComment/${e}`,{method:"GET"})}async personCommentUpdate(e){return this.#p.web.fetchJson("/catalog/person/personComment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personContactCreate(e){return this.#p.web.fetchJson("/catalog/person/personContact",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personContactDelete(e){return this.#p.web.fetchJson(`/catalog/person/personContact/${e}`,{method:"DELETE"})}async personContactRead(e){return this.#p.web.fetchJson(`/catalog/person/personContact?${e}`,{method:"GET"})}async personContactReadById(e){return this.#p.web.fetchJson(`/catalog/person/personContact/${e}`,{method:"GET"})}async personContactUpdate(e){return this.#p.web.fetchJson("/catalog/person/personContact",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personCreate(e){return this.#p.web.fetchJson("/catalog/person/person",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personDelete(e){return this.#p.web.fetchJson(`/catalog/person/person/${e}`,{method:"DELETE"})}async personDocumentCreate(e){return this.#p.web.fetchJson("/catalog/person/personDocument",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personDocumentDelete(e){return this.#p.web.fetchJson(`/catalog/person/personDocument/${e}`,{method:"DELETE"})}async personDocumentRead(e){return this.#p.web.fetchJson(`/catalog/person/personDocument?${e}`,{method:"GET"})}async personDocumentReadById(e){return this.#p.web.fetchJson(`/catalog/person/personDocument/${e}`,{method:"GET"})}async personDocumentUpdate(e){return this.#p.web.fetchJson("/catalog/person/personDocument",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personGroupCreate(e){return this.#p.web.fetchJson("/catalog/person/personGroup",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personGroupDelete(e){return this.#p.web.fetchJson(`/catalog/person/personGroup/${e}`,{method:"DELETE"})}async personGroupRead(e){return this.#p.web.fetchJson(`/catalog/person/personGroup?${e}`,{method:"GET"})}async personGroupReadById(e){return this.#p.web.fetchJson(`/catalog/person/personGroup/${e}`,{method:"GET"})}async personGroupUpdate(e){return this.#p.web.fetchJson("/catalog/person/personGroup",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async personOpReadFromPersonDirectory(e,t){const n=new URLSearchParams;return e&&n.set("documentType",String(e)),t&&n.set("documentNumber",String(t)),this.#p.web.fetchJson(`/catalog/person/personOpReadFromPersonDirectory?${n.toString()}`,{method:"POST"})}async personRead(e){return this.#p.web.fetchJson(`/catalog/person/person?${e}`,{method:"GET"})}async personReadById(e){return this.#p.web.fetchJson(`/catalog/person/person/${e}`,{method:"GET"})}async personUpdate(e){return this.#p.web.fetchJson("/catalog/person/person",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var wi=Object.freeze({__proto__:null,CodeConversion:class{id;codeConversionList;productPacking;unit;code;tags;properties},CodeConversionList:class{id;code;description;tags;properties},Dimension:class{id;code;description;standardUnit;tags},Product:class{id;productProfile;type;code;description;complement;keywords;unit;fiscalProfileProduct;variant;barcode;lengthCm;widthCm;heightCm;volumeM3;netWeightKg;grossWeightKg;category1;category2;category3;category4;category5;tags;properties},ProductKitComponent:class{id;product;productPacking;quantity;tags;properties},ProductPacking:class{id;product;variant;code;complement;barcode;units;lengthCm;widthCm;heightCm;volumeM3;netWeightKg;grossWeightKg;tags;properties},ProductProfile:class{id;code;description;unit;tags;properties},ProductService:class{#p;constructor(e){this.#p=e}async codeConversionCreate(e){return this.#p.web.fetchJson("/catalog/product/codeConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async codeConversionDelete(e){return this.#p.web.fetchJson(`/catalog/product/codeConversion/${e}`,{method:"DELETE"})}async codeConversionListCreate(e){return this.#p.web.fetchJson("/catalog/product/codeConversionList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async codeConversionListDelete(e){return this.#p.web.fetchJson(`/catalog/product/codeConversionList/${e}`,{method:"DELETE"})}async codeConversionListRead(e){return this.#p.web.fetchJson(`/catalog/product/codeConversionList?${e}`,{method:"GET"})}async codeConversionListReadById(e){return this.#p.web.fetchJson(`/catalog/product/codeConversionList/${e}`,{method:"GET"})}async codeConversionListUpdate(e){return this.#p.web.fetchJson("/catalog/product/codeConversionList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async codeConversionRead(e){return this.#p.web.fetchJson(`/catalog/product/codeConversion?${e}`,{method:"GET"})}async codeConversionReadById(e){return this.#p.web.fetchJson(`/catalog/product/codeConversion/${e}`,{method:"GET"})}async codeConversionUpdate(e){return this.#p.web.fetchJson("/catalog/product/codeConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dimensionCreate(e){return this.#p.web.fetchJson("/catalog/product/dimension",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dimensionDelete(e){return this.#p.web.fetchJson(`/catalog/product/dimension/${e}`,{method:"DELETE"})}async dimensionRead(e){return this.#p.web.fetchJson(`/catalog/product/dimension?${e}`,{method:"GET"})}async dimensionReadById(e){return this.#p.web.fetchJson(`/catalog/product/dimension/${e}`,{method:"GET"})}async dimensionUpdate(e){return this.#p.web.fetchJson("/catalog/product/dimension",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productCreate(e){return this.#p.web.fetchJson("/catalog/product/product",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productDelete(e){return this.#p.web.fetchJson(`/catalog/product/product/${e}`,{method:"DELETE"})}async productKitComponentCreate(e){return this.#p.web.fetchJson("/catalog/product/productKitComponent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productKitComponentDelete(e){return this.#p.web.fetchJson(`/catalog/product/productKitComponent/${e}`,{method:"DELETE"})}async productKitComponentRead(e){return this.#p.web.fetchJson(`/catalog/product/productKitComponent?${e}`,{method:"GET"})}async productKitComponentReadById(e){return this.#p.web.fetchJson(`/catalog/product/productKitComponent/${e}`,{method:"GET"})}async productKitComponentUpdate(e){return this.#p.web.fetchJson("/catalog/product/productKitComponent",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productOpClone(e,t){return this.#p.web.fetchJson(`/catalog/product/productOpClone/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async productOpConvertToUnit(e,t,n){const i=new URLSearchParams;return t&&i.set("unitId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/catalog/product/productOpConvertToUnit/${e}?${i.toString()}`,{method:"POST"})}async productPackingCreate(e){return this.#p.web.fetchJson("/catalog/product/productPacking",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productPackingDelete(e){return this.#p.web.fetchJson(`/catalog/product/productPacking/${e}`,{method:"DELETE"})}async productPackingOpConvertToUnit(e,t,n){const i=new URLSearchParams;return t&&i.set("unitId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/catalog/product/productPackingOpConvertToUnit/${e}?${i.toString()}`,{method:"POST"})}async productPackingRead(e){return this.#p.web.fetchJson(`/catalog/product/productPacking?${e}`,{method:"GET"})}async productPackingReadById(e){return this.#p.web.fetchJson(`/catalog/product/productPacking/${e}`,{method:"GET"})}async productPackingUpdate(e){return this.#p.web.fetchJson("/catalog/product/productPacking",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productProfileCreate(e){return this.#p.web.fetchJson("/catalog/product/productProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productProfileDelete(e){return this.#p.web.fetchJson(`/catalog/product/productProfile/${e}`,{method:"DELETE"})}async productProfileRead(e){return this.#p.web.fetchJson(`/catalog/product/productProfile?${e}`,{method:"GET"})}async productProfileReadById(e){return this.#p.web.fetchJson(`/catalog/product/productProfile/${e}`,{method:"GET"})}async productProfileUpdate(e){return this.#p.web.fetchJson("/catalog/product/productProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productRead(e){return this.#p.web.fetchJson(`/catalog/product/product?${e}`,{method:"GET"})}async productReadById(e){return this.#p.web.fetchJson(`/catalog/product/product/${e}`,{method:"GET"})}async productUnitConversionCreate(e){return this.#p.web.fetchJson("/catalog/product/productUnitConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productUnitConversionDelete(e){return this.#p.web.fetchJson(`/catalog/product/productUnitConversion/${e}`,{method:"DELETE"})}async productUnitConversionRead(e){return this.#p.web.fetchJson(`/catalog/product/productUnitConversion?${e}`,{method:"GET"})}async productUnitConversionReadById(e){return this.#p.web.fetchJson(`/catalog/product/productUnitConversion/${e}`,{method:"GET"})}async productUnitConversionUpdate(e){return this.#p.web.fetchJson("/catalog/product/productUnitConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productUpdate(e){return this.#p.web.fetchJson("/catalog/product/product",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productVariantCreate(e){return this.#p.web.fetchJson("/catalog/product/productVariant",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productVariantDelete(e){return this.#p.web.fetchJson(`/catalog/product/productVariant/${e}`,{method:"DELETE"})}async productVariantRead(e){return this.#p.web.fetchJson(`/catalog/product/productVariant?${e}`,{method:"GET"})}async productVariantReadById(e){return this.#p.web.fetchJson(`/catalog/product/productVariant/${e}`,{method:"GET"})}async productVariantUpdate(e){return this.#p.web.fetchJson("/catalog/product/productVariant",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async unitCreate(e){return this.#p.web.fetchJson("/catalog/product/unit",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async unitDelete(e){return this.#p.web.fetchJson(`/catalog/product/unit/${e}`,{method:"DELETE"})}async unitRead(e){return this.#p.web.fetchJson(`/catalog/product/unit?${e}`,{method:"GET"})}async unitReadById(e){return this.#p.web.fetchJson(`/catalog/product/unit/${e}`,{method:"GET"})}async unitUpdate(e){return this.#p.web.fetchJson("/catalog/product/unit",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ProductUnitConversion:class{id;product;productPacking;unit;conversionFactor;scale;tags;properties},ProductVariant:class{id;code;description;tags;properties},Unit:class{id;dimension;code;description;conversionFactor;tags}});var Si=Object.freeze({__proto__:null,CatalogService:class{#p;constructor(e){this.#p=e}async categoryCreate(e){return this.#p.web.fetchJson("/catalog/category",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async categoryDelete(e){return this.#p.web.fetchJson(`/catalog/category/${e}`,{method:"DELETE"})}async categoryRead(e){return this.#p.web.fetchJson(`/catalog/category?${e}`,{method:"GET"})}async categoryReadById(e){return this.#p.web.fetchJson(`/catalog/category/${e}`,{method:"GET"})}async categoryUpdate(e){return this.#p.web.fetchJson("/catalog/category",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Category:class{id;category;code;description;tags;properties},company:gi,location:bi,person:Oi,product:wi});var Ti=Object.freeze({__proto__:null,Contract:class{id;status;company;contractProfile;workflow;workpiece;person;code;dateStart;dateEnd;billingCycle;billingInterval;billingGraceDays;billingLastDate;billingNextDate;contractIndex;contractIndexValue;adjustmentCycle;adjustmentInterval;adjustmentLastDate;adjustmentNextDate;totalValue;tags;properties},ContractBilling:class{id;status;contractItem;date;value;tags;properties},ContractIndex:class{id;code;description;value;tags;properties},ContractItem:class{id;contract;description;quantity;unitValue;totalValue;tags;properties},ContractProfile:class{id;code;description;workflow;tags;properties},ContractService:class{#p;constructor(e){this.#p=e}async contractBillingCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractBilling",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractBillingDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractBilling/${e}`,{method:"DELETE"})}async contractBillingOpApprove(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpApprove/${e}`,{method:"POST"})}async contractBillingOpApproveRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpApproveRevert/${e}`,{method:"POST"})}async contractBillingOpCreate(e){const t=new URLSearchParams;return e&&t.set("contractId",String(e)),this.#p.web.fetchJson(`/commercial/contract/contractBillingOpCreate?${t.toString()}`,{method:"POST"})}async contractBillingOpCreateInvoice(e){return this.#p.web.fetchJson("/commercial/contract/contractBillingOpCreateInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractBillingOpCreateRevert(e){const t=new URLSearchParams;return e&&t.set("contractId",String(e)),this.#p.web.fetchJson(`/commercial/contract/contractBillingOpCreateRevert?${t.toString()}`,{method:"POST"})}async contractBillingOpPrepare(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpPrepare/${e}`,{method:"POST"})}async contractBillingOpPrepareRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractBillingOpPrepareRevert/${e}`,{method:"POST"})}async contractBillingRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractBilling?${e}`,{method:"GET"})}async contractBillingReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractBilling/${e}`,{method:"GET"})}async contractBillingUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractBilling",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractCreate(e){return this.#p.web.fetchJson("/commercial/contract/contract",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contract/${e}`,{method:"DELETE"})}async contractIndexCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractIndex",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractIndexDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractIndex/${e}`,{method:"DELETE"})}async contractIndexRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractIndex?${e}`,{method:"GET"})}async contractIndexReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractIndex/${e}`,{method:"GET"})}async contractIndexUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractIndex",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractItemCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractItemDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractItem/${e}`,{method:"DELETE"})}async contractItemRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractItem?${e}`,{method:"GET"})}async contractItemReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractItem/${e}`,{method:"GET"})}async contractItemUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractOpAdjust(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpAdjust/${e}`,{method:"POST"})}async contractOpApprove(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpApprove/${e}`,{method:"POST"})}async contractOpApproveRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpApproveRevert/${e}`,{method:"POST"})}async contractOpCancel(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpCancel/${e}`,{method:"POST"})}async contractOpCancelRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpCancelRevert/${e}`,{method:"POST"})}async contractOpCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractOpPrepare(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpPrepare/${e}`,{method:"POST"})}async contractOpPrepareRevert(e){return this.#p.web.fetchJson(`/commercial/contract/contractOpPrepareRevert/${e}`,{method:"POST"})}async contractProfileCreate(e){return this.#p.web.fetchJson("/commercial/contract/contractProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractProfileDelete(e){return this.#p.web.fetchJson(`/commercial/contract/contractProfile/${e}`,{method:"DELETE"})}async contractProfileRead(e){return this.#p.web.fetchJson(`/commercial/contract/contractProfile?${e}`,{method:"GET"})}async contractProfileReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contractProfile/${e}`,{method:"GET"})}async contractProfileUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contractProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async contractRead(e){return this.#p.web.fetchJson(`/commercial/contract/contract?${e}`,{method:"GET"})}async contractReadById(e){return this.#p.web.fetchJson(`/commercial/contract/contract/${e}`,{method:"GET"})}async contractUpdate(e){return this.#p.web.fetchJson("/commercial/contract/contract",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ji=Object.freeze({__proto__:null,CommercialService:class{#p;constructor(e){this.#p=e}async priceListChangeRequestCreate(e){return this.#p.web.fetchJson("/commercial/priceListChangeRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListChangeRequestDelete(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequest/${e}`,{method:"DELETE"})}async priceListChangeRequestOpApprove(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequestOpApprove/${e}`,{method:"POST"})}async priceListChangeRequestOpReject(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequestOpReject/${e}`,{method:"POST"})}async priceListChangeRequestRead(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequest?${e}`,{method:"GET"})}async priceListChangeRequestReadById(e){return this.#p.web.fetchJson(`/commercial/priceListChangeRequest/${e}`,{method:"GET"})}async priceListOpFind(e,t,n,i){const s=new URLSearchParams;return t&&s.set("productId",String(t)),n&&s.set("productPackingId",String(n)),i&&s.set("currencyId",String(i)),this.#p.web.fetchJson(`/commercial/priceListOpFind/${e}?${s.toString()}`,{method:"POST"})}async priceListTransformationCreate(e){return this.#p.web.fetchJson("/commercial/priceListTransformation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListTransformationDelete(e){return this.#p.web.fetchJson(`/commercial/priceListTransformation/${e}`,{method:"DELETE"})}async priceListTransformationOpCalculate(e){return this.#p.web.fetchJson(`/commercial/priceListTransformationOpCalculate/${e}`,{method:"POST"})}async priceListTransformationRead(e){return this.#p.web.fetchJson(`/commercial/priceListTransformation?${e}`,{method:"GET"})}async priceListTransformationReadById(e){return this.#p.web.fetchJson(`/commercial/priceListTransformation/${e}`,{method:"GET"})}async priceListTransformationUpdate(e){return this.#p.web.fetchJson("/commercial/priceListTransformation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},PriceList:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListChangeRequest:class{id;status;date;priceList;product;productPacking;currency;unitValue;tags;properties},PriceListItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},PriceListTransformation:class{id;priceListSource;priceListDestination;priceFormation;tags;properties},contract:Ti});var Pi=Object.freeze({__proto__:null,Account:class{id;accountChart;code;level;type;description;fullDescription;tags;properties},AccountCategory:class{id;code;description;tags;properties},AccountChart:class{id;code;description;mask;tags;properties},AccountComplement:class{id;resultCenter;person},AccountConversion:class{id;accountConversionChart;accountSource;accountDestination},AccountConversionChart:class{id;accountChartSource;accountChartDestination;tags},AccountDefault:class{id;accountChart;accountCategory;person;product;tax;channelCode;wallet;account;tags;properties},AccountFiscalYear:class{fiscalYear;id;accountChart;code;level;type;description;fullDescription;tags;properties},AccountingService:class{#p;constructor(e){this.#p=e}async accountCategoryCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountCategory",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountCategoryDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountCategory/${e}`,{method:"DELETE"})}async accountCategoryRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountCategory?${e}`,{method:"GET"})}async accountCategoryReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountCategory/${e}`,{method:"GET"})}async accountCategoryUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountCategory",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountChartCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountChartDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountChart/${e}`,{method:"DELETE"})}async accountChartOpClone(e){return this.#p.web.fetchJson(`/financial/accounting/accountChartOpClone/${e}`,{method:"POST"})}async accountChartOpImport(e,t){return this.#p.web.fetchJson(`/financial/accounting/accountChartOpImport/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async accountChartOpLevelCreate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/accountChartOpLevelCreate/${e}?${i.toString()}`,{method:"POST"})}async accountChartOpLevelDelete(e,t){const n=new URLSearchParams;return t&&n.set("level",String(t)),this.#p.web.fetchJson(`/financial/accounting/accountChartOpLevelDelete/${e}?${n.toString()}`,{method:"POST"})}async accountChartOpLevelUpdate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/accountChartOpLevelUpdate/${e}?${i.toString()}`,{method:"POST"})}async accountChartOpNextShortCode(e){return this.#p.web.fetchJson(`/financial/accounting/accountChartOpNextShortCode/${e}`,{method:"POST"})}async accountChartRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountChart?${e}`,{method:"GET"})}async accountChartReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountChart/${e}`,{method:"GET"})}async accountChartUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionChartCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversionChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionChartDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversionChart/${e}`,{method:"DELETE"})}async accountConversionChartRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversionChart?${e}`,{method:"GET"})}async accountConversionChartReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversionChart/${e}`,{method:"GET"})}async accountConversionChartUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversionChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountConversionDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversion/${e}`,{method:"DELETE"})}async accountConversionRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversion?${e}`,{method:"GET"})}async accountConversionReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountConversion/${e}`,{method:"GET"})}async accountConversionUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountConversion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountCreate(e){return this.#p.web.fetchJson("/financial/accounting/account",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDefaultCreate(e){return this.#p.web.fetchJson("/financial/accounting/accountDefault",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDefaultDelete(e){return this.#p.web.fetchJson(`/financial/accounting/accountDefault/${e}`,{method:"DELETE"})}async accountDefaultOpRead(e){return this.#p.web.fetchJson("/financial/accounting/accountDefaultOpRead",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDefaultRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountDefault?${e}`,{method:"GET"})}async accountDefaultReadById(e){return this.#p.web.fetchJson(`/financial/accounting/accountDefault/${e}`,{method:"GET"})}async accountDefaultUpdate(e){return this.#p.web.fetchJson("/financial/accounting/accountDefault",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountDelete(e){return this.#p.web.fetchJson(`/financial/accounting/account/${e}`,{method:"DELETE"})}async accountFiscalYearRead(e){return this.#p.web.fetchJson(`/financial/accounting/accountFiscalYear?${e}`,{method:"GET"})}async accountRead(e){return this.#p.web.fetchJson(`/financial/accounting/account?${e}`,{method:"GET"})}async accountReadById(e){return this.#p.web.fetchJson(`/financial/accounting/account/${e}`,{method:"GET"})}async accountUpdate(e){return this.#p.web.fetchJson("/financial/accounting/account",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async assetInventoryCurrentRead(e){return this.#p.web.fetchJson(`/financial/accounting/assetInventoryCurrent?${e}`,{method:"GET"})}async assetInventoryRead(e){return this.#p.web.fetchJson(`/financial/accounting/assetInventory?${e}`,{method:"GET"})}async assetTagRead(e){return this.#p.web.fetchJson(`/financial/accounting/assetTag?${e}`,{method:"GET"})}async assetTagReadById(e){return this.#p.web.fetchJson(`/financial/accounting/assetTag/${e}`,{method:"GET"})}async fiscalYearOpClose(e){return this.#p.web.fetchJson(`/financial/accounting/fiscalYearOpClose/${e}`,{method:"POST"})}async journalEntryCreate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntry",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalEntryDelete(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntry/${e}`,{method:"DELETE"})}async journalEntryOpCreate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntryOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalEntryOpPublish(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntryOpPublish/${e}`,{method:"POST"})}async journalEntryOpPublishRevert(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntryOpPublishRevert/${e}`,{method:"POST"})}async journalEntryOpUpdate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntryOpUpdate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalEntryRead(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntry?${e}`,{method:"GET"})}async journalEntryReadById(e){return this.#p.web.fetchJson(`/financial/accounting/journalEntry/${e}`,{method:"GET"})}async journalEntryUpdate(e){return this.#p.web.fetchJson("/financial/accounting/journalEntry",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalItemCreate(e){return this.#p.web.fetchJson("/financial/accounting/journalItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async journalItemDelete(e){return this.#p.web.fetchJson(`/financial/accounting/journalItem/${e}`,{method:"DELETE"})}async journalItemRead(e){return this.#p.web.fetchJson(`/financial/accounting/journalItem?${e}`,{method:"GET"})}async journalItemReadById(e){return this.#p.web.fetchJson(`/financial/accounting/journalItem/${e}`,{method:"GET"})}async journalItemUpdate(e){return this.#p.web.fetchJson("/financial/accounting/journalItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async ledgerItemBalanceRead(e){return this.#p.web.fetchJson(`/financial/accounting/ledgerItemBalance?${e}`,{method:"GET"})}async ledgerItemRead(e){return this.#p.web.fetchJson(`/financial/accounting/ledgerItem?${e}`,{method:"GET"})}async ledgerItemReadById(e){return this.#p.web.fetchJson(`/financial/accounting/ledgerItem/${e}`,{method:"GET"})}async resultCenterChartCreate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenterChart",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resultCenterChartDelete(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenterChart/${e}`,{method:"DELETE"})}async resultCenterChartOpLevelCreate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelCreate/${e}?${i.toString()}`,{method:"POST"})}async resultCenterChartOpLevelDelete(e,t){const n=new URLSearchParams;return t&&n.set("level",String(t)),this.#p.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelDelete/${e}?${n.toString()}`,{method:"POST"})}async resultCenterChartOpLevelUpdate(e,t,n){const i=new URLSearchParams;return t&&i.set("level",String(t)),n&&i.set("digits",String(n)),this.#p.web.fetchJson(`/financial/accounting/resultCenterChartOpLevelUpdate/${e}?${i.toString()}`,{method:"POST"})}async resultCenterChartRead(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenterChart?${e}`,{method:"GET"})}async resultCenterChartReadById(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenterChart/${e}`,{method:"GET"})}async resultCenterChartUpdate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenterChart",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resultCenterCreate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenter",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resultCenterDelete(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenter/${e}`,{method:"DELETE"})}async resultCenterRead(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenter?${e}`,{method:"GET"})}async resultCenterReadById(e){return this.#p.web.fetchJson(`/financial/accounting/resultCenter/${e}`,{method:"GET"})}async resultCenterUpdate(e){return this.#p.web.fetchJson("/financial/accounting/resultCenter",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},AssetInventory:class{id;stockCluster;productPacking;assetTag;lotId;transactionId;dateTime;description;quantity;totalValue;quantityBalance;totalValueBalance},AssetInventoryCurrent:class{id;stockCluster;productPacking;assetTag;lotId;transactionId;dateTime;description;quantity;totalValue;quantityBalance;totalValueBalance},AssetTag:class{id;fiscalProfileProduct;account;accountComplement},JournalEntry:class{id;company;status;date;source;description;tags;properties;credits;debits;value},JournalItem:class{id;journalEntry;account;accountComplement;value;sign;description},LedgerItem:class{id;journalEntry;company;fiscalYear;date;account;accountComplement;accountCounterpart;value;sign;description;previousBalance;balance},LedgerItemBalance:class{company;fiscalYear;account;accountComplement;value},ResultCenter:class{id;resultCenterChart;code;level;type;description;fullDescription;tags},ResultCenterChart:class{id;code;description;mask;tags}});var vi=Object.freeze({__proto__:null,Batch:class{id;datetime;quantity;file;tags;properties},BatchRequest:class{status;wallet;id;datetime;quantity;file;tags;properties},BatchResponse:class{status;wallet;id;datetime;quantity;file;tags;properties},BillingService:class{#p;constructor(e){this.#p=e}async batchRequestCreate(e){return this.#p.web.fetchJson("/financial/billing/batchRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async batchRequestDelete(e){return this.#p.web.fetchJson(`/financial/billing/batchRequest/${e}`,{method:"DELETE"})}async batchRequestOpAddInstructions(e,t){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpAddInstructions/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async batchRequestOpApprove(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpApprove/${e}`,{method:"POST"})}async batchRequestOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpApproveRevert/${e}`,{method:"POST"})}async batchRequestOpCreateFile(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpCreateFile/${e}`,{method:"POST"})}async batchRequestOpPrepare(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpPrepare/${e}`,{method:"POST"})}async batchRequestOpPrepareRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpPrepareRevert/${e}`,{method:"POST"})}async batchRequestOpSend(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpSend/${e}`,{method:"POST"})}async batchRequestOpSendRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchRequestOpSendRevert/${e}`,{method:"POST"})}async batchRequestRead(e){return this.#p.web.fetchJson(`/financial/billing/batchRequest?${e}`,{method:"GET"})}async batchRequestReadById(e){return this.#p.web.fetchJson(`/financial/billing/batchRequest/${e}`,{method:"GET"})}async batchRequestUpdate(e){return this.#p.web.fetchJson("/financial/billing/batchRequest",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async batchResponseDelete(e){return this.#p.web.fetchJson(`/financial/billing/batchResponse/${e}`,{method:"DELETE"})}async batchResponseOpApprove(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpApprove/${e}`,{method:"POST"})}async batchResponseOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpApproveRevert/${e}`,{method:"POST"})}async batchResponseOpCreate(e){return this.#p.web.fetchJson("/financial/billing/batchResponseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async batchResponseOpPrepare(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpPrepare/${e}`,{method:"POST"})}async batchResponseOpPrepareRevert(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpPrepareRevert/${e}`,{method:"POST"})}async batchResponseOpProcess(e){return this.#p.web.fetchJson(`/financial/billing/batchResponseOpProcess/${e}`,{method:"POST"})}async batchResponseRead(e){return this.#p.web.fetchJson(`/financial/billing/batchResponse?${e}`,{method:"GET"})}async batchResponseReadById(e){return this.#p.web.fetchJson(`/financial/billing/batchResponse/${e}`,{method:"GET"})}async instructionRequestDelete(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequest/${e}`,{method:"DELETE"})}async instructionRequestOpAddToBatch(e,t){const n=new URLSearchParams;return t&&n.set("batchId",String(t)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpAddToBatch/${e}?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreate(e){return this.#p.web.fetchJson("/financial/billing/instructionRequestOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async instructionRequestOpCreateChangeDueDate(e,t){const n=new URLSearchParams;return e&&n.set("billingTitleId",String(e)),t&&n.set("dueDate",String(t)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpCreateChangeDueDate?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreateRegister(e,t){const n=new URLSearchParams;return e&&n.set("billingTitleId",String(e)),t&&n.set("walletId",String(t)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpCreateRegister?${n.toString()}`,{method:"POST"})}async instructionRequestOpCreateUnregister(e){const t=new URLSearchParams;return e&&t.set("billingTitleId",String(e)),this.#p.web.fetchJson(`/financial/billing/instructionRequestOpCreateUnregister?${t.toString()}`,{method:"POST"})}async instructionRequestOpRemoveFromBatch(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequestOpRemoveFromBatch/${e}`,{method:"POST"})}async instructionRequestRead(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequest?${e}`,{method:"GET"})}async instructionRequestReadById(e){return this.#p.web.fetchJson(`/financial/billing/instructionRequest/${e}`,{method:"GET"})}async instructionRequestUpdate(e){return this.#p.web.fetchJson("/financial/billing/instructionRequest",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async instructionResponseCreate(e){return this.#p.web.fetchJson("/financial/billing/instructionResponse",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async instructionResponseDelete(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponse/${e}`,{method:"DELETE"})}async instructionResponseOpIgnore(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponseOpIgnore/${e}`,{method:"POST"})}async instructionResponseOpIgnoreRevert(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponseOpIgnoreRevert/${e}`,{method:"POST"})}async instructionResponseOpProcess(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponseOpProcess/${e}`,{method:"POST"})}async instructionResponseRead(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponse?${e}`,{method:"GET"})}async instructionResponseReadById(e){return this.#p.web.fetchJson(`/financial/billing/instructionResponse/${e}`,{method:"GET"})}async instructionResponseUpdate(e){return this.#p.web.fetchJson("/financial/billing/instructionResponse",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async walletCreate(e){return this.#p.web.fetchJson("/financial/billing/wallet",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async walletDelete(e){return this.#p.web.fetchJson(`/financial/billing/wallet/${e}`,{method:"DELETE"})}async walletOpGetSequence(e){return this.#p.web.fetchJson(`/financial/billing/walletOpGetSequence/${e}`,{method:"POST"})}async walletRead(e){return this.#p.web.fetchJson(`/financial/billing/wallet?${e}`,{method:"GET"})}async walletReadById(e){return this.#p.web.fetchJson(`/financial/billing/wallet/${e}`,{method:"GET"})}async walletUpdate(e){return this.#p.web.fetchJson("/financial/billing/wallet",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Instruction:class{id;billingTitle;wallet;date;tags;properties},InstructionRequest:class{status;type;batch;id;billingTitle;wallet;date;tags;properties},InstructionResponse:class{status;type;batch;id;billingTitle;wallet;date;tags;properties},Wallet:class{id;company;code;description;type;batchLastSequence;bankNumberLastSequence;interestRateMonth;lateFee;tags;properties}});var Ei=Object.freeze({__proto__:null,CreditLine:class{id;code;description;tags;properties},CreditLineItem:class{id;creditLine;personGroup;person;value;tags;properties},CreditService:class{#p;constructor(e){this.#p=e}async creditLineCreate(e){return this.#p.web.fetchJson("/financial/credit/creditLine",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async creditLineDelete(e){return this.#p.web.fetchJson(`/financial/credit/creditLine/${e}`,{method:"DELETE"})}async creditLineItemCreate(e){return this.#p.web.fetchJson("/financial/credit/creditLineItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async creditLineItemDelete(e){return this.#p.web.fetchJson(`/financial/credit/creditLineItem/${e}`,{method:"DELETE"})}async creditLineItemRead(e){return this.#p.web.fetchJson(`/financial/credit/creditLineItem?${e}`,{method:"GET"})}async creditLineItemReadById(e){return this.#p.web.fetchJson(`/financial/credit/creditLineItem/${e}`,{method:"GET"})}async creditLineItemUpdate(e){return this.#p.web.fetchJson("/financial/credit/creditLineItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async creditLineRead(e){return this.#p.web.fetchJson(`/financial/credit/creditLine?${e}`,{method:"GET"})}async creditLineReadById(e){return this.#p.web.fetchJson(`/financial/credit/creditLine/${e}`,{method:"GET"})}async creditLineUpdate(e){return this.#p.web.fetchJson("/financial/credit/creditLine",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ri=Object.freeze({__proto__:null,AccountStatement:class{id;status;company;account;fitid;date;description;value;tags;properties},TreasuryService:class{#p;constructor(e){this.#p=e}async accountStatementCreate(e){return this.#p.web.fetchJson("/financial/treasury/accountStatement",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accountStatementDelete(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatement/${e}`,{method:"DELETE"})}async accountStatementOpConsolidate(e,t){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpConsolidate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async accountStatementOpConsolidateRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpConsolidateRevert/${e}`,{method:"POST"})}async accountStatementOpIdentify(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIdentify/${e}`,{method:"POST"})}async accountStatementOpIdentifyRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIdentifyRevert/${e}`,{method:"POST"})}async accountStatementOpIgnore(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIgnore/${e}`,{method:"POST"})}async accountStatementOpIgnoreRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpIgnoreRevert/${e}`,{method:"POST"})}async accountStatementOpSettle(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpSettle/${e}`,{method:"POST"})}async accountStatementOpSettleRevert(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatementOpSettleRevert/${e}`,{method:"POST"})}async accountStatementRead(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatement?${e}`,{method:"GET"})}async accountStatementReadById(e){return this.#p.web.fetchJson(`/financial/treasury/accountStatement/${e}`,{method:"GET"})}async accountStatementUpdate(e){return this.#p.web.fetchJson("/financial/treasury/accountStatement",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async expenseOpCreate(e){return this.#p.web.fetchJson("/financial/treasury/expenseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async revenueOpCreate(e){return this.#p.web.fetchJson("/financial/treasury/revenueOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var ji=Object.freeze({__proto__:null,BillingTitle:class{id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},Currency:class{id;code;symbol;tags},CurrencyExchangeRate:class{id;source;destination;date;exchangeRate},FinancialService:class{#p;constructor(e){this.#p=e}async currencyCreate(e){return this.#p.web.fetchJson("/financial/currency",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async currencyDelete(e){return this.#p.web.fetchJson(`/financial/currency/${e}`,{method:"DELETE"})}async currencyExchangeRateCreate(e){return this.#p.web.fetchJson("/financial/currencyExchangeRate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async currencyExchangeRateDelete(e){return this.#p.web.fetchJson(`/financial/currencyExchangeRate/${e}`,{method:"DELETE"})}async currencyExchangeRateOpConvert(e,t,n,i){const s=new URLSearchParams;return e&&s.set("sourceId",String(e)),t&&s.set("destinationId",String(t)),n&&s.set("date",String(n)),i&&s.set("value",String(i)),this.#p.web.fetchJson(`/financial/currencyExchangeRateOpConvert?${s.toString()}`,{method:"POST"})}async currencyExchangeRateOpGetExchangeRate(e,t,n){const i=new URLSearchParams;return e&&i.set("sourceId",String(e)),t&&i.set("destinationId",String(t)),n&&i.set("date",String(n)),this.#p.web.fetchJson(`/financial/currencyExchangeRateOpGetExchangeRate?${i.toString()}`,{method:"POST"})}async currencyExchangeRateRead(e){return this.#p.web.fetchJson(`/financial/currencyExchangeRate?${e}`,{method:"GET"})}async currencyExchangeRateReadById(e){return this.#p.web.fetchJson(`/financial/currencyExchangeRate/${e}`,{method:"GET"})}async currencyExchangeRateUpdate(e){return this.#p.web.fetchJson("/financial/currencyExchangeRate",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async currencyOpReadByCode(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#p.web.fetchJson(`/financial/currencyOpReadByCode?${t.toString()}`,{method:"POST"})}async currencyRead(e){return this.#p.web.fetchJson(`/financial/currency?${e}`,{method:"GET"})}async currencyReadById(e){return this.#p.web.fetchJson(`/financial/currency/${e}`,{method:"GET"})}async currencyUpdate(e){return this.#p.web.fetchJson("/financial/currency",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableCreate(e){return this.#p.web.fetchJson("/financial/payable",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableDelete(e){return this.#p.web.fetchJson(`/financial/payable/${e}`,{method:"DELETE"})}async payableOpApprove(e){return this.#p.web.fetchJson(`/financial/payableOpApprove/${e}`,{method:"POST"})}async payableOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/payableOpApproveRevert/${e}`,{method:"POST"})}async payableOpRepeat(e,t){return this.#p.web.fetchJson(`/financial/payableOpRepeat/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async payableOpSettle(e){return this.#p.web.fetchJson("/financial/payableOpSettle",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableOpUpdate(e,t){return this.#p.web.fetchJson(`/financial/payableOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async payableOpUpdatePrepared(e){return this.#p.web.fetchJson("/financial/payableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async payableRead(e){return this.#p.web.fetchJson(`/financial/payable?${e}`,{method:"GET"})}async payableReadById(e){return this.#p.web.fetchJson(`/financial/payable/${e}`,{method:"GET"})}async payableSettlementBillingTitleRead(e){return this.#p.web.fetchJson(`/financial/payableSettlementBillingTitle?${e}`,{method:"GET"})}async payableSettlementBillingTitleReadById(e){return this.#p.web.fetchJson(`/financial/payableSettlementBillingTitle/${e}`,{method:"GET"})}async payableSettlementDelete(e){return this.#p.web.fetchJson(`/financial/payableSettlement/${e}`,{method:"DELETE"})}async payableSettlementMethodRead(e){return this.#p.web.fetchJson(`/financial/payableSettlementMethod?${e}`,{method:"GET"})}async payableSettlementMethodReadById(e){return this.#p.web.fetchJson(`/financial/payableSettlementMethod/${e}`,{method:"GET"})}async payableSettlementRead(e){return this.#p.web.fetchJson(`/financial/payableSettlement?${e}`,{method:"GET"})}async payableSettlementReadById(e){return this.#p.web.fetchJson(`/financial/payableSettlement/${e}`,{method:"GET"})}async payableUpdate(e){return this.#p.web.fetchJson("/financial/payable",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableCreate(e){return this.#p.web.fetchJson("/financial/receivable",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableDelete(e){return this.#p.web.fetchJson(`/financial/receivable/${e}`,{method:"DELETE"})}async receivableOpApprove(e){return this.#p.web.fetchJson(`/financial/receivableOpApprove/${e}`,{method:"POST"})}async receivableOpApproveRevert(e){return this.#p.web.fetchJson(`/financial/receivableOpApproveRevert/${e}`,{method:"POST"})}async receivableOpRepeat(e,t){return this.#p.web.fetchJson(`/financial/receivableOpRepeat/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async receivableOpSend(e){return this.#p.web.fetchJson("/financial/receivableOpSend",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableOpSettle(e){return this.#p.web.fetchJson("/financial/receivableOpSettle",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableOpUpdate(e,t){return this.#p.web.fetchJson(`/financial/receivableOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async receivableOpUpdatePrepared(e){return this.#p.web.fetchJson("/financial/receivableOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async receivableRead(e){return this.#p.web.fetchJson(`/financial/receivable?${e}`,{method:"GET"})}async receivableReadById(e){return this.#p.web.fetchJson(`/financial/receivable/${e}`,{method:"GET"})}async receivableSettlementBillingTitleRead(e){return this.#p.web.fetchJson(`/financial/receivableSettlementBillingTitle?${e}`,{method:"GET"})}async receivableSettlementBillingTitleReadById(e){return this.#p.web.fetchJson(`/financial/receivableSettlementBillingTitle/${e}`,{method:"GET"})}async receivableSettlementDelete(e){return this.#p.web.fetchJson(`/financial/receivableSettlement/${e}`,{method:"DELETE"})}async receivableSettlementMethodRead(e){return this.#p.web.fetchJson(`/financial/receivableSettlementMethod?${e}`,{method:"GET"})}async receivableSettlementMethodReadById(e){return this.#p.web.fetchJson(`/financial/receivableSettlementMethod/${e}`,{method:"GET"})}async receivableSettlementRead(e){return this.#p.web.fetchJson(`/financial/receivableSettlement?${e}`,{method:"GET"})}async receivableSettlementReadById(e){return this.#p.web.fetchJson(`/financial/receivableSettlement/${e}`,{method:"GET"})}async receivableUpdate(e){return this.#p.web.fetchJson("/financial/receivable",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Payable:class{incomingInvoice;id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},PayableSettlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},PayableSettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},PayableSettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},Receivable:class{outgoingInvoice;id;status;source;company;person;payer;type;code;description;barcode;installment;date;issueDate;dueDate;value;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;balance;account;accountComplement;accountCounterpart;accountComplementCounterpart;wallet;tags;properties},ReceivableSettlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},ReceivableSettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},ReceivableSettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},Settlement:class{id;company;flow;person;date;settlementDate;billingTitleCount;entryCount;valueSettlement;valueDiscount;valueRenegotiation;valueAddition;value;journalEntry;tags;properties},SettlementBillingTitle:class{id;settlement;billingTitle;type;account;accountComplement;value},SettlementMethod:class{id;settlement;type;account;accountComplement;value;billingTitle},accounting:Pi,billing:vi,credit:Ei,treasury:Ri});var $i=Object.freeze({__proto__:null,Dfe:class{id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeNfeProcIn:class{status;incomingInvoice;number;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeNfeProcOut:class{status;outgoingInvoice;number;fileDanfe;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcEventoNFeIn:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcEventoNFeOut:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeProcInutNFe:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeResEvento:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},DfeResNFeIn:class{status;id;type;statusCode;company;dateTime;chNFe;file;tpEvento;nProt;nsu;tags;properties},FiscalBrService:class{#p;constructor(e){this.#p=e}async dfeNfeProcInCreate(e){return this.#p.web.fetchJson("/fiscal/br/dfeNfeProcIn",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dfeNfeProcInDelete(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcIn/${e}`,{method:"DELETE"})}async dfeNfeProcInOpIncomingInvoiceCreate(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcInOpIncomingInvoiceCreateRevert(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcInOpIncomingInvoiceCreateRevert/${e}`,{method:"POST"})}async dfeNfeProcInRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcIn?${e}`,{method:"GET"})}async dfeNfeProcInReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcIn/${e}`,{method:"GET"})}async dfeNfeProcOutDelete(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOut/${e}`,{method:"DELETE"})}async dfeNfeProcOutOpCancel(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpConfirm(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpConfirm/${e}`,{method:"POST"})}async dfeNfeProcOutOpCorrect(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCorrect/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpCreate(e){const t=new URLSearchParams;return e&&t.set("invoiceId",String(e)),this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpCreate?${t.toString()}`,{method:"POST"})}async dfeNfeProcOutOpDownload(e){return this.#p.web.fetchBlob("/fiscal/br/dfeNfeProcOutOpDownload",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async dfeNfeProcOutOpOutgoingInvoiceCreate(e,t){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpOutgoingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async dfeNfeProcOutOpSign(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpSign/${e}`,{method:"POST"})}async dfeNfeProcOutOpSignRevert(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpSignRevert/${e}`,{method:"POST"})}async dfeNfeProcOutOpTransmit(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOutOpTransmit/${e}`,{method:"POST"})}async dfeNfeProcOutOpUpload(e){return this.#p.web.fetchJson("/fiscal/br/dfeNfeProcOutOpUpload",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dfeNfeProcOutRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOut?${e}`,{method:"GET"})}async dfeNfeProcOutReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeNfeProcOut/${e}`,{method:"GET"})}async dfeOpReadContent(e){return this.#p.web.fetchBlob(`/fiscal/br/dfeOpReadContent/${e}`,{method:"POST"})}async dfeProcEventoNFeInRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeIn?${e}`,{method:"GET"})}async dfeProcEventoNFeInReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeIn/${e}`,{method:"GET"})}async dfeProcEventoNFeOutRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeOut?${e}`,{method:"GET"})}async dfeProcEventoNFeOutReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcEventoNFeOut/${e}`,{method:"GET"})}async dfeProcInutNFeCreate(e){return this.#p.web.fetchJson("/fiscal/br/dfeProcInutNFe",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dfeProcInutNFeRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcInutNFe?${e}`,{method:"GET"})}async dfeProcInutNFeReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeProcInutNFe/${e}`,{method:"GET"})}async dfeRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfe?${e}`,{method:"GET"})}async dfeReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfe/${e}`,{method:"GET"})}async dfeResEventoRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResEvento?${e}`,{method:"GET"})}async dfeResEventoReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResEvento/${e}`,{method:"GET"})}async dfeResNFeInOpManifest(e,t){const n=new URLSearchParams;return t&&n.set("status",String(t)),this.#p.web.fetchJson(`/fiscal/br/dfeResNFeInOpManifest/${e}?${n.toString()}`,{method:"POST"})}async dfeResNFeInRead(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResNFeIn?${e}`,{method:"GET"})}async dfeResNFeInReadById(e){return this.#p.web.fetchJson(`/fiscal/br/dfeResNFeIn/${e}`,{method:"GET"})}async documentSefazOpFetch(e){return this.#p.web.fetchJson("/fiscal/br/documentSefazOpFetch",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async spedOpExport(e){return this.#p.web.fetchBlob("/fiscal/br/spedOpExport",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},TaxIBPT:class{id;uf;codigo;ex;tipo;nacionalfederal;importadosfederal;estadual;municipal}});var Ii=Object.freeze({__proto__:null,Tax:class{id;fiscalRegion;code;type;tags;properties},Taxation:class{id;source;tax;taxType;grossBaseValueExpression;grossBaseValue;grossBaseValueVariationRate;baseValue;taxRate;grossTaxValue;taxAdjustmentExpression;taxAdjustmentValue;taxValue;compensationRate;compensationValue;tags;properties},TaxationOperation:class{id;fiscalRegion;flow;code;description;tags;properties},TaxationRule:class{id;flow;fiscalProfileCompany;fiscalProfilePerson;fiscalProfileProduct;fiscalProfileOperation;taxationOperation;tags;properties},TaxationService:class{#p;constructor(e){this.#p=e}async taxCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/tax",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/tax/${e}`,{method:"DELETE"})}async taxOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#p.web.fetchJson(`/fiscal/taxation/taxOpReadByCode?${n.toString()}`,{method:"POST"})}async taxRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/tax?${e}`,{method:"GET"})}async taxReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/tax/${e}`,{method:"GET"})}async taxUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/tax",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxation/${e}`,{method:"DELETE"})}async taxationOperationCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationOperation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationOperationDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationOperation/${e}`,{method:"DELETE"})}async taxationOperationOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#p.web.fetchJson(`/fiscal/taxation/taxationOperationOpReadByCode?${n.toString()}`,{method:"POST"})}async taxationOperationRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationOperation?${e}`,{method:"GET"})}async taxationOperationReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationOperation/${e}`,{method:"GET"})}async taxationOperationUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationOperation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxation?${e}`,{method:"GET"})}async taxationReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxation/${e}`,{method:"GET"})}async taxationRuleCreate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationRule",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationRuleDelete(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationRule/${e}`,{method:"DELETE"})}async taxationRuleRead(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationRule?${e}`,{method:"GET"})}async taxationRuleReadById(e){return this.#p.web.fetchJson(`/fiscal/taxation/taxationRule/${e}`,{method:"GET"})}async taxationRuleUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxationRule",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async taxationUpdate(e){return this.#p.web.fetchJson("/fiscal/taxation/taxation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ci=Object.freeze({__proto__:null,FiscalProfileOperation:class{id;fiscalRegion;code;description;tags;properties},FiscalProfilePerson:class{id;fiscalRegion;description;tags;properties},FiscalProfileProduct:class{id;fiscalRegion;description;tags;properties},FiscalRegion:class{id;code;tags},FiscalService:class{#p;constructor(e){this.#p=e}async fiscalProfileOperationCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileOperation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfileOperationDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileOperation/${e}`,{method:"DELETE"})}async fiscalProfileOperationOpReadByCode(e,t){const n=new URLSearchParams;return e&&n.set("fiscalRegionCode",String(e)),t&&n.set("code",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalProfileOperationOpReadByCode?${n.toString()}`,{method:"POST"})}async fiscalProfileOperationRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileOperation?${e}`,{method:"GET"})}async fiscalProfileOperationReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileOperation/${e}`,{method:"GET"})}async fiscalProfileOperationUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileOperation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfilePersonCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfilePerson",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfilePersonDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfilePerson/${e}`,{method:"DELETE"})}async fiscalProfilePersonRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfilePerson?${e}`,{method:"GET"})}async fiscalProfilePersonReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfilePerson/${e}`,{method:"GET"})}async fiscalProfilePersonUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfilePerson",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfileProductCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileProduct",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalProfileProductDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileProduct/${e}`,{method:"DELETE"})}async fiscalProfileProductRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileProduct?${e}`,{method:"GET"})}async fiscalProfileProductReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalProfileProduct/${e}`,{method:"GET"})}async fiscalProfileProductUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalProfileProduct",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalRegionCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalRegion",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalRegionDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalRegion/${e}`,{method:"DELETE"})}async fiscalRegionOpReadByCode(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#p.web.fetchJson(`/fiscal/fiscalRegionOpReadByCode?${t.toString()}`,{method:"POST"})}async fiscalRegionRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalRegion?${e}`,{method:"GET"})}async fiscalRegionReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalRegion/${e}`,{method:"GET"})}async fiscalRegionUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalRegion",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalYearCreate(e){return this.#p.web.fetchJson("/fiscal/fiscalYear",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fiscalYearDelete(e){return this.#p.web.fetchJson(`/fiscal/fiscalYear/${e}`,{method:"DELETE"})}async fiscalYearOpPartialClosure(e,t){const n=new URLSearchParams;return t&&n.set("date",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalYearOpPartialClosure/${e}?${n.toString()}`,{method:"POST"})}async fiscalYearOpPartialClosureRevert(e,t){const n=new URLSearchParams;return t&&n.set("date",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalYearOpPartialClosureRevert/${e}?${n.toString()}`,{method:"POST"})}async fiscalYearOpPublish(e){return this.#p.web.fetchJson(`/fiscal/fiscalYearOpPublish/${e}`,{method:"POST"})}async fiscalYearOpPublishRevert(e){return this.#p.web.fetchJson(`/fiscal/fiscalYearOpPublishRevert/${e}`,{method:"POST"})}async fiscalYearOpRead(e,t){const n=new URLSearchParams;return e&&n.set("companyId",String(e)),t&&n.set("date",String(t)),this.#p.web.fetchJson(`/fiscal/fiscalYearOpRead?${n.toString()}`,{method:"POST"})}async fiscalYearRead(e){return this.#p.web.fetchJson(`/fiscal/fiscalYear?${e}`,{method:"GET"})}async fiscalYearReadById(e){return this.#p.web.fetchJson(`/fiscal/fiscalYear/${e}`,{method:"GET"})}async fiscalYearUpdate(e){return this.#p.web.fetchJson("/fiscal/fiscalYear",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceDelete(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoice/${e}`,{method:"DELETE"})}async incomingInvoiceItemCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceItemDelete(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceItem/${e}`,{method:"DELETE"})}async incomingInvoiceItemRead(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceItem?${e}`,{method:"GET"})}async incomingInvoiceItemReadById(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceItem/${e}`,{method:"GET"})}async incomingInvoiceItemUpdate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpApprove(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpApprove/${e}`,{method:"POST"})}async incomingInvoiceOpApproveDivergences(e,t){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpApproveDivergences/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async incomingInvoiceOpApproveRevert(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpApproveRevert/${e}`,{method:"POST"})}async incomingInvoiceOpCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpCreateFromIncomingList(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceOpCreateFromIncomingList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceOpPrepare(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpPrepare/${e}`,{method:"POST"})}async incomingInvoiceOpPrepareRevert(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpPrepareRevert/${e}`,{method:"POST"})}async incomingInvoiceOpReject(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpReject/${e}`,{method:"POST"})}async incomingInvoiceOpRejectRevert(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpRejectRevert/${e}`,{method:"POST"})}async incomingInvoiceOpReturn(e,t){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpReturn/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async incomingInvoiceOpTaxationCalc(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoiceOpTaxationCalc/${e}`,{method:"POST"})}async incomingInvoiceOpUpdatePrepared(e){return this.#p.web.fetchJson("/fiscal/incomingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoicePaymentCreate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoicePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoicePaymentDelete(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoicePayment/${e}`,{method:"DELETE"})}async incomingInvoicePaymentRead(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoicePayment?${e}`,{method:"GET"})}async incomingInvoicePaymentReadById(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoicePayment/${e}`,{method:"GET"})}async incomingInvoicePaymentUpdate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingInvoiceRead(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoice?${e}`,{method:"GET"})}async incomingInvoiceReadById(e){return this.#p.web.fetchJson(`/fiscal/incomingInvoice/${e}`,{method:"GET"})}async incomingInvoiceUpdate(e){return this.#p.web.fetchJson("/fiscal/incomingInvoice",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceItemAccountingCreate(e){return this.#p.web.fetchJson("/fiscal/invoiceItemAccounting",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceItemAccountingDelete(e){return this.#p.web.fetchJson(`/fiscal/invoiceItemAccounting/${e}`,{method:"DELETE"})}async invoiceItemAccountingRead(e){return this.#p.web.fetchJson(`/fiscal/invoiceItemAccounting?${e}`,{method:"GET"})}async invoiceItemAccountingReadById(e){return this.#p.web.fetchJson(`/fiscal/invoiceItemAccounting/${e}`,{method:"GET"})}async invoiceItemAccountingUpdate(e){return this.#p.web.fetchJson("/fiscal/invoiceItemAccounting",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceReferenceCreate(e){return this.#p.web.fetchJson("/fiscal/invoiceReference",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceReferenceDelete(e){return this.#p.web.fetchJson(`/fiscal/invoiceReference/${e}`,{method:"DELETE"})}async invoiceReferenceRead(e){return this.#p.web.fetchJson(`/fiscal/invoiceReference?${e}`,{method:"GET"})}async invoiceReferenceReadById(e){return this.#p.web.fetchJson(`/fiscal/invoiceReference/${e}`,{method:"GET"})}async invoiceReferenceUpdate(e){return this.#p.web.fetchJson("/fiscal/invoiceReference",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceSeriesCreate(e){return this.#p.web.fetchJson("/fiscal/invoiceSeries",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async invoiceSeriesDelete(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeries/${e}`,{method:"DELETE"})}async invoiceSeriesOpGetNextNumber(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeriesOpGetNextNumber/${e}`,{method:"POST"})}async invoiceSeriesOpUpdateLastNumber(e,t){const n=new URLSearchParams;return t&&n.set("lastNumber",String(t)),this.#p.web.fetchJson(`/fiscal/invoiceSeriesOpUpdateLastNumber/${e}?${n.toString()}`,{method:"POST"})}async invoiceSeriesRead(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeries?${e}`,{method:"GET"})}async invoiceSeriesReadById(e){return this.#p.web.fetchJson(`/fiscal/invoiceSeries/${e}`,{method:"GET"})}async invoiceSeriesUpdate(e){return this.#p.web.fetchJson("/fiscal/invoiceSeries",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoice",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceDelete(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoice/${e}`,{method:"DELETE"})}async outgoingInvoiceItemCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceItemDelete(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceItem/${e}`,{method:"DELETE"})}async outgoingInvoiceItemRead(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceItem?${e}`,{method:"GET"})}async outgoingInvoiceItemReadById(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceItem/${e}`,{method:"GET"})}async outgoingInvoiceItemUpdate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceOpApprove(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpApprove/${e}`,{method:"POST"})}async outgoingInvoiceOpApproveRevert(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpApproveRevert/${e}`,{method:"POST"})}async outgoingInvoiceOpCancel(e,t){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceOpDiscount(e,t){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpDiscount/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpPrepare(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpPrepare/${e}`,{method:"POST"})}async outgoingInvoiceOpPrepareRevert(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpPrepareRevert/${e}`,{method:"POST"})}async outgoingInvoiceOpReturn(e,t){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpReturn/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingInvoiceOpTaxationCalc(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoiceOpTaxationCalc/${e}`,{method:"POST"})}async outgoingInvoiceOpUpdatePrepared(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoiceOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoicePaymentCreate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoicePaymentDelete(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoicePayment/${e}`,{method:"DELETE"})}async outgoingInvoicePaymentRead(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoicePayment?${e}`,{method:"GET"})}async outgoingInvoicePaymentReadById(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoicePayment/${e}`,{method:"GET"})}async outgoingInvoicePaymentUpdate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoicePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingInvoiceRead(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoice?${e}`,{method:"GET"})}async outgoingInvoiceReadById(e){return this.#p.web.fetchJson(`/fiscal/outgoingInvoice/${e}`,{method:"GET"})}async outgoingInvoiceUpdate(e){return this.#p.web.fetchJson("/fiscal/outgoingInvoice",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},FiscalYear:class{id;company;description;dateStart;dateEnd;notBefore;accountChart;resultCenterChart;status},IncomingInvoice:class{status;incomingList;id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},IncomingInvoiceItem:class{incomingInvoice;incomingRequest;OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},IncomingInvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},Invoice:class{id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},InvoiceItem:class{OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},InvoiceItemAccounting:class{id;invoiceItem;type;sign;account;accountComplement;value;tags;properties},InvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},InvoiceReference:class{id;invoice;invoiceReference},InvoiceSeries:class{id;company;code;description;tags;properties;lastNumber},OutgoingInvoice:class{status;outgoingList;shipment;id;source;company;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;fiscalProfilePerson;returned;invoiceSeries;number;date;issueDate;shippingDateTime;grossWeightKg;netWeightKg;volumeM3;totalValue;personSalesperson;personShipping;freightType;journalEntry;tags;properties},OutgoingInvoiceItem:class{outgoingInvoice;OTHER_VALUES_FREIGHT;OTHER_VALUES_INSURANCE;OTHER_VALUES_OTHER;id;accountingType;productPacking;taxationRule;taxationOperation;quantity;unit;physicalProductPacking;physicalQuantity;netWeightKg;grossWeightKg;unitValue;productValue;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;assetTag;account;accountComplement;tags;properties},OutgoingInvoicePayment:class{id;invoice;type;account;accountComplement;dueDate;value;tags;properties},br:$i,taxation:Ii});var Ni=Object.freeze({__proto__:null,IncomingShipping:class{id;company;date;tags;status;comments},LogisticService:class{#p;constructor(e){this.#p=e}async shippingCreate(e){return this.#p.web.fetchJson("/logistic/shipping",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shippingDelete(e){return this.#p.web.fetchJson(`/logistic/shipping/${e}`,{method:"DELETE"})}async shippingItemCreate(e){return this.#p.web.fetchJson("/logistic/shippingItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shippingItemDelete(e){return this.#p.web.fetchJson(`/logistic/shippingItem/${e}`,{method:"DELETE"})}async shippingItemRead(e){return this.#p.web.fetchJson(`/logistic/shippingItem?${e}`,{method:"GET"})}async shippingItemReadById(e){return this.#p.web.fetchJson(`/logistic/shippingItem/${e}`,{method:"GET"})}async shippingItemUpdate(e){return this.#p.web.fetchJson("/logistic/shippingItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shippingOpApprove(e){return this.#p.web.fetchJson(`/logistic/shippingOpApprove/${e}`,{method:"POST"})}async shippingRead(e){return this.#p.web.fetchJson(`/logistic/shipping?${e}`,{method:"GET"})}async shippingReadById(e){return this.#p.web.fetchJson(`/logistic/shipping/${e}`,{method:"GET"})}async shippingUpdate(e){return this.#p.web.fetchJson("/logistic/shipping",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ShippingItem:class{id;shipping;purchaseItem;quantity}});var ki=Object.freeze({__proto__:null,Address:class{id;warehouse;addressProfile;code;status;tags;properties},AddressProfile:class{id;code;tags;properties},HandlingUnit:class{id;code;tags;properties},IncomingList:class{id;company;status;person;date;tags;properties},IncomingListItem:class{id;incomingList;stockCluster;address;depositor;productPacking;quality;lot;serial;expirationDate;handlingUnit;type;quantity;netWeightKg;grossWeightKg;volumeM3;productPackingInvoice;tags;properties},IncomingRequest:class{id;company;warehouse;status;person;date;code;description;netWeightKg;grossWeightKg;volumeM3;tags;properties},IncomingRequestItem:class{id;status;incomingRequest;productPacking;quantity;netWeightKg;grossWeightKg;volumeM3;servedQuantity;reservedQuantity},Inventory:class{id;company;status;date;description;pointInTime;journalEntry;tags;properties},InventoryAdjustment:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},InventoryCheck:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},InventoryStock:class{id;inventory;stockCluster;address;productPacking;depositor;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;properties},Lot:class{id;code;date;tags;properties},MaterialService:class{#p;constructor(e){this.#p=e}async addressCreate(e){return this.#p.web.fetchJson("/material/address",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async addressDelete(e){return this.#p.web.fetchJson(`/material/address/${e}`,{method:"DELETE"})}async addressProfileCreate(e){return this.#p.web.fetchJson("/material/addressProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async addressProfileDelete(e){return this.#p.web.fetchJson(`/material/addressProfile/${e}`,{method:"DELETE"})}async addressProfileRead(e){return this.#p.web.fetchJson(`/material/addressProfile?${e}`,{method:"GET"})}async addressProfileReadById(e){return this.#p.web.fetchJson(`/material/addressProfile/${e}`,{method:"GET"})}async addressProfileUpdate(e){return this.#p.web.fetchJson("/material/addressProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async addressRead(e){return this.#p.web.fetchJson(`/material/address?${e}`,{method:"GET"})}async addressReadById(e){return this.#p.web.fetchJson(`/material/address/${e}`,{method:"GET"})}async addressUpdate(e){return this.#p.web.fetchJson("/material/address",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async handlingUnitCreate(e){return this.#p.web.fetchJson("/material/handlingUnit",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async handlingUnitDelete(e){return this.#p.web.fetchJson(`/material/handlingUnit/${e}`,{method:"DELETE"})}async handlingUnitRead(e){return this.#p.web.fetchJson(`/material/handlingUnit?${e}`,{method:"GET"})}async handlingUnitReadById(e){return this.#p.web.fetchJson(`/material/handlingUnit/${e}`,{method:"GET"})}async handlingUnitUpdate(e){return this.#p.web.fetchJson("/material/handlingUnit",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListCreate(e){return this.#p.web.fetchJson("/material/incomingList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListDelete(e){return this.#p.web.fetchJson(`/material/incomingList/${e}`,{method:"DELETE"})}async incomingListItemCreate(e){return this.#p.web.fetchJson("/material/incomingListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListItemDelete(e){return this.#p.web.fetchJson(`/material/incomingListItem/${e}`,{method:"DELETE"})}async incomingListItemRead(e){return this.#p.web.fetchJson(`/material/incomingListItem?${e}`,{method:"GET"})}async incomingListItemReadById(e){return this.#p.web.fetchJson(`/material/incomingListItem/${e}`,{method:"GET"})}async incomingListItemUpdate(e){return this.#p.web.fetchJson("/material/incomingListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingListOpImportFromOutgoingList(e,t){return this.#p.web.fetchJson(`/material/incomingListOpImportFromOutgoingList/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async incomingListOpPrepare(e){return this.#p.web.fetchJson(`/material/incomingListOpPrepare/${e}`,{method:"POST"})}async incomingListOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/incomingListOpPrepareRevert/${e}`,{method:"POST"})}async incomingListRead(e){return this.#p.web.fetchJson(`/material/incomingList?${e}`,{method:"GET"})}async incomingListReadById(e){return this.#p.web.fetchJson(`/material/incomingList/${e}`,{method:"GET"})}async incomingListUpdate(e){return this.#p.web.fetchJson("/material/incomingList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async incomingRequestItemRead(e){return this.#p.web.fetchJson(`/material/incomingRequestItem?${e}`,{method:"GET"})}async incomingRequestItemReadById(e){return this.#p.web.fetchJson(`/material/incomingRequestItem/${e}`,{method:"GET"})}async incomingRequestRead(e){return this.#p.web.fetchJson(`/material/incomingRequest?${e}`,{method:"GET"})}async incomingRequestReadById(e){return this.#p.web.fetchJson(`/material/incomingRequest/${e}`,{method:"GET"})}async inventoryAdjustmentCreate(e){return this.#p.web.fetchJson("/material/inventoryAdjustment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryAdjustmentDelete(e){return this.#p.web.fetchJson(`/material/inventoryAdjustment/${e}`,{method:"DELETE"})}async inventoryAdjustmentOpCreate(e,t,n){const i=new URLSearchParams;return t&&i.set("stockId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/material/inventoryAdjustmentOpCreate/${e}?${i.toString()}`,{method:"POST"})}async inventoryAdjustmentRead(e){return this.#p.web.fetchJson(`/material/inventoryAdjustment?${e}`,{method:"GET"})}async inventoryAdjustmentReadById(e){return this.#p.web.fetchJson(`/material/inventoryAdjustment/${e}`,{method:"GET"})}async inventoryAdjustmentUpdate(e){return this.#p.web.fetchJson("/material/inventoryAdjustment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryCheckCreate(e){return this.#p.web.fetchJson("/material/inventoryCheck",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryCheckDelete(e){return this.#p.web.fetchJson(`/material/inventoryCheck/${e}`,{method:"DELETE"})}async inventoryCheckRead(e){return this.#p.web.fetchJson(`/material/inventoryCheck?${e}`,{method:"GET"})}async inventoryCheckReadById(e){return this.#p.web.fetchJson(`/material/inventoryCheck/${e}`,{method:"GET"})}async inventoryCheckUpdate(e){return this.#p.web.fetchJson("/material/inventoryCheck",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryCreate(e){return this.#p.web.fetchJson("/material/inventory",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryDelete(e){return this.#p.web.fetchJson(`/material/inventory/${e}`,{method:"DELETE"})}async inventoryOpApprove(e){return this.#p.web.fetchJson(`/material/inventoryOpApprove/${e}`,{method:"POST"})}async inventoryOpApproveRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpApproveRevert/${e}`,{method:"POST"})}async inventoryOpFinish(e){return this.#p.web.fetchJson(`/material/inventoryOpFinish/${e}`,{method:"POST"})}async inventoryOpFinishRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpFinishRevert/${e}`,{method:"POST"})}async inventoryOpPrepare(e){return this.#p.web.fetchJson(`/material/inventoryOpPrepare/${e}`,{method:"POST"})}async inventoryOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpPrepareRevert/${e}`,{method:"POST"})}async inventoryOpProcess(e){return this.#p.web.fetchJson(`/material/inventoryOpProcess/${e}`,{method:"POST"})}async inventoryOpProcessRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpProcessRevert/${e}`,{method:"POST"})}async inventoryOpStart(e){return this.#p.web.fetchJson(`/material/inventoryOpStart/${e}`,{method:"POST"})}async inventoryOpStartRevert(e){return this.#p.web.fetchJson(`/material/inventoryOpStartRevert/${e}`,{method:"POST"})}async inventoryRead(e){return this.#p.web.fetchJson(`/material/inventory?${e}`,{method:"GET"})}async inventoryReadById(e){return this.#p.web.fetchJson(`/material/inventory/${e}`,{method:"GET"})}async inventoryStockCreate(e){return this.#p.web.fetchJson("/material/inventoryStock",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryStockDelete(e){return this.#p.web.fetchJson(`/material/inventoryStock/${e}`,{method:"DELETE"})}async inventoryStockOpCreate(e,t){const n=new URLSearchParams;return t&&n.set("stockId",String(t)),this.#p.web.fetchJson(`/material/inventoryStockOpCreate/${e}?${n.toString()}`,{method:"POST"})}async inventoryStockRead(e){return this.#p.web.fetchJson(`/material/inventoryStock?${e}`,{method:"GET"})}async inventoryStockReadById(e){return this.#p.web.fetchJson(`/material/inventoryStock/${e}`,{method:"GET"})}async inventoryStockUpdate(e){return this.#p.web.fetchJson("/material/inventoryStock",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async inventoryUpdate(e){return this.#p.web.fetchJson("/material/inventory",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async lotCreate(e){return this.#p.web.fetchJson("/material/lot",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async lotDelete(e){return this.#p.web.fetchJson(`/material/lot/${e}`,{method:"DELETE"})}async lotRead(e){return this.#p.web.fetchJson(`/material/lot?${e}`,{method:"GET"})}async lotReadById(e){return this.#p.web.fetchJson(`/material/lot/${e}`,{method:"GET"})}async lotUpdate(e){return this.#p.web.fetchJson("/material/lot",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async movingOrderCreate(e){return this.#p.web.fetchJson("/material/movingOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async movingOrderDelete(e){return this.#p.web.fetchJson(`/material/movingOrder/${e}`,{method:"DELETE"})}async movingOrderItemDelete(e){return this.#p.web.fetchJson(`/material/movingOrderItem/${e}`,{method:"DELETE"})}async movingOrderItemOpFinish(e){return this.#p.web.fetchJson(`/material/movingOrderItemOpFinish/${e}`,{method:"POST"})}async movingOrderItemOpLoad(e,t){return this.#p.web.fetchJson(`/material/movingOrderItemOpLoad/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async movingOrderItemOpStart(e){return this.#p.web.fetchJson(`/material/movingOrderItemOpStart/${e}`,{method:"POST"})}async movingOrderItemOpStartRevert(e){return this.#p.web.fetchJson(`/material/movingOrderItemOpStartRevert/${e}`,{method:"POST"})}async movingOrderItemRead(e){return this.#p.web.fetchJson(`/material/movingOrderItem?${e}`,{method:"GET"})}async movingOrderItemReadById(e){return this.#p.web.fetchJson(`/material/movingOrderItem/${e}`,{method:"GET"})}async movingOrderItemUpdate(e){return this.#p.web.fetchJson("/material/movingOrderItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async movingOrderOpAllocateStock(e,t){return this.#p.web.fetchJson(`/material/movingOrderOpAllocateStock/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async movingOrderOpApprove(e){return this.#p.web.fetchJson(`/material/movingOrderOpApprove/${e}`,{method:"POST"})}async movingOrderOpApproveRevert(e){return this.#p.web.fetchJson(`/material/movingOrderOpApproveRevert/${e}`,{method:"POST"})}async movingOrderOpFinish(e){return this.#p.web.fetchJson(`/material/movingOrderOpFinish/${e}`,{method:"POST"})}async movingOrderOpPrepare(e){return this.#p.web.fetchJson(`/material/movingOrderOpPrepare/${e}`,{method:"POST"})}async movingOrderOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/movingOrderOpPrepareRevert/${e}`,{method:"POST"})}async movingOrderOpStart(e){return this.#p.web.fetchJson(`/material/movingOrderOpStart/${e}`,{method:"POST"})}async movingOrderOpStartRevert(e){return this.#p.web.fetchJson(`/material/movingOrderOpStartRevert/${e}`,{method:"POST"})}async movingOrderOpUnload(e,t){const n=new URLSearchParams;return t&&n.set("userId",String(t)),this.#p.web.fetchJson(`/material/movingOrderOpUnload/${e}?${n.toString()}`,{method:"POST"})}async movingOrderRead(e){return this.#p.web.fetchJson(`/material/movingOrder?${e}`,{method:"GET"})}async movingOrderReadById(e){return this.#p.web.fetchJson(`/material/movingOrder/${e}`,{method:"GET"})}async movingOrderUpdate(e){return this.#p.web.fetchJson("/material/movingOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingListDelete(e){return this.#p.web.fetchJson(`/material/outgoingList/${e}`,{method:"DELETE"})}async outgoingListOpCreateFromReservation(e,t){return this.#p.web.fetchJson(`/material/outgoingListOpCreateFromReservation/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingListOpMerge(e){return this.#p.web.fetchJson("/material/outgoingListOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async outgoingListOpOutgoingInvoiceCreate(e,t){return this.#p.web.fetchJson(`/material/outgoingListOpOutgoingInvoiceCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingListOpOutgoingInvoiceCreateRevert(e){return this.#p.web.fetchJson(`/material/outgoingListOpOutgoingInvoiceCreateRevert/${e}`,{method:"POST"})}async outgoingListOpPacked(e){return this.#p.web.fetchJson(`/material/outgoingListOpPacked/${e}`,{method:"POST"})}async outgoingListOpPackedRevert(e){return this.#p.web.fetchJson(`/material/outgoingListOpPackedRevert/${e}`,{method:"POST"})}async outgoingListOpVolumeCreateAuto(e,t){return this.#p.web.fetchJson(`/material/outgoingListOpVolumeCreateAuto/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async outgoingListRead(e){return this.#p.web.fetchJson(`/material/outgoingList?${e}`,{method:"GET"})}async outgoingListReadById(e){return this.#p.web.fetchJson(`/material/outgoingList/${e}`,{method:"GET"})}async pickingOrderCreate(e){return this.#p.web.fetchJson("/material/pickingOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderDelete(e){return this.#p.web.fetchJson(`/material/pickingOrder/${e}`,{method:"DELETE"})}async pickingOrderItemCreate(e){return this.#p.web.fetchJson("/material/pickingOrderItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderItemDelete(e){return this.#p.web.fetchJson(`/material/pickingOrderItem/${e}`,{method:"DELETE"})}async pickingOrderItemRead(e){return this.#p.web.fetchJson(`/material/pickingOrderItem?${e}`,{method:"GET"})}async pickingOrderItemReadById(e){return this.#p.web.fetchJson(`/material/pickingOrderItem/${e}`,{method:"GET"})}async pickingOrderItemUpdate(e){return this.#p.web.fetchJson("/material/pickingOrderItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderOpApprove(e){return this.#p.web.fetchJson(`/material/pickingOrderOpApprove/${e}`,{method:"POST"})}async pickingOrderOpApproveRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpApproveRevert/${e}`,{method:"POST"})}async pickingOrderOpCreate(e){return this.#p.web.fetchJson("/material/pickingOrderOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderOpDistribute(e,t,n,i){const s=new URLSearchParams;return t&&s.set("outgoingListId",String(t)),n&&s.set("stockId",String(n)),i&&s.set("quantity",String(i)),this.#p.web.fetchJson(`/material/pickingOrderOpDistribute/${e}?${s.toString()}`,{method:"POST"})}async pickingOrderOpDistributeAuto(e){return this.#p.web.fetchJson(`/material/pickingOrderOpDistributeAuto/${e}`,{method:"POST"})}async pickingOrderOpDistributeRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpDistributeRevert/${e}`,{method:"POST"})}async pickingOrderOpFinish(e){return this.#p.web.fetchJson(`/material/pickingOrderOpFinish/${e}`,{method:"POST"})}async pickingOrderOpGroup(e){return this.#p.web.fetchJson("/material/pickingOrderOpGroup",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingOrderOpGroupRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpGroupRevert/${e}`,{method:"POST"})}async pickingOrderOpPrepare(e){return this.#p.web.fetchJson(`/material/pickingOrderOpPrepare/${e}`,{method:"POST"})}async pickingOrderOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpPrepareRevert/${e}`,{method:"POST"})}async pickingOrderOpReservationFinish(e){return this.#p.web.fetchJson(`/material/pickingOrderOpReservationFinish/${e}`,{method:"POST"})}async pickingOrderOpReservationFinishRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpReservationFinishRevert/${e}`,{method:"POST"})}async pickingOrderOpUngroup(e){return this.#p.web.fetchJson(`/material/pickingOrderOpUngroup/${e}`,{method:"POST"})}async pickingOrderOpUngroupDivergent(e){return this.#p.web.fetchJson(`/material/pickingOrderOpUngroupDivergent/${e}`,{method:"POST"})}async pickingOrderOpUngroupRevert(e){return this.#p.web.fetchJson(`/material/pickingOrderOpUngroupRevert/${e}`,{method:"POST"})}async pickingOrderRead(e){return this.#p.web.fetchJson(`/material/pickingOrder?${e}`,{method:"GET"})}async pickingOrderReadById(e){return this.#p.web.fetchJson(`/material/pickingOrder/${e}`,{method:"GET"})}async pickingOrderUpdate(e){return this.#p.web.fetchJson("/material/pickingOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingProfileCreate(e){return this.#p.web.fetchJson("/material/pickingProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async pickingProfileDelete(e){return this.#p.web.fetchJson(`/material/pickingProfile/${e}`,{method:"DELETE"})}async pickingProfileRead(e){return this.#p.web.fetchJson(`/material/pickingProfile?${e}`,{method:"GET"})}async pickingProfileReadById(e){return this.#p.web.fetchJson(`/material/pickingProfile/${e}`,{method:"GET"})}async pickingProfileUpdate(e){return this.#p.web.fetchJson("/material/pickingProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async qualityCreate(e){return this.#p.web.fetchJson("/material/quality",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async qualityDelete(e){return this.#p.web.fetchJson(`/material/quality/${e}`,{method:"DELETE"})}async qualityRead(e){return this.#p.web.fetchJson(`/material/quality?${e}`,{method:"GET"})}async qualityReadById(e){return this.#p.web.fetchJson(`/material/quality/${e}`,{method:"GET"})}async qualityUpdate(e){return this.#p.web.fetchJson("/material/quality",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationCreate(e){return this.#p.web.fetchJson("/material/reservation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationDelete(e){return this.#p.web.fetchJson(`/material/reservation/${e}`,{method:"DELETE"})}async reservationItemRead(e){return this.#p.web.fetchJson(`/material/reservationItem?${e}`,{method:"GET"})}async reservationItemReadById(e){return this.#p.web.fetchJson(`/material/reservationItem/${e}`,{method:"GET"})}async reservationOpAllocate(e,t){return this.#p.web.fetchJson(`/material/reservationOpAllocate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async reservationOpAllocateAuto(e){return this.#p.web.fetchJson(`/material/reservationOpAllocateAuto/${e}`,{method:"POST"})}async reservationOpAllocateAutoRevert(e){return this.#p.web.fetchJson(`/material/reservationOpAllocateAutoRevert/${e}`,{method:"POST"})}async reservationOpAllocateRevert(e,t){return this.#p.web.fetchJson(`/material/reservationOpAllocateRevert/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async reservationOpAllocateStock(e,t,n){const i=new URLSearchParams;return t&&i.set("stockId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/material/reservationOpAllocateStock/${e}?${i.toString()}`,{method:"POST"})}async reservationOpAllocateStockRevert(e,t,n){const i=new URLSearchParams;return t&&i.set("stockId",String(t)),n&&i.set("quantity",String(n)),this.#p.web.fetchJson(`/material/reservationOpAllocateStockRevert/${e}?${i.toString()}`,{method:"POST"})}async reservationOpApprove(e){return this.#p.web.fetchJson(`/material/reservationOpApprove/${e}`,{method:"POST"})}async reservationOpApproveRevert(e){return this.#p.web.fetchJson(`/material/reservationOpApproveRevert/${e}`,{method:"POST"})}async reservationOpFinish(e){return this.#p.web.fetchJson(`/material/reservationOpFinish/${e}`,{method:"POST"})}async reservationOpFinishDivergent(e){return this.#p.web.fetchJson(`/material/reservationOpFinishDivergent/${e}`,{method:"POST"})}async reservationOpFinishRevert(e){return this.#p.web.fetchJson(`/material/reservationOpFinishRevert/${e}`,{method:"POST"})}async reservationOpPrepare(e){return this.#p.web.fetchJson(`/material/reservationOpPrepare/${e}`,{method:"POST"})}async reservationOpPrepareRevert(e){return this.#p.web.fetchJson(`/material/reservationOpPrepareRevert/${e}`,{method:"POST"})}async reservationOpStart(e){return this.#p.web.fetchJson(`/material/reservationOpStart/${e}`,{method:"POST"})}async reservationOpStartRevert(e){return this.#p.web.fetchJson(`/material/reservationOpStartRevert/${e}`,{method:"POST"})}async reservationRead(e){return this.#p.web.fetchJson(`/material/reservation?${e}`,{method:"GET"})}async reservationReadById(e){return this.#p.web.fetchJson(`/material/reservation/${e}`,{method:"GET"})}async reservationTargetCreate(e){return this.#p.web.fetchJson("/material/reservationTarget",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationTargetDelete(e){return this.#p.web.fetchJson(`/material/reservationTarget/${e}`,{method:"DELETE"})}async reservationTargetRead(e){return this.#p.web.fetchJson(`/material/reservationTarget?${e}`,{method:"GET"})}async reservationTargetReadById(e){return this.#p.web.fetchJson(`/material/reservationTarget/${e}`,{method:"GET"})}async reservationTargetUpdate(e){return this.#p.web.fetchJson("/material/reservationTarget",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reservationUpdate(e){return this.#p.web.fetchJson("/material/reservation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async serialCreate(e){return this.#p.web.fetchJson("/material/serial",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async serialDelete(e){return this.#p.web.fetchJson(`/material/serial/${e}`,{method:"DELETE"})}async serialRead(e){return this.#p.web.fetchJson(`/material/serial?${e}`,{method:"GET"})}async serialReadById(e){return this.#p.web.fetchJson(`/material/serial/${e}`,{method:"GET"})}async serialUpdate(e){return this.#p.web.fetchJson("/material/serial",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockAvailabilityRead(e){return this.#p.web.fetchJson(`/material/stockAvailability?${e}`,{method:"GET"})}async stockClusterCreate(e){return this.#p.web.fetchJson("/material/stockCluster",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockClusterDelete(e){return this.#p.web.fetchJson(`/material/stockCluster/${e}`,{method:"DELETE"})}async stockClusterRead(e){return this.#p.web.fetchJson(`/material/stockCluster?${e}`,{method:"GET"})}async stockClusterReadById(e){return this.#p.web.fetchJson(`/material/stockCluster/${e}`,{method:"GET"})}async stockClusterUpdate(e){return this.#p.web.fetchJson("/material/stockCluster",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementCreate(e){return this.#p.web.fetchJson("/material/stockManagement",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementDelete(e){return this.#p.web.fetchJson(`/material/stockManagement/${e}`,{method:"DELETE"})}async stockManagementItemCreate(e){return this.#p.web.fetchJson("/material/stockManagementItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementItemDelete(e){return this.#p.web.fetchJson(`/material/stockManagementItem/${e}`,{method:"DELETE"})}async stockManagementItemRead(e){return this.#p.web.fetchJson(`/material/stockManagementItem?${e}`,{method:"GET"})}async stockManagementItemReadById(e){return this.#p.web.fetchJson(`/material/stockManagementItem/${e}`,{method:"GET"})}async stockManagementItemUpdate(e){return this.#p.web.fetchJson("/material/stockManagementItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementOpImport(e){return this.#p.web.fetchJson("/material/stockManagementOpImport",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementOpUpdateAverageDailyConsumption(e){return this.#p.web.fetchJson("/material/stockManagementOpUpdateAverageDailyConsumption",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockManagementRead(e){return this.#p.web.fetchJson(`/material/stockManagement?${e}`,{method:"GET"})}async stockManagementReadById(e){return this.#p.web.fetchJson(`/material/stockManagement/${e}`,{method:"GET"})}async stockManagementUpdate(e){return this.#p.web.fetchJson("/material/stockManagement",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockOpBarcode(e){return this.#p.web.fetchJson("/material/stockOpBarcode",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async stockOpUpdate(e,t){return this.#p.web.fetchJson(`/material/stockOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async stockPointRead(e,t){const n=new URLSearchParams;return e&&n.set("dateTime",String(e)),this.#p.web.fetchJson(`/material/stockPoint?${t}?${n.toString()}`,{method:"GET"})}async stockRead(e){return this.#p.web.fetchJson(`/material/stock?${e}`,{method:"GET"})}async stockReadById(e){return this.#p.web.fetchJson(`/material/stock/${e}`,{method:"GET"})}async stockTransactionOpRevert(e){return this.#p.web.fetchJson(`/material/stockTransactionOpRevert/${e}`,{method:"POST"})}async stockTransactionRead(e){return this.#p.web.fetchJson(`/material/stockTransaction?${e}`,{method:"GET"})}async stockTransactionReadById(e){return this.#p.web.fetchJson(`/material/stockTransaction/${e}`,{method:"GET"})}async volumeCreate(e){return this.#p.web.fetchJson("/material/volume",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async volumeDelete(e){return this.#p.web.fetchJson(`/material/volume/${e}`,{method:"DELETE"})}async volumeItemCreate(e){return this.#p.web.fetchJson("/material/volumeItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async volumeItemDelete(e){return this.#p.web.fetchJson(`/material/volumeItem/${e}`,{method:"DELETE"})}async volumeItemRead(e){return this.#p.web.fetchJson(`/material/volumeItem?${e}`,{method:"GET"})}async volumeItemReadById(e){return this.#p.web.fetchJson(`/material/volumeItem/${e}`,{method:"GET"})}async volumeOpCheck(e,t){return this.#p.web.fetchJson(`/material/volumeOpCheck/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async volumeOpCheckRevert(e){return this.#p.web.fetchJson(`/material/volumeOpCheckRevert/${e}`,{method:"POST"})}async volumeOpCreate(e){return this.#p.web.fetchJson("/material/volumeOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async volumeOpHandlingUnitSet(e,t){const n=new URLSearchParams;return t&&n.set("handlingUnitId",String(t)),this.#p.web.fetchJson(`/material/volumeOpHandlingUnitSet/${e}?${n.toString()}`,{method:"POST"})}async volumeRead(e){return this.#p.web.fetchJson(`/material/volume?${e}`,{method:"GET"})}async volumeReadById(e){return this.#p.web.fetchJson(`/material/volume/${e}`,{method:"GET"})}async volumeUpdate(e){return this.#p.web.fetchJson("/material/volume",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async warehouseCreate(e){return this.#p.web.fetchJson("/material/warehouse",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async warehouseDelete(e){return this.#p.web.fetchJson(`/material/warehouse/${e}`,{method:"DELETE"})}async warehouseRead(e){return this.#p.web.fetchJson(`/material/warehouse?${e}`,{method:"GET"})}async warehouseReadById(e){return this.#p.web.fetchJson(`/material/warehouse/${e}`,{method:"GET"})}async warehouseUpdate(e){return this.#p.web.fetchJson("/material/warehouse",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},MovingOrder:class{id;company;status;date;tags;properties},MovingOrderItem:class{id;movingOrder;status;address;stock;quantity;quantityLoaded;quantityUnloaded;user;tags;properties},OutgoingList:class{id;company;status;source;date;person;reservation;shipment;invoiceSeries;number;tags;properties},PickingOrder:class{id;company;status;source;pickingProfile;person;reservation;outgoingList;movingOrder;date;description;netWeightKg;grossWeightKg;volumeM3;shipment;pickingOrderGroup;tags;properties},PickingOrderItem:class{id;pickingOrder;stockCluster;productPacking;quantity},PickingProfile:class{id;code;description;tags;properties},Quality:class{id;code;description;punctuation;tags;properties},Reservation:class{id;company;status;person;code;date;tags;properties},ReservationItem:class{id;reservation;stockCluster;warehouse;address;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;value},ReservationTarget:class{id;reservation;stockCluster;productPacking;quantity;reservedQuantity},Schedule:class{id},Serial:class{id;code;tags;properties},Stock:class{id;stockCluster;warehouse;address;code;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},StockAvailability:class{id;type;subtype;stockCluster;company;productPacking;date;schedule;quantity},StockCluster:class{id;code;description;assetValuationMethod;priceListCost;priceListRetail;tags;properties},StockData:class{id;stockCluster;address;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},StockManagement:class{id;code;tags;properties},StockManagementItem:class{id;stockManagement;productPacking;averageDailyConsumption;replenishmentTimeDays;safetyStockPercentage;minimumStock;replenishmentMinimum;replenishmentBatch;acquisitionType;person;tags;properties},StockTransaction:class{dateTime;sourceId;transaction;flow;reversal;description;balance;id;stockCluster;warehouse;address;code;depositor;productPacking;assetTag;quality;lot;serial;expirationDate;handlingUnit;type;tags;quantity;netWeightKg;grossWeightKg;volumeM3;reservation;movingOrderId;status},Volume:class{id;outgoingList;shipment;code;lengthCm;widthCm;heightCm;netWeightKg;grossWeightKg;volumeM3;handlingUnit;checked;loaded;tags;properties},VolumeItem:class{id;volume;productPacking;quantity},Warehouse:class{id;code;tags;properties}});var Di=Object.freeze({__proto__:null,PriceFormation:class{id;code;description;tags;properties},PriceFormationItem:class{id;priceFormation;code;description;type;expression;tags;properties},PriceFormationSimulation:class{id;value;items},PriceFormationSimulationItem:class{id;code;description;type;expression;value},PriceListRetail:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListRetailItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},Quote:class{id;status;company;saleProfile;workflow;workpiece;person;fiscalProfilePerson;code;date;availabilityDate;personSalesperson;totalValue;tags;properties},QuoteItem:class{id;status;quote;productPacking;quantity;tags;properties},QuoteItemProposal:class{id;status;quoteItem;productPacking;quantity;currency;unitValue;totalValue;availabilityDate;tags;properties},Sale:class{id;status;company;saleProfile;fiscalProfileOperation;workflow;workpiece;person;personAddressShipping;code;date;availabilityDate;personSalesperson;freightType;personShipping;priceList;currency;totalValue;pickingOrder;shipment;outgoingInvoice;quote;tags;properties},SaleItem:class{id;sale;productPacking;fiscalProfileProduct;taxationRule;taxationOperation;priceListValue;quantity;servedQuantity;unitValue;currency;costUnitValue;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;account;accountComplement;schedule;tags;properties},SalePayment:class{id;sale;type;account;accountComplement;term;value;tags;properties},SaleProfile:class{id;code;description;fiscalProfileOperation;workflow;warehouse;invoiceSeriesTag;pickingProfile;tags;properties},SaleService:class{#p;constructor(e){this.#p=e}async priceFormationCreate(e){return this.#p.web.fetchJson("/sale/priceFormation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceFormationDelete(e){return this.#p.web.fetchJson(`/sale/priceFormation/${e}`,{method:"DELETE"})}async priceFormationItemCreate(e){return this.#p.web.fetchJson("/sale/priceFormationItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceFormationItemDelete(e){return this.#p.web.fetchJson(`/sale/priceFormationItem/${e}`,{method:"DELETE"})}async priceFormationItemRead(e){return this.#p.web.fetchJson(`/sale/priceFormationItem?${e}`,{method:"GET"})}async priceFormationItemReadById(e){return this.#p.web.fetchJson(`/sale/priceFormationItem/${e}`,{method:"GET"})}async priceFormationItemUpdate(e){return this.#p.web.fetchJson("/sale/priceFormationItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceFormationOpCalculate(e,t){return this.#p.web.fetchJson(`/sale/priceFormationOpCalculate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async priceFormationOpClone(e){return this.#p.web.fetchJson(`/sale/priceFormationOpClone/${e}`,{method:"POST"})}async priceFormationOpSimulation(e,t){return this.#p.web.fetchJson(`/sale/priceFormationOpSimulation/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async priceFormationRead(e){return this.#p.web.fetchJson(`/sale/priceFormation?${e}`,{method:"GET"})}async priceFormationReadById(e){return this.#p.web.fetchJson(`/sale/priceFormation/${e}`,{method:"GET"})}async priceFormationUpdate(e){return this.#p.web.fetchJson("/sale/priceFormation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListCreate(e){return this.#p.web.fetchJson("/sale/priceList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListDelete(e){return this.#p.web.fetchJson(`/sale/priceList/${e}`,{method:"DELETE"})}async priceListItemCreate(e){return this.#p.web.fetchJson("/sale/priceListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListItemDelete(e){return this.#p.web.fetchJson(`/sale/priceListItem/${e}`,{method:"DELETE"})}async priceListItemRead(e){return this.#p.web.fetchJson(`/sale/priceListItem?${e}`,{method:"GET"})}async priceListItemReadById(e){return this.#p.web.fetchJson(`/sale/priceListItem/${e}`,{method:"GET"})}async priceListItemUpdate(e){return this.#p.web.fetchJson("/sale/priceListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListRead(e){return this.#p.web.fetchJson(`/sale/priceList?${e}`,{method:"GET"})}async priceListReadById(e){return this.#p.web.fetchJson(`/sale/priceList/${e}`,{method:"GET"})}async priceListUpdate(e){return this.#p.web.fetchJson("/sale/priceList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteCreate(e){return this.#p.web.fetchJson("/sale/quote",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteDelete(e){return this.#p.web.fetchJson(`/sale/quote/${e}`,{method:"DELETE"})}async quoteItemCreate(e){return this.#p.web.fetchJson("/sale/quoteItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemDelete(e){return this.#p.web.fetchJson(`/sale/quoteItem/${e}`,{method:"DELETE"})}async quoteItemOpReject(e){return this.#p.web.fetchJson(`/sale/quoteItemOpReject/${e}`,{method:"POST"})}async quoteItemOpRejectRevert(e){return this.#p.web.fetchJson(`/sale/quoteItemOpRejectRevert/${e}`,{method:"POST"})}async quoteItemProposalCreate(e){return this.#p.web.fetchJson("/sale/quoteItemProposal",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemProposalDelete(e){return this.#p.web.fetchJson(`/sale/quoteItemProposal/${e}`,{method:"DELETE"})}async quoteItemProposalOpApprove(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpApprove/${e}`,{method:"POST"})}async quoteItemProposalOpApproveRevert(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpApproveRevert/${e}`,{method:"POST"})}async quoteItemProposalOpReject(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpReject/${e}`,{method:"POST"})}async quoteItemProposalOpRejectRevert(e){return this.#p.web.fetchJson(`/sale/quoteItemProposalOpRejectRevert/${e}`,{method:"POST"})}async quoteItemProposalRead(e){return this.#p.web.fetchJson(`/sale/quoteItemProposal?${e}`,{method:"GET"})}async quoteItemProposalReadById(e){return this.#p.web.fetchJson(`/sale/quoteItemProposal/${e}`,{method:"GET"})}async quoteItemProposalUpdate(e){return this.#p.web.fetchJson("/sale/quoteItemProposal",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemRead(e){return this.#p.web.fetchJson(`/sale/quoteItem?${e}`,{method:"GET"})}async quoteItemReadById(e){return this.#p.web.fetchJson(`/sale/quoteItem/${e}`,{method:"GET"})}async quoteItemUpdate(e){return this.#p.web.fetchJson("/sale/quoteItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpApprove(e){return this.#p.web.fetchJson(`/sale/quoteOpApprove/${e}`,{method:"POST"})}async quoteOpApproveRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpApproveRevert/${e}`,{method:"POST"})}async quoteOpCancel(e){return this.#p.web.fetchJson(`/sale/quoteOpCancel/${e}`,{method:"POST"})}async quoteOpCancelRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpCancelRevert/${e}`,{method:"POST"})}async quoteOpCreate(e){return this.#p.web.fetchJson("/sale/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpFill(e){return this.#p.web.fetchJson(`/sale/quoteOpFill/${e}`,{method:"POST"})}async quoteOpFillRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpFillRevert/${e}`,{method:"POST"})}async quoteOpPrepare(e){return this.#p.web.fetchJson(`/sale/quoteOpPrepare/${e}`,{method:"POST"})}async quoteOpPrepareRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpPrepareRevert/${e}`,{method:"POST"})}async quoteOpReject(e){return this.#p.web.fetchJson(`/sale/quoteOpReject/${e}`,{method:"POST"})}async quoteOpRejectRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpRejectRevert/${e}`,{method:"POST"})}async quoteOpStart(e){return this.#p.web.fetchJson(`/sale/quoteOpStart/${e}`,{method:"POST"})}async quoteOpStartRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpStartRevert/${e}`,{method:"POST"})}async quoteOpSubmit(e){return this.#p.web.fetchJson(`/sale/quoteOpSubmit/${e}`,{method:"POST"})}async quoteOpSubmitRevert(e){return this.#p.web.fetchJson(`/sale/quoteOpSubmitRevert/${e}`,{method:"POST"})}async quoteRead(e){return this.#p.web.fetchJson(`/sale/quote?${e}`,{method:"GET"})}async quoteReadById(e){return this.#p.web.fetchJson(`/sale/quote/${e}`,{method:"GET"})}async quoteUpdate(e){return this.#p.web.fetchJson("/sale/quote",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleCreate(e){return this.#p.web.fetchJson("/sale/sale",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleDelete(e){return this.#p.web.fetchJson(`/sale/sale/${e}`,{method:"DELETE"})}async saleItemCreate(e){return this.#p.web.fetchJson("/sale/saleItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleItemDelete(e){return this.#p.web.fetchJson(`/sale/saleItem/${e}`,{method:"DELETE"})}async saleItemOpUpdatePrepared(e){return this.#p.web.fetchJson("/sale/saleItemOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleItemRead(e){return this.#p.web.fetchJson(`/sale/saleItem?${e}`,{method:"GET"})}async saleItemReadById(e){return this.#p.web.fetchJson(`/sale/saleItem/${e}`,{method:"GET"})}async saleItemUpdate(e){return this.#p.web.fetchJson("/sale/saleItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleOpApprove(e){return this.#p.web.fetchJson(`/sale/saleOpApprove/${e}`,{method:"POST"})}async saleOpApproveRevert(e){return this.#p.web.fetchJson(`/sale/saleOpApproveRevert/${e}`,{method:"POST"})}async saleOpApproveUnconditionally(e){return this.#p.web.fetchJson(`/sale/saleOpApproveUnconditionally/${e}`,{method:"POST"})}async saleOpCancel(e,t){return this.#p.web.fetchJson(`/sale/saleOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpCancelRevert(e){return this.#p.web.fetchJson(`/sale/saleOpCancelRevert/${e}`,{method:"POST"})}async saleOpClone(e){return this.#p.web.fetchJson(`/sale/saleOpClone/${e}`,{method:"POST"})}async saleOpCreate(e){return this.#p.web.fetchJson("/sale/saleOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleOpFinishRevert(e){return this.#p.web.fetchJson(`/sale/saleOpFinishRevert/${e}`,{method:"POST"})}async saleOpForwardAuto(e,t){return this.#p.web.fetchJson(`/sale/saleOpForwardAuto/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpMerge(e){return this.#p.web.fetchJson("/sale/saleOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleOpMergeRevert(e){return this.#p.web.fetchJson(`/sale/saleOpMergeRevert/${e}`,{method:"POST"})}async saleOpPickingOrderCreate(e,t){return this.#p.web.fetchJson(`/sale/saleOpPickingOrderCreate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpPickingOrderCreateRevert(e,t){const n=new URLSearchParams;return t&&n.set("pickingOrderId",String(t)),this.#p.web.fetchJson(`/sale/saleOpPickingOrderCreateRevert/${e}?${n.toString()}`,{method:"POST"})}async saleOpPrepare(e){return this.#p.web.fetchJson(`/sale/saleOpPrepare/${e}`,{method:"POST"})}async saleOpPrepareRevert(e){return this.#p.web.fetchJson(`/sale/saleOpPrepareRevert/${e}`,{method:"POST"})}async saleOpShipmentAssign(e,t){const n=new URLSearchParams;return t&&n.set("shipmentId",String(t)),this.#p.web.fetchJson(`/sale/saleOpShipmentAssign/${e}?${n.toString()}`,{method:"POST"})}async saleOpShipmentAssignRevert(e){return this.#p.web.fetchJson(`/sale/saleOpShipmentAssignRevert/${e}`,{method:"POST"})}async saleOpSplit(e,t){return this.#p.web.fetchJson(`/sale/saleOpSplit/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async saleOpTaxationCalc(e){return this.#p.web.fetchJson(`/sale/saleOpTaxationCalc/${e}`,{method:"POST"})}async saleOpUpdatePrepared(e){return this.#p.web.fetchJson("/sale/saleOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async salePaymentCreate(e){return this.#p.web.fetchJson("/sale/salePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async salePaymentDelete(e){return this.#p.web.fetchJson(`/sale/salePayment/${e}`,{method:"DELETE"})}async salePaymentRead(e){return this.#p.web.fetchJson(`/sale/salePayment?${e}`,{method:"GET"})}async salePaymentReadById(e){return this.#p.web.fetchJson(`/sale/salePayment/${e}`,{method:"GET"})}async salePaymentUpdate(e){return this.#p.web.fetchJson("/sale/salePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleProfileCreate(e){return this.#p.web.fetchJson("/sale/saleProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleProfileDelete(e){return this.#p.web.fetchJson(`/sale/saleProfile/${e}`,{method:"DELETE"})}async saleProfileRead(e){return this.#p.web.fetchJson(`/sale/saleProfile?${e}`,{method:"GET"})}async saleProfileReadById(e){return this.#p.web.fetchJson(`/sale/saleProfile/${e}`,{method:"GET"})}async saleProfileUpdate(e){return this.#p.web.fetchJson("/sale/saleProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async saleRead(e){return this.#p.web.fetchJson(`/sale/sale?${e}`,{method:"GET"})}async saleReadById(e){return this.#p.web.fetchJson(`/sale/sale/${e}`,{method:"GET"})}async saleUpdate(e){return this.#p.web.fetchJson("/sale/sale",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Li=Object.freeze({__proto__:null,Shipment:class{id;company;status;person;date;netWeightKg;grossWeightKg;volumeM3;tags;properties},ShippingService:class{#p;constructor(e){this.#p=e}async shipmentCreate(e){return this.#p.web.fetchJson("/shipping/shipment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async shipmentDelete(e){return this.#p.web.fetchJson(`/shipping/shipment/${e}`,{method:"DELETE"})}async shipmentOpApprove(e){return this.#p.web.fetchJson(`/shipping/shipmentOpApprove/${e}`,{method:"POST"})}async shipmentOpApproveRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpApproveRevert/${e}`,{method:"POST"})}async shipmentOpCheckFinish(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckFinish/${e}`,{method:"POST"})}async shipmentOpCheckFinishRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckFinishRevert/${e}`,{method:"POST"})}async shipmentOpCheckIgnore(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckIgnore/${e}`,{method:"POST"})}async shipmentOpCheckStart(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckStart/${e}`,{method:"POST"})}async shipmentOpCheckStartRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpCheckStartRevert/${e}`,{method:"POST"})}async shipmentOpFinish(e){return this.#p.web.fetchJson(`/shipping/shipmentOpFinish/${e}`,{method:"POST"})}async shipmentOpFinishRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpFinishRevert/${e}`,{method:"POST"})}async shipmentOpLoadIgnore(e){return this.#p.web.fetchJson(`/shipping/shipmentOpLoadIgnore/${e}`,{method:"POST"})}async shipmentOpLoadStart(e){return this.#p.web.fetchJson(`/shipping/shipmentOpLoadStart/${e}`,{method:"POST"})}async shipmentOpLoadStartRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpLoadStartRevert/${e}`,{method:"POST"})}async shipmentOpLoadVolume(e,t){const n=new URLSearchParams;return t&&n.set("volumeId",String(t)),this.#p.web.fetchJson(`/shipping/shipmentOpLoadVolume/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpOutgoingInvoiceBind(e,t){const n=new URLSearchParams;return t&&n.set("outgoingInvoiceId",String(t)),this.#p.web.fetchJson(`/shipping/shipmentOpOutgoingInvoiceBind/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpOutgoingInvoiceBindRevert(e,t){const n=new URLSearchParams;return t&&n.set("outgoingInvoiceId",String(t)),this.#p.web.fetchJson(`/shipping/shipmentOpOutgoingInvoiceBindRevert/${e}?${n.toString()}`,{method:"POST"})}async shipmentOpPrepare(e){return this.#p.web.fetchJson(`/shipping/shipmentOpPrepare/${e}`,{method:"POST"})}async shipmentOpPrepareRevert(e){return this.#p.web.fetchJson(`/shipping/shipmentOpPrepareRevert/${e}`,{method:"POST"})}async shipmentRead(e){return this.#p.web.fetchJson(`/shipping/shipment?${e}`,{method:"GET"})}async shipmentReadById(e){return this.#p.web.fetchJson(`/shipping/shipment/${e}`,{method:"GET"})}async shipmentUpdate(e){return this.#p.web.fetchJson("/shipping/shipment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Ui=Object.freeze({__proto__:null,Bom:class{id;code;description;productPacking;quantity;tags;properties},BomItem:class{id;bom;productPacking;lotQuantity;type;quantity;tags;properties},Operation:class{id;productionOrder;operationType;quantity;unitValue;totalValue;tags;properties},OperationType:class{id;productionProfile;code;tags;properties},OperationTypeAccount:class{id;operationType;accountChart;account},ProductionBatch:class{id;status;productionStep;date;reservation;incomingList;journalEntry;tags;properties},ProductionOrder:class{id;status;productionProfile;company;workflow;workpiece;date;availabilityDate;productPacking;quantity;servedQuantity;tags;properties},ProductionProfile:class{id;code;tags;properties},ProductionService:class{#p;constructor(e){this.#p=e}async bomCreate(e){return this.#p.web.fetchJson("/supply/production/bom",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async bomDelete(e){return this.#p.web.fetchJson(`/supply/production/bom/${e}`,{method:"DELETE"})}async bomItemCreate(e){return this.#p.web.fetchJson("/supply/production/bomItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async bomItemDelete(e){return this.#p.web.fetchJson(`/supply/production/bomItem/${e}`,{method:"DELETE"})}async bomItemRead(e){return this.#p.web.fetchJson(`/supply/production/bomItem?${e}`,{method:"GET"})}async bomItemReadById(e){return this.#p.web.fetchJson(`/supply/production/bomItem/${e}`,{method:"GET"})}async bomItemUpdate(e){return this.#p.web.fetchJson("/supply/production/bomItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async bomOpClone(e){return this.#p.web.fetchJson(`/supply/production/bomOpClone/${e}`,{method:"POST"})}async bomRead(e){return this.#p.web.fetchJson(`/supply/production/bom?${e}`,{method:"GET"})}async bomReadById(e){return this.#p.web.fetchJson(`/supply/production/bom/${e}`,{method:"GET"})}async bomUpdate(e){return this.#p.web.fetchJson("/supply/production/bom",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationCreate(e){return this.#p.web.fetchJson("/supply/production/operation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationDelete(e){return this.#p.web.fetchJson(`/supply/production/operation/${e}`,{method:"DELETE"})}async operationRead(e){return this.#p.web.fetchJson(`/supply/production/operation?${e}`,{method:"GET"})}async operationReadById(e){return this.#p.web.fetchJson(`/supply/production/operation/${e}`,{method:"GET"})}async operationTypeAccountCreate(e){return this.#p.web.fetchJson("/supply/production/operationTypeAccount",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationTypeAccountDelete(e){return this.#p.web.fetchJson(`/supply/production/operationTypeAccount/${e}`,{method:"DELETE"})}async operationTypeAccountRead(e){return this.#p.web.fetchJson(`/supply/production/operationTypeAccount?${e}`,{method:"GET"})}async operationTypeAccountReadById(e){return this.#p.web.fetchJson(`/supply/production/operationTypeAccount/${e}`,{method:"GET"})}async operationTypeAccountUpdate(e){return this.#p.web.fetchJson("/supply/production/operationTypeAccount",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationTypeCreate(e){return this.#p.web.fetchJson("/supply/production/operationType",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationTypeDelete(e){return this.#p.web.fetchJson(`/supply/production/operationType/${e}`,{method:"DELETE"})}async operationTypeRead(e){return this.#p.web.fetchJson(`/supply/production/operationType?${e}`,{method:"GET"})}async operationTypeReadById(e){return this.#p.web.fetchJson(`/supply/production/operationType/${e}`,{method:"GET"})}async operationTypeUpdate(e){return this.#p.web.fetchJson("/supply/production/operationType",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async operationUpdate(e){return this.#p.web.fetchJson("/supply/production/operation",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionBatchCreate(e){return this.#p.web.fetchJson("/supply/production/productionBatch",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionBatchDelete(e){return this.#p.web.fetchJson(`/supply/production/productionBatch/${e}`,{method:"DELETE"})}async productionBatchOpApprove(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpApprove/${e}`,{method:"POST"})}async productionBatchOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpApproveRevert/${e}`,{method:"POST"})}async productionBatchOpPrepare(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpPrepare/${e}`,{method:"POST"})}async productionBatchOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/production/productionBatchOpPrepareRevert/${e}`,{method:"POST"})}async productionBatchRead(e){return this.#p.web.fetchJson(`/supply/production/productionBatch?${e}`,{method:"GET"})}async productionBatchReadById(e){return this.#p.web.fetchJson(`/supply/production/productionBatch/${e}`,{method:"GET"})}async productionBatchUpdate(e){return this.#p.web.fetchJson("/supply/production/productionBatch",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionOrderCreate(e){return this.#p.web.fetchJson("/supply/production/productionOrder",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionOrderDelete(e){return this.#p.web.fetchJson(`/supply/production/productionOrder/${e}`,{method:"DELETE"})}async productionOrderOpApprove(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpApprove/${e}`,{method:"POST"})}async productionOrderOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpApproveRevert/${e}`,{method:"POST"})}async productionOrderOpCreate(e){return this.#p.web.fetchJson("/supply/production/productionOrderOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionOrderOpFinish(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpFinish/${e}`,{method:"POST"})}async productionOrderOpFinishRevert(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpFinishRevert/${e}`,{method:"POST"})}async productionOrderOpPrepare(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpPrepare/${e}`,{method:"POST"})}async productionOrderOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/production/productionOrderOpPrepareRevert/${e}`,{method:"POST"})}async productionOrderRead(e){return this.#p.web.fetchJson(`/supply/production/productionOrder?${e}`,{method:"GET"})}async productionOrderReadById(e){return this.#p.web.fetchJson(`/supply/production/productionOrder/${e}`,{method:"GET"})}async productionOrderUpdate(e){return this.#p.web.fetchJson("/supply/production/productionOrder",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionProfileCreate(e){return this.#p.web.fetchJson("/supply/production/productionProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionProfileDelete(e){return this.#p.web.fetchJson(`/supply/production/productionProfile/${e}`,{method:"DELETE"})}async productionProfileRead(e){return this.#p.web.fetchJson(`/supply/production/productionProfile?${e}`,{method:"GET"})}async productionProfileReadById(e){return this.#p.web.fetchJson(`/supply/production/productionProfile/${e}`,{method:"GET"})}async productionProfileUpdate(e){return this.#p.web.fetchJson("/supply/production/productionProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepConsumptionCreate(e){return this.#p.web.fetchJson("/supply/production/productionStepConsumption",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepConsumptionDelete(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumption/${e}`,{method:"DELETE"})}async productionStepConsumptionOpCalculate(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumptionOpCalculate/${e}`,{method:"POST"})}async productionStepConsumptionRead(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumption?${e}`,{method:"GET"})}async productionStepConsumptionReadById(e){return this.#p.web.fetchJson(`/supply/production/productionStepConsumption/${e}`,{method:"GET"})}async productionStepConsumptionUpdate(e){return this.#p.web.fetchJson("/supply/production/productionStepConsumption",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepCreate(e){return this.#p.web.fetchJson("/supply/production/productionStep",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepDelete(e){return this.#p.web.fetchJson(`/supply/production/productionStep/${e}`,{method:"DELETE"})}async productionStepProductionCreate(e){return this.#p.web.fetchJson("/supply/production/productionStepProduction",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepProductionDelete(e){return this.#p.web.fetchJson(`/supply/production/productionStepProduction/${e}`,{method:"DELETE"})}async productionStepProductionRead(e){return this.#p.web.fetchJson(`/supply/production/productionStepProduction?${e}`,{method:"GET"})}async productionStepProductionReadById(e){return this.#p.web.fetchJson(`/supply/production/productionStepProduction/${e}`,{method:"GET"})}async productionStepProductionUpdate(e){return this.#p.web.fetchJson("/supply/production/productionStepProduction",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async productionStepRead(e){return this.#p.web.fetchJson(`/supply/production/productionStep?${e}`,{method:"GET"})}async productionStepReadById(e){return this.#p.web.fetchJson(`/supply/production/productionStep/${e}`,{method:"GET"})}async productionStepUpdate(e){return this.#p.web.fetchJson("/supply/production/productionStep",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ProductionStep:class{id;status;productionOrder;workflow;workpiece;productPacking;quantity;servedQuantity;tags;properties},ProductionStepConsumption:class{id;productionStep;productPacking;quantity;servedQuantity;tags;properties},ProductionStepProduction:class{id;productionStep;productPacking;quantity;weight;servedQuantity;tags;properties}});var Gi=Object.freeze({__proto__:null,PriceListCost:class{id;type;code;description;notBefore;notAfter;currency;variationRateLow;variationRateHigh;tags;properties},PriceListCostItem:class{id;priceList;product;productPacking;currency;unitValue;variationRateLow;variationRateHigh;tags;properties},Proposal:class{id;status;quote;person;date;totalValue;tags;properties},ProposalItem:class{id;status;proposal;quoteItem;availabilityDate;productPacking;fiscalProfileProduct;unit;quantity;internalQuantity;approvedQuantity;currency;unitValue;taxationRule;taxationOperation;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;tags;properties},Purchase:class{id;status;company;purchaseProfile;fiscalProfileOperation;workflow;workpiece;warehouse;person;personAddressShipping;code;date;availabilityDate;freightType;priceList;currency;totalValue;incomingRequest;quote;purchaseSource;tags;properties},PurchaseItem:class{id;purchase;productPacking;fiscalProfileProduct;taxationRule;taxationOperation;priceListValue;unit;quantity;internalQuantity;servedQuantity;unitValue;currency;productValue;discountType;discountAmount;discountValue;otherValues;operationValue;insideTaxValue;outsideTaxValue;totalValue;taxCompensationValue;effectiveValue;account;accountComplement;tags;properties},PurchasePayment:class{id;purchase;type;account;accountComplement;term;value;tags;properties},PurchaseProfile:class{id;code;description;fiscalProfileOperation;workflow;tags;properties},PurchaseService:class{#p;constructor(e){this.#p=e}async priceListCreate(e){return this.#p.web.fetchJson("/supply/purchase/priceList",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListDelete(e){return this.#p.web.fetchJson(`/supply/purchase/priceList/${e}`,{method:"DELETE"})}async priceListItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/priceListItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/priceListItem/${e}`,{method:"DELETE"})}async priceListItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/priceListItem?${e}`,{method:"GET"})}async priceListItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/priceListItem/${e}`,{method:"GET"})}async priceListItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/priceListItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async priceListRead(e){return this.#p.web.fetchJson(`/supply/purchase/priceList?${e}`,{method:"GET"})}async priceListReadById(e){return this.#p.web.fetchJson(`/supply/purchase/priceList/${e}`,{method:"GET"})}async priceListUpdate(e){return this.#p.web.fetchJson("/supply/purchase/priceList",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalCreate(e){return this.#p.web.fetchJson("/supply/purchase/proposal",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalDelete(e){return this.#p.web.fetchJson(`/supply/purchase/proposal/${e}`,{method:"DELETE"})}async proposalItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/proposalItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItem/${e}`,{method:"DELETE"})}async proposalItemOpApprove(e,t){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpApprove/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async proposalItemOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpApproveRevert/${e}`,{method:"POST"})}async proposalItemOpDisapprove(e,t){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpDisapprove/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async proposalItemOpDisapproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItemOpDisapproveRevert/${e}`,{method:"POST"})}async proposalItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItem?${e}`,{method:"GET"})}async proposalItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/proposalItem/${e}`,{method:"GET"})}async proposalItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/proposalItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async proposalOpCancel(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpCancel/${e}`,{method:"POST"})}async proposalOpCancelRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpCancelRevert/${e}`,{method:"POST"})}async proposalOpPrepare(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpPrepare/${e}`,{method:"POST"})}async proposalOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/purchase/proposalOpPrepareRevert/${e}`,{method:"POST"})}async proposalRead(e){return this.#p.web.fetchJson(`/supply/purchase/proposal?${e}`,{method:"GET"})}async proposalReadById(e){return this.#p.web.fetchJson(`/supply/purchase/proposal/${e}`,{method:"GET"})}async proposalUpdate(e){return this.#p.web.fetchJson("/supply/purchase/proposal",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchase",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchase/${e}`,{method:"DELETE"})}async purchaseItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseItem/${e}`,{method:"DELETE"})}async purchaseItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseItem?${e}`,{method:"GET"})}async purchaseItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseItem/${e}`,{method:"GET"})}async purchaseItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseOpApprove(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpApprove/${e}`,{method:"POST"})}async purchaseOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpApproveRevert/${e}`,{method:"POST"})}async purchaseOpApproveUnconditionally(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpApproveUnconditionally/${e}`,{method:"POST"})}async purchaseOpCancel(e,t){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpCancel/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async purchaseOpCancelRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpCancelRevert/${e}`,{method:"POST"})}async purchaseOpClone(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpClone/${e}`,{method:"POST"})}async purchaseOpCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseOpFinish(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpFinish/${e}`,{method:"POST"})}async purchaseOpFinishRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpFinishRevert/${e}`,{method:"POST"})}async purchaseOpMerge(e){return this.#p.web.fetchJson("/supply/purchase/purchaseOpMerge",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseOpPrepare(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpPrepare/${e}`,{method:"POST"})}async purchaseOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpPrepareRevert/${e}`,{method:"POST"})}async purchaseOpSplit(e,t){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpSplit/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async purchaseOpTaxationCalc(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseOpTaxationCalc/${e}`,{method:"POST"})}async purchaseOpUpdatePrepared(e){return this.#p.web.fetchJson("/supply/purchase/purchaseOpUpdatePrepared",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchasePaymentCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchasePayment",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchasePaymentDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchasePayment/${e}`,{method:"DELETE"})}async purchasePaymentRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchasePayment?${e}`,{method:"GET"})}async purchasePaymentReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchasePayment/${e}`,{method:"GET"})}async purchasePaymentUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchasePayment",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseProfileCreate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseProfileDelete(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseProfile/${e}`,{method:"DELETE"})}async purchaseProfileRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseProfile?${e}`,{method:"GET"})}async purchaseProfileReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchaseProfile/${e}`,{method:"GET"})}async purchaseProfileUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchaseProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async purchaseRead(e){return this.#p.web.fetchJson(`/supply/purchase/purchase?${e}`,{method:"GET"})}async purchaseReadById(e){return this.#p.web.fetchJson(`/supply/purchase/purchase/${e}`,{method:"GET"})}async purchaseUpdate(e){return this.#p.web.fetchJson("/supply/purchase/purchase",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteCreate(e){return this.#p.web.fetchJson("/supply/purchase/quote",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteDelete(e){return this.#p.web.fetchJson(`/supply/purchase/quote/${e}`,{method:"DELETE"})}async quoteItemCreate(e){return this.#p.web.fetchJson("/supply/purchase/quoteItem",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteItemDelete(e){return this.#p.web.fetchJson(`/supply/purchase/quoteItem/${e}`,{method:"DELETE"})}async quoteItemRead(e){return this.#p.web.fetchJson(`/supply/purchase/quoteItem?${e}`,{method:"GET"})}async quoteItemReadById(e){return this.#p.web.fetchJson(`/supply/purchase/quoteItem/${e}`,{method:"GET"})}async quoteItemUpdate(e){return this.#p.web.fetchJson("/supply/purchase/quoteItem",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpApprove(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpApprove/${e}`,{method:"POST"})}async quoteOpApproveRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpApproveRevert/${e}`,{method:"POST"})}async quoteOpCancel(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpCancel/${e}`,{method:"POST"})}async quoteOpCancelRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpCancelRevert/${e}`,{method:"POST"})}async quoteOpCreate(e){return this.#p.web.fetchJson("/supply/purchase/quoteOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async quoteOpFinish(e,t){return this.#p.web.fetchJson(`/supply/purchase/quoteOpFinish/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async quoteOpFinishRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpFinishRevert/${e}`,{method:"POST"})}async quoteOpPrepare(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpPrepare/${e}`,{method:"POST"})}async quoteOpPrepareRevert(e){return this.#p.web.fetchJson(`/supply/purchase/quoteOpPrepareRevert/${e}`,{method:"POST"})}async quoteRead(e){return this.#p.web.fetchJson(`/supply/purchase/quote?${e}`,{method:"GET"})}async quoteReadById(e){return this.#p.web.fetchJson(`/supply/purchase/quote/${e}`,{method:"GET"})}async quoteUpdate(e){return this.#p.web.fetchJson("/supply/purchase/quote",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Quote:class{id;status;company;fiscalProfileOperation;workflow;workpiece;code;date;availabilityDate;tags;properties},QuoteItem:class{id;quote;productPacking;unit;quantity;internalQuantity;approvedQuantity;tags;properties}}),qi=Object.freeze({__proto__:null,production:Ui,purchase:Gi});var xi=Object.freeze({__proto__:null,AuditService:class{#p;constructor(e){this.#p=e}async logCreate(e){return this.#p.web.fetchJson("/system/audit/log",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async logOpDeleteExpired(){return this.#p.web.fetchJson("/system/audit/logOpDeleteExpired",{method:"POST"})}async logRead(e){return this.#p.web.fetchJson(`/system/audit/log?${e}`,{method:"GET"})}async logReadById(e){return this.#p.web.fetchJson(`/system/audit/log/${e}`,{method:"GET"})}async sourceOpReadByEntity(e,t){const n=new URLSearchParams;return e&&n.set("entity",String(e)),t&&n.set("entityId",String(t)),this.#p.web.fetchJson(`/system/audit/sourceOpReadByEntity?${n.toString()}`,{method:"POST"})}async sourceRead(e){return this.#p.web.fetchJson(`/system/audit/source?${e}`,{method:"GET"})}async sourceReadById(e){return this.#p.web.fetchJson(`/system/audit/source/${e}`,{method:"GET"})}async userLogCreate(e){return this.#p.web.fetchJson("/system/audit/userLog",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userLogDelete(e){return this.#p.web.fetchJson(`/system/audit/userLog/${e}`,{method:"DELETE"})}async userLogRead(e){return this.#p.web.fetchJson(`/system/audit/userLog?${e}`,{method:"GET"})}async userLogReadById(e){return this.#p.web.fetchJson(`/system/audit/userLog/${e}`,{method:"GET"})}async userLogUpdate(e){return this.#p.web.fetchJson("/system/audit/userLog",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Log:class{id;session;dateTime;level;operation;source;contentType;content;expiration;system;tags;properties},Source:class{id;entity;entityId;dateTime;session}});var Ai=Object.freeze({__proto__:null,Agent:class{id;description;uri;tags;properties},AutomationService:class{#p;constructor(e){this.#p=e}async agentCreate(e){return this.#p.web.fetchJson("/system/automation/agent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async agentDelete(e){return this.#p.web.fetchJson(`/system/automation/agent/${e}`,{method:"DELETE"})}async agentOpExecute(e,t){return this.#p.web.fetchJson(`/system/automation/agentOpExecute/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async agentRead(e){return this.#p.web.fetchJson(`/system/automation/agent?${e}`,{method:"GET"})}async agentReadById(e){return this.#p.web.fetchJson(`/system/automation/agent/${e}`,{method:"GET"})}async agentUpdate(e){return this.#p.web.fetchJson("/system/automation/agent",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async scheduleCreate(e){return this.#p.web.fetchJson("/system/automation/schedule",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async scheduleDelete(e){return this.#p.web.fetchJson(`/system/automation/schedule/${e}`,{method:"DELETE"})}async scheduleOpExecute(e){return this.#p.web.fetchJson(`/system/automation/scheduleOpExecute/${e}`,{method:"POST"})}async scheduleRead(e){return this.#p.web.fetchJson(`/system/automation/schedule?${e}`,{method:"GET"})}async scheduleReadById(e){return this.#p.web.fetchJson(`/system/automation/schedule/${e}`,{method:"GET"})}async scheduleUpdate(e){return this.#p.web.fetchJson("/system/automation/schedule",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async watcherCreate(e){return this.#p.web.fetchJson("/system/automation/watcher",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async watcherDelete(e){return this.#p.web.fetchJson(`/system/automation/watcher/${e}`,{method:"DELETE"})}async watcherRead(e){return this.#p.web.fetchJson(`/system/automation/watcher?${e}`,{method:"GET"})}async watcherReadById(e){return this.#p.web.fetchJson(`/system/automation/watcher/${e}`,{method:"GET"})}async watcherUpdate(e){return this.#p.web.fetchJson("/system/automation/watcher",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Schedule:class{id;code;description;type;expression;nextRun;lastRun;agent;tags;properties},Watcher:class{id;event;uri;tags;properties}});var Bi=Object.freeze({__proto__:null,DataService:class{#p;constructor(e){this.#p=e}async dataSourceCreate(e){return this.#p.web.fetchJson("/system/data/dataSource",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceDelete(e){return this.#p.web.fetchJson(`/system/data/dataSource/${e}`,{method:"DELETE"})}async dataSourceFieldRead(e){return this.#p.web.fetchJson(`/system/data/dataSourceField?${e}`,{method:"GET"})}async dataSourceFieldReadById(e){return this.#p.web.fetchJson(`/system/data/dataSourceField/${e}`,{method:"GET"})}async dataSourceFieldUpdate(e){return this.#p.web.fetchJson("/system/data/dataSourceField",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceOpRead(e){return this.#p.web.fetchJson("/system/data/dataSourceOpRead",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceParameterCreate(e){return this.#p.web.fetchJson("/system/data/dataSourceParameter",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceParameterDelete(e){return this.#p.web.fetchJson(`/system/data/dataSourceParameter/${e}`,{method:"DELETE"})}async dataSourceParameterRead(e){return this.#p.web.fetchJson(`/system/data/dataSourceParameter?${e}`,{method:"GET"})}async dataSourceParameterReadById(e){return this.#p.web.fetchJson(`/system/data/dataSourceParameter/${e}`,{method:"GET"})}async dataSourceParameterUpdate(e){return this.#p.web.fetchJson("/system/data/dataSourceParameter",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async dataSourceRead(e){return this.#p.web.fetchJson(`/system/data/dataSource?${e}`,{method:"GET"})}async dataSourceReadById(e){return this.#p.web.fetchJson(`/system/data/dataSource/${e}`,{method:"GET"})}async dataSourceUpdate(e){return this.#p.web.fetchJson("/system/data/dataSource",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},DataSource:class{id;code;type;sql;accessPoint;tags;properties},DataSourceField:class{id;dataSource;name;accessPoint;tags;properties},DataSourceParameter:class{id;dataSource;name;type;tags;properties}});var Fi=Object.freeze({__proto__:null,File:class{id;source;code;description;content;contentType;url;size;accessible;tags;properties},FileService:class{#p;constructor(e){this.#p=e}async fileCreate(e){return this.#p.web.fetchJson("/system/file/file",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async fileDelete(e){return this.#p.web.fetchJson(`/system/file/file/${e}`,{method:"DELETE"})}async fileOpReadContent(e){return this.#p.web.fetchBlob(`/system/file/fileOpReadContent/${e}`,{method:"POST"})}async fileRead(e){return this.#p.web.fetchJson(`/system/file/file?${e}`,{method:"GET"})}async fileReadById(e){return this.#p.web.fetchJson(`/system/file/file/${e}`,{method:"GET"})}async fileUpdate(e){return this.#p.web.fetchJson("/system/file/file",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Vi=Object.freeze({__proto__:null,FrontendService:class{#p;constructor(e){this.#p=e}async injectsRead(){return this.#p.web.fetchJson("/system/frontend/injects",{method:"GET"})}async injectsUpdate(e){return this.#p.web.fetchJson("/system/frontend/injects",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async menuRead(){return this.#p.web.fetchJson("/system/frontend/menu",{method:"GET"})}async menuUpdate(e){return this.#p.web.fetchJson("/system/frontend/menu",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async resourcesRead(){return this.#p.web.fetchJson("/system/frontend/resources",{method:"GET"})}async resourcesUpdate(e){return this.#p.web.fetchJson("/system/frontend/resources",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Inject:class{key;selector;position;uri},Menu:class{label;accessPoint;icon;path;tags;children}});var Mi=Object.freeze({__proto__:null,Image:class{id;source;code;description;content;contentType;url;size;width;height;tags;properties},ImageService:class{#p;constructor(e){this.#p=e}async imageCreate(e){return this.#p.web.fetchJson("/system/image/image",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async imageDelete(e){return this.#p.web.fetchJson(`/system/image/image/${e}`,{method:"DELETE"})}async imageRead(e){return this.#p.web.fetchJson(`/system/image/image?${e}`,{method:"GET"})}async imageReadById(e){return this.#p.web.fetchJson(`/system/image/image/${e}`,{method:"GET"})}async imageUpdate(e){return this.#p.web.fetchJson("/system/image/image",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var _i=Object.freeze({__proto__:null,IntegrationService:class{#p;constructor(e){this.#p=e}async messageDelete(e){return this.#p.web.fetchJson(`/system/integration/message/${e}`,{method:"DELETE"})}async messageOpPost(e){return this.#p.web.fetchJson("/system/integration/messageOpPost",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async messageOpTransfer(e,t){const n=new URLSearchParams;return t&&n.set("queueCode",String(t)),this.#p.web.fetchJson(`/system/integration/messageOpTransfer/${e}?${n.toString()}`,{method:"POST"})}async messageRead(e){return this.#p.web.fetchJson(`/system/integration/message?${e}`,{method:"GET"})}async messageReadById(e){return this.#p.web.fetchJson(`/system/integration/message/${e}`,{method:"GET"})}async queueCreate(e){return this.#p.web.fetchJson("/system/integration/queue",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async queueDelete(e){return this.#p.web.fetchJson(`/system/integration/queue/${e}`,{method:"DELETE"})}async queueOpDeleteExpiredMessages(e){const t=new URLSearchParams;return e&&t.set("queueCode",String(e)),this.#p.web.fetchJson(`/system/integration/queueOpDeleteExpiredMessages?${t.toString()}`,{method:"POST"})}async queueOpReadMessage(e,t){const n=new URLSearchParams;return e&&n.set("queueCode",String(e)),t&&n.set("maxMessages",String(t)),this.#p.web.fetchJson(`/system/integration/queueOpReadMessage?${n.toString()}`,{method:"POST"})}async queueOpReadMessageTimeout(e,t,n){const i=new URLSearchParams;return e&&i.set("queueCode",String(e)),t&&i.set("maxMessages",String(t)),n&&i.set("timeoutS",String(n)),this.#p.web.fetchJson(`/system/integration/queueOpReadMessageTimeout?${i.toString()}`,{method:"POST"})}async queueRead(e){return this.#p.web.fetchJson(`/system/integration/queue?${e}`,{method:"GET"})}async queueReadById(e){return this.#p.web.fetchJson(`/system/integration/queue/${e}`,{method:"GET"})}async queueUpdate(e){return this.#p.web.fetchJson("/system/integration/queue",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async subscriptionCreate(e){return this.#p.web.fetchJson("/system/integration/subscription",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async subscriptionDelete(e){return this.#p.web.fetchJson(`/system/integration/subscription/${e}`,{method:"DELETE"})}async subscriptionRead(e){return this.#p.web.fetchJson(`/system/integration/subscription?${e}`,{method:"GET"})}async subscriptionReadById(e){return this.#p.web.fetchJson(`/system/integration/subscription/${e}`,{method:"GET"})}async subscriptionUpdate(e){return this.#p.web.fetchJson("/system/integration/subscription",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async topicCreate(e){return this.#p.web.fetchJson("/system/integration/topic",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async topicDelete(e){return this.#p.web.fetchJson(`/system/integration/topic/${e}`,{method:"DELETE"})}async topicOpPublish(e){return this.#p.web.fetchJson("/system/integration/topicOpPublish",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async topicRead(e){return this.#p.web.fetchJson(`/system/integration/topic?${e}`,{method:"GET"})}async topicReadById(e){return this.#p.web.fetchJson(`/system/integration/topic/${e}`,{method:"GET"})}async topicUpdate(e){return this.#p.web.fetchJson("/system/integration/topic",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Message:class{id;queue;subject;content;dateTime;size;exclusivityExpiration;reads},Publication:class{dateTime;operation;contentType;content;tags;properties},Queue:class{id;code;exclusivityTimeS;retentionPeriodS;maxSizeKB;longReadWaitS;maxReads;deadQueue;tags;properties},Subscription:class{id;topic;protocol;target;queue;agent;tags;properties},Topic:class{id;code;tags;properties}});var Wi=Object.freeze({__proto__:null,Address:class{address;description},Attachment:class{identifier;bytes;mimeType},MailService:class{#p;constructor(e){this.#p=e}async mailerConfigCreate(e){return this.#p.web.fetchJson("/system/mail/mailerConfig",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async mailerConfigDelete(e){return this.#p.web.fetchJson(`/system/mail/mailerConfig/${e}`,{method:"DELETE"})}async mailerConfigRead(e){return this.#p.web.fetchJson(`/system/mail/mailerConfig?${e}`,{method:"GET"})}async mailerConfigReadById(e){return this.#p.web.fetchJson(`/system/mail/mailerConfig/${e}`,{method:"GET"})}async mailerConfigUpdate(e){return this.#p.web.fetchJson("/system/mail/mailerConfig",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async messageOpSend(e,t,n){const i=new URLSearchParams;return e&&i.set("mailerConfigId",String(e)),t&&i.set("mailerConfigCode",String(t)),this.#p.web.fetchJson(`/system/mail/messageOpSend?${i.toString()}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n)})}},MailerConfig:class{id;code;description;tags;properties},Message:class{from;repplyTo;to;cc;bcc;subject;content;mimeType;attachments;source}});var zi=Object.freeze({__proto__:null,Printer:class{id;status;code;description;jobs;tags;properties},PrinterJob:class{id;printer;status;dateTime;description;type;tags;properties},PrinterJobData:class{data;id;printer;status;dateTime;description;type;tags;properties},PrintingService:class{#p;constructor(e){this.#p=e}async printerCreate(e){return this.#p.web.fetchJson("/system/printing/printer",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async printerDelete(e){return this.#p.web.fetchJson(`/system/printing/printer/${e}`,{method:"DELETE"})}async printerJobCreate(e){return this.#p.web.fetchJson("/system/printing/printerJob",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async printerJobDataReadById(e){return this.#p.web.fetchJson(`/system/printing/printerJobData/${e}`,{method:"GET"})}async printerJobDelete(e){return this.#p.web.fetchJson(`/system/printing/printerJob/${e}`,{method:"DELETE"})}async printerJobOpFetch(e){return this.#p.web.fetchJson(`/system/printing/printerJobOpFetch/${e}`,{method:"POST"})}async printerJobOpPrinted(e){return this.#p.web.fetchJson(`/system/printing/printerJobOpPrinted/${e}`,{method:"POST"})}async printerJobOpUnlock(e){return this.#p.web.fetchJson(`/system/printing/printerJobOpUnlock/${e}`,{method:"POST"})}async printerJobRead(e){return this.#p.web.fetchJson(`/system/printing/printerJob?${e}`,{method:"GET"})}async printerJobReadById(e){return this.#p.web.fetchJson(`/system/printing/printerJob/${e}`,{method:"GET"})}async printerOpPause(e){return this.#p.web.fetchJson(`/system/printing/printerOpPause/${e}`,{method:"POST"})}async printerOpPauseRevert(e){return this.#p.web.fetchJson(`/system/printing/printerOpPauseRevert/${e}`,{method:"POST"})}async printerOpPrintTestPage(e){return this.#p.web.fetchJson(`/system/printing/printerOpPrintTestPage/${e}`,{method:"POST"})}async printerOpPrinterJobFetch(e){return this.#p.web.fetchJson(`/system/printing/printerOpPrinterJobFetch/${e}`,{method:"POST"})}async printerRead(e){return this.#p.web.fetchJson(`/system/printing/printer?${e}`,{method:"GET"})}async printerReadById(e){return this.#p.web.fetchJson(`/system/printing/printer/${e}`,{method:"GET"})}async printerUpdate(e){return this.#p.web.fetchJson("/system/printing/printer",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}}});var Zi=Object.freeze({__proto__:null,Report:class{id;code;type;delegate;tags;properties},ReportService:class{#p;constructor(e){this.#p=e}async reportCreate(e){return this.#p.web.fetchJson("/system/report/report",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reportDelete(e){return this.#p.web.fetchJson(`/system/report/report/${e}`,{method:"DELETE"})}async reportOpClone(e,t){const n=new URLSearchParams;return t&&n.set("newCode",String(t)),this.#p.web.fetchJson(`/system/report/reportOpClone/${e}?${n.toString()}`,{method:"POST"})}async reportOpGenerate(e){return this.#p.web.fetchBlob("/system/report/reportOpGenerate",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}async reportOpPrint(e){return this.#p.web.fetchJson("/system/report/reportOpPrint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async reportRead(e){return this.#p.web.fetchJson(`/system/report/report?${e}`,{method:"GET"})}async reportReadById(e){return this.#p.web.fetchJson(`/system/report/report/${e}`,{method:"GET"})}async reportTemplateOpUpdate(e,t){return this.#p.web.fetchJson(`/system/report/reportTemplateOpUpdate/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async reportTemplateRead(e){return this.#p.web.fetchJson(`/system/report/reportTemplate?${e}`,{method:"GET"})}async reportTemplateReadById(e){return this.#p.web.fetchJson(`/system/report/reportTemplate/${e}`,{method:"GET"})}async reportUpdate(e){return this.#p.web.fetchJson("/system/report/report",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},ReportTemplate:class{id;code;type;template;tags;properties}});var Yi=Object.freeze({__proto__:null,AccessPoint:class{id;code;description;tags;properties},AccessProfile:class{id;code;description;tags;properties},Grant:class{id;grantor;recipient},Group:class{status;id;type;code;description;tags;properties},KeyStore:class{id;type;description;content;password;tags;properties},Role:class{id;type;code;description;tags;properties},RoleAccessPoint:class{id;role;accessPoint},SecurityService:class{#p;constructor(e){this.#p=e}async accessPointCreate(e){return this.#p.web.fetchJson("/system/security/accessPoint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accessPointDelete(e){return this.#p.web.fetchJson(`/system/security/accessPoint/${e}`,{method:"DELETE"})}async accessPointOpValidate(e){const t=new URLSearchParams;return e&&t.set("code",String(e)),this.#p.web.fetchJson(`/system/security/accessPointOpValidate?${t.toString()}`,{method:"POST"})}async accessPointRead(e){return this.#p.web.fetchJson(`/system/security/accessPoint?${e}`,{method:"GET"})}async accessPointReadById(e){return this.#p.web.fetchJson(`/system/security/accessPoint/${e}`,{method:"GET"})}async accessPointUpdate(e){return this.#p.web.fetchJson("/system/security/accessPoint",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accessProfileCreate(e){return this.#p.web.fetchJson("/system/security/accessProfile",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async accessProfileDelete(e){return this.#p.web.fetchJson(`/system/security/accessProfile/${e}`,{method:"DELETE"})}async accessProfileRead(e){return this.#p.web.fetchJson(`/system/security/accessProfile?${e}`,{method:"GET"})}async accessProfileReadById(e){return this.#p.web.fetchJson(`/system/security/accessProfile/${e}`,{method:"GET"})}async accessProfileUpdate(e){return this.#p.web.fetchJson("/system/security/accessProfile",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async grantCreate(e){return this.#p.web.fetchJson("/system/security/grant",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async grantDelete(e){return this.#p.web.fetchJson(`/system/security/grant/${e}`,{method:"DELETE"})}async grantRead(e){return this.#p.web.fetchJson(`/system/security/grant?${e}`,{method:"GET"})}async grantReadById(e){return this.#p.web.fetchJson(`/system/security/grant/${e}`,{method:"GET"})}async groupCreate(e){return this.#p.web.fetchJson("/system/security/group",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async groupDelete(e){return this.#p.web.fetchJson(`/system/security/group/${e}`,{method:"DELETE"})}async groupOpClone(e,t){return this.#p.web.fetchJson(`/system/security/groupOpClone/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async groupRead(e){return this.#p.web.fetchJson(`/system/security/group?${e}`,{method:"GET"})}async groupReadById(e){return this.#p.web.fetchJson(`/system/security/group/${e}`,{method:"GET"})}async groupUpdate(e){return this.#p.web.fetchJson("/system/security/group",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async keyStoreCreate(e){return this.#p.web.fetchJson("/system/security/keyStore",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async keyStoreDelete(e){return this.#p.web.fetchJson(`/system/security/keyStore/${e}`,{method:"DELETE"})}async keyStoreOpReadContent(e){return this.#p.web.fetchBlob(`/system/security/keyStoreOpReadContent/${e}`,{method:"POST"})}async keyStoreRead(e){return this.#p.web.fetchJson(`/system/security/keyStore?${e}`,{method:"GET"})}async keyStoreReadById(e){return this.#p.web.fetchJson(`/system/security/keyStore/${e}`,{method:"GET"})}async keyStoreUpdate(e){return this.#p.web.fetchJson("/system/security/keyStore",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async roleAccessPointCreate(e){return this.#p.web.fetchJson("/system/security/roleAccessPoint",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async roleAccessPointDelete(e){return this.#p.web.fetchJson(`/system/security/roleAccessPoint/${e}`,{method:"DELETE"})}async roleAccessPointRead(e){return this.#p.web.fetchJson(`/system/security/roleAccessPoint?${e}`,{method:"GET"})}async roleAccessPointReadById(e){return this.#p.web.fetchJson(`/system/security/roleAccessPoint/${e}`,{method:"GET"})}async roleRead(e){return this.#p.web.fetchJson(`/system/security/role?${e}`,{method:"GET"})}async roleReadById(e){return this.#p.web.fetchJson(`/system/security/role/${e}`,{method:"GET"})}async sessionContext(){return this.#p.web.fetchJson("/system/security/sessionContext",{method:"GET"})}async sessionDelete(e){return this.#p.web.fetchJson(`/system/security/session/${e}`,{method:"DELETE"})}async sessionOpGetCurrent(){return this.#p.web.fetchJson("/system/security/sessionOpGetCurrent",{method:"GET"})}async sessionRead(e){return this.#p.web.fetchJson(`/system/security/session?${e}`,{method:"GET"})}async sessionReadById(e){return this.#p.web.fetchJson(`/system/security/session/${e}`,{method:"GET"})}async tokenOpInvalidate(e){return this.#p.web.fetchJson("/system/security/tokenOpInvalidate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async tokenOpInvalidateCurrent(){return this.#p.web.fetchJson("/system/security/tokenOpInvalidateCurrent",{method:"POST"})}async tokenOpRenew(){return this.#p.web.fetchJson("/system/security/tokenOpRenew",{method:"POST"})}async tokenOpRequest(e){return this.#p.web.fetchJson("/system/security/tokenOpRequest",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async tokenOpRequestPermanent(e){return this.#p.web.fetchJson("/system/security/tokenOpRequestPermanent",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userCreate(e){return this.#p.web.fetchJson("/system/security/user",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userDelete(e){return this.#p.web.fetchJson(`/system/security/user/${e}`,{method:"DELETE"})}async userOpActivate(e){return this.#p.web.fetchJson(`/system/security/userOpActivate/${e}`,{method:"POST"})}async userOpAuthenticate(e){return this.#p.web.fetchJson("/system/security/userOpAuthenticate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangeEmail(e){return this.#p.web.fetchJson("/system/security/userOpChangeEmail",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangeEmailConfirmation(e){return this.#p.web.fetchJson("/system/security/userOpChangeEmailConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangePassword(e){return this.#p.web.fetchJson("/system/security/userOpChangePassword",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpChangePasswordThird(e,t){return this.#p.web.fetchJson(`/system/security/userOpChangePasswordThird/${e}`,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async userOpCreate(e){return this.#p.web.fetchJson("/system/security/userOpCreate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpCreateConfirmation(e){return this.#p.web.fetchJson("/system/security/userOpCreateConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpCreateResend(e){return this.#p.web.fetchJson("/system/security/userOpCreateResend",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpGrantOptionAdd(e){return this.#p.web.fetchJson(`/system/security/userOpGrantOptionAdd/${e}`,{method:"POST"})}async userOpGrantOptionRemove(e){return this.#p.web.fetchJson(`/system/security/userOpGrantOptionRemove/${e}`,{method:"POST"})}async userOpInactivate(e){return this.#p.web.fetchJson(`/system/security/userOpInactivate/${e}`,{method:"POST"})}async userOpResetPassword(e){return this.#p.web.fetchJson("/system/security/userOpResetPassword",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpResetPasswordConfirmation(e){return this.#p.web.fetchJson("/system/security/userOpResetPasswordConfirmation",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userOpUnlock(e){return this.#p.web.fetchJson(`/system/security/userOpUnlock/${e}`,{method:"POST"})}async userOpUpdate(e){return this.#p.web.fetchJson("/system/security/userOpUpdate",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async userPermissionRead(e){return this.#p.web.fetchJson(`/system/security/userPermission?${e}`,{method:"GET"})}async userRead(e){return this.#p.web.fetchJson(`/system/security/user?${e}`,{method:"GET"})}async userReadById(e){return this.#p.web.fetchJson(`/system/security/user/${e}`,{method:"GET"})}async userUpdate(e){return this.#p.web.fetchJson("/system/security/user",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}},Session:class{id;status;user;dateTime;expiration;properties},SessionContext:class{session;company},User:class{status;accessProfile;id;type;code;description;tags;properties},UserPermission:class{user;accessPoint;access}});var Hi=Object.freeze({__proto__:null,StorageService:class{#p;constructor(e){this.#p=e}async get(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/?${t.toString()}`,{method:"GET"})}async getNumber(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/number?${t.toString()}`,{method:"GET"})}async getString(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/string?${t.toString()}`,{method:"GET"})}async put(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/?${n.toString()}`,{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async putNumber(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/number?${n.toString()}`,{method:"PUT"})}async putString(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/string?${n.toString()}`,{method:"PUT"})}async remove(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/?${t.toString()}`,{method:"DELETE"})}async userGet(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user?${t.toString()}`,{method:"GET"})}async userGetNumber(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user/number?${t.toString()}`,{method:"GET"})}async userGetString(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user/string?${t.toString()}`,{method:"GET"})}async userPut(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user?${n.toString()}`,{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(t)})}async userPutNumber(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/user/number?${n.toString()}`,{method:"PUT"})}async userPutString(e,t){const n=new URLSearchParams;return e&&n.set("key",String(e)),t&&n.set("value",String(t)),this.#p.web.fetchJson(`/system/storage/user/string?${n.toString()}`,{method:"PUT"})}async userRemove(e){const t=new URLSearchParams;return e&&t.set("key",String(e)),this.#p.web.fetchJson(`/system/storage/user?${t.toString()}`,{method:"DELETE"})}}});var Ki=Object.freeze({__proto__:null,Workflow:class{id;status;code;description;tags;properties},WorkflowConnector:class{id;workflowNode;type;workflowNodeTarget;accessPoint;tags;properties},WorkflowNode:class{id;workflow;type;code;description;tags;properties},WorkflowService:class{#p;constructor(e){this.#p=e}async workflowConnectorCreate(e){return this.#p.web.fetchJson("/system/workflow/workflowConnector",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowConnectorDelete(e){return this.#p.web.fetchJson(`/system/workflow/workflowConnector/${e}`,{method:"DELETE"})}async workflowConnectorRead(e){return this.#p.web.fetchJson(`/system/workflow/workflowConnector?${e}`,{method:"GET"})}async workflowConnectorReadById(e){return this.#p.web.fetchJson(`/system/workflow/workflowConnector/${e}`,{method:"GET"})}async workflowConnectorUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflowConnector",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowCreate(e){return this.#p.web.fetchJson("/system/workflow/workflow",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowDelete(e){return this.#p.web.fetchJson(`/system/workflow/workflow/${e}`,{method:"DELETE"})}async workflowNodeCreate(e){return this.#p.web.fetchJson("/system/workflow/workflowNode",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowNodeDelete(e){return this.#p.web.fetchJson(`/system/workflow/workflowNode/${e}`,{method:"DELETE"})}async workflowNodeRead(e){return this.#p.web.fetchJson(`/system/workflow/workflowNode?${e}`,{method:"GET"})}async workflowNodeReadById(e){return this.#p.web.fetchJson(`/system/workflow/workflowNode/${e}`,{method:"GET"})}async workflowNodeUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflowNode",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowOpApprove(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpApprove/${e}`,{method:"POST"})}async workflowOpApproveRevert(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpApproveRevert/${e}`,{method:"POST"})}async workflowOpCreateOrUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflowOpCreateOrUpdate",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workflowOpDisable(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpDisable/${e}`,{method:"POST"})}async workflowOpDisableRevert(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpDisableRevert/${e}`,{method:"POST"})}async workflowOpPrepare(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpPrepare/${e}`,{method:"POST"})}async workflowOpPrepareRevert(e){return this.#p.web.fetchJson(`/system/workflow/workflowOpPrepareRevert/${e}`,{method:"POST"})}async workflowRead(e){return this.#p.web.fetchJson(`/system/workflow/workflow?${e}`,{method:"GET"})}async workflowReadById(e){return this.#p.web.fetchJson(`/system/workflow/workflow/${e}`,{method:"GET"})}async workflowUpdate(e){return this.#p.web.fetchJson("/system/workflow/workflow",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async workpieceNodeRead(e){return this.#p.web.fetchJson(`/system/workflow/workpieceNode?${e}`,{method:"GET"})}async workpieceNodeReadById(e){return this.#p.web.fetchJson(`/system/workflow/workpieceNode/${e}`,{method:"GET"})}async workpieceOpForward(e,t){const n=new URLSearchParams;return t&&n.set("workflowNodeId",String(t)),this.#p.web.fetchJson(`/system/workflow/workpieceOpForward/${e}?${n.toString()}`,{method:"POST"})}async workpieceOpRevert(e,t){const n=new URLSearchParams;return t&&n.set("workflowNodeId",String(t)),this.#p.web.fetchJson(`/system/workflow/workpieceOpRevert/${e}?${n.toString()}`,{method:"POST"})}async workpieceRead(e){return this.#p.web.fetchJson(`/system/workflow/workpiece?${e}`,{method:"GET"})}async workpieceReadById(e){return this.#p.web.fetchJson(`/system/workflow/workpiece/${e}`,{method:"GET"})}},Workpiece:class{id;source;status;workflow;workflowNode;tags;properties},WorkpieceNode:class{id;workpiece;workflowNode;dateTimeStart;dateTimeEnd;status;user;tags;properties}});var Qi=Object.freeze({__proto__:null,Info:class{dateTime;identity;status;version},Status:class{id;entity;code;description;accessPoint;tags;properties},SystemService:class{#p;constructor(e){this.#p=e}async checkAuth(){return this.#p.web.fetchJson("/system/checkAuth",{method:"GET"})}async customPropertiesOpSet(e){return this.#p.web.fetchJson("/system/customPropertiesOpSet",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async customTagsOpSet(e,t){const n=new URLSearchParams;return e&&n.set("entity",String(e)),t&&n.set("tag",String(t)),this.#p.web.fetchJson(`/system/customTagsOpSet?${n.toString()}`,{method:"POST"})}async databaseOpOptimize(){return this.#p.web.fetchJson("/system/databaseOpOptimize",{method:"POST"})}async infoRead(){return this.#p.web.fetchJson("/system/info",{method:"GET"})}async lockOpAcquire(e,t,n){const i=new URLSearchParams;return e&&i.set("id",String(e)),t&&i.set("waitTime",String(t)),n&&i.set("leaseTime",String(n)),this.#p.web.fetchJson(`/system/lockOpAcquire?${i.toString()}`,{method:"POST"})}async lockOpExtend(e,t,n){const i=new URLSearchParams;return e&&i.set("id",String(e)),t&&i.set("lockToken",String(t)),n&&i.set("leaseTime",String(n)),this.#p.web.fetchJson(`/system/lockOpExtend?${i.toString()}`,{method:"POST"})}async lockOpRelease(e,t){const n=new URLSearchParams;return e&&n.set("id",String(e)),t&&n.set("lockToken",String(t)),this.#p.web.fetchJson(`/system/lockOpRelease?${n.toString()}`,{method:"POST"})}async metricsRead(){return this.#p.web.fetchJson("/system/metrics",{method:"GET"})}async resourcesRead(){return this.#p.web.fetchJson("/system/resources",{method:"GET"})}async statusCreate(e){return this.#p.web.fetchJson("/system/status",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async statusDelete(e){return this.#p.web.fetchJson(`/system/status/${e}`,{method:"DELETE"})}async statusRead(e){return this.#p.web.fetchJson(`/system/status?${e}`,{method:"GET"})}async statusReadById(e){return this.#p.web.fetchJson(`/system/status/${e}`,{method:"GET"})}async statusUpdate(e){return this.#p.web.fetchJson("/system/status",{method:"PUT",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async testCreate(e){return this.#p.web.fetchJson("/system/test",{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(e)})}async testRead(){return this.#p.web.fetchJson("/system/test",{method:"GET"})}},Test:class{bigDecimalProp;booleanProp;byteArrayProp;integerProp;localDateProp;localDateTimeProp;longProp;stringProp;zonedDateTimeProp},audit:xi,automation:Ai,data:Bi,file:Fi,frontend:Vi,image:Mi,integration:_i,mail:Wi,printing:zi,report:Zi,security:Yi,storage:Hi,workflow:Ki}),Xi=Object.freeze({__proto__:null,auth:fi,catalog:Si,commercial:Ji,financial:ji,fiscal:Ci,logistic:Ni,material:ki,sale:Di,shipping:Li,supply:qi,system:Qi});return e.api=Xi,e.connect=async function(e,t,n,i){if(!e)throw new Error("Missing argument: host");if(!t)throw new Error("Missing argument: user");e.toLowerCase().startsWith("http")||(e=`https://${e}.zenerp.app.br:8443`);const s=await fetch(`${e}/system/security/tokenOpRequest`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({email:t,password:n,properties:i})});if(!s.ok){const e=await s.json(),t=new Error(e.message);throw t.stackTrace=e.stackTrace,t}return mi(e,await s.text())},e.createFromToken=mi,e}({});
2
2
  //# sourceMappingURL=zenerpclient.js.map