@de./sdk 1.0.5 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/allend/Access.d.ts +51 -0
- package/dist/allend/Access.js +199 -0
- package/dist/allend/Access.js.map +1 -0
- package/dist/allend/Agent/consolidation.d.ts +16 -0
- package/dist/allend/Agent/consolidation.js +38 -0
- package/dist/allend/Agent/consolidation.js.map +1 -0
- package/dist/allend/Agent/delivery.js +43 -0
- package/dist/allend/Agent/delivery.js.map +1 -0
- package/dist/allend/Agent/dispatch.js +24 -0
- package/dist/allend/Agent/dispatch.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Agent/index.d.ts +18 -0
- package/dist/allend/Agent/index.js +74 -0
- package/dist/allend/Agent/index.js.map +1 -0
- package/dist/allend/Agent/navigation.js +25 -0
- package/dist/allend/Agent/navigation.js.map +1 -0
- package/dist/allend/Agent/origin.js +31 -0
- package/dist/allend/Agent/origin.js.map +1 -0
- package/dist/allend/Agent/reallocation.js +17 -0
- package/dist/allend/Agent/reallocation.js.map +1 -0
- package/dist/allend/Agent/realtime.d.ts +36 -0
- package/dist/allend/Agent/realtime.js +111 -0
- package/dist/allend/Agent/realtime.js.map +1 -0
- package/dist/allend/Agent/rides.js +51 -0
- package/dist/allend/Agent/rides.js.map +1 -0
- package/dist/allend/Agent/shipping.js +43 -0
- package/dist/allend/Agent/shipping.js.map +1 -0
- package/dist/allend/CSP/analytics.js +51 -0
- package/dist/allend/CSP/analytics.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/CSP/index.d.ts +4 -0
- package/dist/allend/CSP/index.js +43 -0
- package/dist/allend/CSP/index.js.map +1 -0
- package/dist/allend/CSP/inventory.js +78 -0
- package/dist/allend/CSP/inventory.js.map +1 -0
- package/dist/allend/CSP/orders.js +97 -0
- package/dist/allend/CSP/orders.js.map +1 -0
- package/dist/allend/CSP/webhooks.js +56 -0
- package/dist/allend/CSP/webhooks.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Customer/index.d.ts +10 -0
- package/dist/allend/Customer/index.js +39 -0
- package/dist/allend/Customer/index.js.map +1 -0
- package/dist/allend/Customer/intents.js +55 -0
- package/dist/allend/Customer/intents.js.map +1 -0
- package/dist/allend/Customer/orders.js +43 -0
- package/dist/allend/Customer/orders.js.map +1 -0
- package/dist/allend/Customer/rides.js +50 -0
- package/dist/allend/Customer/rides.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/DEV/developers.d.ts +2 -1
- package/dist/allend/DEV/developers.js +35 -0
- package/dist/allend/DEV/developers.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/DEV/index.d.ts +4 -0
- package/dist/allend/DEV/index.js +37 -0
- package/dist/allend/DEV/index.js.map +1 -0
- package/dist/allend/IoTClient.js +53 -0
- package/dist/allend/IoTClient.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/IoTSP/backend.d.ts +2 -0
- package/dist/allend/IoTSP/backend.js +75 -0
- package/dist/allend/IoTSP/backend.js.map +1 -0
- package/dist/allend/IoTSP/devices.js +61 -0
- package/dist/allend/IoTSP/devices.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/IoTSP/index.d.ts +4 -0
- package/dist/{de.sdk/src/allend → allend}/IoTSP/index.js +24 -45
- package/dist/allend/IoTSP/index.js.map +1 -0
- package/dist/allend/IoTSP/rules.js +81 -0
- package/dist/allend/IoTSP/rules.js.map +1 -0
- package/dist/allend/IoTSP/topics.js +81 -0
- package/dist/allend/IoTSP/topics.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/agents.d.ts +2 -1
- package/dist/allend/LSP/agents.js +89 -0
- package/dist/allend/LSP/agents.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/carriers.d.ts +2 -1
- package/dist/allend/LSP/carriers.js +315 -0
- package/dist/allend/LSP/carriers.js.map +1 -0
- package/dist/allend/LSP/coverage.js +135 -0
- package/dist/allend/LSP/coverage.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/fleets.d.ts +7 -7
- package/dist/allend/LSP/fleets.js +381 -0
- package/dist/allend/LSP/fleets.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/hubs.d.ts +4 -3
- package/dist/allend/LSP/hubs.js +186 -0
- package/dist/allend/LSP/hubs.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/index.d.ts +4 -0
- package/dist/allend/LSP/index.js +55 -0
- package/dist/allend/LSP/index.js.map +1 -0
- package/dist/allend/LSP/inventory.js +56 -0
- package/dist/allend/LSP/inventory.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/operations.d.ts +24 -2
- package/dist/allend/LSP/operations.js +156 -0
- package/dist/allend/LSP/operations.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/orders.d.ts +20 -1
- package/dist/allend/LSP/orders.js +303 -0
- package/dist/allend/LSP/orders.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/pods.d.ts +2 -1
- package/dist/allend/LSP/pods.js +137 -0
- package/dist/allend/LSP/pods.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/pricing.d.ts +15 -4
- package/dist/allend/LSP/pricing.js +151 -0
- package/dist/allend/LSP/pricing.js.map +1 -0
- package/dist/allend/LSP/psl.js +68 -0
- package/dist/allend/LSP/psl.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/LSP/warehouses.d.ts +2 -1
- package/dist/allend/LSP/warehouses.js +94 -0
- package/dist/allend/LSP/warehouses.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/MSI/Controls.d.ts +7 -4
- package/dist/allend/MSI/Controls.js +773 -0
- package/dist/allend/MSI/Controls.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/MSI/Handles.d.ts +5 -4
- package/dist/allend/MSI/Handles.js +378 -0
- package/dist/allend/MSI/Handles.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/MSI/Plugins.d.ts +2 -2
- package/dist/{de.sdk/src/allend → allend}/MSI/Plugins.js +12 -15
- package/dist/allend/MSI/Plugins.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/MSI/index.d.ts +4 -3
- package/dist/allend/MSI/index.js +191 -0
- package/dist/allend/MSI/index.js.map +1 -0
- package/dist/allend/MSI/native.d.ts +32 -0
- package/dist/allend/MSI/native.js +246 -0
- package/dist/allend/MSI/native.js.map +1 -0
- package/dist/allend/MSI/token.d.ts +12 -0
- package/dist/allend/MSI/token.js +21 -0
- package/dist/allend/MSI/token.js.map +1 -0
- package/dist/allend/OTPAuth/index.d.ts +77 -0
- package/dist/allend/OTPAuth/index.js +69 -0
- package/dist/allend/OTPAuth/index.js.map +1 -0
- package/dist/allend/Pipelines/analytics.js +24 -0
- package/dist/allend/Pipelines/analytics.js.map +1 -0
- package/dist/allend/Pipelines/escalations.js +25 -0
- package/dist/allend/Pipelines/escalations.js.map +1 -0
- package/dist/allend/Pipelines/executions.js +44 -0
- package/dist/allend/Pipelines/executions.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Pipelines/index.d.ts +4 -0
- package/dist/allend/Pipelines/index.js +88 -0
- package/dist/allend/Pipelines/index.js.map +1 -0
- package/dist/allend/Pipelines/interventions.js +25 -0
- package/dist/allend/Pipelines/interventions.js.map +1 -0
- package/dist/allend/Pipelines/monitor.js +30 -0
- package/dist/allend/Pipelines/monitor.js.map +1 -0
- package/dist/allend/Pipelines/queries.js +25 -0
- package/dist/allend/Pipelines/queries.js.map +1 -0
- package/dist/allend/Pipelines/templates.js +46 -0
- package/dist/allend/Pipelines/templates.js.map +1 -0
- package/dist/allend/Pipelines/utils.js.map +1 -0
- package/dist/allend/Pipelines/webhooks.js +35 -0
- package/dist/allend/Pipelines/webhooks.js.map +1 -0
- package/dist/allend/Pipelines/workers.js +45 -0
- package/dist/allend/Pipelines/workers.js.map +1 -0
- package/dist/allend/Queries/capacity.js +44 -0
- package/dist/allend/Queries/capacity.js.map +1 -0
- package/dist/allend/Queries/discovery.js +45 -0
- package/dist/allend/Queries/discovery.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Queries/index.d.ts +4 -0
- package/dist/allend/Queries/index.js +40 -0
- package/dist/allend/Queries/index.js.map +1 -0
- package/dist/allend/Queries/matching.js +18 -0
- package/dist/allend/Queries/matching.js.map +1 -0
- package/dist/allend/Queries/performance.js +31 -0
- package/dist/allend/Queries/performance.js.map +1 -0
- package/dist/allend/Queries/pricing.js +43 -0
- package/dist/allend/Queries/pricing.js.map +1 -0
- package/dist/allend/Realtime/index.js +62 -0
- package/dist/allend/Realtime/index.js.map +1 -0
- package/dist/allend/Shared/account.js +22 -0
- package/dist/allend/Shared/account.js.map +1 -0
- package/dist/allend/Shared/buckets.js +95 -0
- package/dist/allend/Shared/buckets.js.map +1 -0
- package/dist/allend/Shared/context.js +33 -0
- package/dist/allend/Shared/context.js.map +1 -0
- package/dist/allend/Shared/faqs.js +87 -0
- package/dist/allend/Shared/faqs.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Shared/invitation.d.ts +10 -2
- package/dist/allend/Shared/invitation.js +40 -0
- package/dist/allend/Shared/invitation.js.map +1 -0
- package/dist/allend/Shared/operators.js +37 -0
- package/dist/allend/Shared/operators.js.map +1 -0
- package/dist/allend/Shared/users.js +29 -0
- package/dist/allend/Shared/users.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Tracking/index.d.ts +4 -0
- package/dist/allend/Tracking/index.js +39 -0
- package/dist/allend/Tracking/index.js.map +1 -0
- package/dist/allend/Utilities/common.js +53 -0
- package/dist/allend/Utilities/common.js.map +1 -0
- package/dist/allend/Utilities/fares.js +39 -0
- package/dist/allend/Utilities/fares.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Utilities/index.d.ts +4 -0
- package/dist/allend/Utilities/index.js +36 -0
- package/dist/allend/Utilities/index.js.map +1 -0
- package/dist/allend/Utilities/nearby.js +32 -0
- package/dist/allend/Utilities/nearby.js.map +1 -0
- package/dist/allend/Workflows/Client.d.ts +17 -0
- package/dist/allend/Workflows/Client.js +50 -0
- package/dist/allend/Workflows/Client.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Workflows/Delivery.js +3 -4
- package/dist/allend/Workflows/Delivery.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/Workflows/index.js +4 -6
- package/dist/allend/Workflows/index.js.map +1 -0
- package/dist/allend/Workspace/index.d.ts +162 -0
- package/dist/allend/Workspace/index.js +220 -0
- package/dist/allend/Workspace/index.js.map +1 -0
- package/dist/{de.sdk/src/allend → allend}/index.d.ts +2 -1
- package/dist/{de.sdk/src/allend → allend}/index.js +10 -10
- package/dist/allend/index.js.map +1 -0
- package/dist/{de.sdk/src/backend → backend}/Auth.d.ts +12 -0
- package/dist/backend/Auth.js +166 -0
- package/dist/backend/Auth.js.map +1 -0
- package/dist/baseUrl.d.ts +66 -0
- package/dist/baseUrl.js +82 -0
- package/dist/baseUrl.js.map +1 -0
- package/dist/{de.sdk/src/index.d.ts → core.d.ts} +31 -9
- package/dist/{de.sdk/src/index.js → core.js} +61 -43
- package/dist/core.js.map +1 -0
- package/dist/error.d.ts +17 -0
- package/dist/error.js +26 -0
- package/dist/error.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +44 -1
- package/dist/index.js.map +1 -0
- package/dist/react-native.d.ts +30 -0
- package/dist/react-native.js +55 -0
- package/dist/react-native.js.map +1 -0
- package/dist/response.d.ts +9 -0
- package/dist/response.js +42 -0
- package/dist/response.js.map +1 -0
- package/dist/types/access.d.ts +57 -0
- package/dist/types/channel.d.ts +45 -0
- package/dist/types/index.d.ts +45 -2
- package/dist/utils/index.d.ts +30 -0
- package/dist/utils/index.js +18 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/{de.sdk/src/utils → utils}/stream.js +25 -26
- package/dist/utils/stream.js.map +1 -0
- package/package.json +39 -20
- package/src/allend/Access.ts +146 -13
- package/src/allend/Agent/consolidation.ts +20 -8
- package/src/allend/Agent/delivery.ts +6 -16
- package/src/allend/Agent/dispatch.ts +3 -7
- package/src/allend/Agent/index.ts +30 -13
- package/src/allend/Agent/navigation.ts +3 -7
- package/src/allend/Agent/origin.ts +4 -10
- package/src/allend/Agent/reallocation.ts +2 -4
- package/src/allend/Agent/realtime.ts +140 -0
- package/src/allend/Agent/rides.ts +7 -19
- package/src/allend/Agent/shipping.ts +6 -16
- package/src/allend/CSP/analytics.ts +7 -19
- package/src/allend/CSP/index.ts +7 -1
- package/src/allend/CSP/inventory.ts +11 -31
- package/src/allend/CSP/orders.ts +14 -40
- package/src/allend/CSP/webhooks.ts +8 -22
- package/src/allend/Customer/index.ts +14 -2
- package/src/allend/Customer/intents.ts +7 -19
- package/src/allend/Customer/orders.ts +6 -16
- package/src/allend/Customer/rides.ts +7 -19
- package/src/allend/DEV/developers.ts +7 -13
- package/src/allend/DEV/index.ts +7 -1
- package/src/allend/IoTSP/backend.ts +5 -3
- package/src/allend/IoTSP/devices.ts +9 -25
- package/src/allend/IoTSP/index.ts +7 -1
- package/src/allend/IoTSP/rules.ts +12 -34
- package/src/allend/IoTSP/topics.ts +12 -34
- package/src/allend/LSP/agents.ts +15 -37
- package/src/allend/LSP/carriers.ts +49 -139
- package/src/allend/LSP/coverage.ts +39 -115
- package/src/allend/LSP/fleets.ts +62 -176
- package/src/allend/LSP/hubs.ts +29 -77
- package/src/allend/LSP/index.ts +7 -1
- package/src/allend/LSP/inventory.ts +7 -19
- package/src/allend/LSP/operations.ts +71 -47
- package/src/allend/LSP/orders.ts +85 -116
- package/src/allend/LSP/pods.ts +22 -58
- package/src/allend/LSP/pricing.ts +42 -56
- package/src/allend/LSP/psl.ts +9 -25
- package/src/allend/LSP/warehouses.ts +14 -34
- package/src/allend/MSI/Controls.ts +104 -88
- package/src/allend/MSI/Handles.ts +23 -14
- package/src/allend/MSI/Plugins.ts +3 -3
- package/src/allend/MSI/index.ts +85 -16
- package/src/allend/MSI/native.tsx +314 -0
- package/src/allend/MSI/token.ts +20 -0
- package/src/allend/OTPAuth/index.ts +125 -32
- package/src/allend/Pipelines/analytics.ts +3 -7
- package/src/allend/Pipelines/escalations.ts +3 -7
- package/src/allend/Pipelines/executions.ts +6 -16
- package/src/allend/Pipelines/index.ts +13 -19
- package/src/allend/Pipelines/interventions.ts +3 -7
- package/src/allend/Pipelines/monitor.ts +4 -10
- package/src/allend/Pipelines/queries.ts +3 -7
- package/src/allend/Pipelines/templates.ts +5 -13
- package/src/allend/Pipelines/webhooks.ts +2 -4
- package/src/allend/Pipelines/workers.ts +4 -10
- package/src/allend/Queries/capacity.ts +6 -16
- package/src/allend/Queries/discovery.ts +6 -16
- package/src/allend/Queries/index.ts +6 -0
- package/src/allend/Queries/matching.ts +2 -4
- package/src/allend/Queries/performance.ts +4 -10
- package/src/allend/Queries/pricing.ts +6 -16
- package/src/allend/Realtime/index.ts +4 -2
- package/src/allend/Shared/account.ts +3 -7
- package/src/allend/Shared/buckets.ts +14 -40
- package/src/allend/Shared/faqs.ts +13 -37
- package/src/allend/Shared/invitation.ts +14 -11
- package/src/allend/Shared/operators.ts +5 -13
- package/src/allend/Shared/users.ts +4 -10
- package/src/allend/Tracking/index.ts +9 -5
- package/src/allend/Utilities/common.ts +7 -19
- package/src/allend/Utilities/fares.ts +5 -13
- package/src/allend/Utilities/index.ts +6 -0
- package/src/allend/Utilities/nearby.ts +4 -10
- package/src/allend/Workflows/Client.ts +9 -15
- package/src/allend/Workspace/index.ts +256 -67
- package/src/allend/index.ts +2 -0
- package/src/backend/Auth.ts +16 -3
- package/src/baseUrl.ts +68 -4
- package/src/core.ts +146 -0
- package/src/error.ts +27 -0
- package/src/index.ts +14 -103
- package/src/react-native.ts +43 -0
- package/src/response.ts +38 -0
- package/src/types/access.d.ts +57 -0
- package/src/types/channel.d.ts +45 -0
- package/src/types/index.d.ts +45 -2
- package/src/utils/index.ts +15 -0
- package/dist/de.sdk/src/allend/Access.d.ts +0 -15
- package/dist/de.sdk/src/allend/Access.js +0 -164
- package/dist/de.sdk/src/allend/Access.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/consolidation.d.ts +0 -8
- package/dist/de.sdk/src/allend/Agent/consolidation.js +0 -85
- package/dist/de.sdk/src/allend/Agent/consolidation.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/delivery.js +0 -140
- package/dist/de.sdk/src/allend/Agent/delivery.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/dispatch.js +0 -85
- package/dist/de.sdk/src/allend/Agent/dispatch.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/index.js +0 -158
- package/dist/de.sdk/src/allend/Agent/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/navigation.js +0 -86
- package/dist/de.sdk/src/allend/Agent/navigation.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/origin.js +0 -104
- package/dist/de.sdk/src/allend/Agent/origin.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/reallocation.js +0 -66
- package/dist/de.sdk/src/allend/Agent/reallocation.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/rides.js +0 -160
- package/dist/de.sdk/src/allend/Agent/rides.js.map +0 -1
- package/dist/de.sdk/src/allend/Agent/shipping.js +0 -140
- package/dist/de.sdk/src/allend/Agent/shipping.js.map +0 -1
- package/dist/de.sdk/src/allend/CSP/analytics.js +0 -160
- package/dist/de.sdk/src/allend/CSP/analytics.js.map +0 -1
- package/dist/de.sdk/src/allend/CSP/index.js +0 -60
- package/dist/de.sdk/src/allend/CSP/index.js.map +0 -1
- package/dist/de.sdk/src/allend/CSP/inventory.js +0 -235
- package/dist/de.sdk/src/allend/CSP/inventory.js.map +0 -1
- package/dist/de.sdk/src/allend/CSP/orders.js +0 -290
- package/dist/de.sdk/src/allend/CSP/orders.js.map +0 -1
- package/dist/de.sdk/src/allend/CSP/webhooks.js +0 -177
- package/dist/de.sdk/src/allend/CSP/webhooks.js.map +0 -1
- package/dist/de.sdk/src/allend/Customer/index.js +0 -55
- package/dist/de.sdk/src/allend/Customer/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Customer/intents.js +0 -164
- package/dist/de.sdk/src/allend/Customer/intents.js.map +0 -1
- package/dist/de.sdk/src/allend/Customer/orders.js +0 -140
- package/dist/de.sdk/src/allend/Customer/orders.js.map +0 -1
- package/dist/de.sdk/src/allend/Customer/rides.js +0 -159
- package/dist/de.sdk/src/allend/Customer/rides.js.map +0 -1
- package/dist/de.sdk/src/allend/DEV/developers.js +0 -120
- package/dist/de.sdk/src/allend/DEV/developers.js.map +0 -1
- package/dist/de.sdk/src/allend/DEV/index.js +0 -54
- package/dist/de.sdk/src/allend/DEV/index.js.map +0 -1
- package/dist/de.sdk/src/allend/IoTClient.js +0 -59
- package/dist/de.sdk/src/allend/IoTClient.js.map +0 -1
- package/dist/de.sdk/src/allend/IoTSP/backend.js +0 -90
- package/dist/de.sdk/src/allend/IoTSP/backend.js.map +0 -1
- package/dist/de.sdk/src/allend/IoTSP/devices.js +0 -194
- package/dist/de.sdk/src/allend/IoTSP/devices.js.map +0 -1
- package/dist/de.sdk/src/allend/IoTSP/index.js.map +0 -1
- package/dist/de.sdk/src/allend/IoTSP/rules.js +0 -250
- package/dist/de.sdk/src/allend/IoTSP/rules.js.map +0 -1
- package/dist/de.sdk/src/allend/IoTSP/topics.js +0 -250
- package/dist/de.sdk/src/allend/IoTSP/topics.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/agents.js +0 -270
- package/dist/de.sdk/src/allend/LSP/agents.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/carriers.js +0 -904
- package/dist/de.sdk/src/allend/LSP/carriers.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/coverage.js +0 -628
- package/dist/de.sdk/src/allend/LSP/coverage.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/fleets.js +0 -1102
- package/dist/de.sdk/src/allend/LSP/fleets.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/hubs.js +0 -523
- package/dist/de.sdk/src/allend/LSP/hubs.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/index.js +0 -72
- package/dist/de.sdk/src/allend/LSP/index.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/inventory.js +0 -165
- package/dist/de.sdk/src/allend/LSP/inventory.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/operations.js +0 -330
- package/dist/de.sdk/src/allend/LSP/operations.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/orders.js +0 -760
- package/dist/de.sdk/src/allend/LSP/orders.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/pods.js +0 -402
- package/dist/de.sdk/src/allend/LSP/pods.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/pricing.js +0 -388
- package/dist/de.sdk/src/allend/LSP/pricing.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/psl.js +0 -201
- package/dist/de.sdk/src/allend/LSP/psl.js.map +0 -1
- package/dist/de.sdk/src/allend/LSP/warehouses.js +0 -263
- package/dist/de.sdk/src/allend/LSP/warehouses.js.map +0 -1
- package/dist/de.sdk/src/allend/MSI/Controls.js +0 -801
- package/dist/de.sdk/src/allend/MSI/Controls.js.map +0 -1
- package/dist/de.sdk/src/allend/MSI/Handles.js +0 -475
- package/dist/de.sdk/src/allend/MSI/Handles.js.map +0 -1
- package/dist/de.sdk/src/allend/MSI/Plugins.js.map +0 -1
- package/dist/de.sdk/src/allend/MSI/index.js +0 -155
- package/dist/de.sdk/src/allend/MSI/index.js.map +0 -1
- package/dist/de.sdk/src/allend/OTPAuth/index.d.ts +0 -20
- package/dist/de.sdk/src/allend/OTPAuth/index.js +0 -92
- package/dist/de.sdk/src/allend/OTPAuth/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/analytics.js +0 -85
- package/dist/de.sdk/src/allend/Pipelines/analytics.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/escalations.js +0 -86
- package/dist/de.sdk/src/allend/Pipelines/escalations.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/executions.js +0 -141
- package/dist/de.sdk/src/allend/Pipelines/executions.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/index.js +0 -213
- package/dist/de.sdk/src/allend/Pipelines/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/interventions.js +0 -86
- package/dist/de.sdk/src/allend/Pipelines/interventions.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/monitor.js +0 -103
- package/dist/de.sdk/src/allend/Pipelines/monitor.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/queries.js +0 -86
- package/dist/de.sdk/src/allend/Pipelines/queries.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/templates.js +0 -141
- package/dist/de.sdk/src/allend/Pipelines/templates.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/utils.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/webhooks.js +0 -104
- package/dist/de.sdk/src/allend/Pipelines/webhooks.js.map +0 -1
- package/dist/de.sdk/src/allend/Pipelines/workers.js +0 -138
- package/dist/de.sdk/src/allend/Pipelines/workers.js.map +0 -1
- package/dist/de.sdk/src/allend/Queries/capacity.js +0 -141
- package/dist/de.sdk/src/allend/Queries/capacity.js.map +0 -1
- package/dist/de.sdk/src/allend/Queries/discovery.js +0 -142
- package/dist/de.sdk/src/allend/Queries/discovery.js.map +0 -1
- package/dist/de.sdk/src/allend/Queries/index.js +0 -57
- package/dist/de.sdk/src/allend/Queries/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Queries/matching.js +0 -67
- package/dist/de.sdk/src/allend/Queries/matching.js.map +0 -1
- package/dist/de.sdk/src/allend/Queries/performance.js +0 -104
- package/dist/de.sdk/src/allend/Queries/performance.js.map +0 -1
- package/dist/de.sdk/src/allend/Queries/pricing.js +0 -140
- package/dist/de.sdk/src/allend/Queries/pricing.js.map +0 -1
- package/dist/de.sdk/src/allend/Realtime/index.js +0 -79
- package/dist/de.sdk/src/allend/Realtime/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/account.js +0 -83
- package/dist/de.sdk/src/allend/Shared/account.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/buckets.js +0 -288
- package/dist/de.sdk/src/allend/Shared/buckets.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/context.js +0 -51
- package/dist/de.sdk/src/allend/Shared/context.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/faqs.js +0 -268
- package/dist/de.sdk/src/allend/Shared/faqs.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/invitation.js +0 -105
- package/dist/de.sdk/src/allend/Shared/invitation.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/operators.js +0 -122
- package/dist/de.sdk/src/allend/Shared/operators.js.map +0 -1
- package/dist/de.sdk/src/allend/Shared/users.js +0 -102
- package/dist/de.sdk/src/allend/Shared/users.js.map +0 -1
- package/dist/de.sdk/src/allend/Tracking/index.js +0 -102
- package/dist/de.sdk/src/allend/Tracking/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Utilities/common.js +0 -162
- package/dist/de.sdk/src/allend/Utilities/common.js.map +0 -1
- package/dist/de.sdk/src/allend/Utilities/fares.js +0 -124
- package/dist/de.sdk/src/allend/Utilities/fares.js.map +0 -1
- package/dist/de.sdk/src/allend/Utilities/index.js +0 -53
- package/dist/de.sdk/src/allend/Utilities/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Utilities/nearby.js +0 -105
- package/dist/de.sdk/src/allend/Utilities/nearby.js.map +0 -1
- package/dist/de.sdk/src/allend/Workflows/Client.d.ts +0 -10
- package/dist/de.sdk/src/allend/Workflows/Client.js +0 -144
- package/dist/de.sdk/src/allend/Workflows/Client.js.map +0 -1
- package/dist/de.sdk/src/allend/Workflows/Delivery.js.map +0 -1
- package/dist/de.sdk/src/allend/Workflows/index.js.map +0 -1
- package/dist/de.sdk/src/allend/Workspace/index.d.ts +0 -18
- package/dist/de.sdk/src/allend/Workspace/index.js +0 -225
- package/dist/de.sdk/src/allend/Workspace/index.js.map +0 -1
- package/dist/de.sdk/src/allend/index.js.map +0 -1
- package/dist/de.sdk/src/backend/Auth.js +0 -281
- package/dist/de.sdk/src/backend/Auth.js.map +0 -1
- package/dist/de.sdk/src/baseUrl.d.ts +0 -20
- package/dist/de.sdk/src/baseUrl.js +0 -25
- package/dist/de.sdk/src/baseUrl.js.map +0 -1
- package/dist/de.sdk/src/index.js.map +0 -1
- package/dist/de.sdk/src/utils/index.d.ts +0 -16
- package/dist/de.sdk/src/utils/index.js +0 -24
- package/dist/de.sdk/src/utils/index.js.map +0 -1
- package/dist/de.sdk/src/utils/stream.js.map +0 -1
- package/dist/de.types/src/api.d.ts +0 -112
- package/dist/de.types/src/api.js +0 -92
- package/dist/de.types/src/api.js.map +0 -1
- package/dist/de.types/src/auth.d.ts +0 -108
- package/dist/de.types/src/auth.js +0 -80
- package/dist/de.types/src/auth.js.map +0 -1
- package/dist/de.types/src/aux/agent-rvs.d.ts +0 -1204
- package/dist/de.types/src/aux/agent-rvs.js +0 -444
- package/dist/de.types/src/aux/agent-rvs.js.map +0 -1
- package/dist/de.types/src/aux/agents.d.ts +0 -1572
- package/dist/de.types/src/aux/agents.js +0 -487
- package/dist/de.types/src/aux/agents.js.map +0 -1
- package/dist/de.types/src/aux/customer-rvs.d.ts +0 -710
- package/dist/de.types/src/aux/customer-rvs.js +0 -321
- package/dist/de.types/src/aux/customer-rvs.js.map +0 -1
- package/dist/de.types/src/aux/customers.d.ts +0 -378
- package/dist/de.types/src/aux/customers.js +0 -67
- package/dist/de.types/src/aux/customers.js.map +0 -1
- package/dist/de.types/src/aux/index.d.ts +0 -4
- package/dist/de.types/src/aux/index.js +0 -21
- package/dist/de.types/src/aux/index.js.map +0 -1
- package/dist/de.types/src/billing.d.ts +0 -366
- package/dist/de.types/src/billing.js +0 -308
- package/dist/de.types/src/billing.js.map +0 -1
- package/dist/de.types/src/bucket.d.ts +0 -96
- package/dist/de.types/src/bucket.js +0 -52
- package/dist/de.types/src/bucket.js.map +0 -1
- package/dist/de.types/src/context.d.ts +0 -147
- package/dist/de.types/src/context.js +0 -148
- package/dist/de.types/src/context.js.map +0 -1
- package/dist/de.types/src/csp/analytics.d.ts +0 -269
- package/dist/de.types/src/csp/analytics.js +0 -185
- package/dist/de.types/src/csp/analytics.js.map +0 -1
- package/dist/de.types/src/csp/base.d.ts +0 -10
- package/dist/de.types/src/csp/base.js +0 -17
- package/dist/de.types/src/csp/base.js.map +0 -1
- package/dist/de.types/src/csp/index.d.ts +0 -106
- package/dist/de.types/src/csp/index.js +0 -48
- package/dist/de.types/src/csp/index.js.map +0 -1
- package/dist/de.types/src/csp/inventory.d.ts +0 -360
- package/dist/de.types/src/csp/inventory.js +0 -267
- package/dist/de.types/src/csp/inventory.js.map +0 -1
- package/dist/de.types/src/csp/order.d.ts +0 -1456
- package/dist/de.types/src/csp/order.js +0 -375
- package/dist/de.types/src/csp/order.js.map +0 -1
- package/dist/de.types/src/csp/webhook.d.ts +0 -380
- package/dist/de.types/src/csp/webhook.js +0 -207
- package/dist/de.types/src/csp/webhook.js.map +0 -1
- package/dist/de.types/src/de.profile.d.ts +0 -410
- package/dist/de.types/src/de.profile.js +0 -98
- package/dist/de.types/src/de.profile.js.map +0 -1
- package/dist/de.types/src/dev/developer.d.ts +0 -210
- package/dist/de.types/src/dev/developer.js +0 -55
- package/dist/de.types/src/dev/developer.js.map +0 -1
- package/dist/de.types/src/dev/index.d.ts +0 -132
- package/dist/de.types/src/dev/index.js +0 -79
- package/dist/de.types/src/dev/index.js.map +0 -1
- package/dist/de.types/src/entity.d.ts +0 -158
- package/dist/de.types/src/entity.js +0 -127
- package/dist/de.types/src/entity.js.map +0 -1
- package/dist/de.types/src/events.d.ts +0 -1843
- package/dist/de.types/src/events.js +0 -303
- package/dist/de.types/src/events.js.map +0 -1
- package/dist/de.types/src/faq.d.ts +0 -59
- package/dist/de.types/src/faq.js +0 -31
- package/dist/de.types/src/faq.js.map +0 -1
- package/dist/de.types/src/geo.d.ts +0 -122
- package/dist/de.types/src/geo.js +0 -87
- package/dist/de.types/src/geo.js.map +0 -1
- package/dist/de.types/src/index.d.ts +0 -27
- package/dist/de.types/src/index.js +0 -59
- package/dist/de.types/src/index.js.map +0 -1
- package/dist/de.types/src/inventory.d.ts +0 -1346
- package/dist/de.types/src/inventory.js +0 -356
- package/dist/de.types/src/inventory.js.map +0 -1
- package/dist/de.types/src/iotsp/device.d.ts +0 -580
- package/dist/de.types/src/iotsp/device.js +0 -277
- package/dist/de.types/src/iotsp/device.js.map +0 -1
- package/dist/de.types/src/iotsp/index.d.ts +0 -110
- package/dist/de.types/src/iotsp/index.js +0 -76
- package/dist/de.types/src/iotsp/index.js.map +0 -1
- package/dist/de.types/src/iotsp/rule.d.ts +0 -339
- package/dist/de.types/src/iotsp/rule.js +0 -172
- package/dist/de.types/src/iotsp/rule.js.map +0 -1
- package/dist/de.types/src/iotsp/topic.d.ts +0 -248
- package/dist/de.types/src/iotsp/topic.js +0 -139
- package/dist/de.types/src/iotsp/topic.js.map +0 -1
- package/dist/de.types/src/lsp/carrier/analytics.d.ts +0 -1190
- package/dist/de.types/src/lsp/carrier/analytics.js +0 -354
- package/dist/de.types/src/lsp/carrier/analytics.js.map +0 -1
- package/dist/de.types/src/lsp/carrier/capabilities.d.ts +0 -3602
- package/dist/de.types/src/lsp/carrier/capabilities.js +0 -880
- package/dist/de.types/src/lsp/carrier/capabilities.js.map +0 -1
- package/dist/de.types/src/lsp/carrier/capacities.d.ts +0 -4435
- package/dist/de.types/src/lsp/carrier/capacities.js +0 -615
- package/dist/de.types/src/lsp/carrier/capacities.js.map +0 -1
- package/dist/de.types/src/lsp/carrier/index.d.ts +0 -733
- package/dist/de.types/src/lsp/carrier/index.js +0 -150
- package/dist/de.types/src/lsp/carrier/index.js.map +0 -1
- package/dist/de.types/src/lsp/carrier/performance.d.ts +0 -566
- package/dist/de.types/src/lsp/carrier/performance.js +0 -127
- package/dist/de.types/src/lsp/carrier/performance.js.map +0 -1
- package/dist/de.types/src/lsp/carrier/utilities.d.ts +0 -6670
- package/dist/de.types/src/lsp/carrier/utilities.js +0 -597
- package/dist/de.types/src/lsp/carrier/utilities.js.map +0 -1
- package/dist/de.types/src/lsp/consolidation.d.ts +0 -792
- package/dist/de.types/src/lsp/consolidation.js +0 -343
- package/dist/de.types/src/lsp/consolidation.js.map +0 -1
- package/dist/de.types/src/lsp/coverage.d.ts +0 -7448
- package/dist/de.types/src/lsp/coverage.js +0 -706
- package/dist/de.types/src/lsp/coverage.js.map +0 -1
- package/dist/de.types/src/lsp/fleet/index.d.ts +0 -1127
- package/dist/de.types/src/lsp/fleet/index.js +0 -269
- package/dist/de.types/src/lsp/fleet/index.js.map +0 -1
- package/dist/de.types/src/lsp/fleet/maintenance.d.ts +0 -2021
- package/dist/de.types/src/lsp/fleet/maintenance.js +0 -386
- package/dist/de.types/src/lsp/fleet/maintenance.js.map +0 -1
- package/dist/de.types/src/lsp/fleet/parking.d.ts +0 -2042
- package/dist/de.types/src/lsp/fleet/parking.js +0 -458
- package/dist/de.types/src/lsp/fleet/parking.js.map +0 -1
- package/dist/de.types/src/lsp/fleet/vehicle.d.ts +0 -782
- package/dist/de.types/src/lsp/fleet/vehicle.js +0 -314
- package/dist/de.types/src/lsp/fleet/vehicle.js.map +0 -1
- package/dist/de.types/src/lsp/graph.d.ts +0 -211
- package/dist/de.types/src/lsp/graph.js +0 -92
- package/dist/de.types/src/lsp/graph.js.map +0 -1
- package/dist/de.types/src/lsp/hub/analytics.d.ts +0 -4293
- package/dist/de.types/src/lsp/hub/analytics.js +0 -219
- package/dist/de.types/src/lsp/hub/analytics.js.map +0 -1
- package/dist/de.types/src/lsp/hub/capabilities.d.ts +0 -1466
- package/dist/de.types/src/lsp/hub/capabilities.js +0 -464
- package/dist/de.types/src/lsp/hub/capabilities.js.map +0 -1
- package/dist/de.types/src/lsp/hub/capacities.d.ts +0 -4277
- package/dist/de.types/src/lsp/hub/capacities.js +0 -495
- package/dist/de.types/src/lsp/hub/capacities.js.map +0 -1
- package/dist/de.types/src/lsp/hub/index.d.ts +0 -2783
- package/dist/de.types/src/lsp/hub/index.js +0 -268
- package/dist/de.types/src/lsp/hub/index.js.map +0 -1
- package/dist/de.types/src/lsp/hub/performance.d.ts +0 -390
- package/dist/de.types/src/lsp/hub/performance.js +0 -78
- package/dist/de.types/src/lsp/hub/performance.js.map +0 -1
- package/dist/de.types/src/lsp/hub/utilities.d.ts +0 -2995
- package/dist/de.types/src/lsp/hub/utilities.js +0 -521
- package/dist/de.types/src/lsp/hub/utilities.js.map +0 -1
- package/dist/de.types/src/lsp/index.d.ts +0 -156
- package/dist/de.types/src/lsp/index.js +0 -124
- package/dist/de.types/src/lsp/index.js.map +0 -1
- package/dist/de.types/src/lsp/operations.d.ts +0 -562
- package/dist/de.types/src/lsp/operations.js +0 -265
- package/dist/de.types/src/lsp/operations.js.map +0 -1
- package/dist/de.types/src/lsp/order/delivery.d.ts +0 -1118
- package/dist/de.types/src/lsp/order/delivery.js +0 -177
- package/dist/de.types/src/lsp/order/delivery.js.map +0 -1
- package/dist/de.types/src/lsp/order/flow/processes.d.ts +0 -7
- package/dist/de.types/src/lsp/order/flow/processes.js +0 -67
- package/dist/de.types/src/lsp/order/flow/processes.js.map +0 -1
- package/dist/de.types/src/lsp/order/flow/stages.d.ts +0 -7
- package/dist/de.types/src/lsp/order/flow/stages.js +0 -111
- package/dist/de.types/src/lsp/order/flow/stages.js.map +0 -1
- package/dist/de.types/src/lsp/order/inbound.d.ts +0 -1164
- package/dist/de.types/src/lsp/order/inbound.js +0 -193
- package/dist/de.types/src/lsp/order/inbound.js.map +0 -1
- package/dist/de.types/src/lsp/order/internal.d.ts +0 -1403
- package/dist/de.types/src/lsp/order/internal.js +0 -263
- package/dist/de.types/src/lsp/order/internal.js.map +0 -1
- package/dist/de.types/src/lsp/order/management.d.ts +0 -540
- package/dist/de.types/src/lsp/order/management.js +0 -326
- package/dist/de.types/src/lsp/order/management.js.map +0 -1
- package/dist/de.types/src/lsp/order/passthrough.d.ts +0 -1815
- package/dist/de.types/src/lsp/order/passthrough.js +0 -368
- package/dist/de.types/src/lsp/order/passthrough.js.map +0 -1
- package/dist/de.types/src/lsp/order/ride.d.ts +0 -1055
- package/dist/de.types/src/lsp/order/ride.js +0 -174
- package/dist/de.types/src/lsp/order/ride.js.map +0 -1
- package/dist/de.types/src/lsp/order/shipping.d.ts +0 -1523
- package/dist/de.types/src/lsp/order/shipping.js +0 -231
- package/dist/de.types/src/lsp/order/shipping.js.map +0 -1
- package/dist/de.types/src/lsp/pod/index.d.ts +0 -804
- package/dist/de.types/src/lsp/pod/index.js +0 -250
- package/dist/de.types/src/lsp/pod/index.js.map +0 -1
- package/dist/de.types/src/lsp/pricing.d.ts +0 -1810
- package/dist/de.types/src/lsp/pricing.js +0 -972
- package/dist/de.types/src/lsp/pricing.js.map +0 -1
- package/dist/de.types/src/lsp/psl.d.ts +0 -784
- package/dist/de.types/src/lsp/psl.js +0 -333
- package/dist/de.types/src/lsp/psl.js.map +0 -1
- package/dist/de.types/src/lsp/terminal/analytics.d.ts +0 -277
- package/dist/de.types/src/lsp/terminal/analytics.js +0 -310
- package/dist/de.types/src/lsp/terminal/analytics.js.map +0 -1
- package/dist/de.types/src/lsp/terminal/capabilities.d.ts +0 -796
- package/dist/de.types/src/lsp/terminal/capabilities.js +0 -506
- package/dist/de.types/src/lsp/terminal/capabilities.js.map +0 -1
- package/dist/de.types/src/lsp/terminal/capacities.d.ts +0 -3151
- package/dist/de.types/src/lsp/terminal/capacities.js +0 -504
- package/dist/de.types/src/lsp/terminal/capacities.js.map +0 -1
- package/dist/de.types/src/lsp/terminal/index.d.ts +0 -1055
- package/dist/de.types/src/lsp/terminal/index.js +0 -394
- package/dist/de.types/src/lsp/terminal/index.js.map +0 -1
- package/dist/de.types/src/lsp/terminal/performance.d.ts +0 -954
- package/dist/de.types/src/lsp/terminal/performance.js +0 -159
- package/dist/de.types/src/lsp/terminal/performance.js.map +0 -1
- package/dist/de.types/src/lsp/terminal/utilities.d.ts +0 -2373
- package/dist/de.types/src/lsp/terminal/utilities.js +0 -161
- package/dist/de.types/src/lsp/terminal/utilities.js.map +0 -1
- package/dist/de.types/src/lsp/warehouse/analytics.d.ts +0 -3087
- package/dist/de.types/src/lsp/warehouse/analytics.js +0 -229
- package/dist/de.types/src/lsp/warehouse/analytics.js.map +0 -1
- package/dist/de.types/src/lsp/warehouse/capabilities.d.ts +0 -1383
- package/dist/de.types/src/lsp/warehouse/capabilities.js +0 -567
- package/dist/de.types/src/lsp/warehouse/capabilities.js.map +0 -1
- package/dist/de.types/src/lsp/warehouse/capacities.d.ts +0 -2920
- package/dist/de.types/src/lsp/warehouse/capacities.js +0 -450
- package/dist/de.types/src/lsp/warehouse/capacities.js.map +0 -1
- package/dist/de.types/src/lsp/warehouse/index.d.ts +0 -2565
- package/dist/de.types/src/lsp/warehouse/index.js +0 -264
- package/dist/de.types/src/lsp/warehouse/index.js.map +0 -1
- package/dist/de.types/src/lsp/warehouse/performance.d.ts +0 -286
- package/dist/de.types/src/lsp/warehouse/performance.js +0 -72
- package/dist/de.types/src/lsp/warehouse/performance.js.map +0 -1
- package/dist/de.types/src/lsp/warehouse/utilities.d.ts +0 -5173
- package/dist/de.types/src/lsp/warehouse/utilities.js +0 -588
- package/dist/de.types/src/lsp/warehouse/utilities.js.map +0 -1
- package/dist/de.types/src/lsp/zones.d.ts +0 -304
- package/dist/de.types/src/lsp/zones.js +0 -118
- package/dist/de.types/src/lsp/zones.js.map +0 -1
- package/dist/de.types/src/measure.d.ts +0 -138
- package/dist/de.types/src/measure.js +0 -190
- package/dist/de.types/src/measure.js.map +0 -1
- package/dist/de.types/src/operator.d.ts +0 -102
- package/dist/de.types/src/operator.js +0 -38
- package/dist/de.types/src/operator.js.map +0 -1
- package/dist/de.types/src/order.d.ts +0 -2738
- package/dist/de.types/src/order.js +0 -1078
- package/dist/de.types/src/order.js.map +0 -1
- package/dist/de.types/src/realm/index.d.ts +0 -3
- package/dist/de.types/src/realm/index.js +0 -20
- package/dist/de.types/src/realm/index.js.map +0 -1
- package/dist/de.types/src/realm/pipelines.d.ts +0 -32566
- package/dist/de.types/src/realm/pipelines.js +0 -1273
- package/dist/de.types/src/realm/pipelines.js.map +0 -1
- package/dist/de.types/src/realm/queries.d.ts +0 -1326
- package/dist/de.types/src/realm/queries.js +0 -456
- package/dist/de.types/src/realm/queries.js.map +0 -1
- package/dist/de.types/src/realm/utilities.d.ts +0 -1793
- package/dist/de.types/src/realm/utilities.js +0 -594
- package/dist/de.types/src/realm/utilities.js.map +0 -1
- package/dist/de.types/src/routing.d.ts +0 -427
- package/dist/de.types/src/routing.js +0 -60
- package/dist/de.types/src/routing.js.map +0 -1
- package/dist/de.types/src/service.d.ts +0 -263
- package/dist/de.types/src/service.js +0 -60
- package/dist/de.types/src/service.js.map +0 -1
- package/dist/de.types/src/shared/access.d.ts +0 -101
- package/dist/de.types/src/shared/access.js +0 -30
- package/dist/de.types/src/shared/access.js.map +0 -1
- package/dist/de.types/src/shared/account.d.ts +0 -43
- package/dist/de.types/src/shared/account.js +0 -15
- package/dist/de.types/src/shared/account.js.map +0 -1
- package/dist/de.types/src/shared/auth.d.ts +0 -44
- package/dist/de.types/src/shared/auth.js +0 -19
- package/dist/de.types/src/shared/auth.js.map +0 -1
- package/dist/de.types/src/shared/bucket.d.ts +0 -293
- package/dist/de.types/src/shared/bucket.js +0 -79
- package/dist/de.types/src/shared/bucket.js.map +0 -1
- package/dist/de.types/src/shared/faq.d.ts +0 -279
- package/dist/de.types/src/shared/faq.js +0 -73
- package/dist/de.types/src/shared/faq.js.map +0 -1
- package/dist/de.types/src/shared/index.d.ts +0 -9
- package/dist/de.types/src/shared/index.js +0 -26
- package/dist/de.types/src/shared/index.js.map +0 -1
- package/dist/de.types/src/shared/invitation.d.ts +0 -1524
- package/dist/de.types/src/shared/invitation.js +0 -60
- package/dist/de.types/src/shared/invitation.js.map +0 -1
- package/dist/de.types/src/shared/operator.d.ts +0 -955
- package/dist/de.types/src/shared/operator.js +0 -48
- package/dist/de.types/src/shared/operator.js.map +0 -1
- package/dist/de.types/src/shared/tracking.d.ts +0 -30
- package/dist/de.types/src/shared/tracking.js +0 -23
- package/dist/de.types/src/shared/tracking.js.map +0 -1
- package/dist/de.types/src/shared/user.d.ts +0 -76
- package/dist/de.types/src/shared/user.js +0 -22
- package/dist/de.types/src/shared/user.js.map +0 -1
- package/dist/de.types/src/sync.d.ts +0 -538
- package/dist/de.types/src/sync.js +0 -329
- package/dist/de.types/src/sync.js.map +0 -1
- package/dist/de.types/src/time.d.ts +0 -138
- package/dist/de.types/src/time.js +0 -93
- package/dist/de.types/src/time.js.map +0 -1
- package/dist/de.types/src/user.d.ts +0 -393
- package/dist/de.types/src/user.js +0 -205
- package/dist/de.types/src/user.js.map +0 -1
- package/dist/de.types/src/workspace/admin.d.ts +0 -90
- package/dist/de.types/src/workspace/admin.js +0 -33
- package/dist/de.types/src/workspace/admin.js.map +0 -1
- package/dist/de.types/src/workspace/connector.d.ts +0 -594
- package/dist/de.types/src/workspace/connector.js +0 -229
- package/dist/de.types/src/workspace/connector.js.map +0 -1
- package/dist/de.types/src/workspace/index.d.ts +0 -35
- package/dist/de.types/src/workspace/index.js +0 -21
- package/dist/de.types/src/workspace/index.js.map +0 -1
- /package/dist/{de.sdk/src/allend → allend}/Agent/delivery.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Agent/dispatch.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Agent/navigation.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Agent/origin.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Agent/reallocation.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Agent/rides.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Agent/shipping.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/CSP/analytics.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/CSP/inventory.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/CSP/orders.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/CSP/webhooks.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Customer/intents.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Customer/orders.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Customer/rides.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/IoTClient.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/IoTSP/devices.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/IoTSP/rules.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/IoTSP/topics.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/LSP/coverage.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/LSP/inventory.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/LSP/psl.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/analytics.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/escalations.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/executions.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/interventions.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/monitor.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/queries.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/templates.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/utils.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/utils.js +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/webhooks.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Pipelines/workers.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Queries/capacity.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Queries/discovery.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Queries/matching.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Queries/performance.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Queries/pricing.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Realtime/index.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Shared/account.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Shared/buckets.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Shared/context.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Shared/faqs.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Shared/operators.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Shared/users.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Utilities/common.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Utilities/fares.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Utilities/nearby.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Workflows/Delivery.d.ts +0 -0
- /package/dist/{de.sdk/src/allend → allend}/Workflows/index.d.ts +0 -0
- /package/dist/{de.sdk/src/utils → utils}/stream.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1 +1,44 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("DeSDK",[],e):"object"==typeof exports?exports.DeSDK=e():t.DeSDK=e()}(this,()=>(()=>{var t={7989(t,e,r){e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,o=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(n++,"%c"===t&&(o=n))}),e.splice(o,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch(t){}}(),e.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=r(1236)(e);const{formatters:n}=t.exports;n.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},1236(t,e,r){t.exports=function(t){function e(t){let r,o,i,s=null;function a(...t){if(!a.enabled)return;const n=a,o=Number(new Date),i=o-(r||o);n.diff=i,n.prev=r,n.curr=o,r=o,t[0]=e.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let s=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return"%";s++;const i=e.formatters[o];if("function"==typeof i){const e=t[s];r=i.call(n,e),t.splice(s,1),s--}return r}),e.formatArgs.call(n,t),(n.log||e.log).apply(n,t)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=n,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(o!==e.namespaces&&(o=e.namespaces,i=e.enabled(t)),i),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function n(t,r){const n=e(this.namespace+(void 0===r?":":r)+t);return n.log=this.log,n}function o(t,e){let r=0,n=0,o=-1,i=0;for(;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(o=n,i=r,n++):(r++,n++);else{if(-1===o)return!1;n=o+1,i++,r=i}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){const t=[...e.names,...e.skips.map(t=>"-"+t)].join(",");return e.enable(""),t},e.enable=function(t){e.save(t),e.namespaces=t,e.names=[],e.skips=[];const r=("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const t of r)"-"===t[0]?e.skips.push(t.slice(1)):e.names.push(t)},e.enabled=function(t){for(const r of e.skips)if(o(t,r))return!1;for(const r of e.names)if(o(t,r))return!0;return!1},e.humanize=r(6301),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(r=>{e[r]=t[r]}),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e),r|=0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}},6827(t){"use strict";var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(t,e){return new Promise(function(r,n){function o(r){t.removeListener(e,i),n(r)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),r([].slice.call(arguments))}y(t,e,i,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&y(t,"error",e,{once:!0})}(t,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function u(t,e,r,n){var o,i,s,u;if(a(r),void 0===(i=t._events)?(i=t._events=Object.create(null),t._eventsCount=0):(void 0!==i.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),i=t._events),s=i[e]),void 0===s)s=i[e]=r,++t._eventsCount;else if("function"==typeof s?s=i[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(o=c(t))>0&&s.length>o&&!s.warned){s.warned=!0;var h=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");h.name="MaxListenersExceededWarning",h.emitter=t,h.type=e,h.count=s.length,u=h,console&&console.warn&&console.warn(u)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},o=h.bind(n);return o.listener=r,n.wrapFn=o,o}function f(t,e,r){var n=t._events;if(void 0===n)return[];var o=n[e];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(o):d(o,o.length)}function p(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function d(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function y(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,function o(i){n.once&&t.removeEventListener(e,o),r(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var o="error"===t,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[t];if(void 0===c)return!1;if("function"==typeof c)n(c,this,e);else{var u=c.length,h=d(c,u);for(r=0;r<u;++r)n(h[r],this,e)}return!0},i.prototype.addListener=function(t,e){return u(this,t,e,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,e){return u(this,t,e,!0)},i.prototype.once=function(t,e){return a(e),this.on(t,l(this,t,e)),this},i.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,l(this,t,e)),this},i.prototype.removeListener=function(t,e){var r,n,o,i,s;if(a(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===e||r[i].listener===e){s=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,o),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},i.prototype.listeners=function(t){return f(this,t,!0)},i.prototype.rawListeners=function(t){return f(this,t,!1)},i.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):p.call(t,e)},i.prototype.listenerCount=p,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},6350(t,e){"use strict";function r(t){try{return JSON.stringify(t).length}catch{return 0}}Object.defineProperty(e,"__esModule",{value:!0});const n=["ping","pong","__heartbeat","__heartbeat_response"];e.default=class{constructor(t={}){if(this.messageQueue=[],this.messageRateTracker=[],this.reconnectAttempts=0,this.maxReconnectAttempts=5,t&&"object"!=typeof t)throw new Error("Invalid Options");this.options={debug:!1,heartbeatInterval:3e4,connectionTimeout:1e4,maxMessageSize:1048576,maxMessagesPerSecond:100,autoReconnect:!0,messageQueueSize:50,...t},this.Events={},this.peer={type:"IFRAME",connected:!1},t.type&&(this.peer.type=t.type.toUpperCase())}debug(...t){this.options.debug&&console.debug(...t)}isConnected(){return!!this.peer.connected&&!!this.peer.source}startHeartbeat(){this.options.heartbeatInterval&&(this.heartbeatTimer=setInterval(()=>{if(this.isConnected()){const t=Date.now();if(this.peer.lastHeartbeat&&t-this.peer.lastHeartbeat>2*this.options.heartbeatInterval)return this.debug(`[${this.peer.type}] Heartbeat timeout detected`),void this.handleConnectionLoss();try{this.emit("__heartbeat",{timestamp:t})}catch(t){this.debug(`[${this.peer.type}] Heartbeat send failed:`,t),this.handleConnectionLoss()}}},this.options.heartbeatInterval))}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0)}handleConnectionLoss(){this.peer.connected&&(this.peer.connected=!1,this.stopHeartbeat(),this.fire("disconnect",{reason:"CONNECTION_LOST"}),this.options.autoReconnect&&this.reconnectAttempts<this.maxReconnectAttempts&&this.attemptReconnection())}attemptReconnection(){if(this.reconnectTimer)return;this.reconnectAttempts++;const t=Math.min(1e3*Math.pow(2,this.reconnectAttempts-1),3e4);this.debug(`[${this.peer.type}] Attempting reconnection ${this.reconnectAttempts}/${this.maxReconnectAttempts} in ${t}ms`),this.fire("reconnecting",{attempt:this.reconnectAttempts,delay:t}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=void 0,"WINDOW"===this.peer.type&&this.peer.source&&this.peer.origin&&this.emit("ping"),setTimeout(()=>{this.peer.connected||(this.reconnectAttempts<this.maxReconnectAttempts?this.attemptReconnection():this.fire("reconnection_failed",{attempts:this.reconnectAttempts}))},this.options.connectionTimeout)},t)}checkRateLimit(){if(!this.options.maxMessagesPerSecond)return!0;const t=Date.now(),e=t-1e3;return this.messageRateTracker=this.messageRateTracker.filter(t=>t>e),this.messageRateTracker.length>=this.options.maxMessagesPerSecond?(this.fire("error",{type:"RATE_LIMIT_EXCEEDED",limit:this.options.maxMessagesPerSecond,current:this.messageRateTracker.length}),!1):(this.messageRateTracker.push(t),!0)}queueMessage(t,e,r){if(this.messageQueue.length>=this.options.messageQueueSize){const t=this.messageQueue.shift();this.debug(`[${this.peer.type}] Message queue full, removed oldest message:`,t?._event)}this.messageQueue.push({_event:t,payload:e,fn:r,timestamp:Date.now()}),this.debug(`[${this.peer.type}] Queued message: ${t} (queue size: ${this.messageQueue.length})`)}processMessageQueue(){if(!this.isConnected()||0===this.messageQueue.length)return;this.debug(`[${this.peer.type}] Processing ${this.messageQueue.length} queued messages`);const t=[...this.messageQueue];this.messageQueue=[],t.forEach(t=>{try{this.emit(t._event,t.payload,t.fn)}catch(t){this.debug(`[${this.peer.type}] Failed to send queued message:`,t)}})}initiate(t,e){if(!t||!e)throw new Error("Invalid Connection initiation arguments");if("IFRAME"===this.peer.type)throw new Error("Expect IFRAME to <listen> and WINDOW to <initiate> a connection");return this.cleanup(),this.peer.source=t,this.peer.origin=e,this.peer.connected=!1,this.reconnectAttempts=0,this.messageListener=({origin:t,data:e,source:r})=>{try{if(t!==this.peer.origin||!r||"object"!=typeof e||!e.hasOwnProperty("_event"))return;const{_event:o,payload:i,cid:s,timestamp:a}=e;if("__heartbeat_response"===o)return void(this.peer.lastHeartbeat=Date.now());if("__heartbeat"===o)return this.emit("__heartbeat_response",{timestamp:Date.now()}),void(this.peer.lastHeartbeat=Date.now());if(this.debug(`[${this.peer.type}] Message: ${o}`,i||""),"pong"==o)return this.peer.connected=!0,this.reconnectAttempts=0,this.peer.lastHeartbeat=Date.now(),this.startHeartbeat(),this.fire("connect"),this.processMessageQueue(),void this.debug(`[${this.peer.type}] connected`);if(!n.includes(o)){if(this.options.allowedIncomingEvents&&!this.options.allowedIncomingEvents.includes(o))return void this.fire("error",{type:"DISALLOWED_EVENT",direction:"incoming",event:o,origin:t});if(this.options.validateIncoming&&!this.options.validateIncoming(o,i,t))return void this.fire("error",{type:"INVALID_MESSAGE",direction:"incoming",event:o,origin:t})}this.fire(o,i,s)}catch(e){this.debug(`[${this.peer.type}] Message handling error:`,e),this.fire("error",{type:"MESSAGE_HANDLING_ERROR",error:e instanceof Error?e.message:String(e),origin:t})}},window.addEventListener("message",this.messageListener,!1),this.debug(`[${this.peer.type}] Initiate connection: IFrame origin <${e}>`),this.emit("ping"),this}listen(t){return this.peer.type="IFRAME",this.peer.connected=!1,this.reconnectAttempts=0,this.debug(`[${this.peer.type}] Listening to connect${t?`: Host <${t}>`:""}`),this.cleanup(),this.messageListener=({origin:e,data:r,source:n})=>{try{if(t&&t!==e)return void this.fire("error",{type:"INVALID_ORIGIN",expected:t,received:e});if(!n||"object"!=typeof r||!r.hasOwnProperty("_event"))return;if(this.peer.source){if(e!==this.peer.origin)return void this.fire("error",{type:"ORIGIN_MISMATCH",expected:this.peer.origin,received:e})}else this.peer={...this.peer,source:n,origin:e},this.debug(`[${this.peer.type}] Connect to ${e}`);const{_event:o,payload:i,cid:s,timestamp:a}=r;if("__heartbeat_response"===o)return void(this.peer.lastHeartbeat=Date.now());if("__heartbeat"===o)return this.emit("__heartbeat_response",{timestamp:Date.now()}),void(this.peer.lastHeartbeat=Date.now());if(this.debug(`[${this.peer.type}] Message: ${o}`,i||""),"ping"==o)return this.emit("pong"),this.peer.connected=!0,this.reconnectAttempts=0,this.peer.lastHeartbeat=Date.now(),this.startHeartbeat(),this.fire("connect"),this.processMessageQueue(),void this.debug(`[${this.peer.type}] connected`);this.fire(o,i,s)}catch(t){this.debug(`[${this.peer.type}] Message handling error:`,t),this.fire("error",{type:"MESSAGE_HANDLING_ERROR",error:t instanceof Error?t.message:String(t),origin:e})}},window.addEventListener("message",this.messageListener,!1),this}fire(t,e,r){if(!this.Events[t]&&!this.Events[t+"--@once"])return void this.debug(`[${this.peer.type}] No <${t}> listener defined`);const n=r?(e,...n)=>{this.emit(`${t}--${r}--@ack`,{error:e||!1,args:n})}:void 0;let o=[];this.Events[t+"--@once"]?(t+="--@once",o=this.Events[t],delete this.Events[t]):o=this.Events[t],o.forEach(r=>{try{void 0!==e?r(e,n):r(n)}catch(e){this.debug(`[${this.peer.type}] Listener error for ${t}:`,e),this.fire("error",{type:"LISTENER_ERROR",event:t,error:e instanceof Error?e.message:String(e)})}})}emit(t,e,o){if(!this.checkRateLimit())return this;if(!this.isConnected()&&!n.includes(t))return this.queueMessage(t,e,o),this;if(!this.peer.source)return this.fire("error",{type:"NO_CONNECTION",event:t}),this;"function"==typeof e&&(o=e,e=void 0);try{const n=e?function(t,e){if(!t)return t;const n=r(t);if(n>e)throw new Error(`Message size ${n} exceeds limit ${e}`);return JSON.parse(JSON.stringify(t))}(e,this.options.maxMessageSize):e;let s;if("function"==typeof o){const e=o;s=(()=>{try{const t="undefined"!=typeof crypto?crypto:"undefined"!=typeof window&&window.crypto||"undefined"!=typeof globalThis&&globalThis.crypto;if(t&&"function"==typeof t.getRandomValues){const e=new Uint32Array(4);t.getRandomValues(e);const r=Array.from(e).map(t=>t.toString(16)).join("");return`${Date.now()}_${r}`}}catch{}return`${Date.now()}_${Math.floor(9e5*Math.random()+1e5)}`})(),this.once(`${t}--${s}--@ack`,({error:t,args:r})=>e(t,...r))}const a={_event:t,payload:n,cid:s,timestamp:Date.now(),size:r(n)};this.peer.source.postMessage((i=a,JSON.parse(JSON.stringify(i))),this.peer.origin)}catch(e){this.debug(`[${this.peer.type}] Emit error:`,e),this.fire("error",{type:"EMIT_ERROR",event:t,error:e instanceof Error?e.message:String(e)}),"function"==typeof o&&o(e instanceof Error?e.message:String(e))}var i;return this}on(t,e){return this.Events[t]||(this.Events[t]=[]),this.Events[t].push(e),this.debug(`[${this.peer.type}] New <${t}> listener on`),this}once(t,e){return t+="--@once",this.Events[t]||(this.Events[t]=[]),this.Events[t].push(e),this.debug(`[${this.peer.type}] New <${t} once> listener on`),this}off(t,e){if(e&&this.Events[t]){const r=this.Events[t].indexOf(e);r>-1&&(this.Events[t].splice(r,1),0===this.Events[t].length&&delete this.Events[t])}else delete this.Events[t];return"function"==typeof e&&e(),this.debug(`[${this.peer.type}] <${t}> listener off`),this}removeListeners(t){return this.Events={},"function"==typeof t&&t(),this.debug(`[${this.peer.type}] All listeners removed`),this}emitAsync(t,e,r=5e3){return new Promise((n,o)=>{const i=setTimeout(()=>{o(new Error(`Event '${t}' acknowledgment timeout after ${r}ms`))},r);try{this.emit(t,e,(t,...e)=>{clearTimeout(i),t?o(new Error("string"==typeof t?t:"Ack error")):n(0===e.length?void 0:1===e.length?e[0]:e)})}catch(t){clearTimeout(i),o(t)}})}onceAsync(t){return new Promise(e=>this.once(t,e))}connectAsync(t){return new Promise((e,r)=>{if(this.isConnected())return e();const n=setTimeout(()=>{this.off("connect",o),r(new Error("Connection timeout"))},t||this.options.connectionTimeout),o=()=>{clearTimeout(n),e()};this.once("connect",o)})}cleanup(){this.messageListener&&(window.removeEventListener("message",this.messageListener),this.messageListener=void 0),this.stopHeartbeat(),this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=void 0)}disconnect(t){return this.cleanup(),this.peer.connected=!1,this.peer.source=void 0,this.peer.origin=void 0,this.peer.lastHeartbeat=void 0,this.messageQueue=[],this.messageRateTracker=[],this.reconnectAttempts=0,this.removeListeners(),"function"==typeof t&&t(),this.debug(`[${this.peer.type}] Disconnected`),this}getStats(){return{connected:this.isConnected(),peerType:this.peer.type,origin:this.peer.origin,lastHeartbeat:this.peer.lastHeartbeat,queuedMessages:this.messageQueue.length,reconnectAttempts:this.reconnectAttempts,activeListeners:Object.keys(this.Events).length,messageRate:this.messageRateTracker.length}}clearQueue(){const t=this.messageQueue.length;return this.messageQueue=[],this.debug(`[${this.peer.type}] Cleared ${t} queued messages`),this}}},6301(t){var e=1e3,r=60*e,n=60*r,o=24*n,i=7*o;function s(t,e,r,n){var o=e>=1.5*r;return Math.round(t/r)+" "+n+(o?"s":"")}t.exports=function(t,a){a=a||{};var c,u,h=typeof t;if("string"===h&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(t);if("number"===h&&isFinite(t))return a.long?(c=t,(u=Math.abs(c))>=o?s(c,u,o,"day"):u>=n?s(c,u,n,"hour"):u>=r?s(c,u,r,"minute"):u>=e?s(c,u,e,"second"):c+" ms"):function(t){var i=Math.abs(t);return i>=o?Math.round(t/o)+"d":i>=n?Math.round(t/n)+"h":i>=r?Math.round(t/r)+"m":i>=e?Math.round(t/e)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},9022(t,e,r){"use strict";var n,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||(n=function(t){return n=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},n(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=n(t),o=0;o<r.length;o++)"default"!==r[o]&&i(e,t,r[o]);return s(e,t),e}),c=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},u=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},h=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var l=r(619),f=function(){function t(t,e){if(!t)throw new Error("Undefined Access Configuration");if(!t.context)throw new Error("Undefined Context Reference. Check https://doc.dedot.io/sdk/auth");if(!t.accessToken)throw new Error("Undefined Access Token. Check https://doc.dedot.io/sdk/auth");this.atype=e,this.version=t.version||1,this.platform=t.platform||"proxy",this.accessToken=t.accessToken,this.remoteOrigin=t.remoteOrigin,this.baseURL="ASI"===this.atype?l.ASI_SERVER_BASEURL[t.env||"dev"]:l.API_SERVER_BASEURL[t.env||"dev"]}return t.prototype.request=function(t){return c(this,void 0,Promise,function(){var e,n,i=t.url,s=h(t,["url"]);return u(this,function(t){switch(t.label){case 0:return e={method:"GET",headers:{origin:this.remoteOrigin,"de-user-agent":"De.".concat(this.platform,"/").concat(this.version,".0")}},"ASI"===this.atype&&(e.headers["de-auth-service"]="De.API"),this.accessToken&&(e.headers.authorization="Bearer ".concat(this.accessToken)),s.body&&(e.headers["content-type"]="application/json","object"==typeof s.body&&(s.body=JSON.stringify(s.body))),"object"==typeof s.headers&&(s.headers=o(o({},s.headers),e.headers)),s=o(o({},e),s),i="".concat(this.baseURL,"/v").concat(this.version,"/").concat(i.replace(/^\//,"")),(n=(null===globalThis||void 0===globalThis?void 0:globalThis.window)&&(null===globalThis||void 0===globalThis?void 0:globalThis.fetch))?[3,2]:[4,Promise.resolve().then(function(){return a(r(3092))})];case 1:n=t.sent().default,t.label=2;case 2:return[4,n(i,s)];case 3:return[4,t.sent().json()];case 4:return[2,t.sent()]}})})},t.prototype.setToken=function(t){this.accessToken=t},t}();e.default=f},3704(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.http=t}return t.prototype.respond=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/consolidation/respond",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.handoffConfirm=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/consolidation/handoff/confirm",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.default=o},4638(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/delivery/orders".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/delivery/orders/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.accept=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/delivery/orders/".concat(t,"/accept"),method:"POST"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/delivery/orders/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.reportIssue=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/delivery/orders/".concat(t,"/issue"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},996(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.http=t}return t.prototype.respond=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/dispatch/respond",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.rate=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/dispatch/rate",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.default=o},6708(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=a(r(9022)),u=a(r(3083)),h=a(r(4638)),l=a(r(1048)),f=a(r(3040)),p=a(r(3704)),d=a(r(7669)),y=a(r(996)),m=a(r(4256)),w=function(t){function e(e){var r=this;if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/aux");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return(r=t.call(this,n,"API")||this).rides=new u.default(r),r.delivery=new h.default(r),r.shipping=new l.default(r),r.navigation=new f.default(r),r.consolidation=new p.default(r),r.reallocation=new d.default(r),r.dispatch=new y.default(r),r.origin=new m.default(r),r}return o(e,t),e.prototype.info=function(){return i(this,void 0,Promise,function(){var t,e,r,n;return s(this,function(o){switch(o.label){case 0:return[4,this.request({url:"/agent",method:"GET"})];case 1:if(t=o.sent(),e=t.error,r=t.message,n=t.data,e)throw new Error(r);return[2,n]}})})},e.prototype.update=function(t){return i(this,void 0,Promise,function(){var e,r,n,o;return s(this,function(i){switch(i.label){case 0:return[4,this.request({url:"/agent",method:"PATCH",body:t})];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o]}})})},e.prototype.availability=function(t){return i(this,void 0,Promise,function(){var e,r,n,o;return s(this,function(i){switch(i.label){case 0:return[4,this.request({url:"/agent/".concat(t),method:"GET"})];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o]}})})},e}(c.default);e.default=w},3040(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.location=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/navigation/location",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.nearby=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/navigation/nearby".concat((0,i.qs)(e)),method:"POST",body:t})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t}();e.default=s},4256(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.http=t}return t.prototype.statusReport=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/origin/status",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.registerPoi=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/origin/poi/register",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.addPoiNote=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/origin/poi/note",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.default=o},7669(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.http=t}return t.prototype.respond=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/agent/reallocation/respond",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.default=o},3083(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/ride/orders".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/ride/orders/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.accept=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/ride/orders/".concat(t,"/accept"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.start=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/ride/orders/".concat(t,"/start"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.complete=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/ride/orders/".concat(t,"/complete"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.cancel=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/ride/orders/".concat(t,"/cancel"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},1048(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/shipping/orders".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/shipping/orders/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.accept=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/shipping/orders/".concat(t,"/accept"),method:"POST"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/shipping/orders/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.reportIssue=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/agent/shipping/orders/".concat(t,"/issue"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},9583(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.orders=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/analytics/orders",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.fulfillment=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/analytics/fulfillment",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.providers=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/analytics/providers",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.generateReport=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/analytics/reports",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getReport=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/analytics/reports/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listReports=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/analytics/reports".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t}();e.default=s},459(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(4109)),a=i(r(9155)),c=i(r(1542)),u=i(r(4413)),h=i(r(9583)),l=i(r(8019)),f=function(t){function e(e){var r=this;if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/csp");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return(r=t.call(this,n,"CSP")||this).operators=new a.default(r,"CSP"),r.orders=new c.default(r),r.webhooks=new u.default(r),r.analytics=new h.default(r),r.inventory=new l.default(r),r}return o(e,t),e}(s.default);e.default=f},8019(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.syncCatalog=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/sync",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.checkAvailability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/availability",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.bulkPush=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/bulk/push",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.bulkPull=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/bulk/pull",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getSyncStatus=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/sync/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.reserve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/reservations",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.commit=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/reservations/commit",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.release=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/reservations/release",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listReservations=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/reservations".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.getReservation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/inventory/reservations/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},1542(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.tracking=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/tracking"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancel=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/cancel"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.timeline=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/timeline"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.reportException=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/exceptions"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.listExceptions=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/exceptions"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.resolveException=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/exceptions/").concat(e,"/resolve"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.dispatch=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/dispatch"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.split=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/split"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/orders/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},4413(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.logs=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks/".concat(t,"/logs").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.test=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/csp/webhooks/".concat(t,"/test"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},6555(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(9022)),a=i(r(6132)),c=i(r(5334)),u=i(r(8652)),h=function(t){function e(e){var r=this;if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/aux");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return(r=t.call(this,n,"API")||this).intents=new a.default(r),r.orders=new c.default(r),r.rides=new u.default(r),r}return o(e,t),e}(s.default);e.default=h},6132(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.http=t}return t.prototype.create=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/customer/intents",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.get=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/customer/intents",method:"GET",headers:{"x-intent-token":t}})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.addWaypoints=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/customer/intents/waypoints",method:"POST",headers:{"x-intent-token":t},body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.addPackages=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/customer/intents/packages",method:"POST",headers:{"x-intent-token":t},body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.submit=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/customer/intents/submit",method:"POST",headers:{"x-intent-token":t},body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.cancel=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/customer/intents",method:"DELETE",headers:{"x-intent-token":t}})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.default=o},5334(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/orders".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/orders/".concat(t).concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.tracking=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/orders/".concat(t,"/tracking"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancel=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/orders/".concat(t,"/cancel"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.rating=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/orders/".concat(t,"/rating"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},8652(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.request=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/rides",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/rides".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/rides/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.tracking=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/rides/".concat(t,"/tracking"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancel=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/rides/".concat(t,"/cancel"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.rating=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/customer/rides/".concat(t,"/rating"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},8251(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t){this.http=t}return t.prototype.list=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/dev/developers",method:"GET"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t.prototype.retrieve=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/dev/developers/".concat(t),method:"GET"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.update=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/dev/developers/".concat(t),method:"PATCH",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return r(this,void 0,Promise,function(){var e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/dev/developers/".concat(t),method:"DELETE"})];case 1:if(e=n.sent(),r=e.error,o=e.message,r)throw new Error(o);return[2]}})})},t}();e.default=o},8186(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(4109)),a=i(r(9155)),c=i(r(8251)),u=function(t){function e(e){var r=this;if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/dev");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return(r=t.call(this,n,"DEV")||this).operators=new a.default(r,"DEV"),r.developers=new c.default(r),r}return o(e,t),e}(s.default);e.default=u},6413(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Record=void 0;var n=r(7273),o=function(){function t(t){this.socket=t}return t.prototype.get=function(t){var e=this;return new Promise(function(r,n){e.socket.emit("@record:get",t,function(t,e){return t?n(t):r(e)})})},t.prototype.delete=function(t){var e=this;return new Promise(function(r,n){e.socket.emit("@record:del",t,function(t,e){return t?n(t):r(e)})})},t.prototype.fetch=function(t){var e=this;return new Promise(function(r,n){e.socket.emit("@record:fetch",t,function(t,e){return t?n(t):r(e)})})},t.prototype.find=function(t){var e=this;return new Promise(function(r,n){e.socket.emit("@record:find",t,function(t,e){return t?n(t):r(e)})})},t}();e.Record=o;var i=function(){function t(t){if(!t.accessToken)throw new Error("Undefined Access Token");this.options=t}return t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.connect=function(){var t=this.options.dev?"http://localhost:11011":"https://iot.dedot.io",e=(0,n.io)("".concat(t,"/").concat(this.options.channel),{auth:{accessToken:this.options.accessToken}});return{socket:e,api:{records:new o(e)}}},t}();e.default=i},9430(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Records=void 0;var n=r(7273),o=r(619),i=function(){function t(t){this.socket=t}return t.prototype.get=function(t){var e=this;return new Promise(function(r,n){if(!e.socket.connected)return n(new Error("Socket disconnected"));e.socket.emit("@record:get",t,function(t,e){return t?n(new Error(t)):r(e)})})},t.prototype.fetch=function(t){var e=this;return void 0===t&&(t={}),new Promise(function(r,n){if(!e.socket.connected)return n(new Error("Socket disconnected"));e.socket.emit("@record:fetch",t,function(t,e){return t?n(new Error(t)):r(e)})})},t.prototype.find=function(t){var e=this;return new Promise(function(r,n){if(!e.socket.connected)return n(new Error("Socket disconnected"));e.socket.emit("@record:find",t,function(t,e){return t?n(new Error(t)):r(e)})})},t.prototype.delete=function(t){var e=this;return new Promise(function(r,n){if(!e.socket.connected)return n(new Error("Socket disconnected"));e.socket.emit("@record:del",t,function(t,e){return t?n(new Error(t)):r(e)})})},t}();e.Records=i;var s=function(){function t(t){if(!t.channel)throw new Error("Undefined channel. See https://doc.dedot.io/sdk/iot");if(!t.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");this.config=t}return t.prototype.connect=function(){var t=o.IOT_SERVER_BASEURL[this.config.env||"dev"],e=(0,n.io)("".concat(t,"/").concat(this.config.channel),{auth:{accessToken:this.config.accessToken}});return{socket:e,records:new i(e)}},t.prototype.disconnect=function(){var t;null===(t=this.socket)||void 0===t||t.disconnect()},t}();e.default=s},1(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.add=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/add",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.find=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/find".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.enable=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/".concat(t,"/enable"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.disable=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/".concat(t,"/disable"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.delete=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/devices/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},4690(t,e,r){"use strict";var n,o,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),c=this&&this.__importStar||(o=function(t){return o=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[e.length]=r);return e},o(t)},function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r=o(t),n=0;n<r.length;n++)"default"!==r[n]&&s(e,t,r[n]);return a(e,t),e}),u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Records=void 0;var h=u(r(4109)),l=u(r(9155)),f=c(r(9430));Object.defineProperty(e,"Records",{enumerable:!0,get:function(){return f.Records}});var p=u(r(1)),d=u(r(9132)),y=u(r(7793)),m=function(t){function e(e){var r=this;if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/iotsp");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return r=t.call(this,n,"IoTSP")||this,e.backend&&(r.BackendInstance=new f.default(e.backend)),r.operators=new l.default(r,"IoTSP"),r.devices=new p.default(r),r.topics=new d.default(r),r.rules=new y.default(r),r}return i(e,t),Object.defineProperty(e.prototype,"backend",{get:function(){if(!this.BackendInstance)throw new Error("No backend instance available. Expect <backend> config");return this.BackendInstance},enumerable:!1,configurable:!0}),e}(h.default);e.default=m},7793(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.add=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/add",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.find=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/find".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.enable=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t,"/enable"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.disable=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t,"/disable"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.delete=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getConnectors=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t,"/connectors"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.assignConnector=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t,"/connector/assign"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.unassignConnector=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/rules/".concat(t,"/connector/unassign"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},9132(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.add=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/register",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.find=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/find".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.enable=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t,"/enable"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.disable=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t,"/disable"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.delete=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getConnectors=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t,"/connectors"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.assignConnector=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t,"/connector/assign"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.unassignConnector=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/iotsp/topics/".concat(t,"/connector/unassign"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},5626(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/".concat(t).concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.assignVehicle=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/".concat(t,"/vehicle/assign"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.unassignVehicle=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/".concat(t,"/vehicle/unassign"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t.prototype.scheduleConsolidation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/consolidation/schedule",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listConsolidations=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/consolidation".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.getConsolidation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/consolidation/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateConsolidationState=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/consolidation/".concat(t,"/state"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.createConsolidationPoint=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/consolidation/points",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listConsolidationPoints=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/agents/consolidation/points".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t}();e.default=s},5145(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/create",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t.prototype.bindPricing=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/pricing/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.getAllCapabilities=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getTransportCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/transport"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setTransportCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/transport"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateTransportCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/transport"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.deleteTransportCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/transport"),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getFleetCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/fleet"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setFleetCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/fleet"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateFleetCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/fleet"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getHandlingCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/handling"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setHandlingCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/handling"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateHandlingCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/handling"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getCoverageCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/coverage"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setCoverageCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/coverage"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateCoverageCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/coverage"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getTechnologyCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/technology"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setTechnologyCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/technology"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateTechnologyCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/technology"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getServiceCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/service"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setServiceCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/service"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateServiceCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/service"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getComplianceCapability=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/compliance"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setComplianceCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/compliance"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateComplianceCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/compliance"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.bulkUpdateCapabilities=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/bulk"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getCapabilityInsights=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/insights").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.validateCapability=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capabilities/validate/").concat(e),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.getAllCapacities=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getFleetCapacity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/fleet"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setFleetCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/fleet"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getServiceCapacity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/service"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setServiceCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/service"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getOperationalCapacity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/operational"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setOperationalCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/operational"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getNetworkCapacity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/network"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setNetworkCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/network"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getTechnologyCapacity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/technology"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setTechnologyCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/technology"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getFinancialCapacity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/financial"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.setFinancialCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/carriers/".concat(t,"/capacities/financial"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},9950(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.overview=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.addCityArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/city",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addTownArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/town",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addMetropolitanArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/metropolitan",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addCountyArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/county",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addStateArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/state",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addRegionArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/region",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addCountryArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/country",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addCustomArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/custom",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listAreas=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.getArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateCityArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/city"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateTownArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/town"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateMetropolitanArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/metropolitan"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateCountyArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/county"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStateArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/state"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateRegionArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/region"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateCountryArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/country"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateCustomArea=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/custom"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.linkNode=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/link"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.unlinkNode=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t,"/unlink"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeArea=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/areas/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addPointsRoute=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/points",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addGeoJsonRoute=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/geojson",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listRoutes=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.getRoute=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updatePointsRoute=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/".concat(t,"/points"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateGeoJsonRoute=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/".concat(t,"/geojson"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.addRouteNode=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/".concat(t,"/transit-point"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeRouteNode=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/".concat(t,"/transit-point"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeRoute=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/routes/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.check=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/check",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.findAreas=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/find",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getServiceability=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/serviceability".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.validateBoundary=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/validate-boundary",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.findNearest=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/nearest",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.checkRestrictions=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/restrictions",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.findParkingZones=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/coverage/checks/parking",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},209(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleets/create",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleets".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleets/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleets/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleets/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleets/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2,!0]}})})},t.prototype.addVehicle=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/add",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listVehicles=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveVehicle=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateVehicle=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateVehicleStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateVehicleSpecs=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t,"/specs"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateVehicleIoT=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t,"/iot"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.allocateVehicle=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t,"/allocate"),method:"PUT",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.deallocateVehicle=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t,"/deallocate"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.removeVehicle=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/vehicles/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addParkingFacility=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listParkingFacilities=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveParkingFacility=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getParkingFacilityUtilization=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t,"/utilization").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.updateParkingFacility=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeParkingFacility=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t),method:"DELETE",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.addParkingSpace=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t,"/spaces"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateParkingSpace=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t,"/spaces/").concat(e),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.removeParkingSpace=function(t,e){return n(this,void 0,Promise,function(){var r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/facilities/".concat(t,"/spaces/").concat(e),method:"DELETE"})];case 1:if(r=o.sent(),n=r.error,i=r.message,r.data,n)throw new Error(i);return[2,!0]}})})},t.prototype.createParkingAssignment=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listParkingAssignments=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveParkingAssignment=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateParkingAssignment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.checkInParking=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments/".concat(t,"/check-in"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.checkOutParking=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments/".concat(t,"/check-out"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancelParkingAssignment=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/assignments/".concat(t,"/cancel"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.createParkingReservation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/reservations",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listParkingReservations=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/reservations".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveParkingReservation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/reservations/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateParkingReservation=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/reservations/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.confirmParkingReservation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/reservations/".concat(t,"/confirm"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancelParkingReservation=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/parking/reservations/".concat(t,"/cancel"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addMaintenanceRecord=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listMaintenanceRecords=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveMaintenanceRecord=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getVehicleMaintenanceHistory=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/vehicles/".concat(t,"/history").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.updateMaintenanceRecord=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.startMaintenance=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t,"/start"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.completeMaintenance=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t,"/complete"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancelMaintenance=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t,"/cancel"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.approveMaintenance=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t,"/approve"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.deleteMaintenanceRecord=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/records/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2,!0]}})})},t.prototype.addMaintenanceSchedule=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listMaintenanceSchedules=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.getUpcomingMaintenance=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/upcoming".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.getOverdueMaintenance=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/overdue".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveMaintenanceSchedule=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateMaintenanceSchedule=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.activateMaintenanceSchedule=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/".concat(t,"/activate"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.deactivateMaintenanceSchedule=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/".concat(t,"/deactivate"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.deleteMaintenanceSchedule=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/fleet/maintenance/schedules/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2,!0]}})})},t}();e.default=s},8800(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=r(5847),a=i(r(7245)),c=i(r(1298)),u=function(){function t(t){this.http=t,this.psl=new a.default(this.http,"hubs"),this.inventory=new c.default(this.http,"hubs")}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/create",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs".concat((0,s.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2,!0]}})})},t.prototype.bindPricing=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/pricing/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.getCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/capabilities/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.setCapability=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/capabilities/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.getCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/capacities/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.setCapacity=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/capacities/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.createPassthrough=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.listPassthrough=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough").concat((0,s.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,a=r.data,n)throw new Error(i);return[2,a]}})})},t.prototype.retrievePassthrough=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getPassthroughLogs=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough/").concat(e,"/logs"),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updatePassthroughStage=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough/").concat(e,"/stage"),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.updatePassthroughStatus=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough/").concat(e,"/status"),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.assignPassthrough=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough/").concat(e,"/assign"),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.removePassthrough=function(t,e){return n(this,void 0,Promise,function(){var r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/passthrough/").concat(e),method:"DELETE"})];case 1:if(r=o.sent(),n=r.error,i=r.message,n)throw new Error(i);return[2]}})})},t.prototype.createSortingJob=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/sorting"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.listSortingJobs=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/sorting").concat((0,s.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,a=r.data,n)throw new Error(i);return[2,a]}})})},t.prototype.getSortingStats=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/sorting/stats").concat((0,s.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,a=r.data,n)throw new Error(i);return[2,a]}})})},t.prototype.initiateCrossDock=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/crossdock/initiate"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.completeCrossDock=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/crossdock/complete"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getCrossDockStats=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/hubs/".concat(t,"/crossdock/stats").concat((0,s.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,a=r.data,n)throw new Error(i);return[2,a]}})})},t}();e.default=u},4406(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(4109)),a=i(r(5357)),c=i(r(9155)),u=i(r(5626)),h=i(r(5145)),l=i(r(209)),f=i(r(8800)),p=i(r(3816)),d=i(r(9752)),y=i(r(5977)),m=i(r(5872)),w=i(r(2034)),v=function(t){function e(e){var r=this;if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/lsp");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return(r=t.call(this,n,"LSP")||this).buckets=new a.default(r,"LSP"),r.operators=new c.default(r,"LSP"),r.agents=new u.default(r),r.carriers=new h.default(r),r.fleets=new l.default(r),r.hubs=new f.default(r),r.warehouses=new p.default(r),r.pods=new d.default(r),r.orders=new y.default(r),r.pricing=new m.default(r),r.operations=new w.default(r),r}return o(e,t),e}(s.default);e.default=v},1298(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t,e){this.http=t,this.segment=e}return t.prototype.create=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/inventory/create"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.list=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/inventory").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.retrieve=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/inventory/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.update=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/inventory/").concat(e),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.adjust=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/inventory/").concat(e,"/adjust"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.remove=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/inventory/").concat(e),method:"DELETE"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},2034(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(9950)),a=r(5847),c=function(){function t(t){this.http=t,this.coverage=new s.default(this.http)}return t.prototype.createZone=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/zones",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.listZones=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/zones".concat((0,a.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getZoneDensity=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/zones/".concat(t,"/density"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateZoneStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/zones/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeZone=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/zones/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t.prototype.getGraphPoi=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/graph/poi/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.registerGraphPoi=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/graph/poi",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getNearestGraph=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/graph/nearest".concat((0,a.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getGraphLandmarks=function(){return n(this,void 0,Promise,function(){var t,e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/graph/landmarks",method:"GET"})];case 1:if(t=o.sent(),e=t.error,r=t.message,n=t.data,e)throw new Error(r);return[2,n]}})})},t.prototype.getOriginScore=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/score/origin/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getAgentScore=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/score/agent/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getInventoryReport=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/reports/inventory".concat((0,a.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getOperationsReport=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/reports/operations".concat((0,a.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getFacilityReport=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/reports/facility".concat((0,a.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getTasksReport=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/reports/tasks".concat((0,a.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=c},5977(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getStatus=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t,"/status"),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.complete=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t,"/complete"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.cancel=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t,"/cancel"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.fail=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t,"/fail"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStage=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t,"/stage"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.subscribe=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(e,"/track/subscribe"),method:"POST",body:{id:t}})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.createInbound=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound/create"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.completeInbound=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound/").concat(e,"/complete"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.listInbound=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.retrieveInbound=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateInbound=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound/").concat(e),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.updateInboundStatus=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound/").concat(e,"/status"),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.assignOrUnassignInbound=function(t,e,r,i,s){return n(this,void 0,Promise,function(){var n,a,c,u;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/inbound/").concat(e,"/").concat(r,"/").concat(i),method:"PATCH",body:s})];case 1:if(n=o.sent(),a=n.error,c=n.message,u=n.data,a)throw new Error(c);return[2,u]}})})},t.prototype.createTask=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/create"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.createTaskBatch=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/batch"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.completeTask=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/").concat(e,"/complete"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.listTasks=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.retrieveTask=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.getTaskPerformance=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/metrics/performance").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.updateTask=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/").concat(e),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.updateTaskStatus=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/").concat(e,"/status"),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.assignOrUnassignTask=function(t,e,r,i,s){return n(this,void 0,Promise,function(){var n,a,c,u;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/").concat(e,"/").concat(r,"/").concat(i),method:"PATCH",body:s})];case 1:if(n=o.sent(),a=n.error,c=n.message,u=n.data,a)throw new Error(c);return[2,u]}})})},t.prototype.cancelTask=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(t,"/tasks/").concat(e,"/cancel"),method:"DELETE",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.createShipment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/orders/".concat(t,"/shipments"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.listShipments=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipments".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveShipment=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipments/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.updateShipment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipments/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateShipmentStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipments/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.addShipmentPackage=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipments/".concat(t,"/packages"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.listShipping=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieveShipping=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.completeShipping=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping/".concat(t,"/complete"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.approveShipping=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping/".concat(t,"/approve"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.suspendShipping=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping/".concat(t,"/suspend"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancelShipping=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping/".concat(t,"/cancel"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.assignOrUnassignShipping=function(t,e,r,i){return n(this,void 0,Promise,function(){var n,s,a,c;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/shipping/".concat(t,"/").concat(e,"/").concat(r),method:"PATCH",body:i})];case 1:if(n=o.sent(),s=n.error,a=n.message,c=n.data,s)throw new Error(a);return[2,c]}})})},t}();e.default=s},9752(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t.prototype.registerAsConsolidationPoint=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/as/consolidation-point"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.registerAsGraphNode=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/as/graph-node"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.listCompartments=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.retrieveCompartment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.reserveCompartment=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e,"/reserve"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.loadCompartment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e,"/load"),method:"POST"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.unlockCompartment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e,"/unlock"),method:"POST"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.collectCompartment=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e,"/collect"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.releaseCompartment=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e,"/release"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.markCompartmentFaulty=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/compartments/").concat(e,"/faulty"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.openDroneHatch=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/drone/").concat(e,"/hatch/open"),method:"POST"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.closeDroneHatch=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/drone/").concat(e,"/hatch/close"),method:"POST"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.confirmDroneDeposit=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pods/".concat(t,"/drone/").concat(e,"/deposit/confirm"),method:"POST",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t}();e.default=s},5872(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.add=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t.prototype.bindTo=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/bind/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.addTier=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/tiers"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateTier=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/tiers/").concat(e),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.removeTier=function(t,e){return n(this,void 0,Promise,function(){var r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/tiers/").concat(e),method:"DELETE"})];case 1:if(r=o.sent(),n=r.error,i=r.message,n)throw new Error(i);return[2]}})})},t.prototype.addContractTerms=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/contract"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateContractTerms=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/contract"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.addSeasonalAdjustment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/adjustments"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeSeasonalAdjustment=function(t,e){return n(this,void 0,Promise,function(){var r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/rules/".concat(t,"/adjustments/").concat(e),method:"DELETE"})];case 1:if(r=o.sent(),n=r.error,i=r.message,n)throw new Error(i);return[2]}})})},t.prototype.updateFuelSurcharge=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/utils/rules/".concat(t,"/fuel-surcharge"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.bulkUpdateByCategory=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/utils/bulk/update",method:"PATCH",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getTemplates=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/templates".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.createFromTemplate=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/templates/create",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.validate=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/pricing/utils/validate",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},7245(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t,e){this.http=t,this.segment=e}return t.prototype.create=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/create"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.list=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.retrieve=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.update=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/").concat(e),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.updateStatus=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/").concat(e,"/status"),method:"PATCH",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.hierarchy=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/").concat(e,"/hierarchy"),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.available=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/query/available").concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t.prototype.remove=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/".concat(this.segment,"/").concat(t,"/psl/").concat(e),method:"DELETE"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.default=s},3816(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=r(5847),a=i(r(7245)),c=i(r(1298)),u=function(){function t(t){this.http=t,this.psl=new a.default(this.http,"warehouses"),this.inventory=new c.default(this.http,"warehouses")}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/create",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses".concat((0,s.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.updateStatus=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t,"/status"),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t.prototype.bindPricing=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t,"/pricing/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.getCapability=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t,"/capabilities/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.setCapability=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t,"/capabilities/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t.prototype.getCapacity=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t,"/capacities/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.setCapacity=function(t,e,r){return n(this,void 0,Promise,function(){var n,i,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/lsp/warehouses/".concat(t,"/capacities/").concat(e),method:"PUT",body:r})];case 1:if(n=o.sent(),i=n.error,s=n.message,a=n.data,i)throw new Error(s);return[2,a]}})})},t}();e.default=u},874(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=12e3,n="Event timeout",o=function(){function t(t,e){this.chn=t,this.options=e}return t.prototype.on=function(t,e){this.chn.on(t,e)},t.prototype.off=function(t,e){this.chn.off(t,e)},t.prototype.removeListeners=function(t){this.chn.removeListeners(t)},t.prototype.refreshToken=function(t){t&&(this.options.accessToken=t)},t.prototype.setMapStyle=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("set:map:style",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.getCurrentLocation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("get:current:location",function(t,r){if(t)return o(t);clearTimeout(i),e(r)})})},t.prototype.pinCurrentLocation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("pin:current:location",function(t,r){if(t)return o(t);clearTimeout(i),e(r)})})},t.prototype.setLiveLocationOptions=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("set:live:options",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.trackLiveLocation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("track:live:location",function(t){if(t)return o(t);clearTimeout(i),e()})})},t.prototype.untrackLiveLocation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("untrack:live:location",function(t){if(t)return o(t);clearTimeout(i),e()})})},t.prototype.enableDragPickLocation=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("enable:dragpick:location",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.disableDragPickLocation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("disable:dragpick:location",function(t){if(t)return o(t);clearTimeout(i),e()})})},t.prototype.setDragPickContent=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("set:dragpick:content",{type:t,content:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.resolvePlace=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("resolve:place",t,function(t,e){if(t)return i(t);clearTimeout(s),o(e)})})},t.prototype.resolveCoordinates=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("resolve:coordinates",t,function(t,e){if(t)return i(t);clearTimeout(s),o(e)})})},t.prototype.searchQuery=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("search:query",t,function(t,e){if(t)return i(t);clearTimeout(s),o(e)})})},t.prototype.searchSelect=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("search:select",t,function(t,e){if(t)return i(t);clearTimeout(s),o(e)})})},t.prototype.showNearby=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("show:nearby",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.removeNearby=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("remove:nearby",function(t){if(t)return o(t);clearTimeout(i),e()})})},t.prototype.addNearbyEntity=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("add:nearby:entity",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.moveNearbyEntity=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("move:nearby:entity",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.removeNearbyEntity=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("remove:nearby:entity",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.setRoute=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("set:route",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.drawRoute=function(t,e,o){var i=this;return new Promise(function(s,a){var c=setTimeout(function(){return a(n)},r);i.chn.emit("draw:route",{routeId:t,data:e,options:o},function(t){if(t)return a(t);clearTimeout(c),s()})})},t.prototype.removeRoute=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("remove:route",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.setRouteOrigin=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("set:route:origin",{routeId:t,point:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.removeRouteOrigin=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("remove:route:origin",{routeId:t},function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.setRouteDestination=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("set:route:destination",{routeId:t,point:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.removeRouteDestination=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("remove:route:destination",{routeId:t},function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.addRouteWaypoint=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("add:route:waypoint",{routeId:t,point:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.updateRouteWaypoint=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("update:route:waypoint",{routeId:t,point:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.removeRouteWaypoint=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("remove:route:waypoint",{routeId:t,index:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.fitRouteBounds=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("fit:route:bounds",{routeId:t,margin:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.fitRoutesBounds=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("fit:routes:bounds",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.setWaypointCaption=function(t,e,o){var i=this;return new Promise(function(s,a){var c=setTimeout(function(){return a(n)},r);i.chn.emit("set:waypoint:caption",{routeId:t,id:e,caption:o},function(t){if(t)return a(t);clearTimeout(c),s()})})},t.prototype.updateWaypointCaption=function(t,e,o){var i=this;return new Promise(function(s,a){var c=setTimeout(function(){return a(n)},r);i.chn.emit("update:waypoint:caption",{routeId:t,id:e,caption:o},function(t){if(t)return a(t);clearTimeout(c),s()})})},t.prototype.removeWaypointCaption=function(t,e){var o=this;return new Promise(function(i,s){var a=setTimeout(function(){return s(n)},r);o.chn.emit("remove:waypoint:caption",{routeId:t,id:e},function(t){if(t)return s(t);clearTimeout(a),i()})})},t.prototype.mountNavigation=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("mount:navigation",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.unmountNavigation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("unmount:navigation",function(t){if(t)return o(t);clearTimeout(i),e()})})},t.prototype.loadNavigation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("load:navigation",function(t){if(t)return o(t);clearTimeout(i),e()})})},t.prototype.setInitialNavigationPosition=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("initial:navigation:position",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.navigate=function(t){var e=this;return new Promise(function(o,i){var s=setTimeout(function(){return i(n)},r);e.chn.emit("navigate:navigation:direction",t,function(t){if(t)return i(t);clearTimeout(s),o()})})},t.prototype.casting=function(t,e,o,i){var s=this;return new Promise(function(a,c){var u=setTimeout(function(){return c(n)},r);s.chn.emit("casting:navigation:direction",{routeId:t,direction:e,position:o,options:i},function(t){if(t)return c(t);clearTimeout(u),a()})})},t.prototype.dismissNavigation=function(){var t=this;return new Promise(function(e,o){var i=setTimeout(function(){return o(n)},r);t.chn.emit("dismiss:navigation",function(t){if(t)return o(t);clearTimeout(i),e()})})},t}();e.default=o},9869(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},s=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},a=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},c=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=r(6827),h=c(r(1403)),l=function(t){function e(e,r,n){var o=t.call(this)||this;return o.chn=e,o.options=n,o.controls=r,o}return o(e,t),e.prototype.onPickLocation=function(t){this.chn.on("pick:location",t)},e.prototype.myLocation=function(t){var e,r=this;if(this.chn){null===(e=this.chn)||void 0===e||e.emit("pin:current:location",t||"client");var n=new h.default;return this.chn.on("current:location",function(t){return n.sync(t)}).on("live:location:start",function(t){return n.sync(t)}).on("live:location:update",function(t){return n.sync(t)}).on("live:location:end",function(t){return n.sync(t)}).on("current:location:error",function(t){return n.error(new Error(t))}),n.onerror(function(t){return console.error("[Stream Error] ",t)}).onclose(function(){r.chn&&r.chn.off("current:location").off("current:location:live").off("current:location:error")}),n}},e.prototype.peerLocation=function(t,e){var r,n=this;if(this.chn){null===(r=this.chn)||void 0===r||r.emit("pin:peer:location",{id:"peer",position:t,caption:e});var o=new h.default;return o.on("data",function(t){var e,r=t.position,i=t.caption;if(!r)return o.error(new Error("Invalid Data"));null===(e=n.chn)||void 0===e||e.emit("pin:peer:location",{id:"peer",position:r,caption:i})}).onerror(function(t){return console.error("[Stream Error] ",t)}).onclose(function(){var t;return null===(t=n.chn)||void 0===t?void 0:t.emit("unpin:peer:location","peer")}),o}},e.prototype.nearby=function(t){var e,r=this;if(this.chn){var n=this,o=!1;null===(e=this.chn)||void 0===e||e.emit("show:nearby",t);var i=new h.default,s={add:function(e){return new Promise(function(r,i){var s,a;if(!o){for(var c=0;c<t.length;c++)if(t[c].id===e.id){t.splice(c,1),null===(s=n.chn)||void 0===s||s.emit("remove:nearby:entity",e.id);break}t.push(e),null===(a=n.chn)||void 0===a||a.emit("add:nearby:entity",e,function(){clearTimeout(void 0),r(),n.emit("nearby--stream","add",e)}),setTimeout(function(){return i("Add entity timeout")},8e3)}})},remove:function(e){return new Promise(function(r,i){var s;o||(t=t.filter(function(t){return t.id!==e}),null===(s=n.chn)||void 0===s||s.emit("remove:nearby:entity",e,function(){clearTimeout(void 0),r(),n.emit("nearby--stream","remove",e)}),setTimeout(function(){return i("Remove entity timeout")},8e3))})},focus:function(e){return new Promise(function(r,i){var s;if(!o){var a=t.find(function(t){return t.id===e});if(!a)return i("Entity <".concat(e,"> not found"));null===(s=n.chn)||void 0===s||s.emit("panto:map:location",a.currentLocation,function(){clearTimeout(void 0),r(),n.emit("nearby--stream","panto",e)}),setTimeout(function(){return i("PanTo entity timeout")},8e3)}})},move:function(e){return new Promise(function(r,i){var a;o||(null===(a=n.chn)||void 0===a||a.emit("move:nearby:entity",e,function(){clearTimeout(void 0);var o=t.find(function(t){return t.id===e.id});if(!o)throw new Error("Undefined <".concat(e.id,"> entity"));if(o.currentLocation=e.position,e.focus)try{s.focus(e.id)}catch(t){}r(),n.emit("nearby--stream","move",e)}),setTimeout(function(){return i("Move entity timeout")},8e3))})}},a=function(t){var e;o||null===(e=r.chn)||void 0===e||e.emit("remove:nearby",function(e){if("string"==typeof e)return"function"==typeof t&&t(new Error(e));o=!0,i.isActive()&&i.close(),"function"==typeof t&&t()})};return this.on("nearby--stream",function(e,r){return i.sync({action:e,dataset:r,list:t})}),i.onerror(function(t){return console.error("[Stream Error] ",t)}).onclose(function(t){r.off("nearby--stream",t||function(){}),a()}),{live:function(t){return t(s),i},pipe:i.pipe,close:a}}},e.prototype.pickupPoint=function(t,e){return s(this,void 0,Promise,function(){var r,n;return a(this,function(o){switch(o.label){case 0:return r=i({label:"Pickup point"},e||{}),[4,null===(n=this.controls)||void 0===n?void 0:n.setRouteOrigin("main",{coords:t,caption:r})];case 1:return o.sent(),[2]}})})},e.prototype.dropoffPoint=function(t,e){return s(this,void 0,Promise,function(){var r,n;return a(this,function(o){switch(o.label){case 0:return r=i({label:"Destination point"},e||{}),[4,null===(n=this.controls)||void 0===n?void 0:n.setRouteDestination("main",{coords:t,caption:r})];case 1:return o.sent(),[2]}})})},e.prototype.peerDirection=function(t){var e=this;if(this.chn){var r=new h.default;return r.on("data",function(n){var o,i=n.status,s=n.direction,a=n.position;if(!s||!a)return r.error(new Error("Invalid Data"));switch(null===(o=e.controls)||void 0===o||o.casting("peer-direction",s,a,t),i){case"STALE":case"STARTED":case"LONG_STOP":case"LOW_TRAFFIC":case"HIGH_TRAFFIC":case"MODERATE_TRAFFIC":case"SPEED_WARNING":case"NEARBY":case"ARRIVED":e.emit("pe:".concat(i.toLowerCase()));break;case"UNAVAILABLE":e.emit("pe:closed"),r.isActive()&&r.close()}}).onerror(function(t){return console.error("[Stream Error] ",t)}),r}},e.prototype.navigation=function(t){var e=this;return new Promise(function(r,n){var o;e.chn&&(null===(o=e.controls)||void 0===o||o.setRoute(t).then(function(){return s(e,void 0,void 0,function(){var o,i,s,c,u;return a(this,function(a){switch(a.label){case 0:return(i=t.origin)?[3,2]:[4,null===(s=this.controls)||void 0===s?void 0:s.getCurrentLocation()];case 1:i=a.sent(),a.label=2;case 2:return(o=i)?(function(){var t,n=new h.default;null===(t=e.chn)||void 0===t||t.on("navigation:direction",function(t){var r=t.status,o=t.direction,i=t.position;switch(n.sync({status:r,direction:o,position:i}),r){case"STALE":case"STARTED":case"LONG_STOP":case"LOW_TRAFFIC":case"HIGH_TRAFFIC":case"MODERATE_TRAFFIC":case"SPEED_WARNING":case"NEARBY":case"ARRIVED":e.emit("pe:".concat(r.toLowerCase()));break;case"UNAVAILABLE":e.emit("pe:closed"),n.isActive()&&n.close()}}),n.on("data",function(t){var r,o=t.position;if(!o)return n.error(new Error("Invalid Data"));null===(r=e.controls)||void 0===r||r.navigate(o)}).onerror(function(t){return console.error("[Stream Error] ",t)}).onclose(function(){var t,r;null===(t=e.chn)||void 0===t||t.off("navigation:direction"),null===(r=e.controls)||void 0===r||r.unmountNavigation()}),r(n)}(),[4,null===(c=this.controls)||void 0===c?void 0:c.mountNavigation(t.routeId)]):[2,n("Unable to get current location")];case 3:return a.sent(),[4,null===(u=this.controls)||void 0===u?void 0:u.setInitialNavigationPosition(o)];case 4:return a.sent(),[2]}})})}).catch(n))})},e}(u.EventEmitter);e.default=l},3902(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(5847)),i=function(){function t(t,e,r,n){this.ACTIVE_PLUGINS={},this.chn=t,this.options=n,this.handles=e,this.controls=r}return t.prototype.mount=function(t){var e=this;Object.entries(t).forEach(function(t){var r=t[0],n=t[1];e.ACTIVE_PLUGINS[r]=n})},t.prototype.use=function(t,e){if(!(t in this.ACTIVE_PLUGINS))throw new Error("Undefined <".concat(t,"> plugin"));return(0,this.ACTIVE_PLUGINS[t])({handles:this.handles,controls:this.controls,map:this.options,utils:o.default},e)},t}();e.default=i},6486(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=r(6827),c=s(r(6350)),u=s(r(9869)),h=s(r(874)),l=s(r(3902)),f=["allow-scripts","allow-same-origin"],p=["geolocation"],d={},y=function(t){function e(e){var r=t.call(this)||this;if(r.options=e,!r.options.accessToken)throw new Error("Invalid Access Token");return r.isDev="dev"==r.options.env||!1,r.baseURL=r.isDev?"http://localhost:4800":"https://msi.dedot.io",r.isConnected=!1,r}return o(e,t),e.prototype.onload=function(t){var e=this,r=t.target;this.chn&&this.chn.removeListeners(),this.chn=new c.default({type:"WINDOW"}),this.chn.initiate(r.contentWindow,this.baseURL),this.chn.once("connect",function(){var t;null===(t=e.chn)||void 0===t||t.emit("bind",i(i({},e.options),{origin:window.origin}),function(t){if(t)return e.emit("error",new Error(t));e.isConnected=!0})}).on("error",function(t){return e.emit("error","object"==typeof t?t:new Error(t))}).on("ready",function(){console.log("Ready by ready-event"),e.emit("ready"),e.emit("loaded",e.chn)})},e.prototype.render=function(){var t=document.getElementById(this.options.element);if(!t)throw new Error("HTML Element Container <#".concat(this.options.element,"> Not Found"));t.innerHTML='<iframe id="de-sdk:map"\n src="'.concat(this.baseURL,'"\n style="width:100%;height:100%;border:none;"\n title="De.MSI Gateway"\n importance="high"\n referrerpolicy="origin"\n allow="').concat(p.join(),'"\n sandbox="').concat(f.join(" "),'"></iframe>');var e=document.getElementById("de-sdk:map");if(!e)throw new Error("Unexpected Error Occured. Check HTML Element selector");e.onload=this.onload.bind(this)},e.prototype.networkError=function(){this.isConnected=!1,this.emit("error",new Error("Internet network problem"))},e.prototype.load=function(){var t=this;return new Promise(function(e,r){t.once("loaded",function(r){var n=new h.default(r,t.options),o=new u.default(r,n,t.options),i=new l.default(r,o,n,t.options);i.mount(d),e({controls:n,handles:o,plugins:i})}).once("error",r),window.fetch(t.baseURL,{mode:"no-cors"}).then(t.render.bind(t)).catch(t.networkError.bind(t))})},e.prototype.isReady=function(){return this.chn&&this.isConnected},e.prototype.plugin=function(t,e){d[t]=e},e}(a.EventEmitter);e.default=y},5718(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(e){return t.call(this,e,"ASI")||this}return o(e,t),e.prototype.getOTP=function(t){return i(this,void 0,Promise,function(){var e,r;return s(this,function(n){switch(n.label){case 0:if(!t.phone)throw new Error("<phone> argument required");return e={url:"/auth/otp",method:"POST",body:t},[4,this.request(e)];case 1:if((r=n.sent()).error)throw new Error(r.message);return[2,r]}})})},e}(a(r(9022)).default);e.default=c},7318(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesAnalytics=void 0;var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.overview=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/analytics/overview".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.pipeline=function(t,e){return n(this,void 0,Promise,function(){var r,n,s,a;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/analytics/pipeline/".concat(t).concat((0,i.qs)(e)),method:"GET"})];case 1:if(r=o.sent(),n=r.error,s=r.message,a=r.data,n)throw new Error(s);return[2,a]}})})},t}();e.PipelinesAnalytics=s},316(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesEscalations=void 0;var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/escalations".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.resolve=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/escalations/".concat(t,"/resolve"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.PipelinesEscalations=s},2815(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesExecutions=void 0;var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/executions",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/executions".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/executions/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.start=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/executions/".concat(t,"/start"),method:"POST"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.cancel=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/executions/".concat(t,"/cancel"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t}();e.PipelinesExecutions=s},38(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=a(r(9022)),u=r(5847),h=r(3713),l=r(7972),f=r(8718),p=r(954),d=r(133),y=r(7318),m=r(2815),w=r(316),v=r(5880),b=function(t){function e(e){var r=this;if(!e)throw new Error("Undefined config");if(!e.context)throw new Error("Undefined context");if(!e.accessToken)throw new Error("Undefined accessToken");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin,version:e.version};return(r=t.call(this,n,"API")||this).monitor=new l.PipelinesMonitor(r),r.queries=new f.PipelinesQueries(r),r.webhooks=new p.PipelinesWebhooks(r),r.templates=new d.PipelinesTemplates(r),r.analytics=new y.PipelinesAnalytics(r),r.executions=new m.PipelinesExecutions(r),r.escalations=new w.PipelinesEscalations(r),r.interventions=new v.PipelinesInterventions(r),r.workers=new h.PipelinesWorkers(r),r}return o(e,t),e.prototype.list=function(t){return i(this,void 0,Promise,function(){var e,r,n,o;return s(this,function(i){switch(i.label){case 0:return[4,this.request({url:"/pipelines".concat((0,u.qs)(t)),method:"GET"})];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o]}})})},e.prototype.get=function(t){return i(this,void 0,Promise,function(){var e,r,n,o;return s(this,function(i){switch(i.label){case 0:return[4,this.request({url:"/pipelines/".concat(t),method:"GET"})];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o]}})})},e.prototype.deploy=function(t,e){return i(this,void 0,Promise,function(){var r,n,o,i;return s(this,function(s){switch(s.label){case 0:return[4,this.request({url:"/pipelines/".concat(t,"/deploy"),method:"POST",body:e})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i]}})})},e.prototype.validate=function(t){return i(this,void 0,Promise,function(){var e,r,n,o;return s(this,function(i){switch(i.label){case 0:return[4,this.request({url:"/pipelines/".concat(t,"/validate"),method:"POST"})];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o]}})})},e.prototype.simulate=function(t,e){return i(this,void 0,Promise,function(){var r,n,o,i;return s(this,function(s){switch(s.label){case 0:return[4,this.request({url:"/pipelines/".concat(t,"/simulate"),method:"POST",body:e})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i]}})})},e.prototype.setStatus=function(t,e){return i(this,void 0,Promise,function(){var r,n,o,i;return s(this,function(s){switch(s.label){case 0:return[4,this.request({url:"/pipelines/".concat(t,"/status/").concat(e),method:"PATCH"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i]}})})},e}(c.default);e.default=b},5880(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesInterventions=void 0;var o=function(){function t(t){this.http=t}return t.prototype.stage=function(t,e,o){return r(this,void 0,Promise,function(){var r,i,s,a;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/interventions/stage/".concat(t,"/").concat(e),method:"POST",body:o})];case 1:if(r=n.sent(),i=r.error,s=r.message,a=r.data,i)throw new Error(s);return[2,a]}})})},t.prototype.execution=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/interventions/execution/".concat(t),method:"POST",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t}();e.PipelinesInterventions=o},7972(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesMonitor=void 0;var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/monitor".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/monitor/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.overview=function(){return n(this,void 0,Promise,function(){var t,e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/monitor/overview",method:"GET"})];case 1:if(t=o.sent(),e=t.error,r=t.message,n=t.data,e)throw new Error(r);return[2,n]}})})},t}();e.PipelinesMonitor=s},8718(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesQueries=void 0;var o=function(){function t(t){this.http=t}return t.prototype.search=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/queries/search",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.recommend=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/queries/recommend",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.PipelinesQueries=o},133(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesTemplates=void 0;var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.create=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/templates",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/templates".concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.get=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/templates/".concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/templates/".concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.delete=function(t){return n(this,void 0,Promise,function(){var e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/pipelines/templates/".concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,r)throw new Error(n);return[2]}})})},t}();e.PipelinesTemplates=s},954(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesWebhooks=void 0;var o=function(){function t(t){this.http=t}return t.prototype.process=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/webhooks",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.attach=function(t,e){return r(this,void 0,Promise,function(){var r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/deployed/".concat(t,"/webhook"),method:"POST",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,o)throw new Error(i);return[2]}})})},t.prototype.detach=function(t){return r(this,void 0,Promise,function(){var e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/deployed/".concat(t,"/webhook"),method:"DELETE"})];case 1:if(e=n.sent(),r=e.error,o=e.message,r)throw new Error(o);return[2]}})})},t}();e.PipelinesWebhooks=o},3713(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.PipelinesWorkers=void 0;var o=function(){function t(t){this.http=t}return t.prototype.initialize=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/workers/initialize",method:"POST"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t.prototype.start=function(){return r(this,void 0,Promise,function(){var t,e,r;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/workers/start",method:"POST"})];case 1:if(t=n.sent(),e=t.error,r=t.message,e)throw new Error(r);return[2]}})})},t.prototype.stop=function(){return r(this,void 0,Promise,function(){var t,e,r;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/workers/stop",method:"POST"})];case 1:if(t=n.sent(),e=t.error,r=t.message,e)throw new Error(r);return[2]}})})},t.prototype.stats=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/workers/stats",method:"GET"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t.prototype.statsByName=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/pipelines/workers/stats/".concat(t),method:"GET"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.PipelinesWorkers=o},9389(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueriesCapacity=void 0;var i=r(5847),s=function(){function t(t){this.http=t}return t.prototype.query=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/queries/capacity/query",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.batchQuery=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/queries/capacity/query/batch",method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.getAll=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/queries/capacity/".concat(t,"/").concat(e),method:"GET"})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.invalidateCache=function(t,e,r){return n(this,void 0,Promise,function(){var n,s,a,c;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/queries/capacity/cache/".concat(t,"/").concat(e).concat((0,i.qs)(r)),method:"DELETE"})];case 1:if(n=o.sent(),s=n.error,a=n.message,c=n.data,s)throw new Error(a);return[2,c]}})})},t.prototype.cacheStats=function(){return n(this,void 0,Promise,function(){var t,e,r,n;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/queries/capacity/cache/stats",method:"GET"})];case 1:if(t=o.sent(),e=t.error,r=t.message,n=t.data,e)throw new Error(r);return[2,n]}})})},t}();e.QueriesCapacity=s},4947(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueriesDiscovery=void 0;var o=function(){function t(t){this.http=t}return t.prototype.discover=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/discovery/discover",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.advancedDiscover=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/discovery/discover/advanced",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.findAvailable=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/discovery/available",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.count=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/discovery/count",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.get=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/discovery/".concat(t),method:"GET"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.QueriesDiscovery=o},5637(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(9022)),a=r(4947),c=r(3489),u=r(9389),h=r(7927),l=r(4375),f=function(t){function e(e){var r=this;if(!e)throw new Error("Undefined config");if(!e.context)throw new Error("Undefined context");if(!e.accessToken)throw new Error("Undefined accessToken");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin,version:e.version};return(r=t.call(this,n,"API")||this).discovery=new a.QueriesDiscovery(r),r.matching=new c.QueriesMatching(r),r.capacity=new u.QueriesCapacity(r),r.performance=new h.QueriesPerformance(r),r.pricing=new l.QueriesPricing(r),r}return o(e,t),e}(s.default);e.default=f},3489(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueriesMatching=void 0;var o=function(){function t(t){this.http=t}return t.prototype.match=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/matching/match",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.QueriesMatching=o},7927(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueriesPerformance=void 0;var o=function(){function t(t){this.http=t}return t.prototype.sync=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/performance/sync",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.batchSync=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/performance/sync/batch",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.get=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/performance/".concat(t,"/").concat(e),method:"GET"})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t}();e.QueriesPerformance=o},4375(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.QueriesPricing=void 0;var o=function(){function t(t){this.http=t}return t.prototype.get=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/pricing/".concat(t,"/").concat(e),method:"GET"})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.estimate=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/pricing/estimate",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.compare=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/pricing/compare",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.invalidateCache=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/pricing/cache/".concat(t,"/").concat(e),method:"DELETE"})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.cacheStats=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/queries/pricing/cache/stats",method:"GET"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t}();e.QueriesPricing=o},338(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(7273)),a=i(r(9022)),c=r(619),u=function(t){function e(e){var r=t.call(this,e,"API")||this;return r.iosHost=c.RTS_SERVER_BASEURL[e.env],r}return o(e,t),e.prototype.connect=function(t){var e=this;return new Promise(function(r,n){var o={utype:"client",id:t,remoteOrigin:(null===globalThis||void 0===globalThis?void 0:globalThis.window)?globalThis.origin:e.remoteOrigin,accessToken:e.accessToken};e.nsp=(0,s.default)(e.iosHost,{auth:o}),e.nsp.on("connect",r),e.nsp.on("connect_error",n)})},e.prototype.disconnect=function(){var t;return null===(t=this.nsp)||void 0===t||t.disconnect(),!0},e.prototype.join=function(t){var e=this;return new Promise(function(r,n){var o;null===(o=e.nsp)||void 0===o||o.emit("JOIN",t,function(t){t?n(new Error(t)):r(!0)})})},e.prototype.onLeft=function(t){var e;return null===(e=this.nsp)||void 0===e||e.on("LEFT",t),this},e.prototype.onConnected=function(t){var e;return null===(e=this.nsp)||void 0===e||e.on("CONNECTED",t),this},e.prototype.onDisconnected=function(t){var e;return null===(e=this.nsp)||void 0===e||e.on("DISCONNECTED",t),this},e}(a.default);e.default=u},6957(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.http=t,this.ctype=e}return t.prototype.knows=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/account/knows"),method:"GET"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t.prototype.retrieve=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/account"),method:"GET"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t}();e.default=o},5357(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.http=t,this.ctype=e}return t.prototype.create=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets"),method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.list=function(){return r(this,void 0,Promise,function(){var t,e,r,o;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets"),method:"GET"})];case 1:if(t=n.sent(),e=t.error,r=t.message,o=t.data,e)throw new Error(r);return[2,o]}})})},t.prototype.retrieve=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t),method:"GET"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.update=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t),method:"PATCH",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t),method:"DELETE"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.assign=function(t,e,o){return r(this,void 0,Promise,function(){var r,i,s,a;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/assign/").concat(e),method:"POST",body:o})];case 1:if(r=n.sent(),i=r.error,s=r.message,a=r.data,i)throw new Error(s);return[2,a]}})})},t.prototype.unassign=function(t,e,o){return r(this,void 0,Promise,function(){var r,i,s,a;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/unassign/").concat(e),method:"POST",body:o})];case 1:if(r=n.sent(),i=r.error,s=r.message,a=r.data,i)throw new Error(s);return[2,a]}})})},t.prototype.lock=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/lock"),method:"PATCH"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.unlock=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/unlock"),method:"PATCH"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.addItem=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/items"),method:"POST",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.removeItem=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/items"),method:"DELETE",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.listItems=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/items"),method:"GET"})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.markPackaged=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/buckets/").concat(t,"/packaged"),method:"POST",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t}();e.default=o},4109(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(9022)),a=i(r(9945)),c=i(r(8474)),u=i(r(6957)),h=i(r(3751)),l=function(t){function e(e,r){var n=t.call(this,e,"API")||this;return n.faqs=new a.default(n,r),n.users=new c.default(n,r),n.account=new u.default(n,r),n.invitation=new h.default(n,r),n}return o(e,t),e}(s.default);e.default=l},9945(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t,e){this.http=t,this.ctype=e}return t.prototype.add=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs"),method:"POST",body:t})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs").concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.search=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/search").concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.addServiceContext=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t,"/context"),method:"POST",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.removeServiceContext=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t,"/context"),method:"DELETE",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.archive=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t,"/archive"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.restore=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t,"/restore"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.lock=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t,"/lock"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.unlock=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/faqs/").concat(t,"/unlock"),method:"PATCH"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},3751(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){this.http=t,this.prefix=e}return t.prototype.send=function(t,e){return r(this,void 0,Promise,function(){var r,o,i,s;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.prefix,"/invitation/").concat(t),method:"POST",body:e})];case 1:if(r=n.sent(),o=r.error,i=r.message,s=r.data,o)throw new Error(i);return[2,s]}})})},t.prototype.cancel=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.prefix,"/invitation/cancel"),method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.accept=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/".concat(this.prefix,"/invitation/accept"),method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.default=o},9155(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t,e){this.http=t,this.ctype=e}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/operators").concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/operators/").concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.update=function(t,e){return n(this,void 0,Promise,function(){var r,n,i,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/operators/").concat(t),method:"PATCH",body:e})];case 1:if(r=o.sent(),n=r.error,i=r.message,s=r.data,n)throw new Error(i);return[2,s]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/operators/").concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},8474(t,e,r){"use strict";var n=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(5847),s=function(){function t(t,e){this.http=t,this.ctype=e}return t.prototype.list=function(t){return n(this,void 0,Promise,function(){var e,r,n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/users").concat((0,i.qs)(t)),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,s=e.data,r)throw new Error(n);return[2,s]}})})},t.prototype.retrieve=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/users/").concat(t),method:"GET"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t.prototype.remove=function(t){return n(this,void 0,Promise,function(){var e,r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.http.request({url:"/".concat(this.ctype.toLowerCase(),"/users/").concat(t),method:"DELETE"})];case 1:if(e=o.sent(),r=e.error,n=e.message,i=e.data,r)throw new Error(n);return[2,i]}})})},t}();e.default=s},8594(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=a(r(9022)),u=r(5847),h=function(t){function e(e){if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/tracking");var r={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return t.call(this,r,"API")||this}return o(e,t),e.prototype.getSession=function(t,e){return i(this,void 0,Promise,function(){var r,n,o,i;return s(this,function(s){switch(s.label){case 0:return[4,this.request({url:"/tracking/".concat(t).concat((0,u.qs)({role:e})),method:"GET"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i]}})})},e}(c.default);e.default=h},4132(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.UtilitiesCommon=void 0;var o=function(){function t(t){this.http=t}return t.prototype.distance=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/distance",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.distanceMatrix=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/distance/matrix",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.savingsMatrix=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/distance/savings",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.assignZone=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/zone",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.eta=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/eta",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.batchGeocode=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/geocode/batch",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.UtilitiesCommon=o},9368(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.UtilitiesFares=void 0;var o=function(){function t(t){this.http=t}return t.prototype.deliveryFees=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/fares/delivery",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.transportFare=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/fares/transport",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.rideFare=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/fares/ride",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.crossBorderFare=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/fares/crossborder",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.UtilitiesFares=o},9065(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var s=i(r(9022)),a=r(4132),c=r(9368),u=r(6718),h=function(t){function e(e){var r=this;if(!e)throw new Error("Undefined config");if(!e.context)throw new Error("Undefined context");if(!e.accessToken)throw new Error("Undefined accessToken");var n={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin,version:e.version};return(r=t.call(this,n,"API")||this).common=new a.UtilitiesCommon(r),r.fares=new c.UtilitiesFares(r),r.nearby=new u.UtilitiesNearby(r),r}return o(e,t),e}(s.default);e.default=h},6718(t,e){"use strict";var r=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},n=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.UtilitiesNearby=void 0;var o=function(){function t(t){this.http=t}return t.prototype.search=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/nearby/search",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.searchInBounds=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/nearby/bounds",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t.prototype.findNearest=function(t){return r(this,void 0,Promise,function(){var e,r,o,i;return n(this,function(n){switch(n.label){case 0:return[4,this.http.request({url:"/utilities/nearby/nearest",method:"POST",body:t})];case 1:if(e=n.sent(),r=e.error,o=e.message,i=e.data,r)throw new Error(o);return[2,i]}})})},t}();e.UtilitiesNearby=o},3900(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(e,r){var n=this;if(!e)throw new Error("Undefined <clientId>");return(n=t.call(this,r,"API")||this).clientId=e,n}return o(e,t),e.prototype.fetchActiveOrders=function(){return i(this,void 0,void 0,function(){var t,e,r,n,o;return s(this,function(i){switch(i.label){case 0:if(!this.accessToken)throw new Error("Authentication required");return t={url:"/client/".concat(this.clientId,"/orders/actives"),method:"GET"},[4,this.request(t)];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o.orders]}})})},e.prototype.fetchOrderHistory=function(){return i(this,void 0,void 0,function(){var t,e,r,n,o;return s(this,function(i){switch(i.label){case 0:if(!this.accessToken)throw new Error("Authentication required");return t={url:"/client/".concat(this.clientId,"/orders/history"),method:"GET"},[4,this.request(t)];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o.orders]}})})},e.prototype.nearby=function(t){return i(this,void 0,void 0,function(){var e,r,n,o,i;return s(this,function(s){switch(s.label){case 0:if(!this.accessToken)throw new Error("Authentication required");if(!t)throw new Error("Undefined epicenter location");if(!t.lng||!t.lat)throw new Error("Invalid location coordinates");return e={url:"/client/".concat(this.clientId,"/nearby"),method:"POST",body:t},[4,this.request(e)];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i.nearby]}})})},e}(a(r(9022)).default);e.default=c},2111(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){this.lsp=t}},8803(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(2111));e.default=function(t){var e=t.lsp;if(!e)throw new Error("<core> instance required. Pass a Core instance to Workflows.");this.delivery=new o.default(e)}},300(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},s=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var c=function(t){function e(e){if(!e.context)throw new Error("Undefined context. See https://doc.dedot.io/sdk/workspace");if(!e.accessToken)throw new Error("Undefined accessToken. See https://doc.dedot.io/sdk/auth");var r={context:e.context,accessToken:e.accessToken,env:e.env||"dev",platform:e.platform||"proxy",remoteOrigin:e.remoteOrigin};return t.call(this,r,"API")||this}return o(e,t),e.prototype.get=function(){return i(this,void 0,Promise,function(){var t,e,r,n;return s(this,function(o){switch(o.label){case 0:return[4,this.request({url:"/workspace",method:"GET"})];case 1:if(t=o.sent(),e=t.error,r=t.message,n=t.data,e)throw new Error(r);return[2,n]}})})},e.prototype.listAdmins=function(t){return i(this,void 0,Promise,function(){var e,r,n,o,i;return s(this,function(s){switch(s.label){case 0:return e=t?"?"+new URLSearchParams(t).toString():"",[4,this.request({url:"/workspace/admins".concat(e),method:"GET"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i.admins]}})})},e.prototype.listConnectors=function(t){return i(this,void 0,Promise,function(){var e,r,n,o,i;return s(this,function(s){switch(s.label){case 0:return e=t?"?"+new URLSearchParams(t).toString():"",[4,this.request({url:"/workspace/connectors".concat(e),method:"GET"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i.connectors]}})})},e.prototype.getConnector=function(t){return i(this,void 0,Promise,function(){var e,r,n,o;return s(this,function(i){switch(i.label){case 0:return[4,this.request({url:"/workspace/connectors/".concat(t),method:"GET"})];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return[2,o.connector]}})})},e.prototype.getBillings=function(t){return i(this,void 0,Promise,function(){var e,r,n,o,i;return s(this,function(s){switch(s.label){case 0:return e=t?"?"+new URLSearchParams(t).toString():"",[4,this.request({url:"/workspace/billings".concat(e),method:"GET"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i]}})})},e.prototype.listLSPs=function(t){return i(this,void 0,Promise,function(){var e,r,n,o,i;return s(this,function(s){switch(s.label){case 0:return e=t?"?"+new URLSearchParams(t).toString():"",[4,this.request({url:"/workspace/providers/lsps".concat(e),method:"GET"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i.lsps]}})})},e.prototype.listCSPs=function(t){return i(this,void 0,Promise,function(){var e,r,n,o,i;return s(this,function(s){switch(s.label){case 0:return e=t?"?"+new URLSearchParams(t).toString():"",[4,this.request({url:"/workspace/providers/csps".concat(e),method:"GET"})];case 1:if(r=s.sent(),n=r.error,o=r.message,i=r.data,n)throw new Error(o);return[2,i.csps]}})})},e}(a(r(9022)).default);e.default=c},6870(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Utilities=e.Queries=e.Agent=e.Customer=e.IoTClient=e.DClient=e.Utils=e.MSI=void 0;var o=n(r(6486));e.MSI=o.default;var i=n(r(5847));e.Utils=i.default;var s=n(r(6413));e.IoTClient=s.default;var a=n(r(338)),c=n(r(3900)),u=n(r(6555));e.Customer=u.default;var h=n(r(6708));e.Agent=h.default;var l=n(r(5637));e.Queries=l.default;var f=n(r(9065));e.Utilities=f.default;var p={Client:c.default,Event:a.default};e.DClient=p},1930(t,e,r){"use strict";var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function s(t){try{c(n.next(t))}catch(t){i(t)}}function a(t){try{c(n.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(s,a)}c((n=n.apply(t,e||[])).next())})},i=this&&this.__generator||function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},s=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r},a=this&&this.__spreadArray||function(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0});var c=r(619),u=function(){function t(t){if(this.isRotating=!1,!t)throw new Error("Undefined config. Check https://doc.dedot.io/sdk/auth");if(!t.context)throw new Error("Undefined context. Check https://doc.dedot.io/sdk/auth");if(!t.cid)throw new Error("Undefined cid. Check https://doc.dedot.io/sdk/auth");if(!t.secret)throw new Error("Undefined secret. Check https://doc.dedot.io/sdk/auth");this.context=t.context,this.cid=t.cid,this.secret=t.secret,this.remoteOrigin=t.remoteOrigin,this.env=t.env||"dev",this.version=t.version||1,this.baseURL=c.API_SERVER_BASEURL[this.env],this.autorefresh=t.autorefresh||!1,this.onNewToken=t.onNewToken}return t.prototype.request=function(t){return o(this,void 0,Promise,function(){var e,r=t.url,o=s(t,["url"]);return i(this,function(t){switch(t.label){case 0:return e={method:"GET",headers:{origin:this.remoteOrigin,"de-user-agent":"De.remote/".concat(this.version,".0")}},this.accessToken&&(e.headers.authorization="Bearer ".concat(this.accessToken)),o.body&&(e.headers["content-type"]="application/json","object"==typeof o.body&&(o.body=JSON.stringify(o.body))),o=n(n({},e),o),this.debug("Auth request","".concat(this.baseURL,"/v").concat(this.version,"/").concat(r.replace(/^\//,"")),o),[4,fetch("".concat(this.baseURL,"/v").concat(this.version,"/").concat(r.replace(/^\//,"")),o)];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}})})},t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"dev"===this.env&&console.debug.apply(console,a(["[Auth]"],t,!1))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];console.error.apply(console,a(["[Auth]"],t,!1))},t.prototype.scheduleRotation=function(){var t=this;this.autorefresh&&(this.clearRotation(),this.refreshTimer=setTimeout(function(){return t.rotateToken()},225e3))},t.prototype.clearRotation=function(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)},t.prototype.getToken=function(){return o(this,void 0,Promise,function(){var t,e,r,n,o;return i(this,function(i){switch(i.label){case 0:return t={url:"/access/token",method:"POST",body:{context:this.context,cid:this.cid,secret:this.secret,remoteOrigin:this.remoteOrigin}},[4,this.request(t)];case 1:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);return this.accessToken=o.token,this.scheduleRotation(),[2,o.token]}})})},t.prototype.rotateToken=function(){return o(this,void 0,Promise,function(){var t,e,r,n,o,s,a,c;return i(this,function(i){switch(i.label){case 0:if(this.isRotating)return this.debug("Token rotation already in progress, skipping"),[2,this.accessToken];if(!this.accessToken)throw new Error("No access token found");this.isRotating=!0,i.label=1;case 1:return i.trys.push([1,3,8,9]),t={url:"/access/token/rotate",method:"PATCH",body:{secret:this.secret}},[4,this.request(t)];case 2:if(e=i.sent(),r=e.error,n=e.message,o=e.data,r)throw new Error(n);if(this.accessToken=o.token,"function"==typeof this.onNewToken)try{this.onNewToken(o.token)}catch(t){this.error("[Auth] Error in onNewToken callback:",t)}return this.scheduleRotation(),this.debug("Token rotated successfully"),[2,o.token];case 3:s=i.sent(),this.debug("Refresh access token failed:",s.message),i.label=4;case 4:return i.trys.push([4,6,,7]),[4,this.getToken()];case 5:if(a=i.sent(),this.debug("Fallback to new token successful"),this.onNewToken)try{this.onNewToken(a)}catch(t){this.error("Error in onNewToken callback:",t)}return[2,a];case 6:throw c=i.sent(),this.error("Fallback to new token also failed:",c.message),c;case 7:return[3,9];case 8:return this.isRotating=!1,[7];case 9:return[2]}})})},t.prototype.stopAutoRefresh=function(){this.debug("Stopping auto-refresh"),this.clearRotation(),this.autorefresh=!1},t.prototype.startAutoRefresh=function(){this.debug("Starting auto-refresh"),this.autorefresh=!0,this.scheduleRotation()},t.prototype.destroy=function(){this.debug("Destroying Auth instance"),this.stopAutoRefresh(),this.accessToken=void 0,this.onNewToken=void 0},t}();e.default=u},619(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IOT_SERVER_BASEURL=e.API_SERVER_BASEURL=e.RTS_SERVER_BASEURL=e.ASI_SERVER_BASEURL=void 0,e.ASI_SERVER_BASEURL={dev:"http://localhost:44000",staging:"https://auth.staging.dedot.io",prod:"https://auth.dedot.io"},e.RTS_SERVER_BASEURL={dev:"http://localhost:24800",staging:"https://api.staging.dedot.io",prod:"https://api.dedot.io"},e.API_SERVER_BASEURL={dev:"http://localhost:24800",staging:"https://api.staging.dedot.io",prod:"https://api.dedot.io"},e.IOT_SERVER_BASEURL={dev:"http://localhost:11011",staging:"https://iot.staging.dedot.io",prod:"https://iot.dedot.io"}},289(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Utilities=e.Queries=e.Agent=e.Customer=e.IoTClient=e.DClient=e.Utils=e.Workflows=e.Realtime=e.MSI=e.Workspace=e.IoTBackendRecords=e.IoTSP=e.DEV=e.CSP=e.LSP=e.Pipelines=e.Tracking=e.OTPAuth=e.Auth=void 0;var o=r(1930);Object.defineProperty(e,"Auth",{enumerable:!0,get:function(){return n(o).default}});var i=r(5718);Object.defineProperty(e,"OTPAuth",{enumerable:!0,get:function(){return n(i).default}});var s=r(8594);Object.defineProperty(e,"Tracking",{enumerable:!0,get:function(){return n(s).default}});var a=r(38);Object.defineProperty(e,"Pipelines",{enumerable:!0,get:function(){return n(a).default}});var c=r(4406);Object.defineProperty(e,"LSP",{enumerable:!0,get:function(){return n(c).default}});var u=r(459);Object.defineProperty(e,"CSP",{enumerable:!0,get:function(){return n(u).default}});var h=r(8186);Object.defineProperty(e,"DEV",{enumerable:!0,get:function(){return n(h).default}});var l=r(4690);Object.defineProperty(e,"IoTSP",{enumerable:!0,get:function(){return n(l).default}}),Object.defineProperty(e,"IoTBackendRecords",{enumerable:!0,get:function(){return l.Records}});var f=r(300);Object.defineProperty(e,"Workspace",{enumerable:!0,get:function(){return n(f).default}});var p=r(6486);Object.defineProperty(e,"MSI",{enumerable:!0,get:function(){return n(p).default}});var d=r(338);Object.defineProperty(e,"Realtime",{enumerable:!0,get:function(){return n(d).default}});var y=r(8803);Object.defineProperty(e,"Workflows",{enumerable:!0,get:function(){return n(y).default}});var m=r(5847);Object.defineProperty(e,"Utils",{enumerable:!0,get:function(){return n(m).default}});var w=r(6870);Object.defineProperty(e,"DClient",{enumerable:!0,get:function(){return w.DClient}}),Object.defineProperty(e,"IoTClient",{enumerable:!0,get:function(){return w.IoTClient}}),Object.defineProperty(e,"Customer",{enumerable:!0,get:function(){return w.Customer}}),Object.defineProperty(e,"Agent",{enumerable:!0,get:function(){return w.Agent}}),Object.defineProperty(e,"Queries",{enumerable:!0,get:function(){return w.Queries}}),Object.defineProperty(e,"Utilities",{enumerable:!0,get:function(){return w.Utilities}});var v=n(r(1930)),b=n(r(5718)),g=n(r(38)),P=n(r(6486)),E=n(r(338)),_=n(r(9430)),T=n(r(4406)),k=n(r(459)),O=n(r(8186)),S=n(r(4690)),q=n(r(300)),C=n(r(8803)),x=n(r(8594)),j=n(r(5847)),A=r(6870),R={Auth:v.default,OTPAuth:b.default,Pipelines:g.default,MSI:P.default,Realtime:E.default,IoT:_.default,LSP:T.default,CSP:k.default,DEV:O.default,IoTSP:S.default,Workspace:q.default,Workflows:C.default,Tracking:x.default,Utils:j.default,DClient:A.DClient,IoTClient:A.IoTClient,Customer:A.Customer,Agent:A.Agent,Queries:A.Queries,Utilities:A.Utilities};e.default=R},5847(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.qs=void 0;var o=n(r(1403));e.qs=function(t){if(!t)return"";var e=new URLSearchParams(Object.fromEntries(Object.entries(t).filter(function(t){return null!=t[1]}).map(function(t){var e=t[0],r=t[1];return[e,String(r)]}))).toString();return e?"?".concat(e):""},e.default={Stream:o.default}},1403(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this._STALED=!1,this._CLOSED=!1,this._fns=[],this._exitFn=function(){},this._errorFn=function(t){}}return t.prototype._upstream=function(t){return this._upStream=t,this},t.prototype._backpressure=function(t){!this._CLOSED&&this._fns.map(function(e){return e(t)})},t.prototype.sync=function(t){var e;!this._CLOSED&&(null===(e=this._downStream)||void 0===e||e._backpressure(t))},t.prototype.on=function(t,e){if(this._CLOSED)throw new Error("Stream closed");return this._fns.push(e),this},t.prototype.pipe=function(t){return t._upstream(this),this._downStream=t,this},t.prototype.error=function(t){var e;return this._errorFn("string"==typeof t?new Error(t):t),null===(e=this._downStream)||void 0===e||e.error(t),this},t.prototype.close=function(){var t;this._CLOSED||(this._CLOSED=!0,this._fns=[],this._exitFn(),null===(t=this._downStream)||void 0===t||t.close())},t.prototype.isActive=function(){return!this._CLOSED},t.prototype.onerror=function(t){return this._errorFn=t,this},t.prototype.onclose=function(t){return this._exitFn=t,this},t}();e.default=r},3092(t,e){"use strict";var r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==r)return r;throw new Error("unable to locate global object")}();t.exports=e=r.fetch,r.fetch&&(e.default=r.fetch.bind(r)),e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response},8888(t,e){"use strict";e.hasCORS=void 0;let r=!1;try{r="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}e.hasCORS=r},5163(t,e){"use strict";e.encode=function(t){let e="";for(let r in t)t.hasOwnProperty(r)&&(e.length&&(e+="&"),e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r]));return e},e.decode=function(t){let e={},r=t.split("&");for(let t=0,n=r.length;t<n;t++){let n=r[t].split("=");e[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return e}},8745(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parse=function(t){if(t.length>8e3)throw"URI too long";const e=t,o=t.indexOf("["),i=t.indexOf("]");-1!=o&&-1!=i&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));let s=r.exec(t||""),a={},c=14;for(;c--;)a[n[c]]=s[c]||"";return-1!=o&&-1!=i&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(t,e){const r=e.replace(/\/{2,9}/g,"/").split("/");return"/"!=e.slice(0,1)&&0!==e.length||r.splice(0,1),"/"==e.slice(-1)&&r.splice(r.length-1,1),r}(0,a.path),a.queryKey=function(t,e){const r={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,n){e&&(r[e]=n)}),r}(0,a.query),a};const r=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,n=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"]},1970(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultBinaryType=e.globalThisShim=e.nextTick=void 0,e.createCookieJar=function(){},e.nextTick="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),e.globalThisShim="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")(),e.defaultBinaryType="arraybuffer"},9986(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WebTransport=e.WebSocket=e.NodeWebSocket=e.XHR=e.NodeXHR=e.Fetch=e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.TransportError=e.Transport=e.protocol=e.SocketWithUpgrade=e.SocketWithoutUpgrade=e.Socket=void 0;const n=r(4157);Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return n.Socket}});var o=r(4157);Object.defineProperty(e,"SocketWithoutUpgrade",{enumerable:!0,get:function(){return o.SocketWithoutUpgrade}}),Object.defineProperty(e,"SocketWithUpgrade",{enumerable:!0,get:function(){return o.SocketWithUpgrade}}),e.protocol=n.Socket.protocol;var i=r(1647);Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return i.Transport}}),Object.defineProperty(e,"TransportError",{enumerable:!0,get:function(){return i.TransportError}});var s=r(9241);Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return s.transports}});var a=r(7292);Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return a.installTimerFunctions}});var c=r(8745);Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return c.parse}});var u=r(1970);Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return u.nextTick}});var h=r(4031);Object.defineProperty(e,"Fetch",{enumerable:!0,get:function(){return h.Fetch}});var l=r(2369);Object.defineProperty(e,"NodeXHR",{enumerable:!0,get:function(){return l.XHR}});var f=r(2369);Object.defineProperty(e,"XHR",{enumerable:!0,get:function(){return f.XHR}});var p=r(5870);Object.defineProperty(e,"NodeWebSocket",{enumerable:!0,get:function(){return p.WS}});var d=r(5870);Object.defineProperty(e,"WebSocket",{enumerable:!0,get:function(){return d.WS}});var y=r(2050);Object.defineProperty(e,"WebTransport",{enumerable:!0,get:function(){return y.WT}})},4157(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Socket=e.SocketWithUpgrade=e.SocketWithoutUpgrade=void 0;const o=r(9241),i=r(7292),s=r(5163),a=r(8745),c=r(4196),u=r(3490),h=r(1970),l=(0,n(r(7989)).default)("engine.io-client:socket"),f="function"==typeof addEventListener&&"function"==typeof removeEventListener,p=[];f&&addEventListener("offline",()=>{l("closing %d connection(s) because the network was lost",p.length),p.forEach(t=>t())},!1);class d extends c.Emitter{constructor(t,e){if(super(),this.binaryType=h.defaultBinaryType,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){const r=(0,a.parse)(t);e.hostname=r.host,e.secure="https"===r.protocol||"wss"===r.protocol,e.port=r.port,r.query&&(e.query=r.query)}else e.host&&(e.hostname=(0,a.parse)(e.host).host);(0,i.installTimerFunctions)(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{const e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=(0,s.decode)(this.opts.query)),f&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(l("adding listener for the 'offline' event"),this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},p.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=(0,h.createCookieJar)()),this._open()}createTransport(t){l('creating transport "%s"',t);const e=Object.assign({},this.opts.query);e.EIO=u.protocol,e.transport=t,this.id&&(e.sid=this.id);const r=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return l("options: %j",r),new this._transportsByName[t](r)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);const t=this.opts.rememberUpgrade&&d.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";const e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){l("setting transport %s",t.name),this.transport&&(l("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){l("socket open"),this.readyState="open",d.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(l('socket receive: type "%s", data "%s"',t.type,t.data),this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const e=new Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}else l('packet received with socket readyState "%s"',this.readyState)}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this._getWritablePackets();l("flushing %d packets in socket",t.length),this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){const r=this.writeBuffer[e].data;if(r&&(t+=(0,i.byteLength)(r)),e>0&&t>this._maxPayload)return l("only send %d out of %d packets",e,this.writeBuffer.length),this.writeBuffer.slice(0,e);t+=2}return l("payload size is %d (max: %d)",t,this._maxPayload),this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const t=Date.now()>this._pingTimeoutTime;return t&&(l("throttled timer detected, scheduling connection close"),this._pingTimeoutTime=0,(0,h.nextTick)(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,r){return this._sendPacket("message",t,e,r),this}send(t,e,r){return this._sendPacket("message",t,e,r),this}_sendPacket(t,e,r,n){if("function"==typeof e&&(n=e,e=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const o={type:t,data:e,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),n&&this.once("flush",n),this.flush()}close(){const t=()=>{this._onClose("forced close"),l("socket closing - telling transport to close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},r=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}_onError(t){if(l("socket error %j",t),d.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return l("trying next transport"),this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(l('socket close with reason: "%s"',t),this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),f&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const t=p.indexOf(this._offlineEventListener);-1!==t&&(l("removing listener for the 'offline' event"),p.splice(t,1))}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}e.SocketWithoutUpgrade=d,d.protocol=u.protocol;class y extends d{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade){l("starting upgrade probes");for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}}_probe(t){l('probing transport "%s"',t);let e=this.createTransport(t),r=!1;d.priorWebsocketSuccess=!1;const n=()=>{r||(l('probe transport "%s" opened',t),e.send([{type:"ping",data:"probe"}]),e.once("packet",n=>{if(!r)if("pong"===n.type&&"probe"===n.data){if(l('probe transport "%s" pong',t),this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;d.priorWebsocketSuccess="websocket"===e.name,l('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{r||"closed"!==this.readyState&&(l("changing transport and sending upgrade packet"),u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{l('probe transport "%s" failed',t);const r=new Error("probe error");r.transport=e.name,this.emitReserved("upgradeError",r)}}))};function o(){r||(r=!0,u(),e.close(),e=null)}const i=r=>{const n=new Error("probe error: "+r);n.transport=e.name,o(),l('probe transport "%s" failed because of error: %s',t,r),this.emitReserved("upgradeError",n)};function s(){i("transport closed")}function a(){i("socket closed")}function c(t){e&&t.name!==e.name&&(l('"%s" works - aborting "%s"',t.name,e.name),o())}const u=()=>{e.removeListener("open",n),e.removeListener("error",i),e.removeListener("close",s),this.off("close",a),this.off("upgrading",c)};e.once("open",n),e.once("error",i),e.once("close",s),this.once("close",a),this.once("upgrading",c),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{r||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){const e=[];for(let r=0;r<t.length;r++)~this.transports.indexOf(t[r])&&e.push(t[r]);return e}}e.SocketWithUpgrade=y,e.Socket=class extends y{constructor(t,e={}){const r="object"==typeof t,n=r?{...t}:{...e};(!n.transports||n.transports&&"string"==typeof n.transports[0])&&(n.transports=(n.transports||["polling","websocket","webtransport"]).map(t=>o.transports[t]).filter(t=>!!t)),super(r?n:t,n)}}},1647(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Transport=e.TransportError=void 0;const o=r(3490),i=r(4196),s=r(7292),a=r(5163),c=(0,n(r(7989)).default)("engine.io-client:transport");class u extends Error{constructor(t,e,r){super(t),this.description=e,this.context=r,this.type="TransportError"}}e.TransportError=u;class h extends i.Emitter{constructor(t){super(),this.writable=!1,(0,s.installTimerFunctions)(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,r){return super.emitReserved("error",new u(t,e,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState?this.write(t):c("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const e=(0,o.decodePacket)(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){const t=this.opts.hostname;return-1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&443!==Number(this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){const e=(0,a.encode)(t);return e.length?"?"+e:""}}e.Transport=h},9241(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.transports=void 0;const n=r(2369),o=r(5870),i=r(2050);e.transports={websocket:o.WS,webtransport:i.WT,polling:n.XHR}},4031(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Fetch=void 0;const n=r(9862);class o extends n.Polling{doPoll(){this._fetch().then(t=>{if(!t.ok)return this.onError("fetch read error",t.status,t);t.text().then(t=>this.onData(t))}).catch(t=>{this.onError("fetch read error",t)})}doWrite(t,e){this._fetch(t).then(t=>{if(!t.ok)return this.onError("fetch write error",t.status,t);e()}).catch(t=>{this.onError("fetch write error",t)})}_fetch(t){var e;const r=void 0!==t,n=new Headers(this.opts.extraHeaders);return r&&n.set("content-type","text/plain;charset=UTF-8"),null===(e=this.socket._cookieJar)||void 0===e||e.appendCookies(n),fetch(this.uri(),{method:r?"POST":"GET",body:r?t:null,headers:n,credentials:this.opts.withCredentials?"include":"omit"}).then(t=>{var e;return null===(e=this.socket._cookieJar)||void 0===e||e.parseCookies(t.headers.getSetCookie()),t})}}e.Fetch=o},2369(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.XHR=e.Request=e.BaseXHR=void 0;const o=r(9862),i=r(4196),s=r(7292),a=r(1970),c=r(8888),u=(0,n(r(7989)).default)("engine.io-client:polling");function h(){}class l extends o.Polling{constructor(t){if(super(t),"undefined"!=typeof location){const e="https:"===location.protocol;let r=location.port;r||(r=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||r!==t.port}}doWrite(t,e){const r=this.request({method:"POST",data:t});r.on("success",e),r.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){u("xhr poll");const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}e.BaseXHR=l;class f extends i.Emitter{constructor(t,e,r){super(),this.createRequest=t,(0,s.installTimerFunctions)(this,r),this._opts=r,this._method=r.method||"GET",this._uri=e,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var t;const e=(0,s.pick)(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;const r=this._xhr=this.createRequest(e);try{u("xhr open %s: %s",this._method,this._uri),r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let t in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&r.setRequestHeader(t,this._opts.extraHeaders[t])}}catch(t){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{r.setRequestHeader("Accept","*/*")}catch(t){}null===(t=this._opts.cookieJar)||void 0===t||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var t;3===r.readyState&&(null===(t=this._opts.cookieJar)||void 0===t||t.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},u("xhr data %s",this._data),r.send(this._data)}catch(t){return void this.setTimeoutFn(()=>{this._onError(t)},0)}"undefined"!=typeof document&&(this._index=f.requestsCount++,f.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=h,t)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete f.requests[this._index],this._xhr=null}}_onLoad(){const t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}if(e.Request=f,f.requestsCount=0,f.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",p);else if("function"==typeof addEventListener){const t="onpagehide"in a.globalThisShim?"pagehide":"unload";addEventListener(t,p,!1)}function p(){for(let t in f.requests)f.requests.hasOwnProperty(t)&&f.requests[t].abort()}const d=function(){const t=y({xdomain:!1});return t&&null!==t.responseType}();function y(t){const e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||c.hasCORS))return new XMLHttpRequest}catch(t){}if(!e)try{return new(a.globalThisShim[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}e.XHR=class extends l{constructor(t){super(t);const e=t&&t.forceBase64;this.supportsBinary=d&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new f(y,this.uri(),t)}}},9862(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Polling=void 0;const o=r(1647),i=r(7292),s=r(3490),a=(0,n(r(7989)).default)("engine.io-client:polling");class c extends o.Transport{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";const e=()=>{a("paused"),this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(a("we are currently polling - waiting to pause"),t++,this.once("pollComplete",function(){a("pre-pause polling complete"),--t||e()})),this.writable||(a("we are currently writing - waiting to pause"),t++,this.once("drain",function(){a("pre-pause writing complete"),--t||e()}))}else e()}_poll(){a("polling"),this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){a("polling got data %s",t),(0,s.decodePayload)(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState?this._poll():a('ignoring poll - transport state "%s"',this.readyState))}doClose(){const t=()=>{a("writing close packet"),this.write([{type:"close"}])};"open"===this.readyState?(a("transport open - closing"),t()):(a("transport not open - deferring close"),this.once("open",t))}write(t){this.writable=!1,(0,s.encodePayload)(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,i.randomString)()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}e.Polling=c},5870(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WS=e.BaseWS=void 0;const o=r(1647),i=r(7292),s=r(3490),a=r(1970),c=(0,n(r(7989)).default)("engine.io-client:websocket"),u="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class h extends o.Transport{get name(){return"websocket"}doOpen(){const t=this.uri(),e=this.opts.protocols,r=u?{}:(0,i.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,r)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const r=t[e],n=e===t.length-1;(0,s.encodePacket)(r,this.supportsBinary,t=>{try{this.doWrite(r,t)}catch(t){c("websocket closed before onclose event")}n&&(0,a.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=(0,i.randomString)()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}e.BaseWS=h;const l=a.globalThisShim.WebSocket||a.globalThisShim.MozWebSocket;e.WS=class extends h{createSocket(t,e,r){return u?new l(t,e,r):e?new l(t,e):new l(t)}doWrite(t,e){this.ws.send(e)}}},2050(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WT=void 0;const o=r(1647),i=r(1970),s=r(3490),a=(0,n(r(7989)).default)("engine.io-client:webtransport");class c extends o.Transport{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{a("transport closed gracefully"),this.onClose()}).catch(t=>{a("transport closed due to %s",t),this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{const e=(0,s.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(e).getReader(),n=(0,s.createPacketEncoderStream)();n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();const o=()=>{r.read().then(({done:t,value:e})=>{t?a("session is closed"):(a("received chunk: %o",e),this.onPacket(e),o())}).catch(t=>{a("an error occurred while reading: %s",t)})};o();const i={type:"open"};this.query.sid&&(i.data=`{"sid":"${this.query.sid}"}`),this._writer.write(i).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){const r=t[e],n=e===t.length-1;this._writer.write(r).then(()=>{n&&(0,i.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null===(t=this._transport)||void 0===t||t.close()}}e.WT=c},7292(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pick=function(t,...e){return e.reduce((e,r)=>(t.hasOwnProperty(r)&&(e[r]=t[r]),e),{})},e.installTimerFunctions=function(t,e){e.useNativeTimers?(t.setTimeoutFn=o.bind(n.globalThisShim),t.clearTimeoutFn=i.bind(n.globalThisShim)):(t.setTimeoutFn=n.globalThisShim.setTimeout.bind(n.globalThisShim),t.clearTimeoutFn=n.globalThisShim.clearTimeout.bind(n.globalThisShim))},e.byteLength=function(t){return"string"==typeof t?function(t){let e=0,r=0;for(let n=0,o=t.length;n<o;n++)e=t.charCodeAt(n),e<128?r+=1:e<2048?r+=2:e<55296||e>=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))},e.randomString=function(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)};const n=r(1970),o=n.globalThisShim.setTimeout,i=n.globalThisShim.clearTimeout},5720(t,e){"use strict";e.ERROR_PACKET=e.PACKET_TYPES_REVERSE=e.PACKET_TYPES=void 0;const r=Object.create(null);e.PACKET_TYPES=r,r.open="0",r.close="1",r.ping="2",r.pong="3",r.message="4",r.upgrade="5",r.noop="6";const n=Object.create(null);e.PACKET_TYPES_REVERSE=n,Object.keys(r).forEach(t=>{n[r[t]]=t}),e.ERROR_PACKET={type:"error",data:"parser error"}},247(t,e){"use strict";e.decode=void 0;const r="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<64;t++)r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;e.decode=t=>{let e,n,o,i,s,a=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);const h=new ArrayBuffer(a),l=new Uint8Array(h);for(e=0;e<c;e+=4)n=r[t.charCodeAt(e)],o=r[t.charCodeAt(e+1)],i=r[t.charCodeAt(e+2)],s=r[t.charCodeAt(e+3)],l[u++]=n<<2|o>>4,l[u++]=(15&o)<<4|i>>2,l[u++]=(3&i)<<6|63&s;return h}},8700(t,e,r){"use strict";e.decodePacket=void 0;const n=r(5720),o=r(247),i="function"==typeof ArrayBuffer;e.decodePacket=(t,e)=>{if("string"!=typeof t)return{type:"message",data:a(t,e)};const r=t.charAt(0);return"b"===r?{type:"message",data:s(t.substring(1),e)}:n.PACKET_TYPES_REVERSE[r]?t.length>1?{type:n.PACKET_TYPES_REVERSE[r],data:t.substring(1)}:{type:n.PACKET_TYPES_REVERSE[r]}:n.ERROR_PACKET};const s=(t,e)=>{if(i){const r=(0,o.decode)(t);return a(r,e)}return{base64:!0,data:t}},a=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer},176(t,e,r){"use strict";e.encodePacket=void 0,e.encodePacketToBinary=function(t,e){return o&&t.data instanceof Blob?t.data.arrayBuffer().then(u).then(e):i&&(t.data instanceof ArrayBuffer||s(t.data))?e(u(t.data)):void a(t,!1,t=>{h||(h=new TextEncoder),e(h.encode(t))})};const n=r(5720),o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),i="function"==typeof ArrayBuffer,s=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,a=({type:t,data:e},r,a)=>o&&e instanceof Blob?r?a(e):c(e,a):i&&(e instanceof ArrayBuffer||s(e))?r?a(e):c(new Blob([e]),a):a(n.PACKET_TYPES[t]+(e||""));e.encodePacket=a;const c=(t,e)=>{const r=new FileReader;return r.onload=function(){const t=r.result.split(",")[1];e("b"+(t||""))},r.readAsDataURL(t)};function u(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let h},3490(t,e,r){"use strict";e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=void 0,e.createPacketEncoderStream=function(){return new TransformStream({transform(t,e){(0,n.encodePacketToBinary)(t,r=>{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const t=new DataView(o.buffer);t.setUint8(0,126),t.setUint16(1,n)}else{o=new Uint8Array(9);const t=new DataView(o.buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(n))}t.data&&"string"!=typeof t.data&&(o[0]|=128),e.enqueue(o),e.enqueue(r)})}})},e.createPacketDecoderStream=function(t,e){a||(a=new TextDecoder);const r=[];let n=0,s=-1,h=!1;return new TransformStream({transform(l,f){for(r.push(l);;){if(0===n){if(c(r)<1)break;const t=u(r,1);h=!(128&~t[0]),s=127&t[0],n=s<126?3:126===s?1:2}else if(1===n){if(c(r)<2)break;const t=u(r,2);s=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),n=3}else if(2===n){if(c(r)<8)break;const t=u(r,8),e=new DataView(t.buffer,t.byteOffset,t.length),o=e.getUint32(0);if(o>Math.pow(2,21)-1){f.enqueue(i.ERROR_PACKET);break}s=o*Math.pow(2,32)+e.getUint32(4),n=3}else{if(c(r)<s)break;const t=u(r,s);f.enqueue((0,o.decodePacket)(h?t:a.decode(t),e)),n=0}if(0===s||s>t){f.enqueue(i.ERROR_PACKET);break}}}})};const n=r(176);Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return n.encodePacket}});const o=r(8700);Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return o.decodePacket}});const i=r(5720),s=String.fromCharCode(30);let a;function c(t){return t.reduce((t,e)=>t+e.length,0)}function u(t,e){if(t[0].length===e)return t.shift();const r=new Uint8Array(e);let n=0;for(let o=0;o<e;o++)r[o]=t[0][n++],n===t[0].length&&(t.shift(),n=0);return t.length&&n<t[0].length&&(t[0]=t[0].slice(n)),r}e.encodePayload=(t,e)=>{const r=t.length,o=new Array(r);let i=0;t.forEach((t,a)=>{(0,n.encodePacket)(t,!1,t=>{o[a]=t,++i===r&&e(o.join(s))})})},e.decodePayload=(t,e)=>{const r=t.split(s),n=[];for(let t=0;t<r.length;t++){const i=(0,o.decodePacket)(r[t],e);if(n.push(i),"error"===i.type)break}return n},e.protocol=4},9341(t,e){"use strict";function r(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}e.Backoff=r,r.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),r=Math.floor(e*this.jitter*t);t=1&Math.floor(10*e)?t+r:t-r}return 0|Math.min(t,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(t){this.ms=t},r.prototype.setMax=function(t){this.max=t},r.prototype.setJitter=function(t){this.jitter=t}},7273(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WebTransport=e.WebSocket=e.NodeWebSocket=e.XHR=e.NodeXHR=e.Fetch=e.Socket=e.Manager=e.protocol=void 0,e.io=u,e.connect=u,e.default=u;const o=r(704),i=r(7858);Object.defineProperty(e,"Manager",{enumerable:!0,get:function(){return i.Manager}});const s=r(3152);Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return s.Socket}});const a=(0,n(r(7989)).default)("socket.io-client"),c={};function u(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};const r=(0,o.url)(t,e.path||"/socket.io"),n=r.source,s=r.id,u=r.path,h=c[s]&&u in c[s].nsps;let l;return e.forceNew||e["force new connection"]||!1===e.multiplex||h?(a("ignoring socket cache for %s",n),l=new i.Manager(n,e)):(c[s]||(a("new io instance for %s",n),c[s]=new i.Manager(n,e)),l=c[s]),r.query&&!e.query&&(e.query=r.queryKey),l.socket(r.path,e)}Object.assign(u,{Manager:i.Manager,Socket:s.Socket,io:u,connect:u});var h=r(9449);Object.defineProperty(e,"protocol",{enumerable:!0,get:function(){return h.protocol}});var l=r(9986);Object.defineProperty(e,"Fetch",{enumerable:!0,get:function(){return l.Fetch}}),Object.defineProperty(e,"NodeXHR",{enumerable:!0,get:function(){return l.NodeXHR}}),Object.defineProperty(e,"XHR",{enumerable:!0,get:function(){return l.XHR}}),Object.defineProperty(e,"NodeWebSocket",{enumerable:!0,get:function(){return l.NodeWebSocket}}),Object.defineProperty(e,"WebSocket",{enumerable:!0,get:function(){return l.WebSocket}}),Object.defineProperty(e,"WebTransport",{enumerable:!0,get:function(){return l.WebTransport}}),t.exports=u},7858(t,e,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return o(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Manager=void 0;const a=r(9986),c=r(3152),u=i(r(9449)),h=r(8536),l=r(9341),f=r(4196),p=(0,s(r(7989)).default)("socket.io-client:manager");class d extends f.Emitter{constructor(t,e){var r;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,(0,a.installTimerFunctions)(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=e.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new l.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;const n=e.parser||u;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null===(e=this.backoff)||void 0===e||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null===(e=this.backoff)||void 0===e||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null===(e=this.backoff)||void 0===e||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(p("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;p("opening %s",this.uri),this.engine=new a.Socket(this.uri,this.opts);const e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=(0,h.on)(e,"open",function(){r.onopen(),t&&t()}),o=e=>{p("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},i=(0,h.on)(e,"error",o);if(!1!==this._timeout){const t=this._timeout;p("connect attempt will timeout after %d",t);const r=this.setTimeoutFn(()=>{p("connect attempt timed out after %d",t),n(),o(new Error("timeout")),e.close()},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){p("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push((0,h.on)(t,"ping",this.onping.bind(this)),(0,h.on)(t,"data",this.ondata.bind(this)),(0,h.on)(t,"error",this.onerror.bind(this)),(0,h.on)(t,"close",this.onclose.bind(this)),(0,h.on)(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){(0,a.nextTick)(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){p("error",t),this.emitReserved("error",t)}socket(t,e){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new c.Socket(this,t,e),this.nsps[t]=r),r}_destroy(t){const e=Object.keys(this.nsps);for(const t of e)if(this.nsps[t].active)return void p("socket %s is still active, skipping close",t);this._close()}_packet(t){p("writing packet %j",t);const e=this.encoder.encode(t);for(let r=0;r<e.length;r++)this.engine.write(e[r],t.options)}cleanup(){p("cleanup"),this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){p("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var r;p("closed due to %s",t),this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)p("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const e=this.backoff.duration();p("will wait %dms before reconnect attempt",e),this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(p("attempting reconnect"),this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(p("reconnect attempt error"),t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):(p("reconnect success"),t.onreconnect())}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}e.Manager=d},8536(t,e){"use strict";e.on=function(t,e,r){return t.on(e,r),function(){t.off(e,r)}}},3152(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Socket=void 0;const o=r(9449),i=r(8536),s=r(4196),a=(0,n(r(7989)).default)("socket.io-client:socket"),c=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class u extends s.Emitter{constructor(t,e,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[(0,i.on)(t,"open",this.onopen.bind(this)),(0,i.on)(t,"packet",this.onpacket.bind(this)),(0,i.on)(t,"error",this.onerror.bind(this)),(0,i.on)(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var r,n,i;if(c.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;const s={type:o.PacketType.EVENT,data:e,options:{}};if(s.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){const t=this.ids++;a("emitting packet with ack id %d",t);const r=e.pop();this._registerAckCallback(t,r),s.id=t}const u=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,h=this.connected&&!(null===(i=this.io.engine)||void 0===i?void 0:i._hasPingExpired());return this.flags.volatile&&!u?a("discard packet as the transport is not currently writable"):h?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s),this.flags={},this}_registerAckCallback(t,e){var r;const n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n)return void(this.acks[t]=e);const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&(a("removing packet with ack id %d from the buffer",t),this.sendBuffer.splice(e,1));a("event with ack id %d has timed out after %d ms",t,n),e.call(this,new Error("operation has timed out"))},n),i=(...t)=>{this.io.clearTimeoutFn(o),e.apply(this,t)};i.withError=!0,this.acks[t]=i}emitWithAck(t,...e){return new Promise((r,n)=>{const o=(t,e)=>t?n(t):r(e);o.withError=!0,e.push(o),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...n)=>r!==this._queue[0]?a("packet [%d] already acknowledged",r.id):(null!==t?r.tryCount>this._opts.retries&&(a("packet [%d] is discarded after %d tries",r.id,r.tryCount),this._queue.shift(),e&&e(t)):(a("packet [%d] was successfully sent",r.id),this._queue.shift(),e&&e(null,...n)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(a("draining queue"),!this.connected||0===this._queue.length)return;const e=this._queue[0];!e.pending||t?(e.pending=!0,e.tryCount++,a("sending packet [%d] (try n°%d)",e.id,e.tryCount),this.flags=e.flags,this.emit.apply(this,e.args)):a("packet [%d] has already been sent and is waiting for an ack",e.id)}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){a("transport is open - connecting"),"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:o.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){a("close (%s)",t),this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){const e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case o.PacketType.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case o.PacketType.EVENT:case o.PacketType.BINARY_EVENT:this.onevent(t);break;case o.PacketType.ACK:case o.PacketType.BINARY_ACK:this.onack(t);break;case o.PacketType.DISCONNECT:this.ondisconnect();break;case o.PacketType.CONNECT_ERROR:this.destroy();const e=new Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){const e=t.data||[];a("emitting event %j",e),null!=t.id&&(a("attaching ack callback to event"),e.push(this.ack(t.id))),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const e=this._anyListeners.slice();for(const r of e)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){const e=this;let r=!1;return function(...n){r||(r=!0,a("sending ack %j",n),e.packet({type:o.PacketType.ACK,id:t,data:n}))}}onack(t){const e=this.acks[t.id];"function"==typeof e?(delete this.acks[t.id],a("calling ack %s with %j",t.id,t.data),e.withError&&t.data.unshift(null),e.apply(this,t.data)):a("bad ack %s",t.id)}onconnect(t,e){a("socket connected with id %s",t),this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){a("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(a("performing disconnect (%s)",this.nsp),this.packet({type:o.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const e=this._anyListeners;for(let r=0;r<e.length;r++)if(t===e[r])return e.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const e=this._anyOutgoingListeners;for(let r=0;r<e.length;r++)if(t===e[r])return e.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const e=this._anyOutgoingListeners.slice();for(const r of e)r.apply(this,t.data)}}}e.Socket=u},704(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.url=function(t,e="",r){let n=t;r=r||"undefined"!=typeof location&&location,null==t&&(t=r.protocol+"//"+r.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?r.protocol+t:r.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t=void 0!==r?r.protocol+"//"+t:"https://"+t),i("parse %s",t),n=(0,o.parse)(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const s=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+s+":"+n.port+e,n.href=n.protocol+"://"+s+(r&&r.port===n.port?"":":"+n.port),n};const o=r(9986),i=(0,n(r(7989)).default)("socket.io-client:url")},8856(t,e,r){"use strict";e.deconstructPacket=function(t){const e=[],r=t.data,n=t;return n.data=o(r,e),n.attachments=e.length,{packet:n,buffers:e}},e.reconstructPacket=function(t,e){return t.data=i(t.data,e),delete t.attachments,t};const n=r(4687);function o(t,e,r){if(!t)return t;if((0,n.isBinary)(t)){const r={_placeholder:!0,num:e.length};return e.push(t),r}if(Array.isArray(t)){const r=new Array(t.length);for(let n=0;n<t.length;n++)r[n]=o(t[n],e);return r}if("object"==typeof t&&!(t instanceof Date)){if(t.toJSON&&"function"==typeof t.toJSON&&!r)return o(t.toJSON(),e,!0);const n={};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=o(t[r],e));return n}return t}function i(t,e){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<e.length)return e[t.num];throw new Error("illegal attachments")}if(Array.isArray(t))for(let r=0;r<t.length;r++)t[r]=i(t[r],e);else if("object"==typeof t)for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(t[r]=i(t[r],e));return t}},9449(t,e,r){"use strict";var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0,e.isPacketValid=function(t){return"string"==typeof t.nsp&&(void 0===(e=t.id)||f(e))&&function(t,e){switch(t){case u.CONNECT:return void 0===e||p(e);case u.DISCONNECT:return void 0===e;case u.EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===c.indexOf(e[0]));case u.ACK:return Array.isArray(e);case u.CONNECT_ERROR:return"string"==typeof e||p(e);default:return!1}}(t.type,t.data);var e};const o=r(4196),i=r(8856),s=r(4687),a=(0,n(r(7989)).default)("socket.io-parser"),c=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var u;e.protocol=5,function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(u||(e.PacketType=u={})),e.Encoder=class{constructor(t){this.replacer=t}encode(t){return a("encoding packet %j",t),t.type!==u.EVENT&&t.type!==u.ACK||!(0,s.hasBinary)(t)?[this.encodeAsString(t)]:this.encodeAsBinary({type:t.type===u.EVENT?u.BINARY_EVENT:u.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id})}encodeAsString(t){let e=""+t.type;return t.type!==u.BINARY_EVENT&&t.type!==u.BINARY_ACK||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),a("encoded %j as %s",t,e),e}encodeAsBinary(t){const e=(0,i.deconstructPacket)(t),r=this.encodeAsString(e.packet),n=e.buffers;return n.unshift(r),n}};class h extends o.Emitter{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},"function"==typeof t?{reviver:t}:t)}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");e=this.decodeString(t);const r=e.type===u.BINARY_EVENT;r||e.type===u.BINARY_ACK?(e.type=r?u.EVENT:u.ACK,this.reconstructor=new l(e)):super.emitReserved("decoded",e)}else{if(!(0,s.isBinary)(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");e=this.reconstructor.takeBinaryData(t),e&&(this.reconstructor=null,super.emitReserved("decoded",e))}}decodeString(t){let e=0;const r={type:Number(t.charAt(0))};if(void 0===u[r.type])throw new Error("unknown packet type "+r.type);if(r.type===u.BINARY_EVENT||r.type===u.BINARY_ACK){const n=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);const o=t.substring(n,e);if(o!=Number(o)||"-"!==t.charAt(e))throw new Error("Illegal attachments");const i=Number(o);if(!f(i)||i<1)throw new Error("Illegal attachments");if(i>this.opts.maxAttachments)throw new Error("too many attachments");r.attachments=i}if("/"===t.charAt(e+1)){const n=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);r.nsp=t.substring(n,e)}else r.nsp="/";const n=t.charAt(e+1);if(""!==n&&Number(n)==n){const n=e+1;for(;++e;){const r=t.charAt(e);if(null==r||Number(r)!=r){--e;break}if(e===t.length)break}r.id=Number(t.substring(n,e+1))}if(t.charAt(++e)){const n=this.tryParse(t.substr(e));if(!h.isPayloadValid(r.type,n))throw new Error("invalid payload");r.data=n}return a("decoded %s as %j",t,r),r}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case u.CONNECT:return p(e);case u.DISCONNECT:return void 0===e;case u.CONNECT_ERROR:return"string"==typeof e||p(e);case u.EVENT:case u.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===c.indexOf(e[0]));case u.ACK:case u.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=h;class l{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const t=(0,i.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const f=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t};function p(t){return"[object Object]"===Object.prototype.toString.call(t)}},4687(t,e){"use strict";e.isBinary=s,e.hasBinary=function t(e,r){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(t(e[r]))return!0;return!1}if(s(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return!0;return!1};const r="function"==typeof ArrayBuffer,n=Object.prototype.toString,o="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===n.call(Blob),i="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===n.call(File);function s(t){return r&&(t instanceof ArrayBuffer||(t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer)(t))||o&&t instanceof Blob||i&&t instanceof File}},4196(t,e,r){"use strict";function n(t){if(t)return function(t){for(var e in n.prototype)t[e]=n.prototype[e];return t}(t)}r.d(e,{Emitter:()=>n}),n.prototype.on=n.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},n.prototype.once=function(t,e){function r(){this.off(t,r),e.apply(this,arguments)}return r.fn=e,this.on(t,r),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=n.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return 0===n.length&&delete this._callbacks["$"+t],this},n.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),r=this._callbacks["$"+t],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(r){n=0;for(var o=(r=r.slice(0)).length;n<o;++n)r[n].apply(this,e)}return this},n.prototype.emitReserved=n.prototype.emit,n.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},n.prototype.hasListeners=function(t){return!!this.listeners(t).length}}};const e={};function r(n){const o=e[n];if(void 0!==o)return o.exports;const i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}return r.d=(t,e)=>{if(Array.isArray(e))for(var n=0;n<e.length;){var o=e[n++],i=e[n++];r.o(t,o)?0===i&&n++:0===i?Object.defineProperty(t,o,{enumerable:!0,value:e[n++]}):Object.defineProperty(t,o,{enumerable:!0,get:i})}else for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r(289)})());
|
|
1
|
+
"use strict";
|
|
2
|
+
// ─── @de./sdk — web & server entry point ──────────────────────────────────────
|
|
3
|
+
//
|
|
4
|
+
// The platform-neutral core plus the browser MSI gateway (iframe + iframe.io).
|
|
5
|
+
//
|
|
6
|
+
// React Native consumers import '@de./sdk/react-native' instead, which pairs
|
|
7
|
+
// the same core with a WebView gateway. This module must never reference that
|
|
8
|
+
// one: it would drag react-native-webview into web and server bundles.
|
|
9
|
+
//
|
|
10
|
+
// import De from '@de./sdk'
|
|
11
|
+
// const msi = new De.MSI({ element: 'map', accessToken })
|
|
12
|
+
//
|
|
13
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
17
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
18
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
19
|
+
}
|
|
20
|
+
Object.defineProperty(o, k2, desc);
|
|
21
|
+
}) : (function(o, m, k, k2) {
|
|
22
|
+
if (k2 === undefined) k2 = k;
|
|
23
|
+
o[k2] = m[k];
|
|
24
|
+
}));
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.MSI = void 0;
|
|
33
|
+
__exportStar(require("./core"), exports);
|
|
34
|
+
// Map Service Interface (de.eui service) — browser gateway
|
|
35
|
+
var MSI_1 = require("./allend/MSI");
|
|
36
|
+
Object.defineProperty(exports, "MSI", { enumerable: true, get: function () { return __importDefault(MSI_1).default; } });
|
|
37
|
+
const MSI_2 = __importDefault(require("./allend/MSI"));
|
|
38
|
+
const core_1 = require("./core");
|
|
39
|
+
const De = {
|
|
40
|
+
...core_1.core,
|
|
41
|
+
MSI: MSI_2.default
|
|
42
|
+
};
|
|
43
|
+
exports.default = De;
|
|
44
|
+
//# sourceMappingURL=index.js.map
|