netlicensing-client 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # [Labs64 NetLicensing](https://netlicensing.io) Client (JavaScript)
4
4
 
5
- [![Build Status](https://github.com/Labs64/NetLicensingClient-javascript/workflows/NetLicensing%20Client%20CI/badge.svg)](https://github.com/Labs64/NetLicensingClient-javascript/actions?query=workflow%3A%22JavaScript+Client+-+CI%22)
5
+ [![JavaScript Client - CI](https://github.com/Labs64/NetLicensingClient-javascript/actions/workflows/netlicensing-js-ci.yml/badge.svg)](https://github.com/Labs64/NetLicensingClient-javascript/actions/workflows/netlicensing-js-ci.yml)
6
6
  [![npm version](https://img.shields.io/npm/v/netlicensing-client)](https://www.npmjs.com/package/netlicensing-client)
7
7
  [![npm downloads](https://img.shields.io/npm/dt/netlicensing-client)](https://www.npmjs.com/package/netlicensing-client)
8
8
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/netlicensing-client/badge)](https://www.jsdelivr.com/package/npm/netlicensing-client)
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AxiosResponse, AxiosInstance, Method, AxiosError, InternalAxiosRequestConfig } from 'axios';
1
+ import { AxiosInstance, AxiosResponse, Method, AxiosError, InternalAxiosRequestConfig } from 'axios';
2
2
 
3
3
  declare const _default$g: {
4
4
  LicenseeSecretMode: Readonly<{
@@ -786,7 +786,7 @@ type ProductProps<T extends object = object> = {
786
786
  active?: boolean;
787
787
  number?: string;
788
788
  name?: string;
789
- version?: string | number;
789
+ version?: string;
790
790
  description?: string;
791
791
  licensingInfo?: string;
792
792
  licenseeAutoCreate?: boolean;
@@ -951,14 +951,15 @@ interface ContextInstance extends ContextConfig {
951
951
  * @copyright 2017 Labs64 NetLicensing
952
952
  */
953
953
 
954
+ type AxiosRequestClient = Pick<AxiosInstance, 'request'>;
954
955
  interface RequestConfig {
955
956
  onInfo?: (info: Info[]) => void;
956
957
  onResponse?: (response: AxiosResponse) => void;
957
- axiosInstance?: AxiosInstance;
958
+ axiosInstance?: AxiosRequestClient;
958
959
  }
959
960
  interface IService {
960
- setAxiosInstance(this: void, instance: AxiosInstance): void;
961
- getAxiosInstance(this: void): AxiosInstance;
961
+ setAxiosInstance(this: void, instance: AxiosRequestClient): void;
962
+ getAxiosInstance(this: void): AxiosRequestClient;
962
963
  getLastHttpRequestInfo(this: void): AxiosResponse | null;
963
964
  getInfo(this: void): Info[];
964
965
  /**
@@ -1275,7 +1276,10 @@ declare const _default$b: <T extends object = LicenseTemplateProps>(item?: Item)
1275
1276
 
1276
1277
  declare const _default$a: <T extends object = NotificationProps>(item?: Item) => NotificationEntity<T>;
1277
1278
 
1278
- declare const itemToObject: <T extends object = Record<string, unknown>>(item?: Item | List) => T;
1279
+ type CastType = 'auto' | 'string' | 'number' | 'boolean' | 'null' | 'json';
1280
+
1281
+ type ItemToObjectCastMap = Record<string, CastType>;
1282
+ declare const itemToObject: <T extends object = Record<string, unknown>>(item?: Item | List, castMap?: ItemToObjectCastMap) => T;
1279
1283
 
1280
1284
  declare const _default$9: <T extends object = PaymentMethodProps>(item?: Item) => PaymentMethodEntity<T>;
1281
1285
 
@@ -1780,4 +1784,4 @@ declare const _default$1: () => ValidationParametersInstance;
1780
1784
 
1781
1785
  declare const _default: () => ValidationResultsInstance;
1782
1786
 
1783
- export { ApiKeyRole, type ApiKeyRoleKeys, type ApiKeyRoleValues, Bundle, type BundleEntity, type BundleMethods, type BundleProps, bundleService as BundleService, _default$g as Constants, _default$2 as Context, type ContextConfig, type ContextInstance, Country, type CountryEntity, type CountryMethods, type CountryProps, type DateField, type Entity, type EntityMethods, type IBundleService, type ILicenseService, type ILicenseTemplateService, type ILicenseeService, type INotificationService, type IPaymentMethodService, type IProductModuleService, type IProductService, type IService, type ITokenService, type ITransactionService, type IUtilityService, type Info, type Item, type ItemPagination, type Items, License, type LicenseEntity, type LicenseMethods, type LicenseProps, licenseService as LicenseService, LicenseTemplate, type LicenseTemplateEntity, type LicenseTemplateMethods, type LicenseTemplateProps, licenseTemplateService as LicenseTemplateService, _default$4 as LicenseTransactionJoin, type LicenseTransactionJoinEntity, type LicenseTransactionJoinMethods, type LicenseTransactionJoinProps, LicenseType, type LicenseTypeKeys, type LicenseTypeValues, Licensee, type LicenseeEntity, type LicenseeMethods, type LicenseeProperties, type LicenseeProps, LicenseeSecretMode, type LicenseeSecretModeKeys, type LicenseeSecretModeValues, licenseeService as LicenseeService, LicensingModel, type LicensingModelKeys, type LicensingModelValues, type List, NlicError, type NlicResponse, NodeSecretMode, type NodeSecretModeKeys, type NodeSecretModeValues, Notification, type NotificationEntity, NotificationEvent, type NotificationEventKeys, type NotificationEventValues, type NotificationMethods, type NotificationProps, NotificationProtocol, type NotificationProtocolKeys, type NotificationProtocolValues, notificationService as NotificationService, Page, type PageInstance, type Pagination, type PaginationMethods, type Parameter, type Parameters, PaymentMethod, type PaymentMethodEntity, PaymentMethodEnum, type PaymentMethodKeys, type PaymentMethodMethods, type PaymentMethodProps, paymentMethodService as PaymentMethodService, type PaymentMethodValues, Product, ProductDiscount, type ProductDiscountEntity, type ProductDiscountMethods, type ProductDiscountProps, type ProductEntity, type ProductMethods, ProductModule, type ProductModuleEntity, type ProductModuleMethods, type ProductModuleProps, productModuleService as ProductModuleService, type ProductModuleValidation, type ProductProps, productService as ProductService, type PropGetEventListener, type PropSetEventListener, type Proto, type RequestConfig, type RequiredProps, type SavedBundleProps, type SavedLicenseProps, type SavedLicenseTemplateProps, type SavedLicenseeProps, type SavedNotificationProps, type SavedPaymentMethodProps, type SavedProductModuleProps, type SavedProductProps, type SavedTokenProps, type SavedTransactionProps, SecurityMode, type SecurityModeKeys, type SecurityModeValues, service as Service, TimeVolumePeriod, type TimeVolumePeriodKeys, type TimeVolumePeriodValues, Token, type TokenEntity, type TokenMethods, type TokenProps, tokenService as TokenService, TokenType, type TokenTypeKeys, type TokenTypeValues, Transaction, type TransactionEntity, type TransactionMethods, type TransactionProps, transactionService as TransactionService, TransactionSource, type TransactionSourceKeys, type TransactionSourceValues, TransactionStatus, type TransactionStatusKeys, type TransactionStatusValues, utilityService as UtilityService, _default$1 as ValidationParameters, type ValidationParametersInstance, _default as ValidationResults, type ValidationResultsInstance, type WarningLevelSummary, defineEntity, ensureNotEmpty, ensureNotNull, decode as filterDecode, encode as filterEncode, isDefined, isValid, _default$f as itemToBundle, _default$e as itemToCountry, _default$d as itemToLicense, _default$b as itemToLicenseTemplate, _default$c as itemToLicensee, _default$a as itemToNotification, itemToObject, _default$9 as itemToPaymentMethod, _default$8 as itemToProduct, _default$7 as itemToProductModule, _default$6 as itemToToken, _default$5 as itemToTransaction, _default$3 as serialize };
1787
+ export { ApiKeyRole, type ApiKeyRoleKeys, type ApiKeyRoleValues, type AxiosRequestClient, Bundle, type BundleEntity, type BundleMethods, type BundleProps, bundleService as BundleService, _default$g as Constants, _default$2 as Context, type ContextConfig, type ContextInstance, Country, type CountryEntity, type CountryMethods, type CountryProps, type DateField, type Entity, type EntityMethods, type IBundleService, type ILicenseService, type ILicenseTemplateService, type ILicenseeService, type INotificationService, type IPaymentMethodService, type IProductModuleService, type IProductService, type IService, type ITokenService, type ITransactionService, type IUtilityService, type Info, type Item, type ItemPagination, type Items, License, type LicenseEntity, type LicenseMethods, type LicenseProps, licenseService as LicenseService, LicenseTemplate, type LicenseTemplateEntity, type LicenseTemplateMethods, type LicenseTemplateProps, licenseTemplateService as LicenseTemplateService, _default$4 as LicenseTransactionJoin, type LicenseTransactionJoinEntity, type LicenseTransactionJoinMethods, type LicenseTransactionJoinProps, LicenseType, type LicenseTypeKeys, type LicenseTypeValues, Licensee, type LicenseeEntity, type LicenseeMethods, type LicenseeProperties, type LicenseeProps, LicenseeSecretMode, type LicenseeSecretModeKeys, type LicenseeSecretModeValues, licenseeService as LicenseeService, LicensingModel, type LicensingModelKeys, type LicensingModelValues, type List, NlicError, type NlicResponse, NodeSecretMode, type NodeSecretModeKeys, type NodeSecretModeValues, Notification, type NotificationEntity, NotificationEvent, type NotificationEventKeys, type NotificationEventValues, type NotificationMethods, type NotificationProps, NotificationProtocol, type NotificationProtocolKeys, type NotificationProtocolValues, notificationService as NotificationService, Page, type PageInstance, type Pagination, type PaginationMethods, type Parameter, type Parameters, PaymentMethod, type PaymentMethodEntity, PaymentMethodEnum, type PaymentMethodKeys, type PaymentMethodMethods, type PaymentMethodProps, paymentMethodService as PaymentMethodService, type PaymentMethodValues, Product, ProductDiscount, type ProductDiscountEntity, type ProductDiscountMethods, type ProductDiscountProps, type ProductEntity, type ProductMethods, ProductModule, type ProductModuleEntity, type ProductModuleMethods, type ProductModuleProps, productModuleService as ProductModuleService, type ProductModuleValidation, type ProductProps, productService as ProductService, type PropGetEventListener, type PropSetEventListener, type Proto, type RequestConfig, type RequiredProps, type SavedBundleProps, type SavedLicenseProps, type SavedLicenseTemplateProps, type SavedLicenseeProps, type SavedNotificationProps, type SavedPaymentMethodProps, type SavedProductModuleProps, type SavedProductProps, type SavedTokenProps, type SavedTransactionProps, SecurityMode, type SecurityModeKeys, type SecurityModeValues, service as Service, TimeVolumePeriod, type TimeVolumePeriodKeys, type TimeVolumePeriodValues, Token, type TokenEntity, type TokenMethods, type TokenProps, tokenService as TokenService, TokenType, type TokenTypeKeys, type TokenTypeValues, Transaction, type TransactionEntity, type TransactionMethods, type TransactionProps, transactionService as TransactionService, TransactionSource, type TransactionSourceKeys, type TransactionSourceValues, TransactionStatus, type TransactionStatusKeys, type TransactionStatusValues, utilityService as UtilityService, _default$1 as ValidationParameters, type ValidationParametersInstance, _default as ValidationResults, type ValidationResultsInstance, type WarningLevelSummary, defineEntity, ensureNotEmpty, ensureNotNull, decode as filterDecode, encode as filterEncode, isDefined, isValid, _default$f as itemToBundle, _default$e as itemToCountry, _default$d as itemToLicense, _default$b as itemToLicenseTemplate, _default$c as itemToLicensee, _default$a as itemToNotification, itemToObject, _default$9 as itemToPaymentMethod, _default$8 as itemToProduct, _default$7 as itemToProductModule, _default$6 as itemToToken, _default$5 as itemToTransaction, _default$3 as serialize };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AxiosResponse, AxiosInstance, Method, AxiosError, InternalAxiosRequestConfig } from 'axios';
1
+ import { AxiosInstance, AxiosResponse, Method, AxiosError, InternalAxiosRequestConfig } from 'axios';
2
2
 
3
3
  declare const _default$g: {
4
4
  LicenseeSecretMode: Readonly<{
@@ -786,7 +786,7 @@ type ProductProps<T extends object = object> = {
786
786
  active?: boolean;
787
787
  number?: string;
788
788
  name?: string;
789
- version?: string | number;
789
+ version?: string;
790
790
  description?: string;
791
791
  licensingInfo?: string;
792
792
  licenseeAutoCreate?: boolean;
@@ -951,14 +951,15 @@ interface ContextInstance extends ContextConfig {
951
951
  * @copyright 2017 Labs64 NetLicensing
952
952
  */
953
953
 
954
+ type AxiosRequestClient = Pick<AxiosInstance, 'request'>;
954
955
  interface RequestConfig {
955
956
  onInfo?: (info: Info[]) => void;
956
957
  onResponse?: (response: AxiosResponse) => void;
957
- axiosInstance?: AxiosInstance;
958
+ axiosInstance?: AxiosRequestClient;
958
959
  }
959
960
  interface IService {
960
- setAxiosInstance(this: void, instance: AxiosInstance): void;
961
- getAxiosInstance(this: void): AxiosInstance;
961
+ setAxiosInstance(this: void, instance: AxiosRequestClient): void;
962
+ getAxiosInstance(this: void): AxiosRequestClient;
962
963
  getLastHttpRequestInfo(this: void): AxiosResponse | null;
963
964
  getInfo(this: void): Info[];
964
965
  /**
@@ -1275,7 +1276,10 @@ declare const _default$b: <T extends object = LicenseTemplateProps>(item?: Item)
1275
1276
 
1276
1277
  declare const _default$a: <T extends object = NotificationProps>(item?: Item) => NotificationEntity<T>;
1277
1278
 
1278
- declare const itemToObject: <T extends object = Record<string, unknown>>(item?: Item | List) => T;
1279
+ type CastType = 'auto' | 'string' | 'number' | 'boolean' | 'null' | 'json';
1280
+
1281
+ type ItemToObjectCastMap = Record<string, CastType>;
1282
+ declare const itemToObject: <T extends object = Record<string, unknown>>(item?: Item | List, castMap?: ItemToObjectCastMap) => T;
1279
1283
 
1280
1284
  declare const _default$9: <T extends object = PaymentMethodProps>(item?: Item) => PaymentMethodEntity<T>;
1281
1285
 
@@ -1780,4 +1784,4 @@ declare const _default$1: () => ValidationParametersInstance;
1780
1784
 
1781
1785
  declare const _default: () => ValidationResultsInstance;
1782
1786
 
1783
- export { ApiKeyRole, type ApiKeyRoleKeys, type ApiKeyRoleValues, Bundle, type BundleEntity, type BundleMethods, type BundleProps, bundleService as BundleService, _default$g as Constants, _default$2 as Context, type ContextConfig, type ContextInstance, Country, type CountryEntity, type CountryMethods, type CountryProps, type DateField, type Entity, type EntityMethods, type IBundleService, type ILicenseService, type ILicenseTemplateService, type ILicenseeService, type INotificationService, type IPaymentMethodService, type IProductModuleService, type IProductService, type IService, type ITokenService, type ITransactionService, type IUtilityService, type Info, type Item, type ItemPagination, type Items, License, type LicenseEntity, type LicenseMethods, type LicenseProps, licenseService as LicenseService, LicenseTemplate, type LicenseTemplateEntity, type LicenseTemplateMethods, type LicenseTemplateProps, licenseTemplateService as LicenseTemplateService, _default$4 as LicenseTransactionJoin, type LicenseTransactionJoinEntity, type LicenseTransactionJoinMethods, type LicenseTransactionJoinProps, LicenseType, type LicenseTypeKeys, type LicenseTypeValues, Licensee, type LicenseeEntity, type LicenseeMethods, type LicenseeProperties, type LicenseeProps, LicenseeSecretMode, type LicenseeSecretModeKeys, type LicenseeSecretModeValues, licenseeService as LicenseeService, LicensingModel, type LicensingModelKeys, type LicensingModelValues, type List, NlicError, type NlicResponse, NodeSecretMode, type NodeSecretModeKeys, type NodeSecretModeValues, Notification, type NotificationEntity, NotificationEvent, type NotificationEventKeys, type NotificationEventValues, type NotificationMethods, type NotificationProps, NotificationProtocol, type NotificationProtocolKeys, type NotificationProtocolValues, notificationService as NotificationService, Page, type PageInstance, type Pagination, type PaginationMethods, type Parameter, type Parameters, PaymentMethod, type PaymentMethodEntity, PaymentMethodEnum, type PaymentMethodKeys, type PaymentMethodMethods, type PaymentMethodProps, paymentMethodService as PaymentMethodService, type PaymentMethodValues, Product, ProductDiscount, type ProductDiscountEntity, type ProductDiscountMethods, type ProductDiscountProps, type ProductEntity, type ProductMethods, ProductModule, type ProductModuleEntity, type ProductModuleMethods, type ProductModuleProps, productModuleService as ProductModuleService, type ProductModuleValidation, type ProductProps, productService as ProductService, type PropGetEventListener, type PropSetEventListener, type Proto, type RequestConfig, type RequiredProps, type SavedBundleProps, type SavedLicenseProps, type SavedLicenseTemplateProps, type SavedLicenseeProps, type SavedNotificationProps, type SavedPaymentMethodProps, type SavedProductModuleProps, type SavedProductProps, type SavedTokenProps, type SavedTransactionProps, SecurityMode, type SecurityModeKeys, type SecurityModeValues, service as Service, TimeVolumePeriod, type TimeVolumePeriodKeys, type TimeVolumePeriodValues, Token, type TokenEntity, type TokenMethods, type TokenProps, tokenService as TokenService, TokenType, type TokenTypeKeys, type TokenTypeValues, Transaction, type TransactionEntity, type TransactionMethods, type TransactionProps, transactionService as TransactionService, TransactionSource, type TransactionSourceKeys, type TransactionSourceValues, TransactionStatus, type TransactionStatusKeys, type TransactionStatusValues, utilityService as UtilityService, _default$1 as ValidationParameters, type ValidationParametersInstance, _default as ValidationResults, type ValidationResultsInstance, type WarningLevelSummary, defineEntity, ensureNotEmpty, ensureNotNull, decode as filterDecode, encode as filterEncode, isDefined, isValid, _default$f as itemToBundle, _default$e as itemToCountry, _default$d as itemToLicense, _default$b as itemToLicenseTemplate, _default$c as itemToLicensee, _default$a as itemToNotification, itemToObject, _default$9 as itemToPaymentMethod, _default$8 as itemToProduct, _default$7 as itemToProductModule, _default$6 as itemToToken, _default$5 as itemToTransaction, _default$3 as serialize };
1787
+ export { ApiKeyRole, type ApiKeyRoleKeys, type ApiKeyRoleValues, type AxiosRequestClient, Bundle, type BundleEntity, type BundleMethods, type BundleProps, bundleService as BundleService, _default$g as Constants, _default$2 as Context, type ContextConfig, type ContextInstance, Country, type CountryEntity, type CountryMethods, type CountryProps, type DateField, type Entity, type EntityMethods, type IBundleService, type ILicenseService, type ILicenseTemplateService, type ILicenseeService, type INotificationService, type IPaymentMethodService, type IProductModuleService, type IProductService, type IService, type ITokenService, type ITransactionService, type IUtilityService, type Info, type Item, type ItemPagination, type Items, License, type LicenseEntity, type LicenseMethods, type LicenseProps, licenseService as LicenseService, LicenseTemplate, type LicenseTemplateEntity, type LicenseTemplateMethods, type LicenseTemplateProps, licenseTemplateService as LicenseTemplateService, _default$4 as LicenseTransactionJoin, type LicenseTransactionJoinEntity, type LicenseTransactionJoinMethods, type LicenseTransactionJoinProps, LicenseType, type LicenseTypeKeys, type LicenseTypeValues, Licensee, type LicenseeEntity, type LicenseeMethods, type LicenseeProperties, type LicenseeProps, LicenseeSecretMode, type LicenseeSecretModeKeys, type LicenseeSecretModeValues, licenseeService as LicenseeService, LicensingModel, type LicensingModelKeys, type LicensingModelValues, type List, NlicError, type NlicResponse, NodeSecretMode, type NodeSecretModeKeys, type NodeSecretModeValues, Notification, type NotificationEntity, NotificationEvent, type NotificationEventKeys, type NotificationEventValues, type NotificationMethods, type NotificationProps, NotificationProtocol, type NotificationProtocolKeys, type NotificationProtocolValues, notificationService as NotificationService, Page, type PageInstance, type Pagination, type PaginationMethods, type Parameter, type Parameters, PaymentMethod, type PaymentMethodEntity, PaymentMethodEnum, type PaymentMethodKeys, type PaymentMethodMethods, type PaymentMethodProps, paymentMethodService as PaymentMethodService, type PaymentMethodValues, Product, ProductDiscount, type ProductDiscountEntity, type ProductDiscountMethods, type ProductDiscountProps, type ProductEntity, type ProductMethods, ProductModule, type ProductModuleEntity, type ProductModuleMethods, type ProductModuleProps, productModuleService as ProductModuleService, type ProductModuleValidation, type ProductProps, productService as ProductService, type PropGetEventListener, type PropSetEventListener, type Proto, type RequestConfig, type RequiredProps, type SavedBundleProps, type SavedLicenseProps, type SavedLicenseTemplateProps, type SavedLicenseeProps, type SavedNotificationProps, type SavedPaymentMethodProps, type SavedProductModuleProps, type SavedProductProps, type SavedTokenProps, type SavedTransactionProps, SecurityMode, type SecurityModeKeys, type SecurityModeValues, service as Service, TimeVolumePeriod, type TimeVolumePeriodKeys, type TimeVolumePeriodValues, Token, type TokenEntity, type TokenMethods, type TokenProps, tokenService as TokenService, TokenType, type TokenTypeKeys, type TokenTypeValues, Transaction, type TransactionEntity, type TransactionMethods, type TransactionProps, transactionService as TransactionService, TransactionSource, type TransactionSourceKeys, type TransactionSourceValues, TransactionStatus, type TransactionStatusKeys, type TransactionStatusValues, utilityService as UtilityService, _default$1 as ValidationParameters, type ValidationParametersInstance, _default as ValidationResults, type ValidationResultsInstance, type WarningLevelSummary, defineEntity, ensureNotEmpty, ensureNotNull, decode as filterDecode, encode as filterEncode, isDefined, isValid, _default$f as itemToBundle, _default$e as itemToCountry, _default$d as itemToLicense, _default$b as itemToLicenseTemplate, _default$c as itemToLicensee, _default$a as itemToNotification, itemToObject, _default$9 as itemToPaymentMethod, _default$8 as itemToProduct, _default$7 as itemToProductModule, _default$6 as itemToToken, _default$5 as itemToTransaction, _default$3 as serialize };
@@ -1,7 +1,7 @@
1
- "use strict";var NetLicensing=(()=>{var qt=Object.defineProperty;var sr=Object.getOwnPropertyDescriptor;var ir=Object.getOwnPropertyNames;var ar=Object.prototype.hasOwnProperty;var wn=(n,e)=>{for(var o in e)qt(n,o,{get:e[o],enumerable:!0})},cr=(n,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ir(e))!ar.call(n,r)&&r!==o&&qt(n,r,{get:()=>e[r],enumerable:!(t=sr(e,r))||t.enumerable});return n};var ur=n=>cr(qt({},"__esModule",{value:!0}),n);var ri={};wn(ri,{ApiKeyRole:()=>_n,Bundle:()=>Ze,BundleService:()=>zo,Constants:()=>h,Context:()=>nr,Country:()=>et,License:()=>de,LicenseService:()=>Ko,LicenseTemplate:()=>ot,LicenseTemplateService:()=>Jo,LicenseTransactionJoin:()=>vt,LicenseType:()=>Re,Licensee:()=>nt,LicenseeSecretMode:()=>We,LicenseeService:()=>Yo,LicensingModel:()=>Mn,NlicError:()=>k,NodeSecretMode:()=>Un,Notification:()=>rt,NotificationEvent:()=>Ne,NotificationProtocol:()=>ve,NotificationService:()=>Go,Page:()=>I,PaymentMethod:()=>st,PaymentMethodEnum:()=>jn,PaymentMethodService:()=>Wo,Product:()=>it,ProductDiscount:()=>bt,ProductModule:()=>Rt,ProductModuleService:()=>Xo,ProductService:()=>Qo,SecurityMode:()=>Y,Service:()=>g,TimeVolumePeriod:()=>Xe,Token:()=>Nt,TokenService:()=>Zo,TokenType:()=>Ie,Transaction:()=>Fe,TransactionService:()=>er,TransactionSource:()=>Qe,TransactionStatus:()=>xe,UtilityService:()=>tr,ValidationParameters:()=>or,ValidationResults:()=>St,defineEntity:()=>v,ensureNotEmpty:()=>D,ensureNotNull:()=>R,filterDecode:()=>Ho,filterEncode:()=>x,isDefined:()=>yn,isValid:()=>qe,itemToBundle:()=>ee,itemToCountry:()=>tt,itemToLicense:()=>J,itemToLicenseTemplate:()=>ne,itemToLicensee:()=>te,itemToNotification:()=>oe,itemToObject:()=>N,itemToPaymentMethod:()=>me,itemToProduct:()=>se,itemToProductModule:()=>ie,itemToToken:()=>ye,itemToTransaction:()=>ae,serialize:()=>C});var dr=Object.freeze({DISABLED:"DISABLED",PREDEFINED:"PREDEFINED",CLIENT:"CLIENT"}),We=dr;var mr=Object.freeze({FEATURE:"FEATURE",TIMEVOLUME:"TIMEVOLUME",FLOATING:"FLOATING",QUANTITY:"QUANTITY"}),Re=mr;var pr=Object.freeze({LICENSEE_CREATED:"LICENSEE_CREATED",LICENSE_CREATED:"LICENSE_CREATED",WARNING_LEVEL_CHANGED:"WARNING_LEVEL_CHANGED",PAYMENT_TRANSACTION_PROCESSED:"PAYMENT_TRANSACTION_PROCESSED"}),Ne=pr;var lr=Object.freeze({WEBHOOK:"WEBHOOK"}),ve=lr;var fr=Object.freeze({BASIC_AUTHENTICATION:"BASIC_AUTH",APIKEY_IDENTIFICATION:"APIKEY",ANONYMOUS_IDENTIFICATION:"ANONYMOUS"}),Y=fr;var gr=Object.freeze({DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",YEAR:"YEAR"}),Xe=gr;var Tr=Object.freeze({DEFAULT:"DEFAULT",SHOP:"SHOP",APIKEY:"APIKEY",ACTION:"ACTION"}),Ie=Tr;var Pr=Object.freeze({SHOP:"SHOP",AUTO_LICENSE_CREATE:"AUTO_LICENSE_CREATE",AUTO_LICENSE_UPDATE:"AUTO_LICENSE_UPDATE",AUTO_LICENSE_DELETE:"AUTO_LICENSE_DELETE",AUTO_LICENSEE_CREATE:"AUTO_LICENSEE_CREATE",AUTO_LICENSEE_DELETE:"AUTO_LICENSEE_DELETE",AUTO_LICENSEE_VALIDATE:"AUTO_LICENSEE_VALIDATE",AUTO_LICENSETEMPLATE_DELETE:"AUTO_LICENSETEMPLATE_DELETE",AUTO_PRODUCTMODULE_DELETE:"AUTO_PRODUCTMODULE_DELETE",AUTO_PRODUCT_DELETE:"AUTO_PRODUCT_DELETE",AUTO_LICENSES_TRANSFER:"AUTO_LICENSES_TRANSFER",SUBSCRIPTION_UPDATE:"SUBSCRIPTION_UPDATE",RECURRING_PAYMENT:"RECURRING_PAYMENT",CANCEL_RECURRING_PAYMENT:"CANCEL_RECURRING_PAYMENT",OBTAIN_BUNDLE:"OBTAIN_BUNDLE"}),Qe=Pr;var hr=Object.freeze({PENDING:"PENDING",CLOSED:"CLOSED",CANCELLED:"CANCELLED"}),xe=hr;var h={LicenseeSecretMode:We,LicenseType:Re,NotificationEvent:Ne,NotificationProtocol:ve,SecurityMode:Y,TimeVolumePeriod:Xe,TokenType:Ie,TransactionSource:Qe,TransactionStatus:xe,BASIC_AUTHENTICATION:"BASIC_AUTH",APIKEY_IDENTIFICATION:"APIKEY",ANONYMOUS_IDENTIFICATION:"ANONYMOUS",FILTER:"filter",Product:{TYPE:"Product",ENDPOINT_PATH:"product"},ProductModule:{TYPE:"ProductModule",ENDPOINT_PATH:"productmodule",PRODUCT_MODULE_NUMBER:"productModuleNumber"},Licensee:{TYPE:"Licensee",ENDPOINT_PATH:"licensee",ENDPOINT_PATH_VALIDATE:"validate",ENDPOINT_PATH_TRANSFER:"transfer",LICENSEE_NUMBER:"licenseeNumber"},LicenseTemplate:{TYPE:"LicenseTemplate",ENDPOINT_PATH:"licensetemplate",LicenseType:Re},License:{TYPE:"License",ENDPOINT_PATH:"license"},Validation:{TYPE:"ProductModuleValidation"},Token:{TYPE:"Token",ENDPOINT_PATH:"token",Type:Ie},PaymentMethod:{TYPE:"PaymentMethod",ENDPOINT_PATH:"paymentmethod"},Bundle:{TYPE:"Bundle",ENDPOINT_PATH:"bundle",ENDPOINT_OBTAIN_PATH:"obtain"},Notification:{TYPE:"Notification",ENDPOINT_PATH:"notification",Protocol:ve,Event:Ne},Transaction:{TYPE:"Transaction",ENDPOINT_PATH:"transaction",Status:xe},Utility:{ENDPOINT_PATH:"utility",ENDPOINT_PATH_LICENSE_TYPES:"licenseTypes",ENDPOINT_PATH_LICENSING_MODELS:"licensingModels",ENDPOINT_PATH_COUNTRIES:"countries",LICENSING_MODEL_TYPE:"LicensingModelProperties",LICENSE_TYPE:"LicenseType",COUNTRY_TYPE:"Country"}};var yr=Object.freeze({ROLE_APIKEY_LICENSEE:"ROLE_APIKEY_LICENSEE",ROLE_APIKEY_ANALYTICS:"ROLE_APIKEY_ANALYTICS",ROLE_APIKEY_OPERATION:"ROLE_APIKEY_OPERATION",ROLE_APIKEY_MAINTENANCE:"ROLE_APIKEY_MAINTENANCE",ROLE_APIKEY_ADMIN:"ROLE_APIKEY_ADMIN"}),_n=yr;var Er=Object.freeze({TRY_AND_BUY:"TryAndBuy",SUBSCRIPTION:"Subscription",RENTAL:"Rental",FLOATING:"Floating",MULTI_FEATURE:"MultiFeature",PAY_PER_USE:"PayPerUse",PRICING_TABLE:"PricingTable",QUOTA:"Quota",NODE_LOCKED:"NodeLocked",DISCOUNT:"Discount"}),Mn=Er;var Dr=Object.freeze({PREDEFINED:"PREDEFINED",CLIENT:"CLIENT"}),Un=Dr;var br=Object.freeze({NULL:"NULL",PAYPAL:"PAYPAL",PAYPAL_SANDBOX:"PAYPAL_SANDBOX",STRIPE:"STRIPE",STRIPE_TESTING:"STRIPE_TESTING"}),jn=br;var Rr=n=>{try{return JSON.parse(n)}catch{return n}},Nr=n=>{let e={};return n?.forEach(({name:o,value:t})=>{e[o]=Rr(t)}),e},vr=n=>{let e={};return n?.forEach(o=>{let{name:t}=o;e[t]=e[t]||[],e[t].push(Bn(o))}),e},Bn=n=>n?{...Nr(n.property),...vr(n.list)}:{},N=Bn;var Vt=(n,e)=>Object.hasOwn(n,e),l=(n,e,o)=>{n[e]=o},p=(n,e,o)=>Vt(n,e)?n[e]:o;var C=(n,e={})=>{let o={},{ignore:t=[]}=e;return Object.entries(n).forEach(([r,s])=>{if(!t.includes(r)&&typeof s!="function")if(s===void 0)o[r]="";else if(typeof s=="string")o[r]=s;else if(s instanceof Date)o[r]=s.toISOString();else if(typeof s!="object"||s===null)o[r]=String(s);else try{o[r]=JSON.stringify(s)}catch{o[r]=String(s)}}),o};var Ir=function(n,e,o={},t){let r={set:[],get:[]};t?.get&&r.get.push(t.get),t?.set&&r.set.push(t.set);let s={set(i,a){l(n,i,a)},get(i,a){return p(n,i,a)},has(i){return Vt(n,i)},setProperty(i,a){this.set(i,a)},addProperty(i,a){this.set(i,a)},getProperty(i,a){return this.get(i,a)},hasProperty(i){return this.has(i)},setProperties(i){Object.entries(i).forEach(([a,d])=>{this.set(a,d)})},serialize(){return C(n)}};return new Proxy(n,{get(i,a,d){return Object.hasOwn(e,a)?e[a]:Object.hasOwn(s,a)?s[a]:(r.get.forEach(u=>{u(i,a,d)}),Reflect.get(i,a,d))},set(i,a,d,u){return r.set.forEach(m=>{m(i,a,d,u)}),Reflect.set(i,a,d,u)},getPrototypeOf(){return o.prototype||null}})},v=Ir;var kn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setPrice(t){l(e,"price",t)},getPrice(t){return p(e,"price",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},setLicenseTemplateNumbers(t){l(e,"licenseTemplateNumbers",t)},addLicenseTemplateNumber(t){e.licenseTemplateNumbers||(e.licenseTemplateNumbers=[]),e.licenseTemplateNumbers.push(t)},getLicenseTemplateNumbers(t){return p(e,"licenseTemplateNumbers",t)},removeLicenseTemplateNumber(t){let{licenseTemplateNumbers:r=[]}=e;r.splice(r.indexOf(t),1),e.licenseTemplateNumbers=r},getStaleLicenseTemplateNumbers(t){return p(e,"staleLicenseTemplateNumbers",t)},serialize(){let t={};return e.licenseTemplateNumbers&&(t.licenseTemplateNumbers=e.licenseTemplateNumbers.join(",")),C({...e,...t},{ignore:["staleLicenseTemplateNumbers"]})}},kn)},Ze=kn;var ee=n=>{let e=N(n),{licenseTemplateNumbers:o}=e;return o&&typeof o=="string"&&(e.licenseTemplateNumbers=o.split(",")),Ze(e)};var Fn=function(n={}){let o={...{code:"",name:"",vatPercent:0,isEu:!1},...n};return v(o,{getCode(){return o.code},getName(){return o.name},getVatPercent(){return o.vatPercent},getIsEu(){return o.isEu}},Fn)},et=Fn;var tt=n=>et(N(n));var qn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setPrice(t){l(e,"price",t)},getPrice(t){return p(e,"price",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setHidden(t){l(e,"hidden",t)},getHidden(t){return p(e,"hidden",t)},setLicenseeNumber(t){l(e,"licenseeNumber",t)},getLicenseeNumber(t){return p(e,"licenseeNumber",t)},setLicenseTemplateNumber(t){l(e,"licenseTemplateNumber",t)},getLicenseTemplateNumber(t){return p(e,"licenseTemplateNumber",t)},setProductModuleNumber(t){l(e,"productModuleNumber",t)},getProductModuleNumber(t){return p(e,"productModuleNumber",t)},serialize(){return C(e,{ignore:["inUse"]})}},qn)},de=qn;var J=n=>{let e=N(n),{startDate:o}=e;return o&&typeof o=="string"&&(e.startDate=o==="now"?o:new Date(o)),de(e)};var Vn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},setMarkedForTransfer(t){l(e,"markedForTransfer",t)},getMarkedForTransfer(t){return p(e,"markedForTransfer",t)},serialize(){return C(e,{ignore:["inUse"]})}},Vn)},nt=Vn;var te=n=>nt(N(n));var Hn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setLicenseType(t){l(e,"licenseType",t)},getLicenseType(t){return p(e,"licenseType",t)},setPrice(t){l(e,"price",t)},getPrice(t){return p(e,"price",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setAutomatic(t){l(e,"automatic",t)},getAutomatic(t){return p(e,"automatic",t)},setHidden(t){l(e,"hidden",t)},getHidden(t){return p(e,"hidden",t)},setHideLicenses(t){l(e,"hideLicenses",t)},getHideLicenses(t){return p(e,"hideLicenses",t)},setProductModuleNumber(t){l(e,"productModuleNumber",t)},getProductModuleNumber(t){return p(e,"productModuleNumber",t)},serialize(){return C(e,{ignore:["inUse"]})}},Hn)},ot=Hn;var ne=n=>ot(N(n));var $n=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setProtocol(t){l(e,"protocol",t)},getProtocol(t){return p(e,"protocol",t)},setEvents(t){l(e,"events",t)},getEvents(t){return p(e,"events",t)},addEvent(t){let r=this.getEvents([]);r.push(t),this.setEvents(r)},setPayload(t){l(e,"payload",t)},getPayload(t){return p(e,"payload",t)},setEndpoint(t){l(e,"endpoint",t)},getEndpoint(t){return p(e,"endpoint",t)},serialize(){let t=C(e);return t.events&&(t.events=this.getEvents([]).join(",")),t}},$n)},rt=$n;var oe=n=>{let e=N(n),{events:o}=e;return o&&typeof o=="string"&&(e.events=o.split(",")),rt(e)};var zn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)}},zn)},st=zn;var me=n=>st(N(n));var Yn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setVersion(t){l(e,"version",t)},getVersion(t){return p(e,"version",t)},setDescription(t){l(e,"description",t)},getDescription(t){return p(e,"description",t)},setLicensingInfo(t){l(e,"licensingInfo",t)},getLicensingInfo(t){return p(e,"licensingInfo",t)},setLicenseeAutoCreate(t){l(e,"licenseeAutoCreate",t)},getLicenseeAutoCreate(t){return p(e,"licenseeAutoCreate",t)},setDiscounts(t){l(e,"discounts",t)},getDiscounts(t){return p(e,"discounts",t)},addDiscount(t){let r=this.getDiscounts([]);r.push(t),this.setDiscounts(r)},removeDiscount(t){let r=this.getDiscounts();Array.isArray(r)&&r.length>0&&(r.splice(r.indexOf(t),1),this.setDiscounts(r))},setProductDiscounts(t){this.setDiscounts(t)},getProductDiscounts(t){return this.getDiscounts(t)},serialize(){let t=C(e,{ignore:["discounts","inUse"]}),r=this.getDiscounts();return r&&(t.discount=r.length>0?r.map(s=>s.toString()):""),t}},Yn)},it=Yn;function Le(n,e){return function(){return n.apply(e,arguments)}}var{toString:xr}=Object.prototype,{getPrototypeOf:$t}=Object,{iterator:ct,toStringTag:Jn}=Symbol,ut=(n=>e=>{let o=xr.call(e);return n[o]||(n[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),$=n=>(n=n.toLowerCase(),e=>ut(e)===n),dt=n=>e=>typeof e===n,{isArray:le}=Array,pe=dt("undefined");function Se(n){return n!==null&&!pe(n)&&n.constructor!==null&&!pe(n.constructor)&&B(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}var Gn=$("ArrayBuffer");function Lr(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&Gn(n.buffer),e}var Sr=dt("string"),B=dt("function"),Wn=dt("number"),Ce=n=>n!==null&&typeof n=="object",Cr=n=>n===!0||n===!1,at=n=>{if(ut(n)!=="object")return!1;let e=$t(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Jn in n)&&!(ct in n)},Ar=n=>{if(!Ce(n)||Se(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},Or=$("Date"),wr=$("File"),_r=$("Blob"),Mr=$("FileList"),Ur=n=>Ce(n)&&B(n.pipe),jr=n=>{let e;return n&&(typeof FormData=="function"&&n instanceof FormData||B(n.append)&&((e=ut(n))==="formdata"||e==="object"&&B(n.toString)&&n.toString()==="[object FormData]"))},Br=$("URLSearchParams"),[kr,Fr,qr,Vr]=["ReadableStream","Request","Response","Headers"].map($),Hr=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(n,e,{allOwnKeys:o=!1}={}){if(n===null||typeof n>"u")return;let t,r;if(typeof n!="object"&&(n=[n]),le(n))for(t=0,r=n.length;t<r;t++)e.call(null,n[t],t,n);else{if(Se(n))return;let s=o?Object.getOwnPropertyNames(n):Object.keys(n),i=s.length,a;for(t=0;t<i;t++)a=s[t],e.call(null,n[a],a,n)}}function Xn(n,e){if(Se(n))return null;e=e.toLowerCase();let o=Object.keys(n),t=o.length,r;for(;t-- >0;)if(r=o[t],e===r.toLowerCase())return r;return null}var re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Qn=n=>!pe(n)&&n!==re;function Ht(){let{caseless:n,skipUndefined:e}=Qn(this)&&this||{},o={},t=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let i=n&&Xn(o,s)||s;at(o[i])&&at(r)?o[i]=Ht(o[i],r):at(r)?o[i]=Ht({},r):le(r)?o[i]=r.slice():(!e||!pe(r))&&(o[i]=r)};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Ae(arguments[r],t);return o}var $r=(n,e,o,{allOwnKeys:t}={})=>(Ae(e,(r,s)=>{o&&B(r)?Object.defineProperty(n,s,{value:Le(r,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:t}),n),zr=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),Yr=(n,e,o,t)=>{n.prototype=Object.create(e.prototype,t),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:e.prototype}),o&&Object.assign(n.prototype,o)},Kr=(n,e,o,t)=>{let r,s,i,a={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)i=r[s],(!t||t(i,n,e))&&!a[i]&&(e[i]=n[i],a[i]=!0);n=o!==!1&&$t(n)}while(n&&(!o||o(n,e))&&n!==Object.prototype);return e},Jr=(n,e,o)=>{n=String(n),(o===void 0||o>n.length)&&(o=n.length),o-=e.length;let t=n.indexOf(e,o);return t!==-1&&t===o},Gr=n=>{if(!n)return null;if(le(n))return n;let e=n.length;if(!Wn(e))return null;let o=new Array(e);for(;e-- >0;)o[e]=n[e];return o},Wr=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&$t(Uint8Array)),Xr=(n,e)=>{let t=(n&&n[ct]).call(n),r;for(;(r=t.next())&&!r.done;){let s=r.value;e.call(n,s[0],s[1])}},Qr=(n,e)=>{let o,t=[];for(;(o=n.exec(e))!==null;)t.push(o);return t},Zr=$("HTMLFormElement"),es=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,t,r){return t.toUpperCase()+r}),Kn=(({hasOwnProperty:n})=>(e,o)=>n.call(e,o))(Object.prototype),ts=$("RegExp"),Zn=(n,e)=>{let o=Object.getOwnPropertyDescriptors(n),t={};Ae(o,(r,s)=>{let i;(i=e(r,s,n))!==!1&&(t[s]=i||r)}),Object.defineProperties(n,t)},ns=n=>{Zn(n,(e,o)=>{if(B(n)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let t=n[o];if(B(t)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},os=(n,e)=>{let o={},t=r=>{r.forEach(s=>{o[s]=!0})};return le(n)?t(n):t(String(n).split(e)),o},rs=()=>{},ss=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function is(n){return!!(n&&B(n.append)&&n[Jn]==="FormData"&&n[ct])}var as=n=>{let e=new Array(10),o=(t,r)=>{if(Ce(t)){if(e.indexOf(t)>=0)return;if(Se(t))return t;if(!("toJSON"in t)){e[r]=t;let s=le(t)?[]:{};return Ae(t,(i,a)=>{let d=o(i,r+1);!pe(d)&&(s[a]=d)}),e[r]=void 0,s}}return t};return o(n,0)},cs=$("AsyncFunction"),us=n=>n&&(Ce(n)||B(n))&&B(n.then)&&B(n.catch),eo=((n,e)=>n?setImmediate:e?((o,t)=>(re.addEventListener("message",({source:r,data:s})=>{r===re&&s===o&&t.length&&t.shift()()},!1),r=>{t.push(r),re.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",B(re.postMessage)),ds=typeof queueMicrotask<"u"?queueMicrotask.bind(re):typeof process<"u"&&process.nextTick||eo,ms=n=>n!=null&&B(n[ct]),c={isArray:le,isArrayBuffer:Gn,isBuffer:Se,isFormData:jr,isArrayBufferView:Lr,isString:Sr,isNumber:Wn,isBoolean:Cr,isObject:Ce,isPlainObject:at,isEmptyObject:Ar,isReadableStream:kr,isRequest:Fr,isResponse:qr,isHeaders:Vr,isUndefined:pe,isDate:Or,isFile:wr,isBlob:_r,isRegExp:ts,isFunction:B,isStream:Ur,isURLSearchParams:Br,isTypedArray:Wr,isFileList:Mr,forEach:Ae,merge:Ht,extend:$r,trim:Hr,stripBOM:zr,inherits:Yr,toFlatObject:Kr,kindOf:ut,kindOfTest:$,endsWith:Jr,toArray:Gr,forEachEntry:Xr,matchAll:Qr,isHTMLForm:Zr,hasOwnProperty:Kn,hasOwnProp:Kn,reduceDescriptors:Zn,freezeMethods:ns,toObjectSet:os,toCamelCase:es,noop:rs,toFiniteNumber:ss,findKey:Xn,global:re,isContextDefined:Qn,isSpecCompliantForm:is,toJSONObject:as,isAsyncFn:cs,isThenable:us,setImmediate:eo,asap:ds,isIterable:ms};var M=class n extends Error{static from(e,o,t,r,s,i){let a=new n(e.message,o||e.code,t,r,s);return a.cause=e,a.name=e.name,i&&Object.assign(a,i),a}constructor(e,o,t,r,s){super(e),this.name="AxiosError",this.isAxiosError=!0,o&&(this.code=o),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}};M.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";M.ERR_BAD_OPTION="ERR_BAD_OPTION";M.ECONNABORTED="ECONNABORTED";M.ETIMEDOUT="ETIMEDOUT";M.ERR_NETWORK="ERR_NETWORK";M.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";M.ERR_DEPRECATED="ERR_DEPRECATED";M.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";M.ERR_BAD_REQUEST="ERR_BAD_REQUEST";M.ERR_CANCELED="ERR_CANCELED";M.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";M.ERR_INVALID_URL="ERR_INVALID_URL";var E=M;var mt=null;function zt(n){return c.isPlainObject(n)||c.isArray(n)}function no(n){return c.endsWith(n,"[]")?n.slice(0,-2):n}function to(n,e,o){return n?n.concat(e).map(function(r,s){return r=no(r),!o&&s?"["+r+"]":r}).join(o?".":""):e}function ps(n){return c.isArray(n)&&!n.some(zt)}var ls=c.toFlatObject(c,{},null,function(e){return/^is[A-Z]/.test(e)});function fs(n,e,o){if(!c.isObject(n))throw new TypeError("target must be an object");e=e||new(mt||FormData),o=c.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,P){return!c.isUndefined(P[y])});let t=o.metaTokens,r=o.visitor||m,s=o.dots,i=o.indexes,d=(o.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(c.isBoolean(f))return f.toString();if(!d&&c.isBlob(f))throw new E("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function m(f,y,P){let A=f;if(f&&!P&&typeof f=="object"){if(c.endsWith(y,"{}"))y=t?y:y.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&ps(f)||(c.isFileList(f)||c.endsWith(y,"[]"))&&(A=c.toArray(f)))return y=no(y),A.forEach(function(_,U){!(c.isUndefined(_)||_===null)&&e.append(i===!0?to([y],U,s):i===null?y:y+"[]",u(_))}),!1}return zt(f)?!0:(e.append(to(P,y,s),u(f)),!1)}let T=[],b=Object.assign(ls,{defaultVisitor:m,convertValue:u,isVisitable:zt});function S(f,y){if(!c.isUndefined(f)){if(T.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));T.push(f),c.forEach(f,function(A,F){(!(c.isUndefined(A)||A===null)&&r.call(e,A,c.isString(F)?F.trim():F,y,b))===!0&&S(A,y?y.concat(F):[F])}),T.pop()}}if(!c.isObject(n))throw new TypeError("data must be an object");return S(n),e}var X=fs;function oo(n){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function ro(n,e){this._pairs=[],n&&X(n,this,e)}var so=ro.prototype;so.append=function(e,o){this._pairs.push([e,o])};so.toString=function(e){let o=e?function(t){return e.call(this,t,oo)}:oo;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};var pt=ro;function gs(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oe(n,e,o){if(!e)return n;let t=o&&o.encode||gs,r=c.isFunction(o)?{serialize:o}:o,s=r&&r.serialize,i;if(s?i=s(e,r):i=c.isURLSearchParams(e)?e.toString():new pt(e,r).toString(t),i){let a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}var Yt=class{constructor(){this.handlers=[]}use(e,o,t){return this.handlers.push({fulfilled:e,rejected:o,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(t){t!==null&&e(t)})}},Kt=Yt;var fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var io=typeof URLSearchParams<"u"?URLSearchParams:pt;var ao=typeof FormData<"u"?FormData:null;var co=typeof Blob<"u"?Blob:null;var uo={isBrowser:!0,classes:{URLSearchParams:io,FormData:ao,Blob:co},protocols:["http","https","file","blob","url","data"]};var Wt={};wn(Wt,{hasBrowserEnv:()=>Gt,hasStandardBrowserEnv:()=>Ts,hasStandardBrowserWebWorkerEnv:()=>Ps,navigator:()=>Jt,origin:()=>hs});var Gt=typeof window<"u"&&typeof document<"u",Jt=typeof navigator=="object"&&navigator||void 0,Ts=Gt&&(!Jt||["ReactNative","NativeScript","NS"].indexOf(Jt.product)<0),Ps=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hs=Gt&&window.location.href||"http://localhost";var L={...Wt,...uo};function Xt(n,e){return X(n,new L.classes.URLSearchParams,{visitor:function(o,t,r,s){return L.isNode&&c.isBuffer(o)?(this.append(t,o.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function ys(n){return c.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Es(n){let e={},o=Object.keys(n),t,r=o.length,s;for(t=0;t<r;t++)s=o[t],e[s]=n[s];return e}function Ds(n){function e(o,t,r,s){let i=o[s++];if(i==="__proto__")return!0;let a=Number.isFinite(+i),d=s>=o.length;return i=!i&&c.isArray(r)?r.length:i,d?(c.hasOwnProp(r,i)?r[i]=[r[i],t]:r[i]=t,!a):((!r[i]||!c.isObject(r[i]))&&(r[i]=[]),e(o,t,r[i],s)&&c.isArray(r[i])&&(r[i]=Es(r[i])),!a)}if(c.isFormData(n)&&c.isFunction(n.entries)){let o={};return c.forEachEntry(n,(t,r)=>{e(ys(t),r,o,0)}),o}return null}var lt=Ds;function bs(n,e,o){if(c.isString(n))try{return(e||JSON.parse)(n),c.trim(n)}catch(t){if(t.name!=="SyntaxError")throw t}return(o||JSON.stringify)(n)}var Qt={transitional:fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){let t=o.getContentType()||"",r=t.indexOf("application/json")>-1,s=c.isObject(e);if(s&&c.isHTMLForm(e)&&(e=new FormData(e)),c.isFormData(e))return r?JSON.stringify(lt(e)):e;if(c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)||c.isReadableStream(e))return e;if(c.isArrayBufferView(e))return e.buffer;if(c.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Xt(e,this.formSerializer).toString();if((a=c.isFileList(e))||t.indexOf("multipart/form-data")>-1){let d=this.env&&this.env.FormData;return X(a?{"files[]":e}:e,d&&new d,this.formSerializer)}}return s||r?(o.setContentType("application/json",!1),bs(e)):e}],transformResponse:[function(e){let o=this.transitional||Qt.transitional,t=o&&o.forcedJSONParsing,r=this.responseType==="json";if(c.isResponse(e)||c.isReadableStream(e))return e;if(e&&c.isString(e)&&(t&&!this.responseType||r)){let i=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?E.from(a,E.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:L.classes.FormData,Blob:L.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],n=>{Qt.headers[n]={}});var ge=Qt;var Rs=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mo=n=>{let e={},o,t,r;return n&&n.split(`
2
- `).forEach(function(i){r=i.indexOf(":"),o=i.substring(0,r).trim().toLowerCase(),t=i.substring(r+1).trim(),!(!o||e[o]&&Rs[o])&&(o==="set-cookie"?e[o]?e[o].push(t):e[o]=[t]:e[o]=e[o]?e[o]+", "+t:t)}),e};var po=Symbol("internals");function we(n){return n&&String(n).trim().toLowerCase()}function ft(n){return n===!1||n==null?n:c.isArray(n)?n.map(ft):String(n)}function Ns(n){let e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=o.exec(n);)e[t[1]]=t[2];return e}var vs=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function Zt(n,e,o,t,r){if(c.isFunction(t))return t.call(this,e,o);if(r&&(e=o),!!c.isString(e)){if(c.isString(t))return e.indexOf(t)!==-1;if(c.isRegExp(t))return t.test(e)}}function Is(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,t)=>o.toUpperCase()+t)}function xs(n,e){let o=c.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{value:function(r,s,i){return this[t].call(this,e,r,s,i)},configurable:!0})})}var Te=class{constructor(e){e&&this.set(e)}set(e,o,t){let r=this;function s(a,d,u){let m=we(d);if(!m)throw new Error("header name must be a non-empty string");let T=c.findKey(r,m);(!T||r[T]===void 0||u===!0||u===void 0&&r[T]!==!1)&&(r[T||d]=ft(a))}let i=(a,d)=>c.forEach(a,(u,m)=>s(u,m,d));if(c.isPlainObject(e)||e instanceof this.constructor)i(e,o);else if(c.isString(e)&&(e=e.trim())&&!vs(e))i(mo(e),o);else if(c.isObject(e)&&c.isIterable(e)){let a={},d,u;for(let m of e){if(!c.isArray(m))throw TypeError("Object iterator must return a key-value pair");a[u=m[0]]=(d=a[u])?c.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}i(a,o)}else e!=null&&s(o,e,t);return this}get(e,o){if(e=we(e),e){let t=c.findKey(this,e);if(t){let r=this[t];if(!o)return r;if(o===!0)return Ns(r);if(c.isFunction(o))return o.call(this,r,t);if(c.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=we(e),e){let t=c.findKey(this,e);return!!(t&&this[t]!==void 0&&(!o||Zt(this,this[t],t,o)))}return!1}delete(e,o){let t=this,r=!1;function s(i){if(i=we(i),i){let a=c.findKey(t,i);a&&(!o||Zt(t,t[a],a,o))&&(delete t[a],r=!0)}}return c.isArray(e)?e.forEach(s):s(e),r}clear(e){let o=Object.keys(this),t=o.length,r=!1;for(;t--;){let s=o[t];(!e||Zt(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){let o=this,t={};return c.forEach(this,(r,s)=>{let i=c.findKey(t,s);if(i){o[i]=ft(r),delete o[s];return}let a=e?Is(s):String(s).trim();a!==s&&delete o[s],o[a]=ft(r),t[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let o=Object.create(null);return c.forEach(this,(t,r)=>{t!=null&&t!==!1&&(o[r]=e&&c.isArray(t)?t.join(", "):t)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
3
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){let t=new this(e);return o.forEach(r=>t.set(r)),t}static accessor(e){let t=(this[po]=this[po]={accessors:{}}).accessors,r=this.prototype;function s(i){let a=we(i);t[a]||(xs(r,i),t[a]=!0)}return c.isArray(e)?e.forEach(s):s(e),this}};Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(Te.prototype,({value:n},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(t){this[o]=t}}});c.freezeMethods(Te);var w=Te;function _e(n,e){let o=this||ge,t=e||o,r=w.from(t.headers),s=t.data;return c.forEach(n,function(a){s=a.call(o,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function Me(n){return!!(n&&n.__CANCEL__)}var en=class extends E{constructor(e,o,t){super(e??"canceled",E.ERR_CANCELED,o,t),this.name="CanceledError",this.__CANCEL__=!0}},K=en;function Ue(n,e,o){let t=o.config.validateStatus;!o.status||!t||t(o.status)?n(o):e(new E("Request failed with status code "+o.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function tn(n){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Ls(n,e){n=n||10;let o=new Array(n),t=new Array(n),r=0,s=0,i;return e=e!==void 0?e:1e3,function(d){let u=Date.now(),m=t[s];i||(i=u),o[r]=d,t[r]=u;let T=s,b=0;for(;T!==r;)b+=o[T++],T=T%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),u-i<e)return;let S=m&&u-m;return S?Math.round(b*1e3/S):void 0}}var lo=Ls;function Ss(n,e){let o=0,t=1e3/e,r,s,i=(u,m=Date.now())=>{o=m,r=null,s&&(clearTimeout(s),s=null),n(...u)};return[(...u)=>{let m=Date.now(),T=m-o;T>=t?i(u,m):(r=u,s||(s=setTimeout(()=>{s=null,i(r)},t-T)))},()=>r&&i(r)]}var fo=Ss;var Pe=(n,e,o=3)=>{let t=0,r=lo(50,250);return fo(s=>{let i=s.loaded,a=s.lengthComputable?s.total:void 0,d=i-t,u=r(d),m=i<=a;t=i;let T={loaded:i,total:a,progress:a?i/a:void 0,bytes:d,rate:u||void 0,estimated:u&&a&&m?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(T)},o)},nn=(n,e)=>{let o=n!=null;return[t=>e[0]({lengthComputable:o,total:n,loaded:t}),e[1]]},on=n=>(...e)=>c.asap(()=>n(...e));var go=L.hasStandardBrowserEnv?((n,e)=>o=>(o=new URL(o,L.origin),n.protocol===o.protocol&&n.host===o.host&&(e||n.port===o.port)))(new URL(L.origin),L.navigator&&/(msie|trident)/i.test(L.navigator.userAgent)):()=>!0;var To=L.hasStandardBrowserEnv?{write(n,e,o,t,r,s,i){if(typeof document>"u")return;let a=[`${n}=${encodeURIComponent(e)}`];c.isNumber(o)&&a.push(`expires=${new Date(o).toUTCString()}`),c.isString(t)&&a.push(`path=${t}`),c.isString(r)&&a.push(`domain=${r}`),s===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(n){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function rn(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function sn(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function je(n,e,o){let t=!rn(e);return n&&(t||o==!1)?sn(n,e):e}var Po=n=>n instanceof w?{...n}:n;function z(n,e){e=e||{};let o={};function t(u,m,T,b){return c.isPlainObject(u)&&c.isPlainObject(m)?c.merge.call({caseless:b},u,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function r(u,m,T,b){if(c.isUndefined(m)){if(!c.isUndefined(u))return t(void 0,u,T,b)}else return t(u,m,T,b)}function s(u,m){if(!c.isUndefined(m))return t(void 0,m)}function i(u,m){if(c.isUndefined(m)){if(!c.isUndefined(u))return t(void 0,u)}else return t(void 0,m)}function a(u,m,T){if(T in e)return t(u,m);if(T in n)return t(void 0,u)}let d={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,m,T)=>r(Po(u),Po(m),T,!0)};return c.forEach(Object.keys({...n,...e}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;let T=c.hasOwnProp(d,m)?d[m]:r,b=T(n[m],e[m],m);c.isUndefined(b)&&T!==a||(o[m]=b)}),o}var gt=n=>{let e=z({},n),{data:o,withXSRFToken:t,xsrfHeaderName:r,xsrfCookieName:s,headers:i,auth:a}=e;if(e.headers=i=w.from(i),e.url=Oe(je(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(o)){if(L.hasStandardBrowserEnv||L.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(c.isFunction(o.getHeaders)){let d=o.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([m,T])=>{u.includes(m.toLowerCase())&&i.set(m,T)})}}if(L.hasStandardBrowserEnv&&(t&&c.isFunction(t)&&(t=t(e)),t||t!==!1&&go(e.url))){let d=r&&s&&To.read(s);d&&i.set(r,d)}return e};var Cs=typeof XMLHttpRequest<"u",ho=Cs&&function(n){return new Promise(function(o,t){let r=gt(n),s=r.data,i=w.from(r.headers).normalize(),{responseType:a,onUploadProgress:d,onDownloadProgress:u}=r,m,T,b,S,f;function y(){S&&S(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(m),r.signal&&r.signal.removeEventListener("abort",m)}let P=new XMLHttpRequest;P.open(r.method.toUpperCase(),r.url,!0),P.timeout=r.timeout;function A(){if(!P)return;let _=w.from("getAllResponseHeaders"in P&&P.getAllResponseHeaders()),H={data:!a||a==="text"||a==="json"?P.responseText:P.response,status:P.status,statusText:P.statusText,headers:_,config:n,request:P};Ue(function(q){o(q),y()},function(q){t(q),y()},H),P=null}"onloadend"in P?P.onloadend=A:P.onreadystatechange=function(){!P||P.readyState!==4||P.status===0&&!(P.responseURL&&P.responseURL.indexOf("file:")===0)||setTimeout(A)},P.onabort=function(){P&&(t(new E("Request aborted",E.ECONNABORTED,n,P)),P=null)},P.onerror=function(U){let H=U&&U.message?U.message:"Network Error",Q=new E(H,E.ERR_NETWORK,n,P);Q.event=U||null,t(Q),P=null},P.ontimeout=function(){let U=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",H=r.transitional||fe;r.timeoutErrorMessage&&(U=r.timeoutErrorMessage),t(new E(U,H.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,n,P)),P=null},s===void 0&&i.setContentType(null),"setRequestHeader"in P&&c.forEach(i.toJSON(),function(U,H){P.setRequestHeader(H,U)}),c.isUndefined(r.withCredentials)||(P.withCredentials=!!r.withCredentials),a&&a!=="json"&&(P.responseType=r.responseType),u&&([b,f]=Pe(u,!0),P.addEventListener("progress",b)),d&&P.upload&&([T,S]=Pe(d),P.upload.addEventListener("progress",T),P.upload.addEventListener("loadend",S)),(r.cancelToken||r.signal)&&(m=_=>{P&&(t(!_||_.type?new K(null,n,P):_),P.abort(),P=null)},r.cancelToken&&r.cancelToken.subscribe(m),r.signal&&(r.signal.aborted?m():r.signal.addEventListener("abort",m)));let F=tn(r.url);if(F&&L.protocols.indexOf(F)===-1){t(new E("Unsupported protocol "+F+":",E.ERR_BAD_REQUEST,n));return}P.send(s||null)})};var As=(n,e)=>{let{length:o}=n=n?n.filter(Boolean):[];if(e||o){let t=new AbortController,r,s=function(u){if(!r){r=!0,a();let m=u instanceof Error?u:this.reason;t.abort(m instanceof E?m:new K(m instanceof Error?m.message:m))}},i=e&&setTimeout(()=>{i=null,s(new E(`timeout of ${e}ms exceeded`,E.ETIMEDOUT))},e),a=()=>{n&&(i&&clearTimeout(i),i=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),n=null)};n.forEach(u=>u.addEventListener("abort",s));let{signal:d}=t;return d.unsubscribe=()=>c.asap(a),d}},yo=As;var Os=function*(n,e){let o=n.byteLength;if(!e||o<e){yield n;return}let t=0,r;for(;t<o;)r=t+e,yield n.slice(t,r),t=r},ws=async function*(n,e){for await(let o of _s(n))yield*Os(o,e)},_s=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}let e=n.getReader();try{for(;;){let{done:o,value:t}=await e.read();if(o)break;yield t}}finally{await e.cancel()}},an=(n,e,o,t)=>{let r=ws(n,e),s=0,i,a=d=>{i||(i=!0,t&&t(d))};return new ReadableStream({async pull(d){try{let{done:u,value:m}=await r.next();if(u){a(),d.close();return}let T=m.byteLength;if(o){let b=s+=T;o(b)}d.enqueue(new Uint8Array(m))}catch(u){throw a(u),u}},cancel(d){return a(d),r.return()}},{highWaterMark:2})};var Eo=64*1024,{isFunction:Tt}=c,Ms=(({Request:n,Response:e})=>({Request:n,Response:e}))(c.global),{ReadableStream:Do,TextEncoder:bo}=c.global,Ro=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Us=n=>{n=c.merge.call({skipUndefined:!0},Ms,n);let{fetch:e,Request:o,Response:t}=n,r=e?Tt(e):typeof fetch=="function",s=Tt(o),i=Tt(t);if(!r)return!1;let a=r&&Tt(Do),d=r&&(typeof bo=="function"?(f=>y=>f.encode(y))(new bo):async f=>new Uint8Array(await new o(f).arrayBuffer())),u=s&&a&&Ro(()=>{let f=!1,y=new o(L.origin,{body:new Do,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!y}),m=i&&a&&Ro(()=>c.isReadableStream(new t("").body)),T={stream:m&&(f=>f.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!T[f]&&(T[f]=(y,P)=>{let A=y&&y[f];if(A)return A.call(y);throw new E(`Response type '${f}' is not supported`,E.ERR_NOT_SUPPORT,P)})});let b=async f=>{if(f==null)return 0;if(c.isBlob(f))return f.size;if(c.isSpecCompliantForm(f))return(await new o(L.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(c.isArrayBufferView(f)||c.isArrayBuffer(f))return f.byteLength;if(c.isURLSearchParams(f)&&(f=f+""),c.isString(f))return(await d(f)).byteLength},S=async(f,y)=>{let P=c.toFiniteNumber(f.getContentLength());return P??b(y)};return async f=>{let{url:y,method:P,data:A,signal:F,cancelToken:_,timeout:U,onDownloadProgress:H,onUploadProgress:Q,responseType:q,headers:kt,withCredentials:Ke="same-origin",fetchOptions:xn}=gt(f),Ln=e||fetch;q=q?(q+"").toLowerCase():"text";let Je=yo([F,_&&_.toAbortSignal()],U),be=null,Z=Je&&Je.unsubscribe&&(()=>{Je.unsubscribe()}),Sn;try{if(Q&&u&&P!=="get"&&P!=="head"&&(Sn=await S(kt,A))!==0){let W=new o(y,{method:"POST",body:A,duplex:"half"}),ue;if(c.isFormData(A)&&(ue=W.headers.get("content-type"))&&kt.setContentType(ue),W.body){let[Ft,Ge]=nn(Sn,Pe(on(Q)));A=an(W.body,Eo,Ft,Ge)}}c.isString(Ke)||(Ke=Ke?"include":"omit");let j=s&&"credentials"in o.prototype,Cn={...xn,signal:Je,method:P.toUpperCase(),headers:kt.normalize().toJSON(),body:A,duplex:"half",credentials:j?Ke:void 0};be=s&&new o(y,Cn);let G=await(s?Ln(be,xn):Ln(y,Cn)),An=m&&(q==="stream"||q==="response");if(m&&(H||An&&Z)){let W={};["status","statusText","headers"].forEach(On=>{W[On]=G[On]});let ue=c.toFiniteNumber(G.headers.get("content-length")),[Ft,Ge]=H&&nn(ue,Pe(on(H),!0))||[];G=new t(an(G.body,Eo,Ft,()=>{Ge&&Ge(),Z&&Z()}),W)}q=q||"text";let rr=await T[c.findKey(T,q)||"text"](G,f);return!An&&Z&&Z(),await new Promise((W,ue)=>{Ue(W,ue,{data:rr,headers:w.from(G.headers),status:G.status,statusText:G.statusText,config:f,request:be})})}catch(j){throw Z&&Z(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,f,be,j&&j.response),{cause:j.cause||j}):E.from(j,j&&j.code,f,be,j&&j.response)}}},js=new Map,cn=n=>{let e=n&&n.env||{},{fetch:o,Request:t,Response:r}=e,s=[t,r,o],i=s.length,a=i,d,u,m=js;for(;a--;)d=s[a],u=m.get(d),u===void 0&&m.set(d,u=a?new Map:Us(e)),m=u;return u},wu=cn();var un={http:mt,xhr:ho,fetch:{get:cn}};c.forEach(un,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});var No=n=>`- ${n}`,ks=n=>c.isFunction(n)||n===null||n===!1;function Fs(n,e){n=c.isArray(n)?n:[n];let{length:o}=n,t,r,s={};for(let i=0;i<o;i++){t=n[i];let a;if(r=t,!ks(t)&&(r=un[(a=String(t)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${a}'`);if(r&&(c.isFunction(r)||(r=r.get(e))))break;s[a||"#"+i]=r}if(!r){let i=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build")),a=o?i.length>1?`since :
4
- `+i.map(No).join(`
5
- `):" "+No(i[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r}var Pt={getAdapter:Fs,adapters:un};function dn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new K(null,n)}function ht(n){return dn(n),n.headers=w.from(n.headers),n.data=_e.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),Pt.getAdapter(n.adapter||ge.adapter,n)(n).then(function(t){return dn(n),t.data=_e.call(n,n.transformResponse,t),t.headers=w.from(t.headers),t},function(t){return Me(t)||(dn(n),t&&t.response&&(t.response.data=_e.call(n,n.transformResponse,t.response),t.response.headers=w.from(t.response.headers))),Promise.reject(t)})}var yt="1.13.5";var Et={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Et[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});var vo={};Et.transitional=function(e,o,t){function r(s,i){return"[Axios v"+yt+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,a)=>{if(e===!1)throw new E(r(i," has been removed"+(o?" in "+o:"")),E.ERR_DEPRECATED);return o&&!vo[i]&&(vo[i]=!0,console.warn(r(i," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(s,i,a):!0}};Et.spelling=function(e){return(o,t)=>(console.warn(`${t} is likely a misspelling of ${e}`),!0)};function qs(n,e,o){if(typeof n!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);let t=Object.keys(n),r=t.length;for(;r-- >0;){let s=t[r],i=e[s];if(i){let a=n[s],d=a===void 0||i(a,s,n);if(d!==!0)throw new E("option "+s+" must be "+d,E.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new E("Unknown option "+s,E.ERR_BAD_OPTION)}}var Be={assertOptions:qs,validators:Et};var V=Be.validators,he=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Kt,response:new Kt}}async request(e,o){try{return await this._request(e,o)}catch(t){if(t instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;let s=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?s&&!String(t.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(t.stack+=`
6
- `+s):t.stack=s}catch{}}throw t}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=z(this.defaults,o);let{transitional:t,paramsSerializer:r,headers:s}=o;t!==void 0&&Be.assertOptions(t,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean),legacyInterceptorReqResOrdering:V.transitional(V.boolean)},!1),r!=null&&(c.isFunction(r)?o.paramsSerializer={serialize:r}:Be.assertOptions(r,{encode:V.function,serialize:V.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Be.assertOptions(o,{baseUrl:V.spelling("baseURL"),withXsrfToken:V.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let i=s&&c.merge(s.common,s[o.method]);s&&c.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),o.headers=w.concat(i,s);let a=[],d=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(o)===!1)return;d=d&&y.synchronous;let P=o.transitional||fe;P&&P.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let m,T=0,b;if(!d){let f=[ht.bind(this),void 0];for(f.unshift(...a),f.push(...u),b=f.length,m=Promise.resolve(o);T<b;)m=m.then(f[T++],f[T++]);return m}b=a.length;let S=o;for(;T<b;){let f=a[T++],y=a[T++];try{S=f(S)}catch(P){y.call(this,P);break}}try{m=ht.call(this,S)}catch(f){return Promise.reject(f)}for(T=0,b=u.length;T<b;)m=m.then(u[T++],u[T++]);return m}getUri(e){e=z(this.defaults,e);let o=je(e.baseURL,e.url,e.allowAbsoluteUrls);return Oe(o,e.params,e.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(e){he.prototype[e]=function(o,t){return this.request(z(t||{},{method:e,url:o,data:(t||{}).data}))}});c.forEach(["post","put","patch"],function(e){function o(t){return function(s,i,a){return this.request(z(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}he.prototype[e]=o(),he.prototype[e+"Form"]=o(!0)});var ke=he;var mn=class n{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(s){o=s});let t=this;this.promise.then(r=>{if(!t._listeners)return;let s=t._listeners.length;for(;s-- >0;)t._listeners[s](r);t._listeners=null}),this.promise.then=r=>{let s,i=new Promise(a=>{t.subscribe(a),s=a}).then(r);return i.cancel=function(){t.unsubscribe(s)},i},e(function(s,i,a){t.reason||(t.reason=new K(s,i,a),o(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){let e=new AbortController,o=t=>{e.abort(t)};return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new n(function(r){e=r}),cancel:e}}},Io=mn;function pn(n){return function(o){return n.apply(null,o)}}function ln(n){return c.isObject(n)&&n.isAxiosError===!0}var fn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(fn).forEach(([n,e])=>{fn[e]=n});var xo=fn;function Lo(n){let e=new ke(n),o=Le(ke.prototype.request,e);return c.extend(o,ke.prototype,e,{allOwnKeys:!0}),c.extend(o,e,null,{allOwnKeys:!0}),o.create=function(r){return Lo(z(n,r))},o}var O=Lo(ge);O.Axios=ke;O.CanceledError=K;O.CancelToken=Io;O.isCancel=Me;O.VERSION=yt;O.toFormData=X;O.AxiosError=E;O.Cancel=O.CanceledError;O.all=function(e){return Promise.all(e)};O.spread=pn;O.isAxiosError=ln;O.mergeConfig=z;O.AxiosHeaders=w;O.formToJSON=n=>lt(c.isHTMLForm(n)?new FormData(n):n);O.getAdapter=Pt.getAdapter;O.HttpStatusCode=xo;O.default=O;var Dt=O;var{Axios:Ad,AxiosError:So,CanceledError:Od,isCancel:wd,CancelToken:_d,VERSION:Md,all:Ud,Cancel:jd,isAxiosError:Bd,spread:kd,toFormData:Fd,AxiosHeaders:qd,HttpStatusCode:Vd,formToJSON:Hd,getAdapter:$d,mergeConfig:zd}=Dt;var k=class n extends So{constructor(o,t,r,s,i,a){super(o,t,r,s,i);this.isNlicError=!0;this.name="NlicError",a&&(this.stack=a),Object.setPrototypeOf(this,n.prototype)}};var Co=function(n={}){let e={...n};if(e.amountFix&&e.amountPercent)throw new k('Properties "amountFix" and "amountPercent" cannot be used at the same time');return v(e,{setTotalPrice(t){l(e,"totalPrice",t)},getTotalPrice(t){return p(e,"totalPrice",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setAmountFix(t){l(e,"amountFix",t)},getAmountFix(t){return p(e,"amountFix",t)},setAmountPercent(t){l(e,"amountPercent",t)},getAmountPercent(t){return p(e,"amountPercent",t)},toString(){let t=this.getTotalPrice(),r=this.getCurrency(),s=this.getAmountPercent()?`${this.getAmountPercent()}%`:this.getAmountFix();return t&&r&&s?`${t};${r};${s}`:""}},Co,{set:(t,r)=>{r==="amountFix"&&delete t.amountPercent,r==="amountPercent"&&delete t.amountFix}})},bt=Co;var se=n=>{let e=N(n),o=e.discount;return delete e.discount,o&&(e.discounts=o.map(t=>bt(t))),it(e)};var Ao=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setLicensingModel(t){l(e,"licensingModel",t)},getLicensingModel(t){return p(e,"licensingModel",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},serialize(){return C(e,{ignore:["inUse"]})}},Ao)},Rt=Ao;var ie=n=>Rt(N(n));var Oo=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setExpirationTime(t){l(e,"expirationTime",t)},getExpirationTime(t){return p(e,"expirationTime",t)},setTokenType(t){l(e,"tokenType",t)},getTokenType(t){return p(e,"tokenType",t)},setLicenseeNumber(t){l(e,"licenseeNumber",t)},getLicenseeNumber(t){return p(e,"licenseeNumber",t)},setAction(t){l(e,"action",t)},getAction(t){return p(e,"action",t)},setApiKeyRole(t){l(e,"apiKeyRole",t)},getApiKeyRole(t){return p(e,"apiKeyRole",t)},setBundleNumber(t){l(e,"bundleNumber",t)},getBundleNumber(t){return p(e,"bundleNumber",t)},setBundlePrice(t){l(e,"bundlePrice",t)},getBundlePrice(t){return p(e,"bundlePrice",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},setPredefinedShoppingItem(t){l(e,"predefinedShoppingItem",t)},getPredefinedShoppingItem(t){return p(e,"predefinedShoppingItem",t)},setSuccessURL(t){l(e,"successURL",t)},getSuccessURL(t){return p(e,"successURL",t)},setSuccessURLTitle(t){l(e,"successURLTitle",t)},getSuccessURLTitle(t){return p(e,"successURLTitle",t)},setCancelURL(t){l(e,"cancelURL",t)},getCancelURL(t){return p(e,"cancelURL",t)},setCancelURLTitle(t){l(e,"cancelURLTitle",t)},getCancelURLTitle(t){return p(e,"cancelURLTitle",t)},getShopURL(t){return p(e,"shopURL",t)},serialize(){return C(e,{ignore:["shopURL"]})}},Oo)},Nt=Oo;var ye=n=>{let e=N(n),{expirationTime:o}=e;return o&&typeof o=="string"&&(e.expirationTime=new Date(o)),Nt(e)};var gn=class{constructor(e,o){this.transaction=e,this.license=o}setTransaction(e){this.transaction=e}getTransaction(){return this.transaction}setLicense(e){this.license=e}getLicense(){return this.license}},vt=(n,e)=>new gn(n,e);var wo=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setStatus(t){l(e,"status",t)},getStatus(t){return p(e,"status",t)},setSource(t){l(e,"source",t)},getSource(t){return p(e,"source",t)},setGrandTotal(t){l(e,"grandTotal",t)},getGrandTotal(t){return p(e,"grandTotal",t)},setDiscount(t){l(e,"discount",t)},getDiscount(t){return p(e,"discount",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setDateCreated(t){l(e,"dateCreated",t)},getDateCreated(t){return p(e,"dateCreated",t)},setDateClosed(t){l(e,"dateClosed",t)},getDateClosed(t){return p(e,"dateClosed",t)},setPaymentMethod(t){l(e,"paymentMethod",t)},getPaymentMethod(t){return p(e,"paymentMethod",t)},setLicenseTransactionJoins(t){l(e,"licenseTransactionJoins",t)},getLicenseTransactionJoins(t){return p(e,"licenseTransactionJoins",t)},serialize(){let t={...e};return t.datecreated=e.dateCreated,t.dateclosed=e.dateClosed,delete t.dateCreated,delete t.dateClosed,C(t,{ignore:["licenseTransactionJoins","inUse"]})}},wo)},Fe=wo;var ae=n=>{let e=N(n),{datecreated:o,dateclosed:t}=e;o&&typeof o=="string"&&(e.dateCreated=new Date(o),delete e.datecreated),t&&typeof t=="string"&&(e.dateClosed=new Date(t),delete e.dateclosed);let r=e.licenseTransactionJoin;return delete e.licenseTransactionJoin,r&&(e.licenseTransactionJoins=r.map(({transactionNumber:s,licenseNumber:i})=>{let a=Fe({number:s}),d=de({number:i});return vt(a,d)})),Fe(e)};var _o=Dt.create(),Mo=null,Uo=[],jo=n=>{_o=n},It=()=>_o,Tn=n=>{Mo=n},Bo=()=>Mo,Pn=n=>{Uo=n},ko=()=>Uo;var hn={name:"netlicensing-client",version:"2.0.0",description:"JavaScript Wrapper for Labs64 NetLicensing RESTful API",keywords:["labs64","netlicensing","licensing","licensing-as-a-service","license","license-management","software-license","client","restful","restful-api","javascript","wrapper","api","client"],license:"Apache-2.0",author:"Labs64 GmbH",homepage:"https://netlicensing.io",repository:{type:"git",url:"git+https://github.com/Labs64/NetLicensingClient-javascript.git"},bugs:{url:"https://github.com/Labs64/NetLicensingClient-javascript/issues"},contributors:[{name:"Ready Brown",email:"ready.brown@hotmail.de",url:"https://github.com/r-brown"},{name:"Viacheslav Rudkovskiy",email:"viachaslau.rudkovski@labs64.de",url:"https://github.com/v-rudkovskiy"},{name:"Andrei Yushkevich",email:"yushkevich@me.com",url:"https://github.com/yushkevich"}],main:"dist/index.cjs",module:"dist/index.mjs",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.mjs",require:"./dist/index.cjs"}},files:["dist"],scripts:{build:"tsup",release:"npm run lint:typecheck && npm run test && npm run build",dev:"tsup --watch",test:"vitest run","test:dev":"vitest watch",lint:"eslint --ext .js,.mjs,.ts src",typecheck:"tsc --noEmit","lint:typecheck":"npm run lint && npm run typecheck"},peerDependencies:{axios:"^1.9.0"},dependencies:{},devDependencies:{"@eslint/js":"^9.39.3","@types/node":"^25.3.2","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","@vitest/eslint-plugin":"^1.1.43",axios:"^1.13.0",eslint:"^9.39.3","eslint-plugin-import":"^2.31.0",prettier:"3.8.1",tsup:"^8.4.0",typescript:"^5.8.3","typescript-eslint":"^8.29.1",vitest:"^3.2.4"},engines:{node:">= 16.9.0",npm:">= 8.0.0"},browserslist:["> 1%","last 2 versions","not ie <= 10"]};var xt=n=>{let e=[],o=(t,r)=>{if(t!=null){if(Array.isArray(t)){t.forEach(s=>{o(s,r?`${r}`:"")});return}if(t instanceof Date){e.push(`${r}=${encodeURIComponent(t.toISOString())}`);return}if(typeof t=="object"){Object.keys(t).forEach(s=>{let i=t[s];o(i,r?`${r}[${encodeURIComponent(s)}]`:encodeURIComponent(s))});return}e.push(`${r}=${encodeURIComponent(t)}`)}};return o(n),e.join("&")};var Ee=async(n,e,o,t,r)=>{let s={Accept:"application/json","X-Requested-With":"XMLHttpRequest"};typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(s["User-agent"]=`NetLicensing/Javascript ${hn.version}/node&${process.version}`);let i={method:e,headers:s,url:encodeURI(`${n.getBaseUrl()}/${o}`),responseType:"json",transformRequest:(d,u)=>u["Content-Type"]==="application/x-www-form-urlencoded"?xt(d):(u["NetLicensing-Origin"]||(u["NetLicensing-Origin"]=`NetLicensing/Javascript ${hn.version}`),d)};switch(["put","post","patch"].indexOf(e.toLowerCase())>=0?(i.method==="post"&&(s["Content-Type"]="application/x-www-form-urlencoded"),i.data=t):i.params=t,n.getSecurityMode()){case Y.BASIC_AUTHENTICATION:{if(!n.getUsername())throw new k('Missing parameter "username"');if(!n.getPassword())throw new k('Missing parameter "password"');i.auth={username:n.getUsername(),password:n.getPassword()}}break;case Y.APIKEY_IDENTIFICATION:if(!n.getApiKey())throw new k('Missing parameter "apiKey"');s.Authorization=`Basic ${btoa(`apiKey:${n.getApiKey()}`)}`;break;case Y.ANONYMOUS_IDENTIFICATION:break;default:throw new k("Unknown security mode")}let a=r?.axiosInstance||It();try{let d=await a(i),u=d.data.infos?.info||[];if(Tn(d),Pn(u),r?.onResponse&&r.onResponse(d),u.length>0){r?.onInfo&&r.onInfo(u);let m=u.find(({type:T})=>T==="ERROR");if(m)throw new k(m.value,m.id,d.config,d.request,d)}return d}catch(d){let u=d,m=u.response,T=m?.data?.infos?.info||[];if(Tn(m||null),Pn(T),d.isAxiosError){let b=d.message;if(m?.data&&T.length>0){let S=T.find(({type:f})=>f==="ERROR");S&&(b=S.value)}throw new k(b,u.code,u.config,u.request,u.response)}throw d}};var Fo=(n,e,o,t)=>Ee(n,"get",e,o,t),qo=(n,e,o,t)=>Ee(n,"post",e,o,t),Vo=(n,e,o,t)=>Ee(n,"delete",e,o,t);var Hs={setAxiosInstance(n){jo(n)},getAxiosInstance(){return It()},getLastHttpRequestInfo(){return Bo()},getInfo(){return ko()},get(n,e,o,t){return Fo(n,e,o,t)},post(n,e,o,t){return qo(n,e,o,t)},delete(n,e,o,t){return Vo(n,e,o,t)},request(n,e,o,t,r){return Ee(n,e,o,t,r)},toQueryString(n){return xt(n)}},g=Hs;var x=n=>Object.keys(n).map(e=>`${e}=${String(n[e])}`).join(";"),Ho=n=>{let e={};return n.split(";").forEach(o=>{let[t,r]=o.split("=");e[t]=r}),e};var yn=n=>typeof n<"u"&&typeof n!="function",qe=n=>yn(n)?typeof n=="number"?!Number.isNaN(n):!0:!1,R=(n,e)=>{if(n===null)throw new TypeError(`Parameter "${e}" cannot be null.`);if(!qe(n))throw new TypeError(`Parameter "${e}" has an invalid value.`)},D=(n,e)=>{if(R(n,e),!n)throw new TypeError(`Parameter "${e}" cannot be empty.`)};var $o=function(n,e){let o=parseInt(e?.pagenumber||"0",10),t=parseInt(e?.itemsnumber||"0",10),r=parseInt(e?.totalpages||"0",10),s=parseInt(e?.totalitems||"0",10),i={getContent(){return n},getPagination(){return{pageNumber:o,itemsNumber:t,totalPages:r,totalItems:s,hasNext:r>o+1}},getPageNumber(){return o},getItemsNumber(){return t},getTotalPages(){return r},getTotalItems(){return s},hasNext(){return r>o+1}};return new Proxy(n,{get(a,d,u){return Object.hasOwn(i,d)?i[d]:Reflect.get(a,d,u)},set(a,d,u,m){return Reflect.set(a,d,u,m)},getPrototypeOf(){return $o.prototype||null}})},I=$o;var De=h.Bundle.ENDPOINT_PATH,$s=h.Bundle.ENDPOINT_OBTAIN_PATH,Lt=h.Bundle.TYPE,zs={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${De}/${e}`,{},o)).data.items?.item.find(s=>s.type===Lt);return ee(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,De,t,o)).data.items,i=s?.item.filter(a=>a.type===Lt).map(a=>ee(a));return I(i||[],s)},async create(n,e,o){R(e,"bundle");let r=(await g.post(n,De,e.serialize(),o)).data.items?.item.find(s=>s.type===Lt);return ee(r)},async update(n,e,o,t){D(e,"number"),R(o,"bundle");let s=(await g.post(n,`${De}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Lt);return ee(s)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${De}/${e}`,{forceCascade:!!o},t)},async obtain(n,e,o,t){D(e,"number"),D(o,"licenseeNumber");let r={[h.Licensee.LICENSEE_NUMBER]:o};return(await g.post(n,`${De}/${e}/${$s}`,r,t)).data.items?.item.filter(d=>d.type===h.License.TYPE)?.map(d=>J(d))||[]}},zo=zs;var En=class{constructor(){this.validations={}}getValidators(){return this.validations}setValidation(e){return this.validations[e.productModuleNumber]=e,this}getValidation(e,o){return this.validations[e]||o}setProductModuleValidation(e){return this.setValidation(e)}getProductModuleValidation(e,o){return this.getValidation(e,o)}setTtl(e){if(!qe(e))throw new TypeError(`Bad ttl:${e.toString()}`);return this.ttl=new Date(e),this}getTtl(){return this.ttl}toString(){let e="ValidationResult [";return Object.keys(this.validations).forEach(o=>{e+=`ProductModule<${o}>`,o in this.validations&&(e+=JSON.stringify(this.validations[o]))}),e+="]",e}},St=()=>new En;var ce=h.Licensee.ENDPOINT_PATH,Ys=h.Licensee.ENDPOINT_PATH_VALIDATE,Ks=h.Licensee.ENDPOINT_PATH_TRANSFER,Ct=h.Licensee.TYPE,Js={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${ce}/${e}`,{},o)).data.items?.item.find(s=>s.type===Ct);return te(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,ce,t,o)).data.items,i=s?.item.filter(a=>a.type===Ct).map(a=>te(a));return I(i||[],s)},async create(n,e,o,t){R(o,"licensee");let r=o.serialize();e&&(r.productNumber=e);let i=(await g.post(n,ce,r,t)).data.items?.item.find(a=>a.type===Ct);return te(i)},async update(n,e,o,t){D(e,"number"),R(o,"licensee");let s=(await g.post(n,`${ce}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Ct);return te(s)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${ce}/${e}`,{forceCascade:!!o},t)},async validate(n,e,o,t){D(e,"number");let r={};if(o){let u=o.productNumber;u&&(r.productNumber=u);let m=o.licenseeProperties;Object.keys(m).forEach(b=>{r[b]=o.getLicenseeProperty(b)}),o.isForOfflineUse()&&(r.forOfflineUse=!0),o.isDryRun()&&(r.dryRun=!0);let T=o.getParameters();Object.keys(T).forEach((b,S)=>{r[`${h.ProductModule.PRODUCT_MODULE_NUMBER}${S}`]=b;let f=T[b];f&&Object.keys(f).forEach(y=>{r[y+S]=f[y]})})}let s=await g.post(n,`${ce}/${e}/${Ys}`,r,t),i=St(),a=s.data.ttl;return a&&i.setTtl(a),s.data.items?.item.filter(u=>u.type===h.Validation.TYPE)?.forEach(u=>{i.setValidation(N(u))}),i},transfer(n,e,o,t){D(e,"number"),D(o,"sourceLicenseeNumber");let r={sourceLicenseeNumber:o};return g.post(n,`${ce}/${e}/${Ks}`,r,t)}},Yo=Js;var Ve=h.License.ENDPOINT_PATH,At=h.License.TYPE,Gs={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${Ve}/${e}`,{},o)).data.items?.item.find(s=>s.type===At);return J(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,Ve,t,o)).data.items,i=s?.item.filter(a=>a.type===At).map(a=>J(a));return I(i||[],s)},async create(n,e,o,t,r,s){R(r,"license");let i=r.serialize();e&&(i.licenseeNumber=e),o&&(i.licenseTemplateNumber=o),t&&(i.transactionNumber=t);let d=(await g.post(n,Ve,i,s)).data.items?.item.find(u=>u.type===At);return J(d)},async update(n,e,o,t,r){D(e,"number"),R(t,"license");let s=t.serialize();o&&(s.transactionNumber=o);let a=(await g.post(n,`${Ve}/${e}`,s,r)).data.items?.item.find(d=>d.type===At);return J(a)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${Ve}/${e}`,{forceCascade:!!o},t)}},Ko=Gs;var He=h.LicenseTemplate.ENDPOINT_PATH,Ot=h.LicenseTemplate.TYPE,Ws={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${He}/${e}`,{},o)).data.items?.item.find(s=>s.type===Ot);return ne(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,He,t,o)).data.items,i=s?.item.filter(a=>a.type===Ot).map(a=>ne(a));return I(i||[],s)},async create(n,e,o,t){R(o,"licenseTemplate");let r=o.serialize();e&&(r.productModuleNumber=e);let i=(await g.post(n,He,r,t)).data.items?.item.find(a=>a.type===Ot);return ne(i)},async update(n,e,o,t){D(e,"number"),R(o,"licenseTemplate");let s=(await g.post(n,`${He}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Ot);return ne(s)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${He}/${e}`,{forceCascade:!!o},t)}},Jo=Ws;var $e=h.Notification.ENDPOINT_PATH,wt=h.Notification.TYPE,Xs={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${$e}/${e}`,{},o)).data.items?.item.find(s=>s.type===wt);return oe(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,$e,t,o)).data.items,i=s?.item.filter(a=>a.type===wt).map(a=>oe(a));return I(i||[],s)},async create(n,e,o){R(e,"notification");let r=(await g.post(n,$e,e.serialize(),o)).data.items?.item.find(s=>s.type===wt);return oe(r)},async update(n,e,o,t){D(e,"number"),R(o,"notification");let s=(await g.post(n,`${$e}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===wt);return oe(s)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${$e}/${e}`,{forceCascade:!!o},t)}},Go=Xs;var Dn=h.PaymentMethod.ENDPOINT_PATH,bn=h.PaymentMethod.TYPE,Qs={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${Dn}/${e}`,{},o)).data.items?.item.find(s=>s.type===bn);return me(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,Dn,t,o)).data.items,i=s?.item.filter(a=>a.type===bn).map(a=>me(a));return I(i||[],s)},async update(n,e,o,t){D(e,"number"),R(o,"paymentMethod");let s=(await g.post(n,`${Dn}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===bn);return me(s)}},Wo=Qs;var ze=h.ProductModule.ENDPOINT_PATH,_t=h.ProductModule.TYPE,Zs={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${ze}/${e}`,{},o)).data.items?.item.find(s=>s.type===_t);return ie(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,ze,t,o)).data.items,i=s?.item.filter(a=>a.type===_t).map(a=>ie(a));return I(i||[],s)},async create(n,e,o,t){R(o,"productModule");let r=o.serialize();e&&(r.productNumber=e);let i=(await g.post(n,ze,r,t)).data.items?.item.find(a=>a.type===_t);return ie(i)},async update(n,e,o,t){D(e,"number"),R(o,"productModule");let s=(await g.post(n,`${ze}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===_t);return ie(s)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${ze}/${e}`,{forceCascade:!!o},t)}},Xo=Zs;var Ye=h.Product.ENDPOINT_PATH,Mt=h.Product.TYPE,ei={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${Ye}/${e}`,{},o)).data.items?.item.find(s=>s.type===Mt);return se(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,Ye,t,o)).data.items,i=s?.item.filter(a=>a.type===Mt).map(a=>se(a));return I(i||[],s)},async create(n,e,o){R(e,"product");let r=(await g.post(n,Ye,e.serialize(),o)).data.items?.item.find(s=>s.type===Mt);return se(r)},async update(n,e,o,t){D(e,"number"),R(o,"product");let s=(await g.post(n,`${Ye}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Mt);return se(s)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${Ye}/${e}`,{forceCascade:!!o},t)}},Qo=ei;var Ut=h.Token.ENDPOINT_PATH,Rn=h.Token.TYPE,ti={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${Ut}/${e}`,{},o)).data.items?.item.find(s=>s.type===Rn);return ye(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,Ut,t,o)).data.items,i=s?.item.filter(a=>a.type===Rn).map(a=>ye(a));return I(i||[],s)},async create(n,e,o){R(e,"token");let r=(await g.post(n,Ut,e.serialize(),o)).data.items?.item.find(s=>s.type===Rn);return ye(r)},delete(n,e,o,t){return D(e,"number"),g.delete(n,`${Ut}/${e}`,{forceCascade:!!o},t)}},Zo=ti;var jt=h.Transaction.ENDPOINT_PATH,Bt=h.Transaction.TYPE,ni={async get(n,e,o){D(e,"number");let r=(await g.get(n,`${jt}/${e}`,{},o)).data.items?.item.find(s=>s.type===Bt);return ae(r)},async list(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let s=(await g.get(n,jt,t,o)).data.items,i=s?.item.filter(a=>a.type===Bt).map(a=>ae(a));return I(i||[],s)},async create(n,e,o){R(e,"transaction");let r=(await g.post(n,jt,e.serialize(),o)).data.items?.item.find(s=>s.type===Bt);return ae(r)},async update(n,e,o,t){D(e,"number"),R(o,"transaction");let s=(await g.post(n,`${jt}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Bt);return ae(s)}},er=ni;var Nn=h.Utility.ENDPOINT_PATH,oi={async listLicenseTypes(n,e){let o=`${Nn}/${h.Utility.ENDPOINT_PATH_LICENSE_TYPES}`,r=(await g.get(n,o,void 0,e)).data.items,s=h.Utility.LICENSE_TYPE,i=r?.item.filter(a=>a.type===s).map(a=>N(a).name);return I(i||[],r)},async listLicensingModels(n,e){let o=`${Nn}/${h.Utility.ENDPOINT_PATH_LICENSING_MODELS}`,r=(await g.get(n,o,void 0,e)).data.items,s=h.Utility.LICENSING_MODEL_TYPE,i=r?.item.filter(a=>a.type===s).map(a=>N(a).name);return I(i||[],r)},async listCountries(n,e,o){let t={};e&&(t[h.FILTER]=typeof e=="string"?e:x(e));let r=`${Nn}/${h.Utility.ENDPOINT_PATH_COUNTRIES}`,i=(await g.get(n,r,t,o)).data.items,a=h.Utility.COUNTRY_TYPE,d=i?.item.filter(u=>u.type===a).map(u=>tt(u));return I(d||[],i)}},tr=oi;var vn=class{constructor(e){this.baseUrl=e?.baseUrl||"https://go.netlicensing.io/core/v2/rest",this.securityMode=e?.securityMode||Y.BASIC_AUTHENTICATION,this.username=e?.username,this.password=e?.password,this.apiKey=e?.apiKey,this.publicKey=e?.publicKey}setBaseUrl(e){return this.baseUrl=e,this}getBaseUrl(){return this.baseUrl}setSecurityMode(e){return this.securityMode=e,this}getSecurityMode(){return this.securityMode}setUsername(e){return this.username=e,this}getUsername(e){return this.username||e}setPassword(e){return this.password=e,this}getPassword(e){return this.password||e}setApiKey(e){return this.apiKey=e,this}getApiKey(e){return this.apiKey||e}setPublicKey(e){return this.publicKey=e,this}getPublicKey(e){return this.publicKey||e}},nr=n=>new vn(n);var In=class{constructor(){this.parameters={},this.licenseeProperties={}}setProductNumber(e){return this.productNumber=e,this}getProductNumber(){return this.productNumber}setLicenseeName(e){return this.licenseeProperties.licenseeName=e,this}getLicenseeName(){return this.licenseeProperties.licenseeName}setLicenseeSecret(e){return this.licenseeProperties.licenseeSecret=e,this}getLicenseeSecret(){return this.licenseeProperties.licenseeSecret}getLicenseeProperties(){return this.licenseeProperties}setLicenseeProperty(e,o){return this.licenseeProperties[e]=o,this}getLicenseeProperty(e,o){return this.licenseeProperties[e]||o}setForOfflineUse(e){return this.forOfflineUse=e,this}isForOfflineUse(){return!!this.forOfflineUse}setDryRun(e){return this.dryRun=e,this}isDryRun(){return!!this.dryRun}getParameters(){return this.parameters}setParameter(e,o){return this.parameters[e]=o,this}getParameter(e){return this.parameters[e]}getProductModuleValidationParameters(e){return this.getParameter(e)}setProductModuleValidationParameters(e,o){return this.setParameter(e,o)}},or=()=>new In;return ur(ri);})();
1
+ "use strict";var NetLicensing=(()=>{var qt=Object.defineProperty;var dr=Object.getOwnPropertyDescriptor;var mr=Object.getOwnPropertyNames;var pr=Object.prototype.hasOwnProperty;var Mn=(n,e)=>{for(var o in e)qt(n,o,{get:e[o],enumerable:!0})},lr=(n,e,o,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of mr(e))!pr.call(n,r)&&r!==o&&qt(n,r,{get:()=>e[r],enumerable:!(t=dr(e,r))||t.enumerable});return n};var fr=n=>lr(qt({},"__esModule",{value:!0}),n);var yi={};Mn(yi,{ApiKeyRole:()=>_n,Bundle:()=>Ze,BundleService:()=>Go,Constants:()=>P,Context:()=>ar,Country:()=>et,License:()=>de,LicenseService:()=>Qo,LicenseTemplate:()=>ot,LicenseTemplateService:()=>Zo,LicenseTransactionJoin:()=>vt,LicenseType:()=>Re,Licensee:()=>nt,LicenseeSecretMode:()=>Ge,LicenseeService:()=>Xo,LicensingModel:()=>Un,NlicError:()=>k,NodeSecretMode:()=>jn,Notification:()=>rt,NotificationEvent:()=>Ne,NotificationProtocol:()=>ve,NotificationService:()=>er,Page:()=>I,PaymentMethod:()=>st,PaymentMethodEnum:()=>Bn,PaymentMethodService:()=>tr,Product:()=>it,ProductDiscount:()=>Dt,ProductModule:()=>Rt,ProductModuleService:()=>nr,ProductService:()=>or,SecurityMode:()=>K,Service:()=>g,TimeVolumePeriod:()=>Xe,Token:()=>Nt,TokenService:()=>rr,TokenType:()=>Ie,Transaction:()=>Fe,TransactionService:()=>sr,TransactionSource:()=>Qe,TransactionStatus:()=>Le,UtilityService:()=>ir,ValidationParameters:()=>cr,ValidationResults:()=>St,defineEntity:()=>v,ensureNotEmpty:()=>b,ensureNotNull:()=>R,filterDecode:()=>Jo,filterEncode:()=>L,isDefined:()=>En,isValid:()=>qe,itemToBundle:()=>ee,itemToCountry:()=>tt,itemToLicense:()=>J,itemToLicenseTemplate:()=>ne,itemToLicensee:()=>te,itemToNotification:()=>oe,itemToObject:()=>N,itemToPaymentMethod:()=>me,itemToProduct:()=>se,itemToProductModule:()=>ie,itemToToken:()=>ye,itemToTransaction:()=>ae,serialize:()=>C});var gr=Object.freeze({DISABLED:"DISABLED",PREDEFINED:"PREDEFINED",CLIENT:"CLIENT"}),Ge=gr;var Tr=Object.freeze({FEATURE:"FEATURE",TIMEVOLUME:"TIMEVOLUME",FLOATING:"FLOATING",QUANTITY:"QUANTITY"}),Re=Tr;var hr=Object.freeze({LICENSEE_CREATED:"LICENSEE_CREATED",LICENSE_CREATED:"LICENSE_CREATED",WARNING_LEVEL_CHANGED:"WARNING_LEVEL_CHANGED",PAYMENT_TRANSACTION_PROCESSED:"PAYMENT_TRANSACTION_PROCESSED"}),Ne=hr;var Pr=Object.freeze({WEBHOOK:"WEBHOOK"}),ve=Pr;var yr=Object.freeze({BASIC_AUTHENTICATION:"BASIC_AUTH",APIKEY_IDENTIFICATION:"APIKEY",ANONYMOUS_IDENTIFICATION:"ANONYMOUS"}),K=yr;var Er=Object.freeze({DAY:"DAY",WEEK:"WEEK",MONTH:"MONTH",YEAR:"YEAR"}),Xe=Er;var br=Object.freeze({DEFAULT:"DEFAULT",SHOP:"SHOP",APIKEY:"APIKEY",ACTION:"ACTION"}),Ie=br;var Dr=Object.freeze({SHOP:"SHOP",AUTO_LICENSE_CREATE:"AUTO_LICENSE_CREATE",AUTO_LICENSE_UPDATE:"AUTO_LICENSE_UPDATE",AUTO_LICENSE_DELETE:"AUTO_LICENSE_DELETE",AUTO_LICENSEE_CREATE:"AUTO_LICENSEE_CREATE",AUTO_LICENSEE_DELETE:"AUTO_LICENSEE_DELETE",AUTO_LICENSEE_VALIDATE:"AUTO_LICENSEE_VALIDATE",AUTO_LICENSETEMPLATE_DELETE:"AUTO_LICENSETEMPLATE_DELETE",AUTO_PRODUCTMODULE_DELETE:"AUTO_PRODUCTMODULE_DELETE",AUTO_PRODUCT_DELETE:"AUTO_PRODUCT_DELETE",AUTO_LICENSES_TRANSFER:"AUTO_LICENSES_TRANSFER",SUBSCRIPTION_UPDATE:"SUBSCRIPTION_UPDATE",RECURRING_PAYMENT:"RECURRING_PAYMENT",CANCEL_RECURRING_PAYMENT:"CANCEL_RECURRING_PAYMENT",OBTAIN_BUNDLE:"OBTAIN_BUNDLE"}),Qe=Dr;var Rr=Object.freeze({PENDING:"PENDING",CLOSED:"CLOSED",CANCELLED:"CANCELLED"}),Le=Rr;var P={LicenseeSecretMode:Ge,LicenseType:Re,NotificationEvent:Ne,NotificationProtocol:ve,SecurityMode:K,TimeVolumePeriod:Xe,TokenType:Ie,TransactionSource:Qe,TransactionStatus:Le,BASIC_AUTHENTICATION:"BASIC_AUTH",APIKEY_IDENTIFICATION:"APIKEY",ANONYMOUS_IDENTIFICATION:"ANONYMOUS",FILTER:"filter",Product:{TYPE:"Product",ENDPOINT_PATH:"product"},ProductModule:{TYPE:"ProductModule",ENDPOINT_PATH:"productmodule",PRODUCT_MODULE_NUMBER:"productModuleNumber"},Licensee:{TYPE:"Licensee",ENDPOINT_PATH:"licensee",ENDPOINT_PATH_VALIDATE:"validate",ENDPOINT_PATH_TRANSFER:"transfer",LICENSEE_NUMBER:"licenseeNumber"},LicenseTemplate:{TYPE:"LicenseTemplate",ENDPOINT_PATH:"licensetemplate",LicenseType:Re},License:{TYPE:"License",ENDPOINT_PATH:"license"},Validation:{TYPE:"ProductModuleValidation"},Token:{TYPE:"Token",ENDPOINT_PATH:"token",Type:Ie},PaymentMethod:{TYPE:"PaymentMethod",ENDPOINT_PATH:"paymentmethod"},Bundle:{TYPE:"Bundle",ENDPOINT_PATH:"bundle",ENDPOINT_OBTAIN_PATH:"obtain"},Notification:{TYPE:"Notification",ENDPOINT_PATH:"notification",Protocol:ve,Event:Ne},Transaction:{TYPE:"Transaction",ENDPOINT_PATH:"transaction",Status:Le},Utility:{ENDPOINT_PATH:"utility",ENDPOINT_PATH_LICENSE_TYPES:"licenseTypes",ENDPOINT_PATH_LICENSING_MODELS:"licensingModels",ENDPOINT_PATH_COUNTRIES:"countries",LICENSING_MODEL_TYPE:"LicensingModelProperties",LICENSE_TYPE:"LicenseType",COUNTRY_TYPE:"Country"}};var Nr=Object.freeze({ROLE_APIKEY_LICENSEE:"ROLE_APIKEY_LICENSEE",ROLE_APIKEY_ANALYTICS:"ROLE_APIKEY_ANALYTICS",ROLE_APIKEY_OPERATION:"ROLE_APIKEY_OPERATION",ROLE_APIKEY_MAINTENANCE:"ROLE_APIKEY_MAINTENANCE",ROLE_APIKEY_ADMIN:"ROLE_APIKEY_ADMIN"}),_n=Nr;var vr=Object.freeze({TRY_AND_BUY:"TryAndBuy",SUBSCRIPTION:"Subscription",RENTAL:"Rental",FLOATING:"Floating",MULTI_FEATURE:"MultiFeature",PAY_PER_USE:"PayPerUse",PRICING_TABLE:"PricingTable",QUOTA:"Quota",NODE_LOCKED:"NodeLocked",DISCOUNT:"Discount"}),Un=vr;var Ir=Object.freeze({PREDEFINED:"PREDEFINED",CLIENT:"CLIENT"}),jn=Ir;var Lr=Object.freeze({NULL:"NULL",PAYPAL:"PAYPAL",PAYPAL_SANDBOX:"PAYPAL_SANDBOX",STRIPE:"STRIPE",STRIPE_TESTING:"STRIPE_TESTING"}),Bn=Lr;var xr=n=>n==="true"||n==="false",Sr=n=>n==="null",kn=n=>{let e=n.trim();return e.startsWith("{")&&e.endsWith("}")||e.startsWith("[")&&e.endsWith("]")},Fn=n=>{let e=n.trim();if(!e)return!1;let o=Number(e);return Number.isFinite(o)},Cr=n=>Fn(n)?Number(n):n,Ar=n=>n==="true"?!0:n==="false"?!1:n,Or=n=>n==="null"?null:n,wr=n=>{if(!kn(n))return n;try{return JSON.parse(n)}catch{return n}},Mr=n=>{if(xr(n))return n==="true";if(Sr(n))return null;if(Fn(n))return Number(n);if(kn(n))try{return JSON.parse(n)}catch{return n}return n},_r=(n,e="auto")=>{switch(e){case"string":return n;case"number":return Cr(n);case"boolean":return Ar(n);case"null":return Or(n);case"json":return wr(n);default:return Mr(n)}},qn=_r;var Ur=(n,e={})=>{let o={};return n?.forEach(({name:t,value:r})=>{o[t]=qn(r,e[t])}),o},jr=(n,e={})=>{let o={};return n?.forEach(t=>{let{name:r}=t;o[r]=o[r]||[],o[r].push(Vn(t,e))}),o},Vn=(n,e={})=>n?{...Ur(n.property,e),...jr(n.list,e)}:{},N=Vn;var Vt=(n,e)=>Object.hasOwn(n,e),l=(n,e,o)=>{n[e]=o},p=(n,e,o)=>Vt(n,e)?n[e]:o;var C=(n,e={})=>{let o={},{ignore:t=[]}=e;return Object.entries(n).forEach(([r,s])=>{if(!t.includes(r)&&typeof s!="function")if(s===void 0)o[r]="";else if(typeof s=="string")o[r]=s;else if(s instanceof Date)o[r]=s.toISOString();else if(typeof s!="object"||s===null)o[r]=String(s);else try{o[r]=JSON.stringify(s)}catch{o[r]=String(s)}}),o};var Br=function(n,e,o={},t){let r={set:[],get:[]};t?.get&&r.get.push(t.get),t?.set&&r.set.push(t.set);let s={set(i,a){l(n,i,a)},get(i,a){return p(n,i,a)},has(i){return Vt(n,i)},setProperty(i,a){this.set(i,a)},addProperty(i,a){this.set(i,a)},getProperty(i,a){return this.get(i,a)},hasProperty(i){return this.has(i)},setProperties(i){Object.entries(i).forEach(([a,d])=>{this.set(a,d)})},serialize(){return C(n)}};return new Proxy(n,{get(i,a,d){return Object.hasOwn(e,a)?e[a]:Object.hasOwn(s,a)?s[a]:(r.get.forEach(u=>{u(i,a,d)}),Reflect.get(i,a,d))},set(i,a,d,u){return r.set.forEach(m=>{m(i,a,d,u)}),Reflect.set(i,a,d,u)},getPrototypeOf(){return o.prototype||null}})},v=Br;var Hn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setPrice(t){l(e,"price",t)},getPrice(t){return p(e,"price",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},setLicenseTemplateNumbers(t){l(e,"licenseTemplateNumbers",t)},addLicenseTemplateNumber(t){e.licenseTemplateNumbers||(e.licenseTemplateNumbers=[]),e.licenseTemplateNumbers.push(t)},getLicenseTemplateNumbers(t){return p(e,"licenseTemplateNumbers",t)},removeLicenseTemplateNumber(t){let{licenseTemplateNumbers:r=[]}=e;r.splice(r.indexOf(t),1),e.licenseTemplateNumbers=r},getStaleLicenseTemplateNumbers(t){return p(e,"staleLicenseTemplateNumbers",t)},serialize(){let t={};return e.licenseTemplateNumbers&&(t.licenseTemplateNumbers=e.licenseTemplateNumbers.join(",")),C({...e,...t},{ignore:["staleLicenseTemplateNumbers"]})}},Hn)},Ze=Hn;var ee=n=>{let e=N(n,{active:"boolean",number:"string",name:"string",price:"number",currency:"string",productNumber:"string",licenseTemplateNumbers:"string",staleLicenseTemplateNumbers:"string"}),{licenseTemplateNumbers:o,staleLicenseTemplateNumbers:t}=e;return o&&typeof o=="string"&&(e.licenseTemplateNumbers=o.split(",")),t&&typeof t=="string"&&(e.staleLicenseTemplateNumbers=t.split(",")),Ze(e)};var $n=function(n={}){let o={...{code:"",name:"",vatPercent:0,isEu:!1},...n};return v(o,{getCode(){return o.code},getName(){return o.name},getVatPercent(){return o.vatPercent},getIsEu(){return o.isEu}},$n)},et=$n;var tt=n=>et(N(n,{code:"string",name:"string",vatPercent:"number",isEu:"boolean"}));var zn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setPrice(t){l(e,"price",t)},getPrice(t){return p(e,"price",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setHidden(t){l(e,"hidden",t)},getHidden(t){return p(e,"hidden",t)},setLicenseeNumber(t){l(e,"licenseeNumber",t)},getLicenseeNumber(t){return p(e,"licenseeNumber",t)},setLicenseTemplateNumber(t){l(e,"licenseTemplateNumber",t)},getLicenseTemplateNumber(t){return p(e,"licenseTemplateNumber",t)},setProductModuleNumber(t){l(e,"productModuleNumber",t)},getProductModuleNumber(t){return p(e,"productModuleNumber",t)},serialize(){return C(e,{ignore:["inUse"]})}},zn)},de=zn;var J=n=>{let e=N(n,{active:"boolean",number:"string",name:"string",price:"number",currency:"string",hidden:"boolean",licenseeNumber:"string",licenseTemplateNumber:"string",productModuleNumber:"string",startDate:"string",inUse:"boolean"}),{startDate:o}=e;return o&&typeof o=="string"&&(e.startDate=o==="now"?o:new Date(o)),de(e)};var Kn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},setMarkedForTransfer(t){l(e,"markedForTransfer",t)},getMarkedForTransfer(t){return p(e,"markedForTransfer",t)},serialize(){return C(e,{ignore:["inUse"]})}},Kn)},nt=Kn;var te=n=>{let e=N(n,{active:"boolean",number:"string",name:"string",markedForTransfer:"boolean",productNumber:"string",aliases:"string",inUse:"boolean"}),{aliases:o}=e;return o&&typeof o=="string"&&(e.aliases=o.split(",")),nt(e)};var Yn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setLicenseType(t){l(e,"licenseType",t)},getLicenseType(t){return p(e,"licenseType",t)},setPrice(t){l(e,"price",t)},getPrice(t){return p(e,"price",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setAutomatic(t){l(e,"automatic",t)},getAutomatic(t){return p(e,"automatic",t)},setHidden(t){l(e,"hidden",t)},getHidden(t){return p(e,"hidden",t)},setHideLicenses(t){l(e,"hideLicenses",t)},getHideLicenses(t){return p(e,"hideLicenses",t)},setProductModuleNumber(t){l(e,"productModuleNumber",t)},getProductModuleNumber(t){return p(e,"productModuleNumber",t)},serialize(){return C(e,{ignore:["inUse"]})}},Yn)},ot=Yn;var ne=n=>ot(N(n,{active:"boolean",number:"string",name:"string",licenseType:"string",price:"number",currency:"string",automatic:"boolean",hidden:"boolean",hideLicenses:"boolean",productModuleNumber:"string",inUse:"boolean"}));var Jn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setProtocol(t){l(e,"protocol",t)},getProtocol(t){return p(e,"protocol",t)},setEvents(t){l(e,"events",t)},getEvents(t){return p(e,"events",t)},addEvent(t){let r=this.getEvents([]);r.push(t),this.setEvents(r)},setPayload(t){l(e,"payload",t)},getPayload(t){return p(e,"payload",t)},setEndpoint(t){l(e,"endpoint",t)},getEndpoint(t){return p(e,"endpoint",t)},serialize(){let t=C(e);return t.events&&(t.events=this.getEvents([]).join(",")),t}},Jn)},rt=Jn;var oe=n=>{let e=N(n,{active:"boolean",number:"string",name:"string",protocol:"string",events:"string",payload:"string",endpoint:"string"}),{events:o}=e;return o&&typeof o=="string"&&(e.events=o.split(",")),rt(e)};var Wn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)}},Wn)},st=Wn;var me=n=>st(N(n,{active:"boolean",number:"string"}));var Gn=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setVersion(t){l(e,"version",t)},getVersion(t){return p(e,"version",t)},setDescription(t){l(e,"description",t)},getDescription(t){return p(e,"description",t)},setLicensingInfo(t){l(e,"licensingInfo",t)},getLicensingInfo(t){return p(e,"licensingInfo",t)},setLicenseeAutoCreate(t){l(e,"licenseeAutoCreate",t)},getLicenseeAutoCreate(t){return p(e,"licenseeAutoCreate",t)},setDiscounts(t){l(e,"discounts",t)},getDiscounts(t){return p(e,"discounts",t)},addDiscount(t){let r=this.getDiscounts([]);r.push(t),this.setDiscounts(r)},removeDiscount(t){let r=this.getDiscounts();Array.isArray(r)&&r.length>0&&(r.splice(r.indexOf(t),1),this.setDiscounts(r))},setProductDiscounts(t){this.setDiscounts(t)},getProductDiscounts(t){return this.getDiscounts(t)},serialize(){let t=C(e,{ignore:["discounts","inUse"]}),r=this.getDiscounts();return r&&(t.discount=r.length>0?r.map(s=>s.toString()):""),t}},Gn)},it=Gn;function xe(n,e){return function(){return n.apply(e,arguments)}}var{toString:kr}=Object.prototype,{getPrototypeOf:$t}=Object,{iterator:ct,toStringTag:eo}=Symbol,ut=(n=>e=>{let o=kr.call(e);return n[o]||(n[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),$=n=>(n=n.toLowerCase(),e=>ut(e)===n),dt=n=>e=>typeof e===n,{isArray:le}=Array,pe=dt("undefined");function Se(n){return n!==null&&!pe(n)&&n.constructor!==null&&!pe(n.constructor)&&B(n.constructor.isBuffer)&&n.constructor.isBuffer(n)}var to=$("ArrayBuffer");function Fr(n){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(n):e=n&&n.buffer&&to(n.buffer),e}var qr=dt("string"),B=dt("function"),no=dt("number"),Ce=n=>n!==null&&typeof n=="object",Vr=n=>n===!0||n===!1,at=n=>{if(ut(n)!=="object")return!1;let e=$t(n);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(eo in n)&&!(ct in n)},Hr=n=>{if(!Ce(n)||Se(n))return!1;try{return Object.keys(n).length===0&&Object.getPrototypeOf(n)===Object.prototype}catch{return!1}},$r=$("Date"),zr=$("File"),Kr=n=>!!(n&&typeof n.uri<"u"),Yr=n=>n&&typeof n.getParts<"u",Jr=$("Blob"),Wr=$("FileList"),Gr=n=>Ce(n)&&B(n.pipe);function Xr(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}var Xn=Xr(),Qn=typeof Xn.FormData<"u"?Xn.FormData:void 0,Qr=n=>{let e;return n&&(Qn&&n instanceof Qn||B(n.append)&&((e=ut(n))==="formdata"||e==="object"&&B(n.toString)&&n.toString()==="[object FormData]"))},Zr=$("URLSearchParams"),[es,ts,ns,os]=["ReadableStream","Request","Response","Headers"].map($),rs=n=>n.trim?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ae(n,e,{allOwnKeys:o=!1}={}){if(n===null||typeof n>"u")return;let t,r;if(typeof n!="object"&&(n=[n]),le(n))for(t=0,r=n.length;t<r;t++)e.call(null,n[t],t,n);else{if(Se(n))return;let s=o?Object.getOwnPropertyNames(n):Object.keys(n),i=s.length,a;for(t=0;t<i;t++)a=s[t],e.call(null,n[a],a,n)}}function oo(n,e){if(Se(n))return null;e=e.toLowerCase();let o=Object.keys(n),t=o.length,r;for(;t-- >0;)if(r=o[t],e===r.toLowerCase())return r;return null}var re=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ro=n=>!pe(n)&&n!==re;function Ht(){let{caseless:n,skipUndefined:e}=ro(this)&&this||{},o={},t=(r,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;let i=n&&oo(o,s)||s;at(o[i])&&at(r)?o[i]=Ht(o[i],r):at(r)?o[i]=Ht({},r):le(r)?o[i]=r.slice():(!e||!pe(r))&&(o[i]=r)};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Ae(arguments[r],t);return o}var ss=(n,e,o,{allOwnKeys:t}={})=>(Ae(e,(r,s)=>{o&&B(r)?Object.defineProperty(n,s,{value:xe(r,o),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(n,s,{value:r,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:t}),n),is=n=>(n.charCodeAt(0)===65279&&(n=n.slice(1)),n),as=(n,e,o,t)=>{n.prototype=Object.create(e.prototype,t),Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(n,"super",{value:e.prototype}),o&&Object.assign(n.prototype,o)},cs=(n,e,o,t)=>{let r,s,i,a={};if(e=e||{},n==null)return e;do{for(r=Object.getOwnPropertyNames(n),s=r.length;s-- >0;)i=r[s],(!t||t(i,n,e))&&!a[i]&&(e[i]=n[i],a[i]=!0);n=o!==!1&&$t(n)}while(n&&(!o||o(n,e))&&n!==Object.prototype);return e},us=(n,e,o)=>{n=String(n),(o===void 0||o>n.length)&&(o=n.length),o-=e.length;let t=n.indexOf(e,o);return t!==-1&&t===o},ds=n=>{if(!n)return null;if(le(n))return n;let e=n.length;if(!no(e))return null;let o=new Array(e);for(;e-- >0;)o[e]=n[e];return o},ms=(n=>e=>n&&e instanceof n)(typeof Uint8Array<"u"&&$t(Uint8Array)),ps=(n,e)=>{let t=(n&&n[ct]).call(n),r;for(;(r=t.next())&&!r.done;){let s=r.value;e.call(n,s[0],s[1])}},ls=(n,e)=>{let o,t=[];for(;(o=n.exec(e))!==null;)t.push(o);return t},fs=$("HTMLFormElement"),gs=n=>n.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,t,r){return t.toUpperCase()+r}),Zn=(({hasOwnProperty:n})=>(e,o)=>n.call(e,o))(Object.prototype),Ts=$("RegExp"),so=(n,e)=>{let o=Object.getOwnPropertyDescriptors(n),t={};Ae(o,(r,s)=>{let i;(i=e(r,s,n))!==!1&&(t[s]=i||r)}),Object.defineProperties(n,t)},hs=n=>{so(n,(e,o)=>{if(B(n)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let t=n[o];if(B(t)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},Ps=(n,e)=>{let o={},t=r=>{r.forEach(s=>{o[s]=!0})};return le(n)?t(n):t(String(n).split(e)),o},ys=()=>{},Es=(n,e)=>n!=null&&Number.isFinite(n=+n)?n:e;function bs(n){return!!(n&&B(n.append)&&n[eo]==="FormData"&&n[ct])}var Ds=n=>{let e=new Array(10),o=(t,r)=>{if(Ce(t)){if(e.indexOf(t)>=0)return;if(Se(t))return t;if(!("toJSON"in t)){e[r]=t;let s=le(t)?[]:{};return Ae(t,(i,a)=>{let d=o(i,r+1);!pe(d)&&(s[a]=d)}),e[r]=void 0,s}}return t};return o(n,0)},Rs=$("AsyncFunction"),Ns=n=>n&&(Ce(n)||B(n))&&B(n.then)&&B(n.catch),io=((n,e)=>n?setImmediate:e?((o,t)=>(re.addEventListener("message",({source:r,data:s})=>{r===re&&s===o&&t.length&&t.shift()()},!1),r=>{t.push(r),re.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",B(re.postMessage)),vs=typeof queueMicrotask<"u"?queueMicrotask.bind(re):typeof process<"u"&&process.nextTick||io,Is=n=>n!=null&&B(n[ct]),c={isArray:le,isArrayBuffer:to,isBuffer:Se,isFormData:Qr,isArrayBufferView:Fr,isString:qr,isNumber:no,isBoolean:Vr,isObject:Ce,isPlainObject:at,isEmptyObject:Hr,isReadableStream:es,isRequest:ts,isResponse:ns,isHeaders:os,isUndefined:pe,isDate:$r,isFile:zr,isReactNativeBlob:Kr,isReactNative:Yr,isBlob:Jr,isRegExp:Ts,isFunction:B,isStream:Gr,isURLSearchParams:Zr,isTypedArray:ms,isFileList:Wr,forEach:Ae,merge:Ht,extend:ss,trim:rs,stripBOM:is,inherits:as,toFlatObject:cs,kindOf:ut,kindOfTest:$,endsWith:us,toArray:ds,forEachEntry:ps,matchAll:ls,isHTMLForm:fs,hasOwnProperty:Zn,hasOwnProp:Zn,reduceDescriptors:so,freezeMethods:hs,toObjectSet:Ps,toCamelCase:gs,noop:ys,toFiniteNumber:Es,findKey:oo,global:re,isContextDefined:ro,isSpecCompliantForm:bs,toJSONObject:Ds,isAsyncFn:Rs,isThenable:Ns,setImmediate:io,asap:vs,isIterable:Is};var _=class n extends Error{static from(e,o,t,r,s,i){let a=new n(e.message,o||e.code,t,r,s);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,o,t,r,s){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,o&&(this.code=o),t&&(this.config=t),r&&(this.request=r),s&&(this.response=s,this.status=s.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}}};_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";_.ERR_BAD_OPTION="ERR_BAD_OPTION";_.ECONNABORTED="ECONNABORTED";_.ETIMEDOUT="ETIMEDOUT";_.ERR_NETWORK="ERR_NETWORK";_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";_.ERR_DEPRECATED="ERR_DEPRECATED";_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";_.ERR_BAD_REQUEST="ERR_BAD_REQUEST";_.ERR_CANCELED="ERR_CANCELED";_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";_.ERR_INVALID_URL="ERR_INVALID_URL";var E=_;var mt=null;function Kt(n){return c.isPlainObject(n)||c.isArray(n)}function ao(n){return c.endsWith(n,"[]")?n.slice(0,-2):n}function zt(n,e,o){return n?n.concat(e).map(function(r,s){return r=ao(r),!o&&s?"["+r+"]":r}).join(o?".":""):e}function Ls(n){return c.isArray(n)&&!n.some(Kt)}var xs=c.toFlatObject(c,{},null,function(e){return/^is[A-Z]/.test(e)});function Ss(n,e,o){if(!c.isObject(n))throw new TypeError("target must be an object");e=e||new(mt||FormData),o=c.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,T){return!c.isUndefined(T[y])});let t=o.metaTokens,r=o.visitor||m,s=o.dots,i=o.indexes,d=(o.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(r))throw new TypeError("visitor must be a function");function u(f){if(f===null)return"";if(c.isDate(f))return f.toISOString();if(c.isBoolean(f))return f.toString();if(!d&&c.isBlob(f))throw new E("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(f)||c.isTypedArray(f)?d&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function m(f,y,T){let A=f;if(c.isReactNative(e)&&c.isReactNativeBlob(f))return e.append(zt(T,y,s),u(f)),!1;if(f&&!T&&typeof f=="object"){if(c.endsWith(y,"{}"))y=t?y:y.slice(0,-2),f=JSON.stringify(f);else if(c.isArray(f)&&Ls(f)||(c.isFileList(f)||c.endsWith(y,"[]"))&&(A=c.toArray(f)))return y=ao(y),A.forEach(function(M,U){!(c.isUndefined(M)||M===null)&&e.append(i===!0?zt([y],U,s):i===null?y:y+"[]",u(M))}),!1}return Kt(f)?!0:(e.append(zt(T,y,s),u(f)),!1)}let h=[],D=Object.assign(xs,{defaultVisitor:m,convertValue:u,isVisitable:Kt});function S(f,y){if(!c.isUndefined(f)){if(h.indexOf(f)!==-1)throw Error("Circular reference detected in "+y.join("."));h.push(f),c.forEach(f,function(A,F){(!(c.isUndefined(A)||A===null)&&r.call(e,A,c.isString(F)?F.trim():F,y,D))===!0&&S(A,y?y.concat(F):[F])}),h.pop()}}if(!c.isObject(n))throw new TypeError("data must be an object");return S(n),e}var X=Ss;function co(n){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(n).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function uo(n,e){this._pairs=[],n&&X(n,this,e)}var mo=uo.prototype;mo.append=function(e,o){this._pairs.push([e,o])};mo.toString=function(e){let o=e?function(t){return e.call(this,t,co)}:co;return this._pairs.map(function(r){return o(r[0])+"="+o(r[1])},"").join("&")};var pt=uo;function Cs(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Oe(n,e,o){if(!e)return n;let t=o&&o.encode||Cs,r=c.isFunction(o)?{serialize:o}:o,s=r&&r.serialize,i;if(s?i=s(e,r):i=c.isURLSearchParams(e)?e.toString():new pt(e,r).toString(t),i){let a=n.indexOf("#");a!==-1&&(n=n.slice(0,a)),n+=(n.indexOf("?")===-1?"?":"&")+i}return n}var Yt=class{constructor(){this.handlers=[]}use(e,o,t){return this.handlers.push({fulfilled:e,rejected:o,synchronous:t?t.synchronous:!1,runWhen:t?t.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,function(t){t!==null&&e(t)})}},Jt=Yt;var fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var po=typeof URLSearchParams<"u"?URLSearchParams:pt;var lo=typeof FormData<"u"?FormData:null;var fo=typeof Blob<"u"?Blob:null;var go={isBrowser:!0,classes:{URLSearchParams:po,FormData:lo,Blob:fo},protocols:["http","https","file","blob","url","data"]};var Xt={};Mn(Xt,{hasBrowserEnv:()=>Gt,hasStandardBrowserEnv:()=>As,hasStandardBrowserWebWorkerEnv:()=>Os,navigator:()=>Wt,origin:()=>ws});var Gt=typeof window<"u"&&typeof document<"u",Wt=typeof navigator=="object"&&navigator||void 0,As=Gt&&(!Wt||["ReactNative","NativeScript","NS"].indexOf(Wt.product)<0),Os=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ws=Gt&&window.location.href||"http://localhost";var x={...Xt,...go};function Qt(n,e){return X(n,new x.classes.URLSearchParams,{visitor:function(o,t,r,s){return x.isNode&&c.isBuffer(o)?(this.append(t,o.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},...e})}function Ms(n){return c.matchAll(/\w+|\[(\w*)]/g,n).map(e=>e[0]==="[]"?"":e[1]||e[0])}function _s(n){let e={},o=Object.keys(n),t,r=o.length,s;for(t=0;t<r;t++)s=o[t],e[s]=n[s];return e}function Us(n){function e(o,t,r,s){let i=o[s++];if(i==="__proto__")return!0;let a=Number.isFinite(+i),d=s>=o.length;return i=!i&&c.isArray(r)?r.length:i,d?(c.hasOwnProp(r,i)?r[i]=[r[i],t]:r[i]=t,!a):((!r[i]||!c.isObject(r[i]))&&(r[i]=[]),e(o,t,r[i],s)&&c.isArray(r[i])&&(r[i]=_s(r[i])),!a)}if(c.isFormData(n)&&c.isFunction(n.entries)){let o={};return c.forEachEntry(n,(t,r)=>{e(Ms(t),r,o,0)}),o}return null}var lt=Us;function js(n,e,o){if(c.isString(n))try{return(e||JSON.parse)(n),c.trim(n)}catch(t){if(t.name!=="SyntaxError")throw t}return(o||JSON.stringify)(n)}var Zt={transitional:fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){let t=o.getContentType()||"",r=t.indexOf("application/json")>-1,s=c.isObject(e);if(s&&c.isHTMLForm(e)&&(e=new FormData(e)),c.isFormData(e))return r?JSON.stringify(lt(e)):e;if(c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)||c.isReadableStream(e))return e;if(c.isArrayBufferView(e))return e.buffer;if(c.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(t.indexOf("application/x-www-form-urlencoded")>-1)return Qt(e,this.formSerializer).toString();if((a=c.isFileList(e))||t.indexOf("multipart/form-data")>-1){let d=this.env&&this.env.FormData;return X(a?{"files[]":e}:e,d&&new d,this.formSerializer)}}return s||r?(o.setContentType("application/json",!1),js(e)):e}],transformResponse:[function(e){let o=this.transitional||Zt.transitional,t=o&&o.forcedJSONParsing,r=this.responseType==="json";if(c.isResponse(e)||c.isReadableStream(e))return e;if(e&&c.isString(e)&&(t&&!this.responseType||r)){let i=!(o&&o.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(a){if(i)throw a.name==="SyntaxError"?E.from(a,E.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:x.classes.FormData,Blob:x.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],n=>{Zt.headers[n]={}});var ge=Zt;var Bs=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),To=n=>{let e={},o,t,r;return n&&n.split(`
2
+ `).forEach(function(i){r=i.indexOf(":"),o=i.substring(0,r).trim().toLowerCase(),t=i.substring(r+1).trim(),!(!o||e[o]&&Bs[o])&&(o==="set-cookie"?e[o]?e[o].push(t):e[o]=[t]:e[o]=e[o]?e[o]+", "+t:t)}),e};var ho=Symbol("internals");function we(n){return n&&String(n).trim().toLowerCase()}function ft(n){return n===!1||n==null?n:c.isArray(n)?n.map(ft):String(n)}function ks(n){let e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,t;for(;t=o.exec(n);)e[t[1]]=t[2];return e}var Fs=n=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());function en(n,e,o,t,r){if(c.isFunction(t))return t.call(this,e,o);if(r&&(e=o),!!c.isString(e)){if(c.isString(t))return e.indexOf(t)!==-1;if(c.isRegExp(t))return t.test(e)}}function qs(n){return n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,t)=>o.toUpperCase()+t)}function Vs(n,e){let o=c.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{value:function(r,s,i){return this[t].call(this,e,r,s,i)},configurable:!0})})}var Te=class{constructor(e){e&&this.set(e)}set(e,o,t){let r=this;function s(a,d,u){let m=we(d);if(!m)throw new Error("header name must be a non-empty string");let h=c.findKey(r,m);(!h||r[h]===void 0||u===!0||u===void 0&&r[h]!==!1)&&(r[h||d]=ft(a))}let i=(a,d)=>c.forEach(a,(u,m)=>s(u,m,d));if(c.isPlainObject(e)||e instanceof this.constructor)i(e,o);else if(c.isString(e)&&(e=e.trim())&&!Fs(e))i(To(e),o);else if(c.isObject(e)&&c.isIterable(e)){let a={},d,u;for(let m of e){if(!c.isArray(m))throw TypeError("Object iterator must return a key-value pair");a[u=m[0]]=(d=a[u])?c.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}i(a,o)}else e!=null&&s(o,e,t);return this}get(e,o){if(e=we(e),e){let t=c.findKey(this,e);if(t){let r=this[t];if(!o)return r;if(o===!0)return ks(r);if(c.isFunction(o))return o.call(this,r,t);if(c.isRegExp(o))return o.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=we(e),e){let t=c.findKey(this,e);return!!(t&&this[t]!==void 0&&(!o||en(this,this[t],t,o)))}return!1}delete(e,o){let t=this,r=!1;function s(i){if(i=we(i),i){let a=c.findKey(t,i);a&&(!o||en(t,t[a],a,o))&&(delete t[a],r=!0)}}return c.isArray(e)?e.forEach(s):s(e),r}clear(e){let o=Object.keys(this),t=o.length,r=!1;for(;t--;){let s=o[t];(!e||en(this,this[s],s,e,!0))&&(delete this[s],r=!0)}return r}normalize(e){let o=this,t={};return c.forEach(this,(r,s)=>{let i=c.findKey(t,s);if(i){o[i]=ft(r),delete o[s];return}let a=e?qs(s):String(s).trim();a!==s&&delete o[s],o[a]=ft(r),t[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let o=Object.create(null);return c.forEach(this,(t,r)=>{t!=null&&t!==!1&&(o[r]=e&&c.isArray(t)?t.join(", "):t)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
3
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){let t=new this(e);return o.forEach(r=>t.set(r)),t}static accessor(e){let t=(this[ho]=this[ho]={accessors:{}}).accessors,r=this.prototype;function s(i){let a=we(i);t[a]||(Vs(r,i),t[a]=!0)}return c.isArray(e)?e.forEach(s):s(e),this}};Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(Te.prototype,({value:n},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:()=>n,set(t){this[o]=t}}});c.freezeMethods(Te);var w=Te;function Me(n,e){let o=this||ge,t=e||o,r=w.from(t.headers),s=t.data;return c.forEach(n,function(a){s=a.call(o,s,r.normalize(),e?e.status:void 0)}),r.normalize(),s}function _e(n){return!!(n&&n.__CANCEL__)}var tn=class extends E{constructor(e,o,t){super(e??"canceled",E.ERR_CANCELED,o,t),this.name="CanceledError",this.__CANCEL__=!0}},Y=tn;function Ue(n,e,o){let t=o.config.validateStatus;!o.status||!t||t(o.status)?n(o):e(new E("Request failed with status code "+o.status,[E.ERR_BAD_REQUEST,E.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}function nn(n){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(n);return e&&e[1]||""}function Hs(n,e){n=n||10;let o=new Array(n),t=new Array(n),r=0,s=0,i;return e=e!==void 0?e:1e3,function(d){let u=Date.now(),m=t[s];i||(i=u),o[r]=d,t[r]=u;let h=s,D=0;for(;h!==r;)D+=o[h++],h=h%n;if(r=(r+1)%n,r===s&&(s=(s+1)%n),u-i<e)return;let S=m&&u-m;return S?Math.round(D*1e3/S):void 0}}var Po=Hs;function $s(n,e){let o=0,t=1e3/e,r,s,i=(u,m=Date.now())=>{o=m,r=null,s&&(clearTimeout(s),s=null),n(...u)};return[(...u)=>{let m=Date.now(),h=m-o;h>=t?i(u,m):(r=u,s||(s=setTimeout(()=>{s=null,i(r)},t-h)))},()=>r&&i(r)]}var yo=$s;var he=(n,e,o=3)=>{let t=0,r=Po(50,250);return yo(s=>{let i=s.loaded,a=s.lengthComputable?s.total:void 0,d=i-t,u=r(d),m=i<=a;t=i;let h={loaded:i,total:a,progress:a?i/a:void 0,bytes:d,rate:u||void 0,estimated:u&&a&&m?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};n(h)},o)},on=(n,e)=>{let o=n!=null;return[t=>e[0]({lengthComputable:o,total:n,loaded:t}),e[1]]},rn=n=>(...e)=>c.asap(()=>n(...e));var Eo=x.hasStandardBrowserEnv?((n,e)=>o=>(o=new URL(o,x.origin),n.protocol===o.protocol&&n.host===o.host&&(e||n.port===o.port)))(new URL(x.origin),x.navigator&&/(msie|trident)/i.test(x.navigator.userAgent)):()=>!0;var bo=x.hasStandardBrowserEnv?{write(n,e,o,t,r,s,i){if(typeof document>"u")return;let a=[`${n}=${encodeURIComponent(e)}`];c.isNumber(o)&&a.push(`expires=${new Date(o).toUTCString()}`),c.isString(t)&&a.push(`path=${t}`),c.isString(r)&&a.push(`domain=${r}`),s===!0&&a.push("secure"),c.isString(i)&&a.push(`SameSite=${i}`),document.cookie=a.join("; ")},read(n){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+n+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(n){this.write(n,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function sn(n){return typeof n!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)}function an(n,e){return e?n.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):n}function je(n,e,o){let t=!sn(e);return n&&(t||o==!1)?an(n,e):e}var Do=n=>n instanceof w?{...n}:n;function z(n,e){e=e||{};let o={};function t(u,m,h,D){return c.isPlainObject(u)&&c.isPlainObject(m)?c.merge.call({caseless:D},u,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}function r(u,m,h,D){if(c.isUndefined(m)){if(!c.isUndefined(u))return t(void 0,u,h,D)}else return t(u,m,h,D)}function s(u,m){if(!c.isUndefined(m))return t(void 0,m)}function i(u,m){if(c.isUndefined(m)){if(!c.isUndefined(u))return t(void 0,u)}else return t(void 0,m)}function a(u,m,h){if(h in e)return t(u,m);if(h in n)return t(void 0,u)}let d={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,m,h)=>r(Do(u),Do(m),h,!0)};return c.forEach(Object.keys({...n,...e}),function(m){if(m==="__proto__"||m==="constructor"||m==="prototype")return;let h=c.hasOwnProp(d,m)?d[m]:r,D=h(n[m],e[m],m);c.isUndefined(D)&&h!==a||(o[m]=D)}),o}var gt=n=>{let e=z({},n),{data:o,withXSRFToken:t,xsrfHeaderName:r,xsrfCookieName:s,headers:i,auth:a}=e;if(e.headers=i=w.from(i),e.url=Oe(je(e.baseURL,e.url,e.allowAbsoluteUrls),n.params,n.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),c.isFormData(o)){if(x.hasStandardBrowserEnv||x.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(c.isFunction(o.getHeaders)){let d=o.getHeaders(),u=["content-type","content-length"];Object.entries(d).forEach(([m,h])=>{u.includes(m.toLowerCase())&&i.set(m,h)})}}if(x.hasStandardBrowserEnv&&(t&&c.isFunction(t)&&(t=t(e)),t||t!==!1&&Eo(e.url))){let d=r&&s&&bo.read(s);d&&i.set(r,d)}return e};var zs=typeof XMLHttpRequest<"u",Ro=zs&&function(n){return new Promise(function(o,t){let r=gt(n),s=r.data,i=w.from(r.headers).normalize(),{responseType:a,onUploadProgress:d,onDownloadProgress:u}=r,m,h,D,S,f;function y(){S&&S(),f&&f(),r.cancelToken&&r.cancelToken.unsubscribe(m),r.signal&&r.signal.removeEventListener("abort",m)}let T=new XMLHttpRequest;T.open(r.method.toUpperCase(),r.url,!0),T.timeout=r.timeout;function A(){if(!T)return;let M=w.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),H={data:!a||a==="text"||a==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:M,config:n,request:T};Ue(function(q){o(q),y()},function(q){t(q),y()},H),T=null}"onloadend"in T?T.onloadend=A:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(A)},T.onabort=function(){T&&(t(new E("Request aborted",E.ECONNABORTED,n,T)),T=null)},T.onerror=function(U){let H=U&&U.message?U.message:"Network Error",Q=new E(H,E.ERR_NETWORK,n,T);Q.event=U||null,t(Q),T=null},T.ontimeout=function(){let U=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",H=r.transitional||fe;r.timeoutErrorMessage&&(U=r.timeoutErrorMessage),t(new E(U,H.clarifyTimeoutError?E.ETIMEDOUT:E.ECONNABORTED,n,T)),T=null},s===void 0&&i.setContentType(null),"setRequestHeader"in T&&c.forEach(i.toJSON(),function(U,H){T.setRequestHeader(H,U)}),c.isUndefined(r.withCredentials)||(T.withCredentials=!!r.withCredentials),a&&a!=="json"&&(T.responseType=r.responseType),u&&([D,f]=he(u,!0),T.addEventListener("progress",D)),d&&T.upload&&([h,S]=he(d),T.upload.addEventListener("progress",h),T.upload.addEventListener("loadend",S)),(r.cancelToken||r.signal)&&(m=M=>{T&&(t(!M||M.type?new Y(null,n,T):M),T.abort(),T=null)},r.cancelToken&&r.cancelToken.subscribe(m),r.signal&&(r.signal.aborted?m():r.signal.addEventListener("abort",m)));let F=nn(r.url);if(F&&x.protocols.indexOf(F)===-1){t(new E("Unsupported protocol "+F+":",E.ERR_BAD_REQUEST,n));return}T.send(s||null)})};var Ks=(n,e)=>{let{length:o}=n=n?n.filter(Boolean):[];if(e||o){let t=new AbortController,r,s=function(u){if(!r){r=!0,a();let m=u instanceof Error?u:this.reason;t.abort(m instanceof E?m:new Y(m instanceof Error?m.message:m))}},i=e&&setTimeout(()=>{i=null,s(new E(`timeout of ${e}ms exceeded`,E.ETIMEDOUT))},e),a=()=>{n&&(i&&clearTimeout(i),i=null,n.forEach(u=>{u.unsubscribe?u.unsubscribe(s):u.removeEventListener("abort",s)}),n=null)};n.forEach(u=>u.addEventListener("abort",s));let{signal:d}=t;return d.unsubscribe=()=>c.asap(a),d}},No=Ks;var Ys=function*(n,e){let o=n.byteLength;if(!e||o<e){yield n;return}let t=0,r;for(;t<o;)r=t+e,yield n.slice(t,r),t=r},Js=async function*(n,e){for await(let o of Ws(n))yield*Ys(o,e)},Ws=async function*(n){if(n[Symbol.asyncIterator]){yield*n;return}let e=n.getReader();try{for(;;){let{done:o,value:t}=await e.read();if(o)break;yield t}}finally{await e.cancel()}},cn=(n,e,o,t)=>{let r=Js(n,e),s=0,i,a=d=>{i||(i=!0,t&&t(d))};return new ReadableStream({async pull(d){try{let{done:u,value:m}=await r.next();if(u){a(),d.close();return}let h=m.byteLength;if(o){let D=s+=h;o(D)}d.enqueue(new Uint8Array(m))}catch(u){throw a(u),u}},cancel(d){return a(d),r.return()}},{highWaterMark:2})};var vo=64*1024,{isFunction:Tt}=c,Gs=(({Request:n,Response:e})=>({Request:n,Response:e}))(c.global),{ReadableStream:Io,TextEncoder:Lo}=c.global,xo=(n,...e)=>{try{return!!n(...e)}catch{return!1}},Xs=n=>{n=c.merge.call({skipUndefined:!0},Gs,n);let{fetch:e,Request:o,Response:t}=n,r=e?Tt(e):typeof fetch=="function",s=Tt(o),i=Tt(t);if(!r)return!1;let a=r&&Tt(Io),d=r&&(typeof Lo=="function"?(f=>y=>f.encode(y))(new Lo):async f=>new Uint8Array(await new o(f).arrayBuffer())),u=s&&a&&xo(()=>{let f=!1,y=new o(x.origin,{body:new Io,method:"POST",get duplex(){return f=!0,"half"}}).headers.has("Content-Type");return f&&!y}),m=i&&a&&xo(()=>c.isReadableStream(new t("").body)),h={stream:m&&(f=>f.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!h[f]&&(h[f]=(y,T)=>{let A=y&&y[f];if(A)return A.call(y);throw new E(`Response type '${f}' is not supported`,E.ERR_NOT_SUPPORT,T)})});let D=async f=>{if(f==null)return 0;if(c.isBlob(f))return f.size;if(c.isSpecCompliantForm(f))return(await new o(x.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(c.isArrayBufferView(f)||c.isArrayBuffer(f))return f.byteLength;if(c.isURLSearchParams(f)&&(f=f+""),c.isString(f))return(await d(f)).byteLength},S=async(f,y)=>{let T=c.toFiniteNumber(f.getContentLength());return T??D(y)};return async f=>{let{url:y,method:T,data:A,signal:F,cancelToken:M,timeout:U,onDownloadProgress:H,onUploadProgress:Q,responseType:q,headers:kt,withCredentials:Ye="same-origin",fetchOptions:xn}=gt(f),Sn=e||fetch;q=q?(q+"").toLowerCase():"text";let Je=No([F,M&&M.toAbortSignal()],U),De=null,Z=Je&&Je.unsubscribe&&(()=>{Je.unsubscribe()}),Cn;try{if(Q&&u&&T!=="get"&&T!=="head"&&(Cn=await S(kt,A))!==0){let G=new o(y,{method:"POST",body:A,duplex:"half"}),ue;if(c.isFormData(A)&&(ue=G.headers.get("content-type"))&&kt.setContentType(ue),G.body){let[Ft,We]=on(Cn,he(rn(Q)));A=cn(G.body,vo,Ft,We)}}c.isString(Ye)||(Ye=Ye?"include":"omit");let j=s&&"credentials"in o.prototype,An={...xn,signal:Je,method:T.toUpperCase(),headers:kt.normalize().toJSON(),body:A,duplex:"half",credentials:j?Ye:void 0};De=s&&new o(y,An);let W=await(s?Sn(De,xn):Sn(y,An)),On=m&&(q==="stream"||q==="response");if(m&&(H||On&&Z)){let G={};["status","statusText","headers"].forEach(wn=>{G[wn]=W[wn]});let ue=c.toFiniteNumber(W.headers.get("content-length")),[Ft,We]=H&&on(ue,he(rn(H),!0))||[];W=new t(cn(W.body,vo,Ft,()=>{We&&We(),Z&&Z()}),G)}q=q||"text";let ur=await h[c.findKey(h,q)||"text"](W,f);return!On&&Z&&Z(),await new Promise((G,ue)=>{Ue(G,ue,{data:ur,headers:w.from(W.headers),status:W.status,statusText:W.statusText,config:f,request:De})})}catch(j){throw Z&&Z(),j&&j.name==="TypeError"&&/Load failed|fetch/i.test(j.message)?Object.assign(new E("Network Error",E.ERR_NETWORK,f,De,j&&j.response),{cause:j.cause||j}):E.from(j,j&&j.code,f,De,j&&j.response)}}},Qs=new Map,un=n=>{let e=n&&n.env||{},{fetch:o,Request:t,Response:r}=e,s=[t,r,o],i=s.length,a=i,d,u,m=Qs;for(;a--;)d=s[a],u=m.get(d),u===void 0&&m.set(d,u=a?new Map:Xs(e)),m=u;return u},Gu=un();var dn={http:mt,xhr:Ro,fetch:{get:un}};c.forEach(dn,(n,e)=>{if(n){try{Object.defineProperty(n,"name",{value:e})}catch{}Object.defineProperty(n,"adapterName",{value:e})}});var So=n=>`- ${n}`,ei=n=>c.isFunction(n)||n===null||n===!1;function ti(n,e){n=c.isArray(n)?n:[n];let{length:o}=n,t,r,s={};for(let i=0;i<o;i++){t=n[i];let a;if(r=t,!ei(t)&&(r=dn[(a=String(t)).toLowerCase()],r===void 0))throw new E(`Unknown adapter '${a}'`);if(r&&(c.isFunction(r)||(r=r.get(e))))break;s[a||"#"+i]=r}if(!r){let i=Object.entries(s).map(([d,u])=>`adapter ${d} `+(u===!1?"is not supported by the environment":"is not available in the build")),a=o?i.length>1?`since :
4
+ `+i.map(So).join(`
5
+ `):" "+So(i[0]):"as no adapter specified";throw new E("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r}var ht={getAdapter:ti,adapters:dn};function mn(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new Y(null,n)}function Pt(n){return mn(n),n.headers=w.from(n.headers),n.data=Me.call(n,n.transformRequest),["post","put","patch"].indexOf(n.method)!==-1&&n.headers.setContentType("application/x-www-form-urlencoded",!1),ht.getAdapter(n.adapter||ge.adapter,n)(n).then(function(t){return mn(n),t.data=Me.call(n,n.transformResponse,t),t.headers=w.from(t.headers),t},function(t){return _e(t)||(mn(n),t&&t.response&&(t.response.data=Me.call(n,n.transformResponse,t.response),t.response.headers=w.from(t.response.headers))),Promise.reject(t)})}var yt="1.13.6";var Et={};["object","boolean","number","function","string","symbol"].forEach((n,e)=>{Et[n]=function(t){return typeof t===n||"a"+(e<1?"n ":" ")+n}});var Co={};Et.transitional=function(e,o,t){function r(s,i){return"[Axios v"+yt+"] Transitional option '"+s+"'"+i+(t?". "+t:"")}return(s,i,a)=>{if(e===!1)throw new E(r(i," has been removed"+(o?" in "+o:"")),E.ERR_DEPRECATED);return o&&!Co[i]&&(Co[i]=!0,console.warn(r(i," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(s,i,a):!0}};Et.spelling=function(e){return(o,t)=>(console.warn(`${t} is likely a misspelling of ${e}`),!0)};function ni(n,e,o){if(typeof n!="object")throw new E("options must be an object",E.ERR_BAD_OPTION_VALUE);let t=Object.keys(n),r=t.length;for(;r-- >0;){let s=t[r],i=e[s];if(i){let a=n[s],d=a===void 0||i(a,s,n);if(d!==!0)throw new E("option "+s+" must be "+d,E.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new E("Unknown option "+s,E.ERR_BAD_OPTION)}}var Be={assertOptions:ni,validators:Et};var V=Be.validators,Pe=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Jt,response:new Jt}}async request(e,o){try{return await this._request(e,o)}catch(t){if(t instanceof Error){let r={};Error.captureStackTrace?Error.captureStackTrace(r):r=new Error;let s=r.stack?r.stack.replace(/^.+\n/,""):"";try{t.stack?s&&!String(t.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(t.stack+=`
6
+ `+s):t.stack=s}catch{}}throw t}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=z(this.defaults,o);let{transitional:t,paramsSerializer:r,headers:s}=o;t!==void 0&&Be.assertOptions(t,{silentJSONParsing:V.transitional(V.boolean),forcedJSONParsing:V.transitional(V.boolean),clarifyTimeoutError:V.transitional(V.boolean),legacyInterceptorReqResOrdering:V.transitional(V.boolean)},!1),r!=null&&(c.isFunction(r)?o.paramsSerializer={serialize:r}:Be.assertOptions(r,{encode:V.function,serialize:V.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Be.assertOptions(o,{baseUrl:V.spelling("baseURL"),withXsrfToken:V.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let i=s&&c.merge(s.common,s[o.method]);s&&c.forEach(["delete","get","head","post","put","patch","common"],f=>{delete s[f]}),o.headers=w.concat(i,s);let a=[],d=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(o)===!1)return;d=d&&y.synchronous;let T=o.transitional||fe;T&&T.legacyInterceptorReqResOrdering?a.unshift(y.fulfilled,y.rejected):a.push(y.fulfilled,y.rejected)});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let m,h=0,D;if(!d){let f=[Pt.bind(this),void 0];for(f.unshift(...a),f.push(...u),D=f.length,m=Promise.resolve(o);h<D;)m=m.then(f[h++],f[h++]);return m}D=a.length;let S=o;for(;h<D;){let f=a[h++],y=a[h++];try{S=f(S)}catch(T){y.call(this,T);break}}try{m=Pt.call(this,S)}catch(f){return Promise.reject(f)}for(h=0,D=u.length;h<D;)m=m.then(u[h++],u[h++]);return m}getUri(e){e=z(this.defaults,e);let o=je(e.baseURL,e.url,e.allowAbsoluteUrls);return Oe(o,e.params,e.paramsSerializer)}};c.forEach(["delete","get","head","options"],function(e){Pe.prototype[e]=function(o,t){return this.request(z(t||{},{method:e,url:o,data:(t||{}).data}))}});c.forEach(["post","put","patch"],function(e){function o(t){return function(s,i,a){return this.request(z(a||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}Pe.prototype[e]=o(),Pe.prototype[e+"Form"]=o(!0)});var ke=Pe;var pn=class n{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(function(s){o=s});let t=this;this.promise.then(r=>{if(!t._listeners)return;let s=t._listeners.length;for(;s-- >0;)t._listeners[s](r);t._listeners=null}),this.promise.then=r=>{let s,i=new Promise(a=>{t.subscribe(a),s=a}).then(r);return i.cancel=function(){t.unsubscribe(s)},i},e(function(s,i,a){t.reason||(t.reason=new Y(s,i,a),o(t.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){let e=new AbortController,o=t=>{e.abort(t)};return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new n(function(r){e=r}),cancel:e}}},Ao=pn;function ln(n){return function(o){return n.apply(null,o)}}function fn(n){return c.isObject(n)&&n.isAxiosError===!0}var gn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gn).forEach(([n,e])=>{gn[e]=n});var Oo=gn;function wo(n){let e=new ke(n),o=xe(ke.prototype.request,e);return c.extend(o,ke.prototype,e,{allOwnKeys:!0}),c.extend(o,e,null,{allOwnKeys:!0}),o.create=function(r){return wo(z(n,r))},o}var O=wo(ge);O.Axios=ke;O.CanceledError=Y;O.CancelToken=Ao;O.isCancel=_e;O.VERSION=yt;O.toFormData=X;O.AxiosError=E;O.Cancel=O.CanceledError;O.all=function(e){return Promise.all(e)};O.spread=ln;O.isAxiosError=fn;O.mergeConfig=z;O.AxiosHeaders=w;O.formToJSON=n=>lt(c.isHTMLForm(n)?new FormData(n):n);O.getAdapter=ht.getAdapter;O.HttpStatusCode=Oo;O.default=O;var bt=O;var{Axios:Jd,AxiosError:Mo,CanceledError:Wd,isCancel:Gd,CancelToken:Xd,VERSION:Qd,all:Zd,Cancel:em,isAxiosError:tm,spread:nm,toFormData:om,AxiosHeaders:rm,HttpStatusCode:sm,formToJSON:im,getAdapter:am,mergeConfig:cm}=bt;var k=class n extends Mo{constructor(o,t,r,s,i,a){super(o,t,r,s,i);this.isNlicError=!0;this.name="NlicError",a&&(this.stack=a),Object.setPrototypeOf(this,n.prototype)}};var _o=function(n={}){let e={...n};if(e.amountFix&&e.amountPercent)throw new k('Properties "amountFix" and "amountPercent" cannot be used at the same time');return v(e,{setTotalPrice(t){l(e,"totalPrice",t)},getTotalPrice(t){return p(e,"totalPrice",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setAmountFix(t){l(e,"amountFix",t)},getAmountFix(t){return p(e,"amountFix",t)},setAmountPercent(t){l(e,"amountPercent",t)},getAmountPercent(t){return p(e,"amountPercent",t)},toString(){let t=this.getTotalPrice(),r=this.getCurrency(),s=this.getAmountPercent()?`${this.getAmountPercent()}%`:this.getAmountFix();return t&&r&&s?`${t};${r};${s}`:""}},_o,{set:(t,r)=>{r==="amountFix"&&delete t.amountPercent,r==="amountPercent"&&delete t.amountFix}})},Dt=_o;var se=n=>{let e=N(n,{number:"string",name:"string",version:"string",description:"string",licensingInfo:"string",licenseeAutoCreate:"boolean",inUse:"boolean"}),o=e.discount;return delete e.discount,o&&(e.discounts=o.map(t=>Dt(t))),it(e)};var Uo=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setName(t){l(e,"name",t)},getName(t){return p(e,"name",t)},setLicensingModel(t){l(e,"licensingModel",t)},getLicensingModel(t){return p(e,"licensingModel",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},serialize(){return C(e,{ignore:["inUse"]})}},Uo)},Rt=Uo;var ie=n=>Rt(N(n,{active:"boolean",number:"string",name:"string",licensingModel:"string",productNumber:"string",inUse:"boolean"}));var jo=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setExpirationTime(t){l(e,"expirationTime",t)},getExpirationTime(t){return p(e,"expirationTime",t)},setTokenType(t){l(e,"tokenType",t)},getTokenType(t){return p(e,"tokenType",t)},setLicenseeNumber(t){l(e,"licenseeNumber",t)},getLicenseeNumber(t){return p(e,"licenseeNumber",t)},setAction(t){l(e,"action",t)},getAction(t){return p(e,"action",t)},setApiKeyRole(t){l(e,"apiKeyRole",t)},getApiKeyRole(t){return p(e,"apiKeyRole",t)},setBundleNumber(t){l(e,"bundleNumber",t)},getBundleNumber(t){return p(e,"bundleNumber",t)},setBundlePrice(t){l(e,"bundlePrice",t)},getBundlePrice(t){return p(e,"bundlePrice",t)},setProductNumber(t){l(e,"productNumber",t)},getProductNumber(t){return p(e,"productNumber",t)},setPredefinedShoppingItem(t){l(e,"predefinedShoppingItem",t)},getPredefinedShoppingItem(t){return p(e,"predefinedShoppingItem",t)},setSuccessURL(t){l(e,"successURL",t)},getSuccessURL(t){return p(e,"successURL",t)},setSuccessURLTitle(t){l(e,"successURLTitle",t)},getSuccessURLTitle(t){return p(e,"successURLTitle",t)},setCancelURL(t){l(e,"cancelURL",t)},getCancelURL(t){return p(e,"cancelURL",t)},setCancelURLTitle(t){l(e,"cancelURLTitle",t)},getCancelURLTitle(t){return p(e,"cancelURLTitle",t)},getShopURL(t){return p(e,"shopURL",t)},serialize(){return C(e,{ignore:["shopURL"]})}},jo)},Nt=jo;var ye=n=>{let e=N(n,{active:"boolean",number:"string",expirationTime:"string",tokenType:"string",licenseeNumber:"string",action:"string",apiKeyRole:"string",bundleNumber:"string",bundlePrice:"number",productNumber:"string",predefinedShoppingItem:"string",successURL:"string",successURLTitle:"string",cancelURL:"string",cancelURLTitle:"string",shopURL:"string"}),{expirationTime:o}=e;return o&&typeof o=="string"&&(e.expirationTime=new Date(o)),Nt(e)};var Tn=class{constructor(e,o){this.transaction=e,this.license=o}setTransaction(e){this.transaction=e}getTransaction(){return this.transaction}setLicense(e){this.license=e}getLicense(){return this.license}},vt=(n,e)=>new Tn(n,e);var Bo=function(n={}){let e={...n};return v(e,{setActive(t){l(e,"active",t)},getActive(t){return p(e,"active",t)},setNumber(t){l(e,"number",t)},getNumber(t){return p(e,"number",t)},setStatus(t){l(e,"status",t)},getStatus(t){return p(e,"status",t)},setSource(t){l(e,"source",t)},getSource(t){return p(e,"source",t)},setGrandTotal(t){l(e,"grandTotal",t)},getGrandTotal(t){return p(e,"grandTotal",t)},setDiscount(t){l(e,"discount",t)},getDiscount(t){return p(e,"discount",t)},setCurrency(t){l(e,"currency",t)},getCurrency(t){return p(e,"currency",t)},setDateCreated(t){l(e,"dateCreated",t)},getDateCreated(t){return p(e,"dateCreated",t)},setDateClosed(t){l(e,"dateClosed",t)},getDateClosed(t){return p(e,"dateClosed",t)},setPaymentMethod(t){l(e,"paymentMethod",t)},getPaymentMethod(t){return p(e,"paymentMethod",t)},setLicenseTransactionJoins(t){l(e,"licenseTransactionJoins",t)},getLicenseTransactionJoins(t){return p(e,"licenseTransactionJoins",t)},serialize(){let t={...e};return t.datecreated=e.dateCreated,t.dateclosed=e.dateClosed,delete t.dateCreated,delete t.dateClosed,C(t,{ignore:["licenseTransactionJoins","inUse"]})}},Bo)},Fe=Bo;var ae=n=>{let e=N(n,{active:"boolean",number:"string",status:"string",source:"string",grandTotal:"number",discount:"number",currency:"string",datecreated:"string",dateclosed:"string",paymentMethod:"string",licenseTransactionJoins:"json",inUse:"boolean"}),{datecreated:o,dateclosed:t}=e;o&&typeof o=="string"&&(e.dateCreated=new Date(o),delete e.datecreated),t&&typeof t=="string"&&(e.dateClosed=new Date(t),delete e.dateclosed);let r=e.licenseTransactionJoin;return delete e.licenseTransactionJoin,r&&(e.licenseTransactionJoins=r.map(({transactionNumber:s,licenseNumber:i})=>{let a=Fe({number:String(s)}),d=de({number:String(i)});return vt(a,d)})),Fe(e)};var ko=bt.create(),Fo=null,qo=[],Vo=n=>{ko=n},It=()=>ko,hn=n=>{Fo=n},Ho=()=>Fo,Pn=n=>{qo=n},$o=()=>qo;var yn={name:"netlicensing-client",version:"2.0.2",description:"JavaScript Wrapper for Labs64 NetLicensing RESTful API",keywords:["labs64","netlicensing","licensing","licensing-as-a-service","license","license-management","software-license","client","restful","restful-api","javascript","wrapper","api","client"],license:"Apache-2.0",author:"Labs64 GmbH",homepage:"https://netlicensing.io",repository:{type:"git",url:"git+https://github.com/Labs64/NetLicensingClient-javascript.git"},bugs:{url:"https://github.com/Labs64/NetLicensingClient-javascript/issues"},contributors:[{name:"Ready Brown",email:"ready.brown@hotmail.de",url:"https://github.com/r-brown"},{name:"Viacheslav Rudkovskiy",email:"viachaslau.rudkovski@labs64.de",url:"https://github.com/v-rudkovskiy"},{name:"Andrei Yushkevich",email:"yushkevich@me.com",url:"https://github.com/yushkevich"}],main:"dist/index.cjs",module:"dist/index.mjs",types:"dist/index.d.ts",exports:{".":{types:"./dist/index.d.ts",import:"./dist/index.mjs",require:"./dist/index.cjs"}},files:["dist"],scripts:{build:"tsup",release:"npm run lint:typecheck && npm run test && npm run build",dev:"tsup --watch",test:"vitest run","test:dev":"vitest watch",lint:"eslint --ext .js,.mjs,.ts src",typecheck:"tsc --noEmit","lint:typecheck":"npm run lint && npm run typecheck"},peerDependencies:{axios:"^1.9.0"},dependencies:{},devDependencies:{"@eslint/js":"^9.39.4","@types/node":"^25.3.5","@typescript-eslint/eslint-plugin":"^8.29.1","@typescript-eslint/parser":"^8.29.1","@vitest/eslint-plugin":"^1.1.43",axios:"^1.13.6",eslint:"^9.39.4","eslint-plugin-import":"^2.31.0",prettier:"3.8.1",tsup:"^8.4.0",typescript:"^5.8.3","typescript-eslint":"^8.29.1",vitest:"^3.2.4"},engines:{node:">= 16.9.0",npm:">= 8.0.0"},browserslist:["> 1%","last 2 versions","not ie <= 10"]};var Lt=n=>{let e=[],o=(t,r)=>{if(t!=null){if(Array.isArray(t)){t.forEach(s=>{o(s,r?`${r}`:"")});return}if(t instanceof Date){e.push(`${r}=${encodeURIComponent(t.toISOString())}`);return}if(typeof t=="object"){Object.keys(t).forEach(s=>{let i=t[s];o(i,r?`${r}[${encodeURIComponent(s)}]`:encodeURIComponent(s))});return}e.push(`${r}=${encodeURIComponent(t)}`)}};return o(n),e.join("&")};var Ee=async(n,e,o,t,r)=>{let s={Accept:"application/json","X-Requested-With":"XMLHttpRequest"};typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]"&&(s["User-agent"]=`NetLicensing/Javascript ${yn.version}/node&${process.version}`);let i={method:e,headers:s,url:encodeURI(`${n.getBaseUrl()}/${o}`),responseType:"json",transformRequest:(d,u)=>u["Content-Type"]==="application/x-www-form-urlencoded"?Lt(d):(u["NetLicensing-Origin"]||(u["NetLicensing-Origin"]=`NetLicensing/Javascript ${yn.version}`),d)};switch(["put","post","patch"].indexOf(e.toLowerCase())>=0?(i.method==="post"&&(s["Content-Type"]="application/x-www-form-urlencoded"),i.data=t):i.params=t,n.getSecurityMode()){case K.BASIC_AUTHENTICATION:{if(!n.getUsername())throw new k('Missing parameter "username"');if(!n.getPassword())throw new k('Missing parameter "password"');i.auth={username:n.getUsername(),password:n.getPassword()}}break;case K.APIKEY_IDENTIFICATION:if(!n.getApiKey())throw new k('Missing parameter "apiKey"');s.Authorization=`Basic ${btoa(`apiKey:${n.getApiKey()}`)}`;break;case K.ANONYMOUS_IDENTIFICATION:break;default:throw new k("Unknown security mode")}let a=r?.axiosInstance||It();try{let d=await a.request(i),u=d.data.infos?.info||[];if(hn(d),Pn(u),r?.onResponse&&r.onResponse(d),u.length>0){r?.onInfo&&r.onInfo(u);let m=u.find(({type:h})=>h==="ERROR");if(m)throw new k(m.value,m.id,d.config,d.request,d)}return d}catch(d){let u=d,m=u.response,h=m?.data?.infos?.info||[];if(hn(m||null),Pn(h),d.isAxiosError){let D=d.message;if(m?.data&&h.length>0){let S=h.find(({type:f})=>f==="ERROR");S&&(D=S.value)}throw new k(D,u.code,u.config,u.request,u.response)}throw d}};var zo=(n,e,o,t)=>Ee(n,"get",e,o,t),Ko=(n,e,o,t)=>Ee(n,"post",e,o,t),Yo=(n,e,o,t)=>Ee(n,"delete",e,o,t);var ri={setAxiosInstance(n){Vo(n)},getAxiosInstance(){return It()},getLastHttpRequestInfo(){return Ho()},getInfo(){return $o()},get(n,e,o,t){return zo(n,e,o,t)},post(n,e,o,t){return Ko(n,e,o,t)},delete(n,e,o,t){return Yo(n,e,o,t)},request(n,e,o,t,r){return Ee(n,e,o,t,r)},toQueryString(n){return Lt(n)}},g=ri;var L=n=>Object.keys(n).map(e=>`${e}=${String(n[e])}`).join(";"),Jo=n=>{let e={};return n.split(";").forEach(o=>{let[t,r]=o.split("=");e[t]=r}),e};var En=n=>typeof n<"u"&&typeof n!="function",qe=n=>En(n)?typeof n=="number"?!Number.isNaN(n):!0:!1,R=(n,e)=>{if(n===null)throw new TypeError(`Parameter "${e}" cannot be null.`);if(!qe(n))throw new TypeError(`Parameter "${e}" has an invalid value.`)},b=(n,e)=>{if(R(n,e),!n)throw new TypeError(`Parameter "${e}" cannot be empty.`)};var Wo=function(n,e){let o=parseInt(e?.pagenumber||"0",10),t=parseInt(e?.itemsnumber||"0",10),r=parseInt(e?.totalpages||"0",10),s=parseInt(e?.totalitems||"0",10),i={getContent(){return n},getPagination(){return{pageNumber:o,itemsNumber:t,totalPages:r,totalItems:s,hasNext:r>o+1}},getPageNumber(){return o},getItemsNumber(){return t},getTotalPages(){return r},getTotalItems(){return s},hasNext(){return r>o+1}};return new Proxy(n,{get(a,d,u){return Object.hasOwn(i,d)?i[d]:Reflect.get(a,d,u)},set(a,d,u,m){return Reflect.set(a,d,u,m)},getPrototypeOf(){return Wo.prototype||null}})},I=Wo;var be=P.Bundle.ENDPOINT_PATH,si=P.Bundle.ENDPOINT_OBTAIN_PATH,xt=P.Bundle.TYPE,ii={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${be}/${e}`,{},o)).data.items?.item.find(s=>s.type===xt);return ee(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,be,t,o)).data.items,i=s?.item.filter(a=>a.type===xt).map(a=>ee(a));return I(i||[],s)},async create(n,e,o){R(e,"bundle");let r=(await g.post(n,be,e.serialize(),o)).data.items?.item.find(s=>s.type===xt);return ee(r)},async update(n,e,o,t){b(e,"number"),R(o,"bundle");let s=(await g.post(n,`${be}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===xt);return ee(s)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${be}/${e}`,{forceCascade:!!o},t)},async obtain(n,e,o,t){b(e,"number"),b(o,"licenseeNumber");let r={[P.Licensee.LICENSEE_NUMBER]:o};return(await g.post(n,`${be}/${e}/${si}`,r,t)).data.items?.item.filter(d=>d.type===P.License.TYPE)?.map(d=>J(d))||[]}},Go=ii;var bn=class{constructor(){this.validations={}}getValidators(){return this.validations}setValidation(e){return this.validations[e.productModuleNumber]=e,this}getValidation(e,o){return this.validations[e]||o}setProductModuleValidation(e){return this.setValidation(e)}getProductModuleValidation(e,o){return this.getValidation(e,o)}setTtl(e){if(!qe(e))throw new TypeError(`Bad ttl:${e.toString()}`);return this.ttl=new Date(e),this}getTtl(){return this.ttl}toString(){let e="ValidationResult [";return Object.keys(this.validations).forEach(o=>{e+=`ProductModule<${o}>`,o in this.validations&&(e+=JSON.stringify(this.validations[o]))}),e+="]",e}},St=()=>new bn;var ce=P.Licensee.ENDPOINT_PATH,ai=P.Licensee.ENDPOINT_PATH_VALIDATE,ci=P.Licensee.ENDPOINT_PATH_TRANSFER,Ct=P.Licensee.TYPE,ui={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${ce}/${e}`,{},o)).data.items?.item.find(s=>s.type===Ct);return te(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,ce,t,o)).data.items,i=s?.item.filter(a=>a.type===Ct).map(a=>te(a));return I(i||[],s)},async create(n,e,o,t){R(o,"licensee");let r=o.serialize();e&&(r.productNumber=e);let i=(await g.post(n,ce,r,t)).data.items?.item.find(a=>a.type===Ct);return te(i)},async update(n,e,o,t){b(e,"number"),R(o,"licensee");let s=(await g.post(n,`${ce}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Ct);return te(s)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${ce}/${e}`,{forceCascade:!!o},t)},async validate(n,e,o,t){b(e,"number");let r={};if(o){let u=o.productNumber;u&&(r.productNumber=u);let m=o.licenseeProperties;Object.keys(m).forEach(D=>{r[D]=o.getLicenseeProperty(D)}),o.isForOfflineUse()&&(r.forOfflineUse=!0),o.isDryRun()&&(r.dryRun=!0);let h=o.getParameters();Object.keys(h).forEach((D,S)=>{r[`${P.ProductModule.PRODUCT_MODULE_NUMBER}${S}`]=D;let f=h[D];f&&Object.keys(f).forEach(y=>{r[y+S]=f[y]})})}let s=await g.post(n,`${ce}/${e}/${ai}`,r,t),i=St(),a=s.data.ttl;return a&&i.setTtl(a),s.data.items?.item.filter(u=>u.type===P.Validation.TYPE)?.forEach(u=>{i.setValidation(N(u))}),i},transfer(n,e,o,t){b(e,"number"),b(o,"sourceLicenseeNumber");let r={sourceLicenseeNumber:o};return g.post(n,`${ce}/${e}/${ci}`,r,t)}},Xo=ui;var Ve=P.License.ENDPOINT_PATH,At=P.License.TYPE,di={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${Ve}/${e}`,{},o)).data.items?.item.find(s=>s.type===At);return J(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,Ve,t,o)).data.items,i=s?.item.filter(a=>a.type===At).map(a=>J(a));return I(i||[],s)},async create(n,e,o,t,r,s){R(r,"license");let i=r.serialize();e&&(i.licenseeNumber=e),o&&(i.licenseTemplateNumber=o),t&&(i.transactionNumber=t);let d=(await g.post(n,Ve,i,s)).data.items?.item.find(u=>u.type===At);return J(d)},async update(n,e,o,t,r){b(e,"number"),R(t,"license");let s=t.serialize();o&&(s.transactionNumber=o);let a=(await g.post(n,`${Ve}/${e}`,s,r)).data.items?.item.find(d=>d.type===At);return J(a)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${Ve}/${e}`,{forceCascade:!!o},t)}},Qo=di;var He=P.LicenseTemplate.ENDPOINT_PATH,Ot=P.LicenseTemplate.TYPE,mi={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${He}/${e}`,{},o)).data.items?.item.find(s=>s.type===Ot);return ne(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,He,t,o)).data.items,i=s?.item.filter(a=>a.type===Ot).map(a=>ne(a));return I(i||[],s)},async create(n,e,o,t){R(o,"licenseTemplate");let r=o.serialize();e&&(r.productModuleNumber=e);let i=(await g.post(n,He,r,t)).data.items?.item.find(a=>a.type===Ot);return ne(i)},async update(n,e,o,t){b(e,"number"),R(o,"licenseTemplate");let s=(await g.post(n,`${He}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Ot);return ne(s)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${He}/${e}`,{forceCascade:!!o},t)}},Zo=mi;var $e=P.Notification.ENDPOINT_PATH,wt=P.Notification.TYPE,pi={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${$e}/${e}`,{},o)).data.items?.item.find(s=>s.type===wt);return oe(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,$e,t,o)).data.items,i=s?.item.filter(a=>a.type===wt).map(a=>oe(a));return I(i||[],s)},async create(n,e,o){R(e,"notification");let r=(await g.post(n,$e,e.serialize(),o)).data.items?.item.find(s=>s.type===wt);return oe(r)},async update(n,e,o,t){b(e,"number"),R(o,"notification");let s=(await g.post(n,`${$e}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===wt);return oe(s)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${$e}/${e}`,{forceCascade:!!o},t)}},er=pi;var Dn=P.PaymentMethod.ENDPOINT_PATH,Rn=P.PaymentMethod.TYPE,li={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${Dn}/${e}`,{},o)).data.items?.item.find(s=>s.type===Rn);return me(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,Dn,t,o)).data.items,i=s?.item.filter(a=>a.type===Rn).map(a=>me(a));return I(i||[],s)},async update(n,e,o,t){b(e,"number"),R(o,"paymentMethod");let s=(await g.post(n,`${Dn}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Rn);return me(s)}},tr=li;var ze=P.ProductModule.ENDPOINT_PATH,Mt=P.ProductModule.TYPE,fi={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${ze}/${e}`,{},o)).data.items?.item.find(s=>s.type===Mt);return ie(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,ze,t,o)).data.items,i=s?.item.filter(a=>a.type===Mt).map(a=>ie(a));return I(i||[],s)},async create(n,e,o,t){R(o,"productModule");let r=o.serialize();e&&(r.productNumber=e);let i=(await g.post(n,ze,r,t)).data.items?.item.find(a=>a.type===Mt);return ie(i)},async update(n,e,o,t){b(e,"number"),R(o,"productModule");let s=(await g.post(n,`${ze}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Mt);return ie(s)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${ze}/${e}`,{forceCascade:!!o},t)}},nr=fi;var Ke=P.Product.ENDPOINT_PATH,_t=P.Product.TYPE,gi={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${Ke}/${e}`,{},o)).data.items?.item.find(s=>s.type===_t);return se(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,Ke,t,o)).data.items,i=s?.item.filter(a=>a.type===_t).map(a=>se(a));return I(i||[],s)},async create(n,e,o){R(e,"product");let r=(await g.post(n,Ke,e.serialize(),o)).data.items?.item.find(s=>s.type===_t);return se(r)},async update(n,e,o,t){b(e,"number"),R(o,"product");let s=(await g.post(n,`${Ke}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===_t);return se(s)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${Ke}/${e}`,{forceCascade:!!o},t)}},or=gi;var Ut=P.Token.ENDPOINT_PATH,Nn=P.Token.TYPE,Ti={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${Ut}/${e}`,{},o)).data.items?.item.find(s=>s.type===Nn);return ye(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,Ut,t,o)).data.items,i=s?.item.filter(a=>a.type===Nn).map(a=>ye(a));return I(i||[],s)},async create(n,e,o){R(e,"token");let r=(await g.post(n,Ut,e.serialize(),o)).data.items?.item.find(s=>s.type===Nn);return ye(r)},delete(n,e,o,t){return b(e,"number"),g.delete(n,`${Ut}/${e}`,{forceCascade:!!o},t)}},rr=Ti;var jt=P.Transaction.ENDPOINT_PATH,Bt=P.Transaction.TYPE,hi={async get(n,e,o){b(e,"number");let r=(await g.get(n,`${jt}/${e}`,{},o)).data.items?.item.find(s=>s.type===Bt);return ae(r)},async list(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let s=(await g.get(n,jt,t,o)).data.items,i=s?.item.filter(a=>a.type===Bt).map(a=>ae(a));return I(i||[],s)},async create(n,e,o){R(e,"transaction");let r=(await g.post(n,jt,e.serialize(),o)).data.items?.item.find(s=>s.type===Bt);return ae(r)},async update(n,e,o,t){b(e,"number"),R(o,"transaction");let s=(await g.post(n,`${jt}/${e}`,o.serialize(),t)).data.items?.item.find(i=>i.type===Bt);return ae(s)}},sr=hi;var vn=P.Utility.ENDPOINT_PATH,Pi={async listLicenseTypes(n,e){let o=`${vn}/${P.Utility.ENDPOINT_PATH_LICENSE_TYPES}`,r=(await g.get(n,o,void 0,e)).data.items,s=P.Utility.LICENSE_TYPE,i=r?.item.filter(a=>a.type===s).map(a=>N(a).name);return I(i||[],r)},async listLicensingModels(n,e){let o=`${vn}/${P.Utility.ENDPOINT_PATH_LICENSING_MODELS}`,r=(await g.get(n,o,void 0,e)).data.items,s=P.Utility.LICENSING_MODEL_TYPE,i=r?.item.filter(a=>a.type===s).map(a=>N(a).name);return I(i||[],r)},async listCountries(n,e,o){let t={};e&&(t[P.FILTER]=typeof e=="string"?e:L(e));let r=`${vn}/${P.Utility.ENDPOINT_PATH_COUNTRIES}`,i=(await g.get(n,r,t,o)).data.items,a=P.Utility.COUNTRY_TYPE,d=i?.item.filter(u=>u.type===a).map(u=>tt(u));return I(d||[],i)}},ir=Pi;var In=class{constructor(e){this.baseUrl=e?.baseUrl||"https://go.netlicensing.io/core/v2/rest",this.securityMode=e?.securityMode||K.BASIC_AUTHENTICATION,this.username=e?.username,this.password=e?.password,this.apiKey=e?.apiKey,this.publicKey=e?.publicKey}setBaseUrl(e){return this.baseUrl=e,this}getBaseUrl(){return this.baseUrl}setSecurityMode(e){return this.securityMode=e,this}getSecurityMode(){return this.securityMode}setUsername(e){return this.username=e,this}getUsername(e){return this.username||e}setPassword(e){return this.password=e,this}getPassword(e){return this.password||e}setApiKey(e){return this.apiKey=e,this}getApiKey(e){return this.apiKey||e}setPublicKey(e){return this.publicKey=e,this}getPublicKey(e){return this.publicKey||e}},ar=n=>new In(n);var Ln=class{constructor(){this.parameters={},this.licenseeProperties={}}setProductNumber(e){return this.productNumber=e,this}getProductNumber(){return this.productNumber}setLicenseeName(e){return this.licenseeProperties.licenseeName=e,this}getLicenseeName(){return this.licenseeProperties.licenseeName}setLicenseeSecret(e){return this.licenseeProperties.licenseeSecret=e,this}getLicenseeSecret(){return this.licenseeProperties.licenseeSecret}getLicenseeProperties(){return this.licenseeProperties}setLicenseeProperty(e,o){return this.licenseeProperties[e]=o,this}getLicenseeProperty(e,o){return this.licenseeProperties[e]||o}setForOfflineUse(e){return this.forOfflineUse=e,this}isForOfflineUse(){return!!this.forOfflineUse}setDryRun(e){return this.dryRun=e,this}isDryRun(){return!!this.dryRun}getParameters(){return this.parameters}setParameter(e,o){return this.parameters[e]=o,this}getParameter(e){return this.parameters[e]}getProductModuleValidationParameters(e){return this.getParameter(e)}setProductModuleValidationParameters(e,o){return this.setParameter(e,o)}},cr=()=>new Ln;return fr(yi);})();
7
7
  //# sourceMappingURL=index.global.js.map